-
Notifications
You must be signed in to change notification settings - Fork 164
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
Add --add-package-config option to BuildPackages.sh #3542
Conversation
I'm not a huge fan of this, because I worry we will gain tens of special options for different packages, and I was hoping to push the BuildPackages.sh towards not refering to any package explictly. I wonder if it would be reasonable to have something like: --add-package-config PACKAGENAME="flags" for example: --add-package-config Semigroups="--with-external-planarity" Where the name of the package ('Semigroups' in this case) would be extracted from PackageInfo.g |
Codecov Report
@@ Coverage Diff @@
## master #3542 +/- ##
==========================================
- Coverage 84.66% 84.59% -0.07%
==========================================
Files 698 698
Lines 345819 345819
==========================================
- Hits 292791 292549 -242
- Misses 53028 53270 +242
|
I mean where in BuildPackages.sh you read this file, you could instead just put the contents of the file, so we don't ha e to think about where to put it.
|
I don't know how to invoke gap that way. Do you have an example? |
@isuruf Chris is talking about a here document (wikipedia). For an example in the context of GAP, take a look here: https://github.com/gap-system/ReleaseTools/blob/45f3dbfc9ec1f2428cee455bddc79bd7f76ec9de/release#L254 |
@fingolfin, @ChrisJefferson, can you review again? |
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 think we can merge this with one minor change. I can make that change later, too.
Sorry for being so slow :/
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 am fine with this. Thank you very much for your patience, and sorry once again for taking so long. We'll include this to 4.11, though!
One last request: could you please squash this into a single commit, with suitable commit message (and perhaps remove that one stray empty line 200 which is being inserted now)?
FLAGS given are sent to the configure script of the gap package PACKAGENAME
7bb5845
to
fd77f29
Compare
Done. |
I have restarted the failed AppVeyor build, once that finishes, we can merge this. |
Please use the following template to submit a pull request, filling
in at least the "Text for release notes" and/or "Further details".
Thank You!
Description
Text for release notes
If this pull request should be mentioned in the release notes,
please provide a short description matching the style of the GAP
Changes manual.
Add
--add-package-config-<PACKAGENAME>="<CONFIG_ARGS>"
option toBuildPackages.sh
where<CONFIG_ARGS>
are passed through to the configure script of package<PACKAGENAME>
.Further details
If necessary, please provide further details here.
Checklist for pull request reviewers
If your code contains kernel C code, run
clang-format
on it; thesimplest way is to use
git clang-format
, e.g. like this (don'tforget to commit the resulting changes):
usage of relevant labels
release notes: not needed
orrelease notes: to be added
bug
orenhancement
ornew feature
stable-4.X
add thebackport-to-4.X
labelbuild system
,documentation
,kernel
,library
,tests
runnable tests
adequate pull request title
well formulated text for release notes
relevant documentation updates
sensible comments in the code