Skip to content

Commit

Permalink
fix for sanity check when rpath linking is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
bedroge committed Dec 9, 2023
1 parent 3cd3001 commit 5982ef6
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 10 deletions.
8 changes: 6 additions & 2 deletions easybuild/easyconfigs/l/LERC/LERC-3.0-GCCcore-10.2.0.eb
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,16 @@ builddependencies = [
]

postinstallcmds = [
# copy the LercTest source file to a LercTest subdir in the installation directory and compile it
# (needs to be done here instead of in the sanity check, else it won't work when RPATH linking is enabled)
"cd %(builddir)s/lerc-%(version)s/src/LercTest && sed -i -e 's@../LercLib/include/@@' main.cpp",
"cp %(builddir)s/lerc-%(version)s/src/LercTest/main.cpp %(installdir)s/test.c",
"mkdir %(installdir)s/LercTest",
"cp %(builddir)s/lerc-%(version)s/src/LercTest/main.cpp %(installdir)s/LercTest/main.cpp",
"cd %(installdir)s/LercTest && g++ main.cpp -o LercTest -I../include -L../lib -lLerc",
]

sanity_check_commands = [
"mkdir -p %(builddir)s && cd %(builddir)s && g++ %(installdir)s/test.c -o lerctest -lLerc && ./lerctest",
"%(installdir)s/LercTest/LercTest",
]

sanity_check_paths = {
Expand Down
8 changes: 6 additions & 2 deletions easybuild/easyconfigs/l/LERC/LERC-3.0-GCCcore-10.3.0.eb
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,16 @@ builddependencies = [
]

postinstallcmds = [
# copy the LercTest source file to a LercTest subdir in the installation directory and compile it
# (needs to be done here instead of in the sanity check, else it won't work when RPATH linking is enabled)
"cd %(builddir)s/lerc-%(version)s/src/LercTest && sed -i -e 's@../LercLib/include/@@' main.cpp",
"cp %(builddir)s/lerc-%(version)s/src/LercTest/main.cpp %(installdir)s/test.c",
"mkdir %(installdir)s/LercTest",
"cp %(builddir)s/lerc-%(version)s/src/LercTest/main.cpp %(installdir)s/LercTest/main.cpp",
"cd %(installdir)s/LercTest && g++ main.cpp -o LercTest -I../include -L../lib -lLerc",
]

sanity_check_commands = [
"mkdir -p %(builddir)s && cd %(builddir)s && g++ %(installdir)s/test.c -o lerctest -lLerc && ./lerctest",
"%(installdir)s/LercTest/LercTest",
]

sanity_check_paths = {
Expand Down
8 changes: 6 additions & 2 deletions easybuild/easyconfigs/l/LERC/LERC-4.0.0-GCCcore-11.3.0.eb
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,16 @@ builddependencies = [
]

postinstallcmds = [
# copy the LercTest source file to a LercTest subdir in the installation directory and compile it
# (needs to be done here instead of in the sanity check, else it won't work when RPATH linking is enabled)
"cd %(builddir)s/lerc-%(version)s/src/LercTest && sed -i -e 's@../LercLib/include/@@' main.cpp",
"cp %(builddir)s/lerc-%(version)s/src/LercTest/main.cpp %(installdir)s/test.c",
"mkdir %(installdir)s/LercTest",
"cp %(builddir)s/lerc-%(version)s/src/LercTest/main.cpp %(installdir)s/LercTest/main.cpp",
"cd %(installdir)s/LercTest && g++ main.cpp -o LercTest -I../include -L../lib -lLerc",
]

sanity_check_commands = [
"mkdir -p %(builddir)s && cd %(builddir)s && g++ %(installdir)s/test.c -o lerctest -lLerc && ./lerctest",
"%(installdir)s/LercTest/LercTest",
]

sanity_check_paths = {
Expand Down
8 changes: 6 additions & 2 deletions easybuild/easyconfigs/l/LERC/LERC-4.0.0-GCCcore-12.2.0.eb
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,16 @@ builddependencies = [
]

postinstallcmds = [
# copy the LercTest source file to a LercTest subdir in the installation directory and compile it
# (needs to be done here instead of in the sanity check, else it won't work when RPATH linking is enabled)
"cd %(builddir)s/lerc-%(version)s/src/LercTest && sed -i -e 's@../LercLib/include/@@' main.cpp",
"cp %(builddir)s/lerc-%(version)s/src/LercTest/main.cpp %(installdir)s/test.c",
"mkdir %(installdir)s/LercTest",
"cp %(builddir)s/lerc-%(version)s/src/LercTest/main.cpp %(installdir)s/LercTest/main.cpp",
"cd %(installdir)s/LercTest && g++ main.cpp -o LercTest -I../include -L../lib -lLerc",
]

sanity_check_commands = [
"mkdir -p %(builddir)s && cd %(builddir)s && g++ %(installdir)s/test.c -o lerctest -lLerc && ./lerctest",
"%(installdir)s/LercTest/LercTest",
]

sanity_check_paths = {
Expand Down
8 changes: 6 additions & 2 deletions easybuild/easyconfigs/l/LERC/LERC-4.0.0-GCCcore-12.3.0.eb
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,16 @@ builddependencies = [
]

postinstallcmds = [
# copy the LercTest source file to a LercTest subdir in the installation directory and compile it
# (needs to be done here instead of in the sanity check, else it won't work when RPATH linking is enabled)
"cd %(builddir)s/lerc-%(version)s/src/LercTest && sed -i -e 's@../LercLib/include/@@' main.cpp",
"cp %(builddir)s/lerc-%(version)s/src/LercTest/main.cpp %(installdir)s/test.c",
"mkdir %(installdir)s/LercTest",
"cp %(builddir)s/lerc-%(version)s/src/LercTest/main.cpp %(installdir)s/LercTest/main.cpp",
"cd %(installdir)s/LercTest && g++ main.cpp -o LercTest -I../include -L../lib -lLerc",
]

sanity_check_commands = [
"mkdir -p %(builddir)s && cd %(builddir)s && g++ %(installdir)s/test.c -o lerctest -lLerc && ./lerctest",
"%(installdir)s/LercTest/LercTest",
]

sanity_check_paths = {
Expand Down

0 comments on commit 5982ef6

Please sign in to comment.