From: "Ulrich Mueller" <ulm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/eselect:master commit in: libs/, /
Date: Mon, 17 Jun 2013 15:26:12 +0000 (UTC) [thread overview]
Message-ID: <1371482742.6cf0931afd8a47eebd1b8f9fefe33327957c41a1.ulm@gentoo> (raw)
commit: 6cf0931afd8a47eebd1b8f9fefe33327957c41a1
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 17 15:25:42 2013 +0000
Commit: Ulrich Mueller <ulm <AT> gentoo <DOT> org>
CommitDate: Mon Jun 17 15:25:42 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/eselect.git;a=commit;h=6cf0931a
Workaround for ARCH in prefix/linux profiles, bug 473542.
* libs/package-manager.bash.in (arch): Workaround for incorrect
definition of ARCH in prefix/linux profiles, bug 473542.
---
ChangeLog | 5 +++++
libs/package-manager.bash.in | 13 +++++++++++++
2 files changed, 18 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 90c86c7..ba6c4f5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-06-17 Ulrich Müller <ulm@gentoo.org>
+
+ * libs/package-manager.bash.in (arch): Workaround for incorrect
+ definition of ARCH in prefix/linux profiles, bug 473542.
+
2013-04-06 Ulrich Müller <ulm@gentoo.org>
* doc/developer-guide.txt: Document the "unset" action; it is used
diff --git a/libs/package-manager.bash.in b/libs/package-manager.bash.in
index 886e3b7..7cf31b5 100644
--- a/libs/package-manager.bash.in
+++ b/libs/package-manager.bash.in
@@ -44,6 +44,19 @@ run_paludis() {
arch() {
local ret=$(envvar sys-devel/gcc ARCH)
+ if [[ -n ${EPREFIX} && -n ${ret} && ${ret%-*} = "${ret}" ]]; then
+ # prefix/linux profiles lie about their ARCH
+ case $(envvar sys-devel/gcc KERNEL) in
+ linux) ret+="-linux" ;;
+ *)
+ write_warning_msg \
+ "Failed to determine \${ARCH}." \
+ "Please submit a bug report."
+ return 1
+ ;;
+ esac
+ fi
+
# $arch will be null if there's no current make.profile symlink.
# We cannot get a list of valid profiles without it.
if [[ -z ${ret} ]]; then
next reply other threads:[~2013-06-17 15:26 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-17 15:26 Ulrich Mueller [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-05-12 16:44 [gentoo-commits] proj/eselect:master commit in: libs/, / Ulrich Müller
2023-03-14 16:53 Ulrich Müller
2017-12-25 11:00 Ulrich Müller
2017-06-18 19:32 Ulrich Müller
2017-03-21 6:33 Ulrich Müller
2016-12-10 8:18 Ulrich Müller
2016-11-01 6:43 Ulrich Müller
2016-10-30 9:17 Ulrich Müller
2016-06-01 19:43 Ulrich Müller
2014-03-14 19:43 Ulrich Müller
2014-01-19 16:36 Ulrich Müller
2013-11-19 12:54 Ulrich Müller
2013-11-19 8:17 Ulrich Müller
2013-11-10 20:24 Ulrich Müller
2013-01-05 13:47 Ulrich Mueller
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=1371482742.6cf0931afd8a47eebd1b8f9fefe33327957c41a1.ulm@gentoo \
--to=ulm@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