-
-
Notifications
You must be signed in to change notification settings - Fork 544
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
SAGE_SPKG_CONFIGURE macro: Add new pre-check and post-check optional arguments #27641
Comments
This comment has been minimized.
This comment has been minimized.
comment:3
This seems to depend, and use the branch, of #27212, no? |
Changed branch from u/embray/build/configure/pre-post to public/build/configure/pre-post |
comment:5
That's a good point; yes it included #27212. Thanks for rebasing. |
comment:6
Do you have an example use of the macro where the 3rd argument is not empty? And, by the way, docs explaining them are hard to read, could you please instead write: |
comment:7
It looks as if it basically adds a bit of structure into spkg-configure.m4 files (i.e. logically different parts are inside |
comment:8
Replying to @dimpase:
The (currently) third argument is used in a few packages. At least one example I can think of off the top of my head is yasm. The point of the third argument is to check whether that dependency is needed at all for anything, as opposed to the second argument which assumes the package is required but does the check for whether it's provided already by the system.
I can try to reword it. |
comment:9
Replying to @dimpase:
Essentially, yes. It just allows insertion of commands into a couple places where it wasn't previously possible to insert them.
I'm not sure what you mean here. It is used for #27642 which has this ticket as a dependency. |
comment:10
Replying to @embray:
I mean to say, I'd like to see this ticket "in action", by itself it does not make much sense. How about reviewing once #27642 is done? |
comment:12
Trying this with |
comment:13
I had a problem like that much earlier when I was working on this, but I thought I fixed that. |
comment:14
Yes, I see the problem. The change in Nothing in the "PRE" argument should set the
That's what's going on in the above lines in SAGE_SPKG_CONFIGURE |
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
comment:16
Try now. |
Reviewer: Dima Pasechnik |
comment:17
OK, good. |
Changed branch from public/build/configure/pre-post to |
This adds two new optional arguments to the
SAGE_SPKG_CONFIGURE
. Both are sets of actions that should be run unconditionally when running the resultingconfigure
script, regardless of the outcome of checks for the package.This demonstrates a use case for this in mpir, where no matter what else it is imperative to set a value for
SAGE_MP_LIBRARY
(even if we are not installing the mpir SPKG, or the SPKG is already installed).The follow-up ticket #27642 might make more clear why this is useful: If some SPKG is already installed we shouldn't bother checking for it on the system, so we skip the dependency checks. But we may still want to perform other package-specific configure actions.
One thing I don't like about this entirely is that it would seem clearer and more logical to make the "pre" argument come before the other arguments. However, since it's optional, and is not used for many packages, I thought it would be better to add it to the end of the argument list and not have to update every
spkg-configure.m4
to pass an empty value for the first argument.CC: @dimpase
Component: build: configure
Author: Erik Bray
Branch/Commit:
1c24df1
Reviewer: Dima Pasechnik
Issue created by migration from https://trac.sagemath.org/ticket/27641
The text was updated successfully, but these errors were encountered: