Skip to content

Commit e8d2baf

Browse files
authored
Merge pull request #111 from DrDaveD/fix-version-selection
Fix version selection, revert to egi & osg cvmfs versions, and update osg to 24-main
2 parents f452e64 + 6dbcdd3 commit e8d2baf

File tree

2 files changed

+16
-12
lines changed

2 files changed

+16
-12
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
- Go back to selecting the cvmfs version from the egi and osg distribution.
2+
- Properly sort the cvmfs version number from the downloaded list of packages.
3+
- For osg use 24-main instead of 23-main.
4+
- For suse15 switch to getting some packages from el8 instead of el7.
5+
16
cvmfsexec-4.45 - 5 March 2025
27
- Change to try downloading cvmfs packages from cvmrepo.s3.cern.ch and
38
fall back to cvmrepo.web.cern.ch if that doesn't work.

makedist

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,7 @@ get_cvmfs_pkg_list() {
123123

124124

125125
get_cvmfs_latest_version_from_pkg_list() {
126-
CVMFSPKG="`echo "$1"|grep "^cvmfs-[0-9]"|tail -1`"
127-
CVMFSVERSION="`echo "$CVMFSPKG"|sed 's/.*cvmfs-\([^-]*\)-.*/\1/'`"
128-
echo $CVMFSVERSION
126+
echo "$1"|sed -n 's/.*cvmfs-\([0-9]*\.[0-9]*\.[0-9]*\).*/\1/p'|sort -t. -k 1,1n -k 2,2n -k 3,3n|tail -1
129127
}
130128

131129

@@ -169,7 +167,7 @@ fi
169167
EL=$VERS
170168
MACH=el$EL
171169
if [ "$DISTRO" = "suse" ]; then
172-
EL=7 # we get some suse stuff from rhel7
170+
EL=8 # we get some suse stuff from rhel8
173171
MACH=sle$VERS
174172
fi
175173

@@ -244,7 +242,7 @@ case $1 in
244242
REL=3.6
245243
EXT=""
246244
else
247-
REL=23-main
245+
REL=24-main
248246
EXT="/Packages/c"
249247
fi
250248
REPO=release
@@ -263,7 +261,9 @@ case $1 in
263261
BASELIST="$(get_cvmfs_pkg_list $BASEURL)";;
264262
default|none)
265263
INCLUDEHELPER=false
266-
BASEURL="https://cvmrepo.web.cern.ch/cvmrepo/yum/cvmfs/EL/$EL/x86_64";;
264+
BASEURL="https://cvmrepo.s3.cern.ch/cvmrepo/yum/cvmfs/EL/$EL/x86_64"
265+
# for the listing, we need to query the "s3-website" variant of the s3 url
266+
BASELIST="$(get_cvmfs_pkg_list ${BASEURL/cvmrepo.s3/cvmrepo.s3-website})";;
267267
*) usage;;
268268
esac
269269
DISTTYPE=$1
@@ -331,18 +331,17 @@ if [ "$ARCH" = "ppc64le" ]; then
331331
CVMFSRPMNAME="$(basename $CVMFSRPMURL)"
332332
CVMFSVERSION="`echo "$CVMFSRPMNAME" 's/.*cvmfs-\([^-]*\)-.*/\1/'`"
333333
else
334-
# Get CVMFS package download urls from CERN yum repo ( with possible fallback )
334+
# Get CVMFS package download urls from CERN yum repo ( with possible fallback )
335+
# but using the version number found from the base distribution
335336
DISTRO_YUM="`distroname_yum $DISTRO`"
336337
CVMFSURL="$CVMFS_BASEURL/yum/cvmfs/$DISTRO_YUM/$VERS/$ARCH"
337-
# for the listing, we need to query the "s3-website" variant of the s3 url
338-
CVMFS_BASELIST="$(get_cvmfs_pkg_list ${CVMFSURL/cvmrepo.s3/cvmrepo.s3-website})"
339-
CVMFSVERSION="$(get_cvmfs_latest_version_from_pkg_list $CVMFS_BASELIST)"
338+
CVMFSVERSION="$(get_cvmfs_latest_version_from_pkg_list "$BASELIST")"
340339
if [ -z "CVMFSVERSION" ]; then
341-
echo "WARN: Couldn't find package listing in mirror $CVMFSURL, switching over.." >&2
340+
echo "WARN: Couldn't find package listing in $BASEURL, switching to backup.." >&2
342341
CVMFS_BASEURL="$CVMFS_BASE_URL_MIRROR2"
343342
CVMFSURL="$CVMFS_BASEURL/yum/cvmfs/$DISTRO_YUM/$VERS/$ARCH"
344343
CVMFS_BASELIST="$(get_cvmfs_pkg_list $CVMFSURL)"
345-
CVMFSVERSION="$(get_cvmfs_latest_version_from_pkg_list $CVMFS_BASELIST)"
344+
CVMFSVERSION="$(get_cvmfs_latest_version_from_pkg_list "$CVMFS_BASELIST")"
346345
if [ -z "CVMFSVERSION" ]; then
347346
echo "ERROR: Couldn't find package listing in mirror $CVMFS_BASEURL, and no mirrors left! " >&2
348347
exit 1

0 commit comments

Comments
 (0)