-
-
Notifications
You must be signed in to change notification settings - Fork 15.4k
misc minor cross fixups from @bgamari #34173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
96391fe
to
2900a49
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly good!
configureFlags = optional (!cryptoSupport) "--without-crypto" ++ [ | ||
configureFlags = [] | ||
++ optional (buildPlatform != hostPlatform) "--with-libxml-prefix=${libxml2.dev}" | ||
++ optional (!cryptoSupport) "--without-crypto" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We might as well put these on the end for the nice = [
idiomatic line since we're mass rebuilding today anyways.
@@ -41,7 +41,10 @@ stdenv.mkDerivation rec { | |||
propagatedBuildInputs = [ findXMLCatalogs ]; | |||
|
|||
# TODO move cryptoSupport as last flag, when upgrading libxslt | |||
configureFlags = optional (!cryptoSupport) "--without-crypto" ++ [ | |||
configureFlags = [] | |||
++ optional (buildPlatform != hostPlatform) "--with-libxml-prefix=${libxml2.dev}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can do this unconditionally
postPatch = '' substituteInPlace Makefile --replace 'STRIP=-s' "STRIP=" ''; | ||
|
||
# The build system is missing a -lz by default | ||
makeFlags = "SHARED=yes PREFIX=\${out} CC=${stdenv.cc.targetPrefix}gcc"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this worked before either? Let's use makeFlagsArray
and CC=$CC
.
(or we can drop it for now, whichever you'd prefer) |
@dtzWill Sure, will do. |
Otherwise configure seems not to find xml2-config while cross-compiling.
367232c
to
16b6e5a
Compare
@@ -12,7 +12,7 @@ stdenv.mkDerivation rec { | |||
|
|||
outputs = [ "out" "lib" ]; | |||
|
|||
nativeBuildInputs = [ perl help2man ]; | |||
nativeBuildInputs = [ perl help2man m4 ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it really both nativeBuildInput
and propagatedBuildInput
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's certainly possible, and fairly harmless if it isn't. But we can always try without too.
Another chunk of cross fixups from the big PR.
These are part of stack of patches I've used quite a bit.
Not sure if these are directly buildable from current 'staging',
but are mostly obvious fixes of input categorization.
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)