Skip to content

Make configure and make look for FoX in EBROOTFOX in QuantumESPRESSO easyblock#1420

Merged
boegel merged 2 commits intoeasybuilders:developfrom
damianam:qe-fox
May 23, 2018
Merged

Make configure and make look for FoX in EBROOTFOX in QuantumESPRESSO easyblock#1420
boegel merged 2 commits intoeasybuilders:developfrom
damianam:qe-fox

Conversation

@damianam
Copy link
Copy Markdown
Member

@damianam damianam commented May 9, 2018

No description provided.

regex_subs = [
(r"\(TOPDIR\)/FoX/finclude",
r"(EBROOTFOX)/finclude"),
]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't it more clear to collapse this to a single line, since it's only a single substitution?

regex_subs = [(r"\(TOPDIR\)/FoX/finclude", r"(EBROOTFOX)/finclude")]

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am just following the same style than above.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, ok, the one above should be changed too ;)

@boegel boegel added this to the 3.6.1 milestone May 9, 2018
@boegel boegel changed the title Make configure and make look for FoX in EBROOTFOX Make configure and make look for FoX in EBROOTFOX in QuantumESPRESSO easyblock May 9, 2018
r"(EBROOTFOX)/finclude"),
]
apply_regex_substitutions('install/configure', regex_subs)
apply_regex_substitutions('make.inc', regex_subs)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you also need to patch make.inc? Doesn't seem to make any difference w.r.t. FoX include dir?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a reference to -I$(TOPDIR)/FoX/finclude there. I am unsure if it is really used, but I think it is better to play it safe and change it there. Or check it :-P

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reference is to -L$(TOPDIR)/FoX/lib, and it's not getting patched currently:

$ grep TOPDIR make.inc* | grep FoX
make.inc:FOX_LIB  = -L$(TOPDIR)/FoX/lib  -lFoX_dom -lFoX_sax -lFoX_wxml -lFoX_common\
make.inc.orig.eb:FOX_LIB  = -L$(TOPDIR)/FoX/lib  -lFoX_dom -lFoX_sax -lFoX_wxml -lFoX_common\

Maybe simplify the regex to make it just replace \(TOPDIR\)/FoX/ with (EBROOTFOX)/ ?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@damianam Ping on fixing this?

@easybuilders easybuilders deleted a comment from boegelbot May 23, 2018
@boegel
Copy link
Copy Markdown
Member

boegel commented May 23, 2018

Works like a charm now, so going in, thanks @damianam!

@boegel boegel merged commit 0e25140 into easybuilders:develop May 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants