-
-
Notifications
You must be signed in to change notification settings - Fork 481
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
bootstrap should fail gracefully, if there is no pkg-config available #27219
Comments
Branch: u/dimpase/build/bootstrap_check |
Commit: |
comment:1
OK, Volker, how about this? |
comment:2
IMHO whether or not there is a pkg-config binary isn't the same as autoconf understanding PKG_CHECK_MODULES. |
comment:3
Replying to @vbraun:
PKG.m4 - macros are a part of pkg-config. (a sufficiently new one - we can add a version check in bootstrap...) We can also add a call to It is of course perfectly possible to have a mangled install of pkg-config, without the needed m4 macros. |
Author: Dima Pasechnik |
comment:4
Replying to @vbraun:
I agree. The right thing to check then is whether the macro |
comment:5
Also, what goes wrong when |
comment:6
|
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
comment:8
from the latest commit message:
took a while to figure out weird errors caused by m4 vars name clashes. |
comment:9
Not 100% sure whether we ought to call |
comment:10
What currently happens is
|
This comment has been minimized.
This comment has been minimized.
comment:11
Right, so all that you need is something like What's the point of checking for |
This comment has been minimized.
This comment has been minimized.
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:18
oops, sorry, I should have put in the old version of libffi/spkg-configure.m4... |
comment:19
Replying to @dimpase:
You need to distinguish between generating Now |
comment:20
By the way, if you want to use
The script in Sage is called |
comment:21
Replying to @dimpase:
In general, your commit history on this ticket is a mess, so I suggest to rebase and squash. |
comment:22
I am certainly distinguishing between generating and running configure. Generating configure only needs m4 macros, this is correct. Would you like me to take out from bootstrap the test for |
comment:23
Replying to @jdemeyer:
the problem is that for this to work, I need changes to After I'm done here, #27114 will have to be rebased on top of this one. |
This comment has been minimized.
This comment has been minimized.
comment:25
I hope I have addressed all the issues raised, including the messy branches. Sorry, it took a while to get right. |
comment:26
Indeed, this is more or less what I meant. For the record, the message when the
So it fails correctly. |
comment:27
One more detail: it would be better to reserve a specific exit code for that case. I'll prepare a review commit. |
Changed branch from u/dimpase/build/bootstrap_check to u/jdemeyer/build/bootstrap_check |
Reviewer: Jeroen Demeyer |
comment:30
looks good to me, thanks! |
comment:31
I've been AFK, else I would've chimed in sooner. But this looks good to me now. Indeed, there's no need to actually have |
Changed branch from u/jdemeyer/build/bootstrap_check to |
When #27114 is merged,
./bootstrap
requirespkgconf
to run properly. It should switch to downloading the configure spkg if thepkgconf
m4 macros are not installed. Otherwise one getsIn order to solve this issue, we check for presence of
PKG_PROG_PKG_CONFIG
at bootstrap/autoconf run. We need renaming of PKG_ -> SPKG_ inm4/sage_spkg_collect.m4
, which we take from #27114 in order not to cause conflicts.#27114 probably will need a rebase on top of this branch.
CC: @embray @vbraun @jdemeyer
Component: build
Author: Dima Pasechnik
Branch/Commit:
187de34
Reviewer: Jeroen Demeyer
Issue created by migration from https://trac.sagemath.org/ticket/27219
The text was updated successfully, but these errors were encountered: