-
Notifications
You must be signed in to change notification settings - Fork 284
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
sidestep using the config.guess that comes with a package in ConfigureMake generic easyblock #1506
Merged
Merged
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
17d6c76
Sidestep using the config.guess that comes with a package
cd69782
Sidestep using the config.guess that comes with a package
fd6bdb7
Make the changes a bit more resilient
c47853a
Make it clearer why config.guess is there
ef81748
Address comments
6dcb5c1
Appease the hound
e120a44
Update README.md
5278326
Update README.md
5f8fda2
Update location of config.guess script
d7115ea
Update README.md
80a7a7b
Fix bug
a15fc10
Tidy up
2961ea7
Add a guard to ensure build type is only included when Autotools is l…
c49cd68
Make the config.guess update smarter
4994369
Appease the hound
2309b88
Tidy up
453dd1e
Add additional file exists guard
8ef7799
Address comments
28ff190
Retain check that configure script exists
ebb4e97
Be more careful!
e2c1f70
Use positive logic
e637804
Cosmetics
a434e86
Give a more explicit warning when no config.guess is found
2c68803
Add author
9f9d214
Allow us to strictly meet the exceptional licence terms of config.guess
754691f
Merge remote-tracking branch 'origin/config.guess' into config.guess
aa4d649
Update README.md
adfc4fc
Download config.guess on the fly (if possible)
7b85a0c
Appease the hound
6278426
more thorough logging on config.guess + code cleanup
boegel 20a60c1
Merge pull request #14 from boegel/config.guess
5cfff14
ensure VERSION is defined in easybuild.easyblocks namespace in test_c…
boegel f9cb4de
Merge pull request #15 from boegel/config.guess
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -83,11 +83,16 @@ def configure_step(self, cmd_prefix=''): | |
if prefix_opt is None: | ||
prefix_opt = '--prefix=' | ||
|
||
cmd = "%(preconfigopts)s %(cmd_prefix)s./configure %(prefix_opt)s%(installdir)s %(configopts)s" % { | ||
# Avoid using config.guess from the package as it is frequently out of date, use the version shipped with EB | ||
build_type, _ = run_cmd('config_guess') | ||
build_type_option = '--build=' + build_type.strip() | ||
|
||
cmd = "%(preconfigopts)s %(cmd_prefix)s./configure %(prefix_opt)s%(installdir)s %(build_type_option)s %(configopts)s" % { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. line too long (129 > 120 characters) |
||
'preconfigopts': self.cfg['preconfigopts'], | ||
'cmd_prefix': cmd_prefix, | ||
'prefix_opt': prefix_opt, | ||
'installdir': self.installdir, | ||
'build_type_option': build_type_option, | ||
'configopts': self.cfg['configopts'], | ||
} | ||
ocaisa marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
@ocaisa As indicated by @micaeljtoliveira, this should be
config.guess
.Also, please log what the result of
config_guess
is, and maybe also whichconfig.guess
is being (result ofwhich('config.guess')
).Can we detect when
--build
needs to be used?I'm a bit worried about the impact this may have on systems where this isn't needed currently...
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 know enough about Autotools to answer this... @geimer ?
I would expect that it does no harm,
config.guess
is intended to be updated and so backwards compatible, it's output is the default setting for--build
(see https://www.gnu.org/software/autoconf/manual/autoconf-2.61/html_node/Specifying-Names.html).