Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Create a gentoo stage3 with older glibc
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
sezaru
n00b
n00b


Joined: 10 Aug 2006
Posts: 47

PostPosted: Mon Mar 06, 2017 8:39 pm    Post subject: Create a gentoo stage3 with older glibc Reply with quote

Hello there, I'm trying to create a gentoo stage3 file that contains the glibc version 2.13 installed, I already have a working ebuild for that version that compiles with a modern gcc.

Since downgrading my gentoo system glibc is not possible, I though that maybe it's possible to create a new stage3 with that version from scratch.

Looking around, it seems that what I want is the bootstrap-prefix script, I'm using it right now, but it seems that it will use my current system glibc instead compiling a new one from the ebuild I provided.

So, my question is if that is possible, and how.

Thanks
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10261
Location: Somewhere over Atlanta, Georgia

PostPosted: Mon Mar 06, 2017 8:42 pm    Post subject: Reply with quote

Gentoo Release Engineering builds the stages and install media with Catalyst.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
sezaru
n00b
n00b


Joined: 10 Aug 2006
Posts: 47

PostPosted: Mon Mar 06, 2017 11:37 pm    Post subject: Reply with quote

Hello John,

I'm not so sure if I understand your answer correctly, I tried using catalyst before, but it needs a stage3 as a start point, and since that stage3 will have a newer glibc, when I force it to install my version (2.13) when creating the stage1, it will fail too because it will try to downgrade it.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10261
Location: Somewhere over Atlanta, Georgia

PostPosted: Tue Mar 07, 2017 3:26 am    Post subject: Reply with quote

That's a so-called "Seed Stage". It's just used as a build environment for the Stage1, but nothing from the Seed Stage ends up in the resultant Stage1.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
sezaru
n00b
n00b


Joined: 10 Aug 2006
Posts: 47

PostPosted: Tue Mar 07, 2017 5:41 pm    Post subject: Reply with quote

I see. But somehow catalyst will fail to me when creating the stage1 with the glibc ebuild message that I'm trying to downgrade glibc.

What I did was creating a custom portage directory for the caralyst (using portage_confdir) where exists a package.mask that masks every glibc but my 2.13 version.

So, as far as I understand it, catalyst would use that portage directory when creating my stage1 and emerge glibc 2.13 instead of another version. And indeed, it does that, but portage acts as there is already a glibc installed and fail saying that it can't downgrade it.

Am I doing something wrong?

Thanks
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10261
Location: Somewhere over Atlanta, Georgia

PostPosted: Tue Mar 07, 2017 6:12 pm    Post subject: Reply with quote

Hmm. Maybe not. While knowing that what is said is true, namely that no part of the seed stage goes into the generated stages, I've never explicitly tried to build stages containing an outdated version of glibc. This prohibition is implemented by the ebuild in /usr/portage/sys-libs/glibc/files/eblits/pkg_pretend.eblit but shouldn't be enforced if emerge is being run with --buildpkgonly, which I thought it would be. Worse case, that ebuild file can be temporarily edited. If you're not in a tearing hurry, let me try this out this evening to see what I get.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
sezaru
n00b
n00b


Joined: 10 Aug 2006
Posts: 47

PostPosted: Tue Mar 07, 2017 6:38 pm    Post subject: Reply with quote

I tried editing that file too, sorry not mentioning, totally forgot about that.

Disabling the check will proceed to the compilation of glibc, but it will fail on installation because it will already use it to run another program that was already compiled with a newer glibc.

This behavior to me seems only possible if I was indeed downgrading glibc instead of installing a new one from scratch since it should be no library dependent on the glibc before it was compiled on stage0.

I'm in no hurry, if you can try it out too on this evening will be much appreciated.

Thanks a lot
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum