commit:     385ef85cf81f67f3053820afe768c387e9dcf445
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Jul 15 04:35:25 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Jul 15 04:35:25 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=385ef85c

profiles/arch/x86: drop profile.bashrc

It dubiously (may be okay, #gentoo-pms was undecided) calls use
in global scope, but we really don't need this check anyway.

Originally noticed because pkgcore's pmerge in some cases would complain
about it:
```
[08:54:48]  <+sam_> building sys-libs/ncurses-6.3_p20220423
[08:54:48]  <+sam_> /var/db/repos/gentoo/profiles/arch/x86/profile.bashrc: line 
4: use: command not found
[08:54:48]  <+sam_> >>> Unpacking ncurses-6.3.tar.gz to 
/var/tmp/portage/sys-libs/ncurses-6.3_p20220423/work
```

Signed-off-by: Sam James <sam <AT> gentoo.org>

 profiles/arch/x86/profile.bashrc | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/profiles/arch/x86/profile.bashrc b/profiles/arch/x86/profile.bashrc
deleted file mode 100644
index cf66d2d68f6b..000000000000
--- a/profiles/arch/x86/profile.bashrc
+++ /dev/null
@@ -1,12 +0,0 @@
-if [[ ${EBUILD_PHASE} == "setup" ]] ; then
-
-       # on x86, -pg requires the frame pointer, so turning it off makes no 
sense
-       if has profile ${IUSE} && use profile && \
-          has -fomit-frame-pointer ${CFLAGS} ${CXXFLAGS}
-       then
-               eerror "\nUSE=profile and -fomit-frame-pointer make no sense"
-               eerror "Fix your build settings to avoid build failures\n"
-               [[ -z ${EPAUSE_IGNORE} ]] && sleep 5
-       fi
-
-fi

Reply via email to