summaryrefslogtreecommitdiff
path: root/dev-ml/labltk/files/labltk-8.06.7-configure.patch
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-11-19 01:20:25 +0000
committerSam James <sam@gentoo.org>2022-11-19 01:34:44 +0000
commit6607bc47bc8b5a12283fe21c539cc9687adf2741 (patch)
tree70f2ea74506bbb7ee9265c7bb6c85ac097624616 /dev-ml/labltk/files/labltk-8.06.7-configure.patch
parent760cb36c3cee174c29e60cd0fa7a14df9d8c821f (diff)
downloadgentoo-6607bc47bc8b5a12283fe21c539cc9687adf2741.tar.gz
gentoo-6607bc47bc8b5a12283fe21c539cc9687adf2741.tar.bz2
gentoo-6607bc47bc8b5a12283fe21c539cc9687adf2741.zip
dev-ml/labltk: fix configure w/ clang 16
Closes: https://bugs.gentoo.org/881841 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-ml/labltk/files/labltk-8.06.7-configure.patch')
-rw-r--r--dev-ml/labltk/files/labltk-8.06.7-configure.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/dev-ml/labltk/files/labltk-8.06.7-configure.patch b/dev-ml/labltk/files/labltk-8.06.7-configure.patch
new file mode 100644
index 000000000000..320f92f7ce45
--- /dev/null
+++ b/dev-ml/labltk/files/labltk-8.06.7-configure.patch
@@ -0,0 +1,27 @@
+https://bugs.gentoo.org/881841
+https://github.com/garrigue/labltk/commit/be8c977d320ed40cacb322658d4ceba5e583b3a6
+
+From be8c977d320ed40cacb322658d4ceba5e583b3a6 Mon Sep 17 00:00:00 2001
+From: Jacques Garrigue <garrigue@math.nagoya-u.ac.jp>
+Date: Mon, 24 Aug 2020 11:27:34 +0900
+Subject: [PATCH] Fix config/auto-aux/hasgot for clang 12
+
+--- a/config/auto-aux/hasgot
++++ b/config/auto-aux/hasgot
+@@ -30,7 +30,8 @@ while : ; do
+ shift
+ done
+
+-(echo "main() {"
++(for f in $*; do echo "int $f();"; done
++ echo "int main() {"
+ for f in $*; do echo " $f();"; done
+ echo "}") >> hasgot.c
+
+--- a/config/auto-aux/hasgot.c
++++ /dev/null
+@@ -1,3 +0,0 @@
+-main() {
+- Tk_SetGrid();
+-}
+