Skip to content

clean up dummy bzip2 easyconfig, define buildopts rather than defining $CC and $CFLAGS via os.environ#3036

Merged
boegel merged 3 commits intoeasybuilders:developfrom
boegel:bzip2_dummy
May 14, 2016
Merged

clean up dummy bzip2 easyconfig, define buildopts rather than defining $CC and $CFLAGS via os.environ#3036
boegel merged 3 commits intoeasybuilders:developfrom
boegel:bzip2_dummy

Conversation

@boegel
Copy link
Copy Markdown
Member

@boegel boegel commented May 11, 2016

mainly done to avoid the import os...

this requires easybuilders/easybuild-easyblocks#910 (with pescobar/easybuild-easyblocks#5 included)

@boegel boegel added this to the v2.8.0 milestone May 11, 2016
os.environ['CFLAGS'] = '-O3 -fPIC'
buildopts = "CC=gcc CFLAGS='-Wall -Winline -O3 -fPIC -g $(BIGFILES)'"

# disable building of shared libraries, doesn't work everywhere (e.g. on OS X, where 'gcc' is actually Clang...)
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.

sorry, but not working on OS X is not a good enough reason to disable it by default.

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.

well, it was disabled already (without the enhanced of the bzip2 easyblock)

I prefer being able to install bzip2 without shared libs over not installing it, especially since the shared libraries are rarely needed anyway (you can tell by i) the way they need to be installed, ii) a libbz2.so isn't even installed by default)

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.

If it doesn't work on any Linux system fine, but only OS X is not good enough.

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.

So, you want me to patch the Makefile for the .so instead so it works on OS X too?

I'm just avoiding a regression, and the .so's are basically pointless for the dummy installation of bzip2

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.

how about this gem then?

with_shared_libs = OS_TYPE == 'Linux'

@hpcugentbot
Copy link
Copy Markdown

Easyconfigs unit test suite PASSed (see https://jenkins1.ugent.be/job/easybuild-easyconfigs-pr-builder/7979/console for more details).

This pull request is now ready for review/testing.

Please try and find someone who can tackle this; contact @boegel if you're not sure what to do.

@boegel
Copy link
Copy Markdown
Member Author

boegel commented May 14, 2016

Test report by @boegel
SUCCESS
Build succeeded for 1 out of 1 (1 easyconfigs in this PR)
boegel.ugent.be - Darwin UNKNOWN UNKNOWN, Intel(R) Core(TM) i5-4258U CPU @ 2.40GHz, Python 2.7.10
See https://gist.github.com/d0286e8fadc655857a61f576d38cdb7b for a full test report.

@boegel
Copy link
Copy Markdown
Member Author

boegel commented May 14, 2016

Test report by @boegel
SUCCESS
Build succeeded for 1 out of 1 (1 easyconfigs in this PR)
node2571.golett.os - Linux centos linux 7.2.1511, Intel(R) Xeon(R) CPU E5-2680 v3 @ 2.50GHz, Python 2.7.5
See https://gist.github.com/bde29874f2dcc029eb085512007989f5 for a full test report.

@boegel
Copy link
Copy Markdown
Member Author

boegel commented May 14, 2016

Test report by @boegel
SUCCESS
Build succeeded for 1 out of 1 (1 easyconfigs in this PR)
node2014.delcatty.os - Linux SL 6.7, Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHz, Python 2.6.6
See https://gist.github.com/6ebcba6ee137927e04616b8017143c40 for a full test report.

@boegel
Copy link
Copy Markdown
Member Author

boegel commented May 14, 2016

Going in, thanks for the review @wpoely86!

@boegel boegel merged commit 4766e89 into easybuilders:develop May 14, 2016
@boegel boegel deleted the bzip2_dummy branch May 14, 2016 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants