From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-build/cmake/
Date: Wed, 18 Dec 2024 22:38:32 +0000 (UTC) [thread overview]
Message-ID: <1734561483.9b3f37c3ec2b4a2cdda92bbb554b7fbca8172885.sam@gentoo> (raw)
commit: 9b3f37c3ec2b4a2cdda92bbb554b7fbca8172885
Author: Allen-Kristjan Päll <akpall <AT> fst <DOT> ee>
AuthorDate: Wed Dec 18 20:02:59 2024 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Dec 18 22:38:03 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9b3f37c3
dev-build/cmake: update 9999
Improved errant files check and moved it to pkg_pretend
Signed-off-by: Allen-Kristjan Päll <akpall <AT> fst.ee>
Closes: https://github.com/gentoo/gentoo/pull/39774
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-build/cmake/cmake-9999.ebuild | 38 +++++++++++++++++++++++++++-----------
1 file changed, 27 insertions(+), 11 deletions(-)
diff --git a/dev-build/cmake/cmake-9999.ebuild b/dev-build/cmake/cmake-9999.ebuild
index 214e75342d3c..5528e7364aa9 100644
--- a/dev-build/cmake/cmake-9999.ebuild
+++ b/dev-build/cmake/cmake-9999.ebuild
@@ -126,6 +126,33 @@ cmake_src_bootstrap() {
|| die "Bootstrap failed"
}
+pkg_pretend() {
+ if [[ -z ${EPREFIX} ]] ; then
+ local file
+ local errant_files=()
+
+ # See bug #599684 and bug #753581 (at least)
+ for file in /etc/arch-release /etc/redhat-release /etc/debian_version ; do
+ if [[ -e $file ]]; then
+ errant_files+=("$file")
+ fi
+ done
+
+ # If errant files exist
+ if [[ ${#errant_files[@]} -gt 0 ]]; then
+ eerror "Errant files found!"
+ eerror "The presence of these files is known to confuse CMake's"
+ eerror "library path logic. Please (re)move these files:"
+
+ for file in "${errant_files[@]}"; do
+ eerror " mv ${file} ${file}.bak"
+ done
+
+ die "Stray files found in /etc/, see above message"
+ fi
+ fi
+}
+
src_unpack() {
if [[ ${PV} == 9999 ]] ; then
git-r3_src_unpack
@@ -278,17 +305,6 @@ src_install() {
}
pkg_postinst() {
- if [[ -z ${EPREFIX} ]] ; then
- local file
- # See bug #599684 and bug #753581 (at least)
- for file in /etc/arch-release /etc/redhat-release /etc/debian_version ; do
- eerror "Errant ${file} found!"
- eerror "The presence of these files is known to confuse CMake's"
- eerror "library path logic. Please (re)move this file:"
- eerror " mv ${file} ${file}.bak"
- done
- fi
-
if use gui; then
xdg_icon_cache_update
xdg_desktop_database_update
next reply other threads:[~2024-12-18 22:38 UTC|newest]
Thread overview: 106+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-18 22:38 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-05-23 1:25 [gentoo-commits] repo/gentoo:master commit in: dev-build/cmake/ Sam James
2025-05-23 1:25 Sam James
2025-05-23 1:25 Sam James
2025-05-23 1:25 Sam James
2025-05-23 1:25 Sam James
2025-05-22 15:22 Andreas Sturmlechner
2025-05-11 18:36 Sam James
2025-05-10 0:53 Sam James
2025-05-06 16:03 Sam James
2025-04-11 1:20 Sam James
2025-04-11 1:20 Sam James
2025-03-28 17:26 Sam James
2025-03-25 9:42 Sam James
2025-03-22 4:34 Sam James
2025-03-21 22:43 Andreas Sturmlechner
2025-03-21 14:19 Andreas Sturmlechner
2025-03-21 13:50 Andreas Sturmlechner
2025-03-13 8:59 Sam James
2025-03-09 20:19 Sam James
2025-03-07 5:28 Sam James
2025-02-28 8:19 Andreas Sturmlechner
2025-02-25 6:58 Sam James
2025-02-20 8:12 Arthur Zamarin
2025-02-20 8:05 Sam James
2025-02-19 22:21 Sam James
2025-02-19 22:21 Sam James
2025-02-19 22:21 Sam James
2025-02-19 21:26 Sam James
2025-02-19 21:26 Sam James
2025-01-24 11:57 Sam James
2025-01-19 18:28 Arthur Zamarin
2025-01-12 22:48 Andreas Sturmlechner
2025-01-12 22:48 Andreas Sturmlechner
2025-01-10 21:36 Sam James
2025-01-03 2:40 Sam James
2024-12-31 9:08 Andreas Sturmlechner
2024-12-20 4:18 Sam James
2024-12-18 22:38 Sam James
2024-12-18 22:38 Sam James
2024-12-14 17:34 Sam James
2024-12-10 5:55 Sam James
2024-12-06 17:31 Sam James
2024-12-06 17:31 Sam James
2024-12-01 17:35 Jakov Smolić
2024-12-01 11:05 Sam James
2024-12-01 10:42 Sam James
2024-12-01 10:42 Sam James
2024-12-01 10:42 Sam James
2024-12-01 10:17 Sam James
2024-12-01 10:16 Sam James
2024-11-22 18:10 Sam James
2024-11-22 18:10 Sam James
2024-11-08 16:34 Sam James
2024-11-03 21:11 Andreas Sturmlechner
2024-10-30 17:27 Arthur Zamarin
2024-10-24 7:43 Arthur Zamarin
2024-10-21 18:41 Arthur Zamarin
2024-10-21 18:41 Arthur Zamarin
2024-10-21 12:48 Sam James
2024-10-21 12:31 Sam James
2024-10-21 12:15 Sam James
2024-10-08 19:47 Sam James
2024-10-08 19:32 Sam James
2024-09-30 14:06 Sam James
2024-09-11 17:45 Arthur Zamarin
2024-09-07 14:27 Sam James
2024-09-07 14:27 Sam James
2024-09-02 7:29 Arthur Zamarin
2024-08-29 3:51 Sam James
2024-08-29 3:15 Sam James
2024-08-06 7:28 Sam James
2024-07-19 4:55 Sam James
2024-07-19 4:55 Sam James
2024-07-18 19:15 Fabian Groffen
2024-07-07 7:10 Eli Schwartz
2024-07-03 2:33 Sam James
2024-07-03 2:10 Sam James
2024-07-03 1:47 Sam James
2024-06-24 20:15 Andreas Sturmlechner
2024-06-01 3:56 Sam James
2024-06-01 3:46 Ionen Wolkens
2024-05-11 10:22 Arthur Zamarin
2024-05-11 7:23 Arthur Zamarin
2024-05-11 3:04 Sam James
2024-05-11 2:36 Sam James
2024-05-11 2:36 Sam James
2024-05-11 2:36 Sam James
2024-05-11 2:17 Sam James
2024-05-11 2:17 Sam James
2024-05-07 23:04 Sam James
2024-05-07 23:04 Sam James
2024-04-12 14:15 Sam James
2024-04-08 12:19 Sam James
2024-03-22 5:05 Sam James
2024-03-22 4:51 Sam James
2024-03-17 0:14 Sam James
2024-03-16 17:34 Arthur Zamarin
2024-03-16 16:56 Arthur Zamarin
2024-03-16 16:54 Arthur Zamarin
2024-03-16 16:45 Arthur Zamarin
2024-03-16 16:45 Arthur Zamarin
2024-03-16 16:42 Arthur Zamarin
2024-02-22 4:45 Ionen Wolkens
2024-02-06 3:26 Sam James
2024-01-31 20:35 Sam James
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=1734561483.9b3f37c3ec2b4a2cdda92bbb554b7fbca8172885.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