View previous topic :: View next topic |
Author |
Message |
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Sun Feb 04, 2018 3:35 am Post subject: Compiling out-of-tree packages against musl? |
|
|
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? |
|
Back to top |
|
|
steveL Watchman
Joined: 13 Sep 2006 Posts: 5153 Location: The Peanut Gallery
|
Posted: Thu Mar 01, 2018 9:49 pm Post subject: Re: Compiling out-of-tree packages against musl? |
|
|
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 |
|
|
heiwa n00b
Joined: 24 Oct 2012 Posts: 70
|
Posted: Thu Mar 01, 2018 10:22 pm Post subject: |
|
|
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 |
|
|
|