diff options
author | Justin Lecher <jlec@gentoo.org> | 2016-02-09 13:18:10 +0100 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2016-02-09 13:19:21 +0100 |
commit | 6afbe34a08a1c7be8b59de72c629b8326b9f6609 (patch) | |
tree | 46ed6aa3ef920822882ed40e40dbd925a7d6d6dc /sci-chemistry/psi/files | |
parent | sci-libs/libint: Slot package (diff) | |
download | gentoo-6afbe34a08a1c7be8b59de72c629b8326b9f6609.tar.gz gentoo-6afbe34a08a1c7be8b59de72c629b8326b9f6609.tar.bz2 gentoo-6afbe34a08a1c7be8b59de72c629b8326b9f6609.zip |
sci-chemistry/psi: Fix multiple build failures
* Use byacc instead of bison
* Depend on correct SLOT of libint
* Fix format-security problems
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=430588
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=574068
Package-Manager: portage-2.2.27
Signed-off-by: Justin Lecher <jlec@gentoo.org>
Diffstat (limited to 'sci-chemistry/psi/files')
-rw-r--r-- | sci-chemistry/psi/files/psi-3.4.0-format-security.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/sci-chemistry/psi/files/psi-3.4.0-format-security.patch b/sci-chemistry/psi/files/psi-3.4.0-format-security.patch new file mode 100644 index 000000000000..10efa813ba3d --- /dev/null +++ b/sci-chemistry/psi/files/psi-3.4.0-format-security.patch @@ -0,0 +1,33 @@ + src/lib/libmints/matrix.cc | 12 +++++------- + 1 file changed, 5 insertions(+), 7 deletions(-) + +diff --git a/src/lib/libmints/matrix.cc b/src/lib/libmints/matrix.cc +index 2ce5ede..2c7b5de 100644 +--- a/src/lib/libmints/matrix.cc ++++ b/src/lib/libmints/matrix.cc +@@ -549,10 +549,9 @@ void Matrix::save(const char *filename, bool append, bool saveLowerTriangle, boo + } else { + out = fopen(filename, "w"); + } +- +- fprintf(out, name_.c_str()); +- fprintf(out, "\n"); +- ++ ++ fprintf(out, "%s\n", name_.c_str()); ++ + if (saveSubBlocks == false) { + // Convert the matrix to a full matrix + double **fullblock = to_block_matrix(); +@@ -1083,9 +1082,8 @@ void SimpleMatrix::save(const char *filename, bool append, bool saveLowerTriangl + } else { + out = fopen(filename, "w"); + } +- +- fprintf(out, name_.c_str()); +- fprintf(out, "\n"); ++ ++ fprintf(out, "%s\n", name_.c_str()); + + if (saveLowerTriangle) { + // Count the number of non-zero element |