summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrahmajit Das <brahmajit.xyz@gmail.com>2023-10-26 17:35:41 +0000
committerAndrew Ammerlaan <andrewammerlaan@gentoo.org>2023-10-27 09:57:54 +0200
commite28097d5c56a37902f19d90fe376851d5046d611 (patch)
treeb8e732a076b0402dbff0b93e107f6bdeed3da08b /sci-chemistry
parentdev-python/mkdocs-i18n: add 0.4.6 (diff)
downloadgentoo-e28097d5c56a37902f19d90fe376851d5046d611.tar.gz
gentoo-e28097d5c56a37902f19d90fe376851d5046d611.tar.bz2
gentoo-e28097d5c56a37902f19d90fe376851d5046d611.zip
sci-chemistry/easychem: Fix build with clang 16
Closes: https://bugs.gentoo.org/886085 Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/33525 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'sci-chemistry')
-rw-r--r--sci-chemistry/easychem/easychem-0.6-r1.ebuild5
-rw-r--r--sci-chemistry/easychem/files/easychem-0.6-clang16-fix.patch11
2 files changed, 15 insertions, 1 deletions
diff --git a/sci-chemistry/easychem/easychem-0.6-r1.ebuild b/sci-chemistry/easychem/easychem-0.6-r1.ebuild
index 75b0372117e5..eb2e161f20f4 100644
--- a/sci-chemistry/easychem/easychem-0.6-r1.ebuild
+++ b/sci-chemistry/easychem/easychem-0.6-r1.ebuild
@@ -24,7 +24,10 @@ BDEPEND="
virtual/pkgconfig
"
-PATCHES=( "${FILESDIR}"/${PV}-gentoo.patch )
+PATCHES=(
+ "${FILESDIR}"/${PV}-gentoo.patch
+ "${FILESDIR}"/${PN}-0.6-clang16-fix.patch
+)
src_prepare() {
default
diff --git a/sci-chemistry/easychem/files/easychem-0.6-clang16-fix.patch b/sci-chemistry/easychem/files/easychem-0.6-clang16-fix.patch
new file mode 100644
index 000000000000..a8a82f64de24
--- /dev/null
+++ b/sci-chemistry/easychem/files/easychem-0.6-clang16-fix.patch
@@ -0,0 +1,11 @@
+Bug: https://bugs.gentoo.org/886085
+--- a/easychem.c
++++ b/easychem.c
+@@ -34,6 +34,7 @@
+ #include <stdlib.h>
+ #include <string.h>
+ #include <locale.h>
++#include <libintl.h>
+ #include <math.h>
+ #include <errno.h>
+ #include <gtk/gtk.h>