-
Notifications
You must be signed in to change notification settings - Fork 772
Statically link ncurses... #3545
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
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
a24fb94
Statically link ncurses...
a22bc69
Add libreadline dep to Lua for static build
fba9c89
Merge pull request #22 from ocaisa/origin/patch-4
45c4c8e
Add pkg-config to solve libtinfo problem related to ncurses
351c4a1
Add configure option to solve libtinfo problem related to ncurses
508c6c7
Merge branch 'patch-4' of github.com:ocaisa/easybuild-easyconfigs int…
070f0a5
Make ncurses build the terminfo library separately
fa54afe
Check for terminfo libs during sanitycheck
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 hidden or 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
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| easyblock = 'ConfigureMake' | ||
|
|
||
| name = 'libreadline' | ||
| version = '6.3' | ||
|
|
||
| homepage = 'http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html' | ||
| description = """The GNU Readline library provides a set of functions for use by applications that | ||
| allow users to edit command lines as they are typed in. Both Emacs and vi editing modes are available. | ||
| The Readline library includes additional functions to maintain a list of previously-entered command lines, | ||
| to recall and perhaps reedit those lines, and perform csh-like history expansion on previous commands.""" | ||
|
|
||
| toolchain = {'name': 'dummy', 'version': ''} | ||
|
|
||
| sources = ['readline-%(version)s.tar.gz'] | ||
| source_urls = ['http://ftp.gnu.org/gnu/readline'] | ||
|
|
||
| patches = ['libreadline-%(version)s-bugfix.patch'] | ||
|
|
||
| dependencies = [('ncurses', '6.0')] | ||
|
|
||
| # for the termcap symbols, use EB ncurses | ||
| preconfigopts = "env LDFLAGS='-lncurses'" | ||
|
|
||
| sanity_check_paths = { | ||
| 'files': ['lib/libreadline.a', 'lib/libhistory.a'] + | ||
| ['include/readline/%s' % x for x in ['chardefs.h', 'history.h', 'keymaps.h', 'readline.h', 'rlconf.h', | ||
| 'rlstdc.h', 'rltypedefs.h', 'tilde.h']], | ||
| 'dirs': [], | ||
| } | ||
|
|
||
| moduleclass = 'lib' |
This file contains hidden or 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
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 this should be reflected in the
sanity_check_pathstoo?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 Why exactly was this required here? It makes this
ncurseseasyconfig that usesdummydifferent from the otherncurseseasyconfigs, which causes problems (see also easybuilders/easybuild-easyblocks#1088).I'm not saying we should blindly revert this change, since the split is already taken into account elsewhere (for example in https://github.com/easybuilders/easybuild-easyconfigs/pull/4977/files#diff-03dfb6d80d1923383727d96e696cc53fR20), just wondering what the exact reason was for this.
cc @pforai
Uh oh!
There was an error while loading. Please reload this page.
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 only had to do this to be able to build lua at the
dummylevel, it was never an issue for me, it was an issue for the tests. (from what I remember)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.
OK, thanks for clarifying.
Looking back at the test report at https://gist.github.com/boegel/5c3303ac90ceea87960a213cf33fc024, building
Lua-5.1.4-8.ebwas indeed failing without the split:Maybe the proper fix would have been to not let Lua link with
-ltinfothough...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.
@vanzod
Ok, I think I have a fix for this but some may consider it hackish.
Some systems do expect a separate tinfo by default (Ubuntu 16.04) and in that case if we don't provide
libtinfofromncurses, some configures (such as theLuaone in the original PR) will pick it up from the OS. To get around this we can just do a soft link oflibtinfo.so -> libncurses.soafter installingncurseswhich is what debian has done in the past.I also found (what I think is) a problem with our
libreadlineeasyconfigs. I'm not sure of the purpose of the linking toncursesthere, but if we are expecting ncurses to be force-linked in the final .so then we are not doing it right, the correct option ( forv6.3) is(from http://www.linuxfromscratch.org/lfs/view/7.4/chapter06/readline.html)
With those two options I can revert the
ncursesbuild to be more like the rest. I'll open a PR and we can discuss further there.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.
See #5067