Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 503934 - sys-libs/musl: incorrect dep on getent when building as a cross-compiler C library
Summary: sys-libs/musl: incorrect dep on getent when building as a cross-compiler C li...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-09 00:48 UTC by David Heidelberg (okias)
Modified: 2014-03-10 20:28 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
musl_cross_compile.patch (musl_cross.patch,906 bytes, patch)
2014-03-10 20:09 UTC, David Heidelberg (okias)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Heidelberg (okias) 2014-03-09 00:48:52 UTC
# tail -n100 -f /var/log/portage/cross-i686-pc-linux-musl-musl.log
Calculating dependencies  .... done!
[ebuild  N     ] sys-apps/getent-0 
[ebuild   R   *] cross-i686-pc-linux-musl/musl-9999 
[blocks B      ] sys-libs/glibc ("sys-libs/glibc" is blocking sys-apps/getent-0)

 * Error: The above package list contains packages which cannot be
 * installed at the same time on the same system.

  (sys-libs/glibc-2.19::gentoo, installed) pulled in by
    >=sys-libs/glibc-2.15 required by (dev-java/icedtea-bin-7.2.4.3::gentoo, installed)
    >=sys-libs/glibc-2.8 required by (sys-devel/gcc-4.8.2::gentoo, installed)
    sys-libs/glibc:2.2 required by (virtual/libc-0::gentoo, installed)
    >=sys-libs/glibc-2.5 required by (sys-apps/openrc-0.12.4::pentoo, installed)
    >=sys-libs/glibc-2.7 required by (sys-libs/pam-1.1.8::gentoo, installed)

  (sys-apps/getent-0::gentoo, ebuild scheduled for merge) pulled in by
    sys-apps/getent required by (cross-i686-pc-linux-musl/musl-9999::crossdev, ebuild scheduled for merge)


For more information about Blocked Packages, please refer to the following
section of the Gentoo Linux x86 Handbook (architecture is irrelevant):

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1#blocked


Reproducible: Always

Steps to Reproduce:
1. crossdev -s4 --b 2.24-r2 --g 4.8.2 --k 3.13 --l 9999 -t i686-pc-linux-musl
Actual Results:  
it calculate dependencies against native system, not /usr/${CHOST}

Expected Results:  
it should calculate deps against /usr/${CHOST} = no glibc, openrc,pam,gcc-icedtea-bin installed = no error
Comment 1 Alex Xu (Hello71) 2014-03-09 01:46:02 UTC
I think you accidentally a word in summary.
Comment 2 SpanKY gentoo-dev 2014-03-09 20:29:50 UTC
has nothing to do with ROOT or crossdev.  musl itself is broken wrt its deps.  you can see the glibc or uclibc ebuilds for how to handle this correctly.
Comment 3 David Heidelberg (okias) 2014-03-09 20:32:53 UTC
(In reply to SpanKY from comment #2)
> has nothing to do with ROOT or crossdev.  musl itself is broken wrt its
> deps.  you can see the glibc or uclibc ebuilds for how to handle this
> correctly.

can you please explain to me little bit, how it then possible that crossdev see deps from my host? Shouldn't be crossdev emerge separated from that?
Thank you
Comment 4 Alex Xu (Hello71) 2014-03-09 20:38:06 UTC
(In reply to David Heidelberger (okias) from comment #3)
> (In reply to SpanKY from comment #2)
> > has nothing to do with ROOT or crossdev.  musl itself is broken wrt its
> > deps.  you can see the glibc or uclibc ebuilds for how to handle this
> > correctly.
> 
> can you please explain to me little bit, how it then possible that crossdev
> see deps from my host? Shouldn't be crossdev emerge separated from that?
> Thank you

No, you're not building a chroot. The package called cross-i686-pc-linux-musl/musl-9999 is being installed as is on your system; it just simply does not install binaries that your architecture can run.

If any packages have dependencies, they must be fulfilled before the package is merged. No matter what kind of package it is.
Comment 5 David Heidelberg (okias) 2014-03-10 20:09:15 UTC
Created attachment 372316 [details, diff]
musl_cross_compile.patch

This patch allow to use getent from glibc/uclibc/whateveeeer not forcing install getent package. It work OK.
Comment 6 Anthony Basile gentoo-dev 2014-03-10 20:28:16 UTC
(In reply to David Heidelberger (okias) from comment #5)
> Created attachment 372316 [details, diff] [details, diff]
> musl_cross_compile.patch
> 
> This patch allow to use getent from glibc/uclibc/whateveeeer not forcing
> install getent package. It work OK.

committed with `if [[ ${CATEGORY} != cross-* ]]` rather than the above ! ==.

Please reopen if this is still an issue.