mirror of
https://github.com/xcat2/confluent.git
synced 2026-10-20 06:35:33 +00:00
6c48cb4fad
Build the rpms for EL9, EL10 and SUSE 16 and the debs for Ubuntu noble and resolute, each for x86_64 and aarch64, install every set on a clean container and publish them as a rolling nightly pre-release. Each release asset is one target's bundle: all of its packages, repository metadata and an INSTALL.txt. Besides the in-tree components this packages confluent_ipxe from the iPXE release roms and the browserfs and vinz helpers from their own repositories. The osdeploy utils are built where buildrpm builds them, el7 for the x86_64 el8bin set, so they still run on the oldest targets. Genesis is left out for now. Noarch packages are built once, in the x86_64 legs, and the aarch64 legs build only what is architecture specific. Build tools are installed without weak dependencies, while the smoke tests keep the distribution defaults, since they stand in for a user's install. Scheduled runs skip the build when neither confluent nor the helper repositories moved since the last published nightly. Pull requests that touch the packaging build and test without publishing.
49 lines
1.7 KiB
Bash
Executable File
49 lines
1.7 KiB
Bash
Executable File
#!/bin/bash
|
|
# Build the confluent debs in an Ubuntu container, like build/arm/*/buildapt.sh:
|
|
# every component with a builddeb script, plus alien conversions of the rpms
|
|
# that have no deb packaging of their own (osdeploy, ipxe, browserfs, vinz).
|
|
# With --arch-only, only the architecture-specific ones: confluent_vtbufferd
|
|
# and the conversions of rpms that are not noarch.
|
|
#
|
|
# Usage: build-debs.sh [--arch-only] <outdir> [<dir with rpms to convert>]
|
|
set -e
|
|
|
|
ARCHONLY=
|
|
if [ "$1" = "--arch-only" ]; then
|
|
ARCHONLY=1
|
|
shift
|
|
fi
|
|
OUT=$(readlink -f "$1")
|
|
RPMS=${2:+$(readlink -f "$2")}
|
|
[ -n "$OUT" ] || { echo "usage: $0 [--arch-only] <outdir> [rpmdir]" >&2; exit 1; }
|
|
|
|
cd "$(dirname "$0")/../.."
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
apt-get update
|
|
apt-get -y --no-install-recommends install git build-essential debhelper devscripts dh-python fakeroot \
|
|
python3-all python3-setuptools python3-stdeb pandoc patch alien
|
|
# stdeb on noble still imports the SafeConfigParser python 3.12 removed
|
|
if (cd / && patch -p1 --dry-run -s < "$OLDPWD/build/arm/noble/stdeb.patch") > /dev/null 2>&1; then
|
|
(cd / && patch -p1 < "$OLDPWD/build/arm/noble/stdeb.patch")
|
|
fi
|
|
git config --global --add safe.directory '*'
|
|
./mkversion
|
|
|
|
mkdir -p "$OUT"
|
|
# vtbufferd first: it recreates /tmp/confluent, which client and server reuse
|
|
./confluent_vtbufferd/builddeb "$OUT"
|
|
if [ -z "$ARCHONLY" ]; then
|
|
./confluent_client/builddeb "$OUT"
|
|
./confluent_server/builddeb "$OUT"
|
|
./imgutil/builddeb "$OUT"
|
|
fi
|
|
|
|
if [ -n "$RPMS" ]; then
|
|
skip=(! -name '*.src.rpm')
|
|
[ -n "$ARCHONLY" ] && skip+=(! -name '*.noarch.rpm')
|
|
cd "$OUT"
|
|
find "$RPMS" -name '*.rpm' "${skip[@]}" -print0 |
|
|
xargs -0 -r -n1 fakeroot alien --to-deb --scripts --keep-version
|
|
fi
|
|
ls -la "$OUT"
|