commit:     be327d4e749d3cc8ece772c87843b64d856cbbf0
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Fri Aug 30 07:30:43 2019 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Fri Aug 30 07:30:43 2019 +0000
URL:        https://gitweb.gentoo.org/proj/crossdev.git/commit/?id=be327d4e

wrappers/emerge-wrapper: drop population of profile/package.provided

'profile/package.provided' is created empty for quite a while
because wrapper init is called before any cross-* package gets merged.

Let's drop that completely and focus on always installing
headers and libc into target.

Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 wrappers/emerge-wrapper | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/wrappers/emerge-wrapper b/wrappers/emerge-wrapper
index d084a96..381214e 100755
--- a/wrappers/emerge-wrapper
+++ b/wrappers/emerge-wrapper
@@ -84,16 +84,6 @@ cross_wrap_etc()
                -e "s:__CBUILD__:${CBUILD}:g" \
                "${confs[@]}"
 
-       # Try to figure out the libc version & os headers to avoid installing 
over top of it.
-       # XXX: Would be nice to use virtual/libc and virtual/os-headers here ...
-       # TODO: this does not work as crossdev calls --init before any packages 
are installed
-       cd "${SYSROOT}/etc/portage"
-       mkdir -p profile
-       qlist -ICv "cross-${CHOST}/" | \
-               egrep '/(linux-headers|glibc|musl|newlib|uclibc)-' | \
-               sed "s:^[^/]*:sys-libs:" \
-               > profile/package.provided
-
        return 0
 }
 

Reply via email to