File tree Expand file tree Collapse file tree 4 files changed +12
-30
lines changed
Expand file tree Collapse file tree 4 files changed +12
-30
lines changed Original file line number Diff line number Diff line change @@ -2,37 +2,19 @@ package: golang
22version: " 1.22.2"
33build_requires:
44 - curl
5+ - alibuild-recipe-tools
56prefer_system: " .*"
67prefer_system_check: |
78 type go && case ` go version | sed -e ' s/go version go//' | sed -e ' s/ .*//' ` in 1.2[2-9].* ) exit 0 ;; * ) exit 1 ;; esac
89---
910case $ARCHITECTURE in
10- osx_arm64)
11- ARCH=$( uname| tr ' [:upper:]' ' [:lower:]' ) -arm64
12- ;;
13- * )
14- ARCH=$( uname| tr ' [:upper:]' ' [:lower:]' ) -amd64
15- ;;
11+ osx_arm64) ARCH=$( uname| tr ' [:upper:]' ' [:lower:]' ) -arm64 ;;
12+ * _aarch64) ARCH=$( uname| tr ' [:upper:]' ' [:lower:]' ) -arm64 ;;
13+ * ) ARCH=$( uname| tr ' [:upper:]' ' [:lower:]' ) -amd64 ;;
1614esac
1715curl -LO https://golang.org/dl/go$PKGVERSION .$ARCH .tar.gz
1816tar --strip-components=1 -C $INSTALLROOT -xzf go$PKGVERSION .$ARCH .tar.gz
1917
2018mkdir -p etc/modulefiles
21- cat > etc/modulefiles/$PKGNAME << EoF
22- #%Module1.0
23- proc ModulesHelp { } {
24- global version
25- puts stderr "ALICE Modulefile for $PKGNAME $PKGVERSION -@@PKGREVISION@$PKGHASH @@"
26- }
27- set version $PKGVERSION -@@PKGREVISION@$PKGHASH @@
28- module-whatis "ALICE Modulefile for $PKGNAME $PKGVERSION -@@PKGREVISION@$PKGHASH @@"
29- # Dependencies
30- module load BASE/1.0
31-
32- # Our environment
33- set GOROOT \$ ::env(BASEDIR)/$PKGNAME /\$ version
34- # NOTE: upstream requires GOROOT to be defined if installing to a nonstandard path
35- prepend-path PATH \$ GOROOT/bin
36- prepend-path LD_LIBRARY_PATH \$ GOROOT/lib
37- EoF
19+ alibuild-generate-module --bin --lib > etc/modulefiles/$PKGNAME
3820mkdir -p $INSTALLROOT /etc/modulefiles && rsync -a --delete etc/modulefiles/ $INSTALLROOT /etc/modulefiles
Original file line number Diff line number Diff line change @@ -7,13 +7,13 @@ requires:
77 - Control-OCCPlugin
88 - O2
99 - O2Physics
10- - " ReadoutCard:(slc* )"
10+ - " ReadoutCard:(slc.*x86 )"
1111 - Readout
1212 - QualityControl
13- - " DataDistribution:(?!osx)"
14- - " ALF:(?!osx)"
15- - " mesos:(slc.*)"
16- - " TpcFecUtils:(?!osx)"
13+ - " DataDistribution:(?!osx|.*aarch64 )"
14+ - " ALF:(?!osx|.*aarch64 )"
15+ - " mesos:(slc.*x86 )"
16+ - " TpcFecUtils:(?!osx|.*aarch64 )"
1717valid_defaults:
1818 - o2
1919 - o2-dataflow
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ requires:
1010 - FairLogger
1111 - Monitoring
1212 - Configuration
13- - " ReadoutCard:(slc.*)"
13+ - " ReadoutCard:(slc.*_x86-64 )"
1414 - lz4
1515 - Control-OCCPlugin
1616 - ZeroMQ
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ requires:
88 - Configuration
99 - Monitoring
1010 - libInfoLogger
11- - " PDA:(?!osx)"
11+ - " PDA:(?!osx|.*aarch64 )"
1212 - " Python:(?!osx)"
1313 - " Python-system:(?!slc.*)"
1414build_requires:
You can’t perform that action at this time.
0 commit comments