From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/elfutils/files/, dev-libs/elfutils/
Date: Sun, 23 Apr 2023 19:05:59 +0000 (UTC) [thread overview]
Message-ID: <1682276722.7b275b0494c46be76ee85251716d5f7e3dc0fddf.sam@gentoo> (raw)
commit: 7b275b0494c46be76ee85251716d5f7e3dc0fddf
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 23 19:05:22 2023 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Apr 23 19:05:22 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b275b04
dev-libs/elfutils: fix tests w/ clang 16
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-libs/elfutils/elfutils-0.189-r1.ebuild | 1 +
.../files/elfutils-0.189-clang16-tests.patch | 26 ++++++++++++++++++++++
2 files changed, 27 insertions(+)
diff --git a/dev-libs/elfutils/elfutils-0.189-r1.ebuild b/dev-libs/elfutils/elfutils-0.189-r1.ebuild
index 285cb3c8c192..16bea52ed18d 100644
--- a/dev-libs/elfutils/elfutils-0.189-r1.ebuild
+++ b/dev-libs/elfutils/elfutils-0.189-r1.ebuild
@@ -45,6 +45,7 @@ BDEPEND="
PATCHES=(
"${WORKDIR}"/${PN}-0.187-patches/
"${FILESDIR}"/${P}-configure-bashisms.patch
+ "${FILESDIR}"/${P}-clang16-tests.patch
)
src_unpack() {
diff --git a/dev-libs/elfutils/files/elfutils-0.189-clang16-tests.patch b/dev-libs/elfutils/files/elfutils-0.189-clang16-tests.patch
new file mode 100644
index 000000000000..8dede51cbb23
--- /dev/null
+++ b/dev-libs/elfutils/files/elfutils-0.189-clang16-tests.patch
@@ -0,0 +1,26 @@
+https://sourceware.org/git/?p=elfutils.git;a=commit;h=51373aa9a77ef53d237edc1af664efcbb49f1bf5
+
+From 51373aa9a77ef53d237edc1af664efcbb49f1bf5 Mon Sep 17 00:00:00 2001
+From: Florian Weimer <fweimer@redhat.com>
+Date: Sat, 22 Apr 2023 21:37:09 +0200
+Subject: [PATCH] testsuite: Avoid C99 compatibility issues in
+ run-native-test.sh
+
+Include <unistd.h> for the pause function, and add the return type
+of main. Avoids an implicit function declaration and implicit int.
+
+Signed-off-by: Florian Weimer <fweimer@redhat.com>
+--- a/tests/run-native-test.sh
++++ b/tests/run-native-test.sh
+@@ -27,7 +27,8 @@
+ # in all builds.
+
+ tempfiles native.c native
+-echo 'main () { while (1) pause (); }' > native.c
++printf '#include <unistd.h>\nint main (void) { while (1) pause (); }\n' \
++ > native.c
+
+ native=0
+ kill_native()
+--
+2.31.1
next reply other threads:[~2023-04-23 19:06 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-23 19:05 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-01-29 22:47 [gentoo-commits] repo/gentoo:master commit in: dev-libs/elfutils/files/, dev-libs/elfutils/ Sam James
2024-06-09 16:25 Sam James
2023-08-29 6:36 Sam James
2023-03-25 1:41 Sam James
2021-02-07 19:10 Sergei Trofimovich
2020-09-08 21:23 Sergei Trofimovich
2020-06-12 21:20 Sergei Trofimovich
2019-08-09 20:52 Andreas K. Hüttel
2019-05-13 8:25 Sergei Trofimovich
2017-08-07 21:55 Sergei Trofimovich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1682276722.7b275b0494c46be76ee85251716d5f7e3dc0fddf.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox