Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Build python with GLIBC 2.26-r2?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
ZeuZ_NG
Guru
Guru


Joined: 10 Sep 2008
Posts: 452
Location: Near /dev/urandom | /dev/null

PostPosted: Thu Oct 19, 2017 12:22 am    Post subject: [SOLVED] Build python with GLIBC 2.26-r2? Reply with quote

Hey guys, is there any way to build python with GLIBC 2.26-r2?
I reckon the trouble comes from the no rpc useflag and that instead of <rpc/rpc.h> one should use <tirpc/rpc/rpc.h> insteaed or something with the same API
I had troubles with some other packages with for example the xlocale.h file now being part of <locale.h> but those were easily patchable
_________________
| Intel Core i7 920. | Intel DX58SO Extreme. |
| 8gb DDR3 1666mHz | 1TB 7200 RPM WD HDD.|
Unix´s guru view of sex:
unzip ; strip ; touch ; grep ; finger ; \
mount ; fsck ; more ; yes ; umount ; sleep.


Last edited by ZeuZ_NG on Wed Oct 25, 2017 6:51 pm; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 16905
Location: here

PostPosted: Thu Oct 19, 2017 7:50 am    Post subject: Reply with quote

See this bug.
Anyway won't be the only problem you can have with an hard masked package (see tracker)
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
steveL
Advocate
Advocate


Joined: 13 Sep 2006
Posts: 4809
Location: The Peanut Gallery

PostPosted: Fri Oct 20, 2017 11:28 am    Post subject: Re: Build python with GLIBC 2.26-r2? Reply with quote

ZeuZ_NG wrote:
Hey guys, is there any way to build python with GLIBC 2.26-r2?
I reckon the trouble comes from the no rpc useflag and that instead of <rpc/rpc.h> one should use <tirpc/rpc/rpc.h> insteaed or something with the same API
I had troubles with some other packages with for example the xlocale.h file now being part of <locale.h> but those were easily patchable
Workaround might be to add:
Code:
CPPFLAGS='-I /usr/include/tirpc'
in package.env (or add to configure line conditionally in the ebuild.)
That should make #include <rpc/rpc.h> use <tirpc/rpc/rpc.h> instead (assuming it's under /usr/include/tirpc.)

I'm curious as to why you can't patch the include, under a CPP conditional though. (#if .. #else .. #endif.)
Back to top
View user's profile Send private message
ZeuZ_NG
Guru
Guru


Joined: 10 Sep 2008
Posts: 452
Location: Near /dev/urandom | /dev/null

PostPosted: Sat Oct 21, 2017 7:38 pm    Post subject: Re: Build python with GLIBC 2.26-r2? Reply with quote

steveL wrote:
ZeuZ_NG wrote:
Hey guys, is there any way to build python with GLIBC 2.26-r2?
I reckon the trouble comes from the no rpc useflag and that instead of <rpc/rpc.h> one should use <tirpc/rpc/rpc.h> insteaed or something with the same API
I had troubles with some other packages with for example the xlocale.h file now being part of <locale.h> but those were easily patchable
Workaround might be to add:
Code:
CPPFLAGS='-I /usr/include/tirpc'
in package.env (or add to configure line conditionally in the ebuild.)
That should make #include <rpc/rpc.h> use <tirpc/rpc/rpc.h> instead (assuming it's under /usr/include/tirpc.)

I'm curious as to why you can't patch the include, under a CPP conditional though. (#if .. #else .. #endif.)


I followed this route, yeah. It was suggested also by iamben on IRC channel on freenode..
_________________
| Intel Core i7 920. | Intel DX58SO Extreme. |
| 8gb DDR3 1666mHz | 1TB 7200 RPM WD HDD.|
Unix´s guru view of sex:
unzip ; strip ; touch ; grep ; finger ; \
mount ; fsck ; more ; yes ; umount ; sleep.
Back to top
View user's profile Send private message
steveL
Advocate
Advocate


Joined: 13 Sep 2006
Posts: 4809
Location: The Peanut Gallery

PostPosted: Sun Oct 22, 2017 10:41 am    Post subject: Reply with quote

Cool; might want to mark the topic solved then; edit the original post (button at top-right) and simply add "[solved]" to start of subject.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software 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