Skip to content

Commit 6231fa3

Browse files
authored
Fix linter errors in higher-level packages (#4860)
* Fix linter errors in higher-level packages Fix the remaining linter errors in packages that won't cause a rebuild of the entire software stack. Also fix linter warnings in the same packages, as the package hashes will change anyway, and this way the warnings won't suddenly crop up the next time anyone sends a PR including these packages. * Remove outdated, partial parquet-cpp recipe This recipe doesn't seem to be working properly, and it has a linter error due to the double `build_requires` key. It's also for an old version, hasn't been touched in almost 7 years, and is not depended upon by any other package, so I assume this is obsolete. * Fix PDA Modulefile
1 parent 1314ee6 commit 6231fa3

File tree

10 files changed

+68
-131
lines changed

10 files changed

+68
-131
lines changed

alice-grid-utils.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ source: https://gitlab.cern.ch/jalien/alice-grid-utils.git
77

88
DST="$INSTALLROOT/include"
99
mkdir -p "$DST"
10-
cp -v $SOURCEDIR/*.h "$DST/"
10+
cp -v "$SOURCEDIR"/*.h "$DST/"
1111

1212
# Modulefile
1313
MODULEDIR="$INSTALLROOT/etc/modulefiles"
@@ -21,3 +21,4 @@ proc ModulesHelp { } {
2121
}
2222
set version $PKGVERSION-@@PKGREVISION@$PKGHASH@@
2323
module-whatis "ALICE Modulefile for $PKGNAME $PKGVERSION-@@PKGREVISION@$PKGHASH@@"
24+
EoF

fairmq.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ incremental_recipe: |
1515
cmake --build . --target install ${JOBS:+-- -j$JOBS}
1616
mkdir -p $INSTALLROOT/etc/modulefiles && rsync -a --delete etc/modulefiles/ $INSTALLROOT/etc/modulefiles
1717
prepend_path:
18-
ROOT_INCLUDE_PATH: "$FAIRMQ_ROOT/include"
19-
ROOT_INCLUDE_PATH: "$FAIRMQ_ROOT/include/fairmq"
18+
ROOT_INCLUDE_PATH:
19+
- "$FAIRMQ_ROOT/include"
20+
- "$FAIRMQ_ROOT/include/fairmq"
2021
---
2122
mkdir -p $INSTALLROOT
2223

glog.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ package: glog
22
version: v0.4.0
33
source: https://github.com/google/glog
44
build_requires:
5-
- "autotools:(slc6|slc7)"
6-
- "GCC-Toolchain:(?!osx)"
7-
---
8-
rsync -av --delete --exclude="**/.git" $SOURCEDIR/ .
5+
- "autotools:(slc6|slc7)"
6+
- "GCC-Toolchain:(?!osx)"
7+
---
8+
#!/bin/bash -e
9+
rsync -av --delete --exclude='**/.git' "$SOURCEDIR/" .
910
autoreconf -ivf
1011
./configure --prefix="$INSTALLROOT"
1112
make ${JOBS:+-j $JOBS}

looptools.sh

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,20 @@ build_requires:
88
- alibuild-recipe-tools
99
---
1010
#!/bin/bash -e
11-
rsync -a $SOURCEDIR/ ./
11+
rsync -a "$SOURCEDIR/" ./
1212

13-
./configure --prefix=$INSTALLROOT \
14-
--64
13+
./configure --prefix="$INSTALLROOT" --64
1514

1615
make ${JOBS+-j $JOBS}
1716
make install
1817

1918
#ModuleFile
2019
mkdir -p etc/modulefiles
21-
alibuild-generate-module > etc/modulefiles/$PKGNAME
22-
cat >> etc/modulefiles/$PKGNAME <<EoF
20+
alibuild-generate-module --bin --lib > "etc/modulefiles/$PKGNAME"
21+
cat >> "etc/modulefiles/$PKGNAME" <<EoF
2322
# Our environment
2423
setenv LOOPTOOLS_ROOT \$::env(BASEDIR)/$PKGNAME/\$version
25-
prepend-path PATH \$::env(LOOPTOOLS_ROOT)/bin
26-
prepend-path LD_LIBRARY_PATH \$::env(LOOPTOOLS_ROOT)/lib
2724
prepend-path LD_LIBRARY_PATH \$::env(LOOPTOOLS_ROOT)/lib64
28-
$([[ ${ARCHITECTURE:0:3} == osx ]] && echo "prepend-path DYLD_LIBRARY_PATH \$::env(LOOPTOOLS_ROOT)/lib: \$::env(LOOPTOOLS_ROOT)/lib64")
2925
EoF
30-
mkdir -p $INSTALLROOT/etc/modulefiles && rsync -a --delete etc/modulefiles/ $INSTALLROOT/etc/modulefiles
26+
mkdir -p "$INSTALLROOT/etc/modulefiles"
27+
rsync -a --delete etc/modulefiles/ "$INSTALLROOT/etc/modulefiles"

mesos-workqueue.sh

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,25 @@ version: 0.0.2-%(short_hash)s
33
tag: master
44
source: https://github.com/alisw/mesos-workqueue
55
requires:
6-
- mesos
7-
- protobuf
8-
- boost
9-
- glog
6+
- mesos
7+
- protobuf
8+
- boost
9+
- glog
1010
build_requires:
11-
- CMake
12-
---
13-
case $ARCHITECTURE in
11+
- CMake
12+
---
13+
#!/bin/bash -e
14+
case $ARCHITECTURE in
1415
osx*)
1516
[[ -z "$BOOST_ROOT" ]] && BOOST_ROOT=$(brew --prefix boost)
1617
;;
1718
esac
1819
cmake "$SOURCEDIR" \
19-
-DCMAKE_INSTALL_PREFIX=$INSTALLROOT \
20-
-DPROTOBUF_ROOT=${PROTOBUF_ROOT} \
21-
-DMESOS_ROOT=${MESOS_ROOT} \
22-
${BOOST_ROOT:+-DBOOST_ROOT=${BOOST_ROOT}} \
23-
-DGLOG_ROOT=${GLOG_ROOT}
20+
-DCMAKE_INSTALL_PREFIX="$INSTALLROOT" \
21+
-DPROTOBUF_ROOT="$PROTOBUF_ROOT" \
22+
-DMESOS_ROOT="$MESOS_ROOT" \
23+
${BOOST_ROOT:+-DBOOST_ROOT="$BOOST_ROOT"} \
24+
-DGLOG_ROOT="$GLOG_ROOT"
2425
make ${JOBS:+-j $JOBS}
2526
make install
2627

openloops.sh

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,39 +11,36 @@ build_requires:
1111
- alibuild-recipe-tools
1212
---
1313
#!/bin/bash -e
14-
rsync -a --delete --exclude '**/.git' --delete-excluded $SOURCEDIR/ .
14+
rsync -a --delete --exclude '**/.git' --delete-excluded "$SOURCEDIR/" .
1515

1616
unset HTTP_PROXY # unset this to build on slc6 system
1717

1818
# Due to typical long install dir paths used by aliBuild, the string lengths must be increased
1919
sed -i -e 's/max_string_length\ =\ 255/max_string_length\ =\ 1000/g' pyol/config/default.cfg
2020

21-
./scons
21+
./scons
2222

2323
JOBS=$((${JOBS:-1}*1/5))
2424
[[ $JOBS -gt 0 ]] || JOBS=1
2525

26-
PROCESSES=(ppjj ppjj_ew ppjjj ppjjj_ew ppjjj_nf5 ppjjjj)
27-
for proc in ${PROCESSES[@]}; do
28-
./scons --jobs=$JOBS auto="$proc"
26+
for proc in ppjj ppjj_ew ppjjj ppjjj_ew ppjjj_nf5 ppjjjj; do
27+
./scons --jobs="$JOBS" "auto=$proc"
2928
done
3029

31-
INSTALL=(examples include lib openloops proclib pyol)
32-
for inst in ${INSTALL[@]}; do
33-
cp -r $inst $INSTALLROOT/
30+
for inst in examples include lib openloops proclib pyol; do
31+
cp -r "$inst" "$INSTALLROOT/"
3432
done
3533

3634
#ModuleFile
3735
mkdir -p etc/modulefiles
38-
alibuild-generate-module > etc/modulefiles/$PKGNAME
39-
cat >> etc/modulefiles/$PKGNAME <<EoF
36+
alibuild-generate-module --bin --lib > "etc/modulefiles/$PKGNAME"
37+
cat >> "etc/modulefiles/$PKGNAME" <<EoF
4038
# Our environment
4139
set OPENLOOPS_ROOT \$::env(BASEDIR)/$PKGNAME/\$version
4240
setenv OPENLOOPS_ROOT \$OPENLOOPS_ROOT
4341
setenv OpenLoopsPath \$OPENLOOPS_ROOT
44-
prepend-path PATH \$OPENLOOPS_ROOT
45-
prepend-path LD_LIBRARY_PATH \$OPENLOOPS_ROOT/lib
4642
prepend-path LD_LIBRARY_PATH \$OPENLOOPS_ROOT/proclib
4743
EoF
48-
mkdir -p $INSTALLROOT/etc/modulefiles && rsync -a --delete etc/modulefiles/ $INSTALLROOT/etc/modulefiles
44+
mkdir -p "$INSTALLROOT/etc/modulefiles"
45+
rsync -a --delete etc/modulefiles/ "$INSTALLROOT/etc/modulefiles"
4946

openmp.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
package: openmp
2-
version: 1.0
2+
version: "1.0"
33
system_requirement_missing: |
44
Please install openmp (libomp) on your system:
55
* On MacOS systems: brew install libomp

parquet-cpp.sh

Lines changed: 0 additions & 43 deletions
This file was deleted.

pda.sh

Lines changed: 11 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -7,34 +7,20 @@ requires:
77
build_requires:
88
- kernel-devel
99
- "autotools:(slc6|slc7)"
10+
- alibuild-recipe-tools
11+
---
12+
#!/bin/bash -e
1013

11-
---
12-
#!/bin/sh
13-
14-
rsync -a --delete --exclude '**/.git' --delete-excluded $SOURCEDIR/ ./
15-
./configure --debug=false --numa=true --modprobe=true --prefix=$INSTALLROOT
14+
rsync -a --delete --exclude '**/.git' --delete-excluded "$SOURCEDIR/" ./
15+
./configure --debug=false --numa=true --modprobe=true --prefix="$INSTALLROOT"
1616
make ${JOBS+-j $JOBS} install
1717

18-
#ModuleFile
18+
#ModuleFile
1919
mkdir -p etc/modulefiles
20-
cat > etc/modulefiles/$PKGNAME <<EoF
21-
#%Module1.0
22-
proc ModulesHelp { } {
23-
global version
24-
puts stderr "ALICE Modulefile for $PKGNAME $PKGVERSION-@@PKGREVISION@$PKGHASH@@"
25-
}
26-
set version $PKGVERSION-@@PKGREVISION@$PKGHASH@@
27-
module-whatis "ALICE Modulefile for $PKGNAME $PKGVERSION-@@PKGREVISION@$PKGHASH@@"
28-
29-
# Dependencies
30-
module load BASE/1.0 \\
31-
${GCC_TOOLCHAIN_ROOT:+GCC-Toolchain/$GCC_TOOLCHAIN_VERSION-$GCC_TOOLCHAIN_REVISION}
32-
20+
alibuild-generate-module --bin --lib > "etc/modulefiles/$PKGNAME"
21+
cat >> "etc/modulefiles/$PKGNAME" <<EoF
3322
# Our environment
34-
set PDA_ROOT \$::env(BASEDIR)/$PKGNAME/\$version
35-
setenv PDA_ROOT \$PDA_ROOT
36-
set BASEDIR \$::env(BASEDIR)
37-
prepend-path PATH \$BASEDIR/$PKGNAME/\$version/bin
38-
prepend-path LD_LIBRARY_PATH \$BASEDIR/$PKGNAME/\$version/lib
23+
setenv PDA_ROOT \$::env(BASEDIR)/$PKGNAME/\$version
3924
EoF
40-
mkdir -p $INSTALLROOT/etc/modulefiles && rsync -a --delete etc/modulefiles/ $INSTALLROOT/etc/modulefiles
25+
mkdir -p "$INSTALLROOT/etc/modulefiles"
26+
rsync -a --delete etc/modulefiles/ "$INSTALLROOT/etc/modulefiles"

rivettask.sh

Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
package: RivetTask
2-
version: "%{year}s%{month}s%{day}s"
2+
version: "%(year)s%(month)s%(day)s"
33
source: https://gitlab.cern.ch/cholm/alice-rivet-task
44
requires:
55
- Rivet
@@ -19,28 +19,24 @@ set -x
1919
# Print environment to see what is going on - debugging
2020
printenv
2121

22-
# Copy code here
23-
cp ${SOURCEDIR}/AliRivetTask.C .
24-
cp ${SOURCEDIR}/Build.C .
22+
# Copy code here
23+
cp "$SOURCEDIR/AliRivetTask.C" .
24+
cp "$SOURCEDIR/Build.C" .
2525

26-
# Use AcLic to build
26+
# Use AcLic to build
2727
root -l -b -q Build.C
2828

29-
# Install binary, scripts, and code
30-
mkdir -p ${INSTALLROOT}/lib
31-
mkdir -p ${INSTALLROOT}/include
32-
mkdir -p ${INSTALLROOT}/share
33-
cp ${SOURCEDIR}/AliRivetTask.C p ${INSTALLROOT}/include
34-
cp ${SOURCEDIR}/AliRivetTask_C* ${INSTALLROOT}/lib/
35-
cp ${SOURCEDIR}/AddTaskRivet.C ${INSTALLROOT}/share/
36-
cp ${SOURCEDIR}/RivetConfig.C ${INSTALLROOT}/share/
29+
# Install binary, scripts, and code
30+
mkdir -p "$INSTALLROOT/lib"
31+
mkdir -p "$INSTALLROOT/include"
32+
mkdir -p "$INSTALLROOT/share"
33+
cp "$SOURCEDIR/AliRivetTask.C" "$INSTALLROOT/include"
34+
cp "$SOURCEDIR/AliRivetTask_C"* "$INSTALLROOT/lib/"
35+
cp "$SOURCEDIR/AddTaskRivet.C" "$INSTALLROOT/share/"
36+
cp "$SOURCEDIR/RivetConfig.C" "$INSTALLROOT/share/"
3737

3838
#ModuleFile
39-
mkdir -p modulefiles
40-
alibuild-generate-module > etc/modulefiles/$PKGNAME
41-
cat >> modulefiles/${PKGNAME} <<EOF
42-
43-
EOF
44-
mkdir -p $INSTALLROOT/etc/modulefiles && \
45-
rsync -a --delete modulefiles/ $INSTALLROOT/etc/modulefiles
46-
39+
mkdir -p etc/modulefiles
40+
alibuild-generate-module > "etc/modulefiles/$PKGNAME"
41+
mkdir -p "$INSTALLROOT/etc/modulefiles"
42+
rsync -a --delete modulefiles/ "$INSTALLROOT/etc/modulefiles"

0 commit comments

Comments
 (0)