commit:     3a821c3499a6f99b780eec2d5dd81c785535600c
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Thu Feb  7 23:01:12 2019 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Thu Feb  7 23:02:38 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a821c34

sys-libs/glibc: ignore USE=headers-only for native case, bug #677474

Let's not allow users to "deinstall" native glibc.

Reported-by: Toralf Förster
Closes: https://bugs.gentoo.org/677474
Package-Manager: Portage-2.3.59, Repoman-2.3.12
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 sys-libs/glibc/glibc-2.27-r6.ebuild | 4 ++--
 sys-libs/glibc/glibc-2.28-r5.ebuild | 2 +-
 sys-libs/glibc/glibc-2.29.ebuild    | 2 +-
 sys-libs/glibc/glibc-9999.ebuild    | 2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/sys-libs/glibc/glibc-2.27-r6.ebuild 
b/sys-libs/glibc/glibc-2.27-r6.ebuild
index 7125f84f4da..668e6795b24 100644
--- a/sys-libs/glibc/glibc-2.27-r6.ebuild
+++ b/sys-libs/glibc/glibc-2.27-r6.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Authors
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -459,7 +459,7 @@ setup_env() {
 
        export ABI=${ABI:-${DEFAULT_ABI:-default}}
 
-       if use headers-only ; then
+       if just_headers ; then
                # Avoid mixing host's CC and target's CFLAGS_${ABI}:
                # At this bootstrap stage we have only binutils for
                # target but not compiler yet.

diff --git a/sys-libs/glibc/glibc-2.28-r5.ebuild 
b/sys-libs/glibc/glibc-2.28-r5.ebuild
index 0c69246759a..827b432313e 100644
--- a/sys-libs/glibc/glibc-2.28-r5.ebuild
+++ b/sys-libs/glibc/glibc-2.28-r5.ebuild
@@ -448,7 +448,7 @@ setup_env() {
 
        export ABI=${ABI:-${DEFAULT_ABI:-default}}
 
-       if use headers-only ; then
+       if just_headers ; then
                # Avoid mixing host's CC and target's CFLAGS_${ABI}:
                # At this bootstrap stage we have only binutils for
                # target but not compiler yet.

diff --git a/sys-libs/glibc/glibc-2.29.ebuild b/sys-libs/glibc/glibc-2.29.ebuild
index 6ef8c8b6f23..3089cdbb5f1 100644
--- a/sys-libs/glibc/glibc-2.29.ebuild
+++ b/sys-libs/glibc/glibc-2.29.ebuild
@@ -452,7 +452,7 @@ setup_env() {
 
        export ABI=${ABI:-${DEFAULT_ABI:-default}}
 
-       if use headers-only ; then
+       if just_headers ; then
                # Avoid mixing host's CC and target's CFLAGS_${ABI}:
                # At this bootstrap stage we have only binutils for
                # target but not compiler yet.

diff --git a/sys-libs/glibc/glibc-9999.ebuild b/sys-libs/glibc/glibc-9999.ebuild
index 6b5bd388a30..1dcf217a492 100644
--- a/sys-libs/glibc/glibc-9999.ebuild
+++ b/sys-libs/glibc/glibc-9999.ebuild
@@ -452,7 +452,7 @@ setup_env() {
 
        export ABI=${ABI:-${DEFAULT_ABI:-default}}
 
-       if use headers-only ; then
+       if just_headers ; then
                # Avoid mixing host's CC and target's CFLAGS_${ABI}:
                # At this bootstrap stage we have only binutils for
                # target but not compiler yet.

Reply via email to