]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-dev-*: bump pbuilder dist when targeting Windows 2101/head
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Wed, 25 Jan 2023 14:01:49 +0000 (16:01 +0200)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Thu, 26 Jan 2023 08:55:25 +0000 (10:55 +0200)
Ceph now uses c++ 20, thus requiring gcc 10 or later.

We'll need to update Windows jobs that leverage pbuilder
to from Ubuntu Focal (20.04) to Ubuntu Jammy (22.04) to
get mingw 8.0 and gcc 10.3.0.

Fixes: https://tracker.ceph.com/issues/58562
Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
ceph-dev-build/build/build_mingw
ceph-dev-build/build/setup_mingw
ceph-dev-new-build/build/build_mingw
ceph-dev-new-build/build/setup_mingw

index b26c0255382a426327473277d5cab08f9e0471fc..f4150c1411235e717ba3fe2372e8d8efa60a9769 100644 (file)
@@ -1,8 +1,7 @@
 #!/bin/bash
 set -ex
 
-# We need Ubuntu Focal to cross-compile Ceph for Windows.
-# Previous versions provide broken Mingw packages.
+# We need Ubuntu Jammy to cross-compile Ceph for Windows.
 # "DIST" will be set to "windows", so we're currently overriding it with
 # a hardcoded value.
 tmp_pbuild_script=$(mktemp /tmp/build_mingw_pbuild.XXXXXX)
@@ -17,8 +16,8 @@ EOF
 chmod a+x $tmp_pbuild_script
 sudo pbuilder execute \
     --bindmounts "$(pwd):/mnt/ceph" \
-    --distribution "focal" \
-    --basetgz $basedir/focal.tgz \
+    --distribution "jammy" \
+    --basetgz $basedir/jammy.tgz \
     -- $tmp_pbuild_script
 rm $tmp_pbuild_script
 
index 0b944127082347ce536ed4a1f9ff5d3239dc892a..ab077d61da72b9176c6c76c4e831a17dec55dfbd 100644 (file)
@@ -68,10 +68,9 @@ if [ "$THROWAWAY" = false ] ; then
     check_binary_existence $VENV $chacra_check_url
 fi
 
-# We need Ubuntu Focal to cross-compile Ceph for Windows.
-# Previous versions provide broken Mingw packages.
+# We need Ubuntu Jammy to cross-compile Ceph for Windows.
 # "DIST" will be set to "windows", so we're currently overriding it with
 # a hardcoded value.
-DIST="focal"
+DIST="jammy"
 setup_pbuilder use_gcc
 DIST="$NORMAL_DISTRO"
index b26c0255382a426327473277d5cab08f9e0471fc..f4150c1411235e717ba3fe2372e8d8efa60a9769 100644 (file)
@@ -1,8 +1,7 @@
 #!/bin/bash
 set -ex
 
-# We need Ubuntu Focal to cross-compile Ceph for Windows.
-# Previous versions provide broken Mingw packages.
+# We need Ubuntu Jammy to cross-compile Ceph for Windows.
 # "DIST" will be set to "windows", so we're currently overriding it with
 # a hardcoded value.
 tmp_pbuild_script=$(mktemp /tmp/build_mingw_pbuild.XXXXXX)
@@ -17,8 +16,8 @@ EOF
 chmod a+x $tmp_pbuild_script
 sudo pbuilder execute \
     --bindmounts "$(pwd):/mnt/ceph" \
-    --distribution "focal" \
-    --basetgz $basedir/focal.tgz \
+    --distribution "jammy" \
+    --basetgz $basedir/jammy.tgz \
     -- $tmp_pbuild_script
 rm $tmp_pbuild_script
 
index 0b944127082347ce536ed4a1f9ff5d3239dc892a..ab077d61da72b9176c6c76c4e831a17dec55dfbd 100644 (file)
@@ -68,10 +68,9 @@ if [ "$THROWAWAY" = false ] ; then
     check_binary_existence $VENV $chacra_check_url
 fi
 
-# We need Ubuntu Focal to cross-compile Ceph for Windows.
-# Previous versions provide broken Mingw packages.
+# We need Ubuntu Jammy to cross-compile Ceph for Windows.
 # "DIST" will be set to "windows", so we're currently overriding it with
 # a hardcoded value.
-DIST="focal"
+DIST="jammy"
 setup_pbuilder use_gcc
 DIST="$NORMAL_DISTRO"