-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
texinfo: fix cross compilation #51268
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
@@ -212,10 +213,12 @@ | ||
# env -i gives this build host configure a clean environment; | ||
# consequently, we have to re-initialize $PATH. | ||
env -i CC="$BUILD_CC" AR="$BUILD_AR" RANLIB="$BUILD_RANLIB" \ |
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.
How about removing env -i
here instead?
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 runs configure second time with almost null environment to get tools.
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 would be better to add NIX_BUILD_CFLAGS_COMPILE=$NIX_BUILD_CFLAGS_COMPILE
and NIX_BUILD_LDFLAGS=$NIX_BUILD_LDFLAGS
to that list, and maybe also LD=$BUILD_LD
.
|
||
# These are hand-written. | ||
-man_MANS += info.5 texinfo.5 | ||
+#man_MANS += info.5 texinfo.5 |
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.
Can you explain why we cannot cross-compile this?
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.
Help2man runs the program to generate the man page. See coreutils for prior art of pulling the man pages from the native version.
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.
Ive fixed some of them (.1's) but cannot fix those (.5's). I got "no rules to make ginfo.5" err. Feel free to look into it.
Are there any updates on this pull request, please? |
Without this patch, the cross-compilation of texinfoInteractive fails With this patch (merged into master) it is OK via |
I requested one more thing, then this is good to go. Sorry for not getting back to it quicker. |
Don't know why, but as of today. This:
Doesn't fail, as well as:
So I'm closing also because this PR is ancient. |
Motivation for this change
Better try to avoid cross compiling texinfo, for all the other cases...
Motivation for this change is adminspotting.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)