Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 519686 - uclibc stages full of /etc/portage/ config files
Summary: uclibc stages full of /etc/portage/ config files
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Release Media
Classification: Unclassified
Component: Stages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
Depends on: 519818
Blocks: uclibc-porting
  Show dependency tree
 
Reported: 2014-08-12 06:56 UTC by SpanKY
Modified: 2022-01-02 10:25 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2014-08-12 06:56:00 UTC
none of these customizations belong in stages.  please delete them all.
Comment 1 Anthony Basile gentoo-dev 2014-08-12 23:47:18 UTC
(In reply to SpanKY from comment #0)
> none of these customizations belong in stages.  please delete them all.

I don't know if I can and still have things build the way I'm doing things.  I can work towards removing them, but if I remove them all now, many things will fail.
Comment 2 Rick Farina (Zero_Chaos) gentoo-dev 2014-08-13 00:55:50 UTC
(In reply to Anthony Basile from comment #1)
> (In reply to SpanKY from comment #0)
> > none of these customizations belong in stages.  please delete them all.
> 
> I don't know if I can and still have things build the way I'm doing things. 
> I can work towards removing them, but if I remove them all now, many things
> will fail.

Why can't they go into the profile?
Comment 3 Anthony Basile gentoo-dev 2014-08-13 12:25:23 UTC
(In reply to Rick Farina (Zero_Chaos) from comment #2)
> (In reply to Anthony Basile from comment #1)
> > (In reply to SpanKY from comment #0)
> > > none of these customizations belong in stages.  please delete them all.
> > 
> > I don't know if I can and still have things build the way I'm doing things. 
> > I can work towards removing them, but if I remove them all now, many things
> > will fail.
> 
> Why can't they go into the profile?

Some can go into profiles, some can just go, but I run into trouble because:

1) uclibc is configurable and I have to custom set some options to get everything in @system to build.  So I have a savedconfig in there.  I'm working on figuring out what I can do with the ebuild so as to get it to default set the options needed.  Then the savedconfig can go.

2) In conjunction with point 1, I don't use uclibc's iconv (which sucks) but the breakout library dev-libs/libiconv which is used by the bsd folks.  As a result I have to pass LDFLAGS=-liconv to coreutils.  I suspect I could add something to coreutils's build system to see if libc provides iconv and then add -liconv accordingly.

3) I backport some patches that I need like the patch to add isfdtype() which is used by rngd and some other important utilities.  They are accepted upstream but not out in any release.  uclibc is sucking badly at releasing regularly.  This is however a problem because on rev bumps, Mike sometimes adds patches to his patchset which are already in my  /etc/portage/patches and boom!  So I'll take this out, but I'm going to have to work with Mike to get patches into his patchset that are needed.

As I said, I can work towards this goal one step at a time, but I'd rather not bring production to a halt.  The next release will at least see everything but 1 and 2 fixed.
Comment 4 Anthony Basile gentoo-dev 2014-08-14 16:05:23 UTC
Okay another point I just realized is that I should separate out the hardened and vanilla uclibc profiles, rather than just obtain vanilla from hardened by masking USE=hardened in the latter.  I've emailed gentoo-dev@ for comments and should have that done.  That will remove /etc/portage/profile/use.mask from the vanilla stages.
Comment 5 Anthony Basile gentoo-dev 2014-08-17 20:51:01 UTC
(In reply to Anthony Basile from comment #4)
> Okay another point I just realized is that I should separate out the
> hardened and vanilla uclibc profiles, rather than just obtain vanilla from
> hardened by masking USE=hardened in the latter.  I've emailed gentoo-dev@
> for comments and should have that done.  That will remove
> /etc/portage/profile/use.mask from the vanilla stages.

This is done.
Comment 6 Anthony Basile gentoo-dev 2015-05-19 07:31:05 UTC
(In reply to Anthony Basile from comment #3)

> 
> 2) In conjunction with point 1, I don't use uclibc's iconv (which sucks) but
> the breakout library dev-libs/libiconv which is used by the bsd folks.  As a
> result I have to pass LDFLAGS=-liconv to coreutils.  I suspect I could add
> something to coreutils's build system to see if libc provides iconv and then
> add -liconv accordingly.
> 

As of coreutils 8.22-r1, the build system is able to find libiconv so this is now done:

checking how to link with libiconv... /usr/lib/libiconv.so

The only remaining config file in /etc/portage is the savedconfig for uclibc settings.  I think I can get all the options I need into the ebuild using USE flags.  That should complete this bug.
Comment 7 David Seifert gentoo-dev 2022-01-02 10:25:48 UTC
uclibc support in Gentoo has been removed.