Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Compiling out-of-tree packages against musl?
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
Ant P.
Advocate
Advocate


Joined: 18 Apr 2009
Posts: 4935

PostPosted: Sun Feb 04, 2018 3:35 am    Post subject: Compiling out-of-tree packages against musl? Reply with quote

I'm trying to write an ebuild for OSH, which is failing to build because Gentoo has a rotten apple.

So instead of waiting for the damage to glibc to be fully reverted (since I can't downgrade to 2.25-r8), I'd like to install musl somewhere and just tell it to compile against that, maybe statically if necessary. But the musl ebuild throws an error and wants me to set up a full crossdev environment. That seems a bit overkill, is there a simpler way?
_________________
*.ebuild // /etc/service/*
Back to top
View user's profile Send private message
steveL
Advocate
Advocate


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

PostPosted: Thu Mar 01, 2018 9:49 pm    Post subject: Re: Compiling out-of-tree packages against musl? Reply with quote

Ant P. wrote:
So instead of waiting for the damage to glibc to be fully reverted (since I can't downgrade to 2.25-r8), I'd like to install musl somewhere and just tell it to compile against that, maybe statically if necessary. But the musl ebuild throws an error and wants me to set up a full crossdev environment. That seems a bit overkill, is there a simpler way?
What's wrong with chroot?
You can run a script in the environment directly, if you want to automate it.
Back to top
View user's profile Send private message
heiwa
n00b
n00b


Joined: 24 Oct 2012
Posts: 70

PostPosted: Thu Mar 01, 2018 10:22 pm    Post subject: Reply with quote

Upstream bundles Python-2.7.13 with a hardcoded pyconfig.h. Add the line
"#define MAJOR_IN_SYSMACROS 1" somewhere to Python-2.7.13/pyconfig.h and
it probably will compile fine. (If so, please report upstream.)
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