cd $WORKSPACE/dist/ntirpc/deb
apt-ftparchive packages . > Packages
+# for debugging
+cat Packages
+
cd $WORKSPACE
REPO_URL="https://shaman.ceph.com/api/repos/ceph/$CEPH_BRANCH/$CEPH_SHA1/$DISTRO/$DIST/repo"
## Prepare the debian files
# Bump the changelog
-dch -v "$VERSION-1${DIST}" "$VERSION for Shaman"
+dch -v "$VERSION-1${DIST}" "$VERSION for download.ceph.com"
# Create .dsc and source tarball, we don't care about signing changes or source package
sudo dpkg-buildpackage -S -us -uc -d
--distribution $DIST \
--basetgz $PBUILDDIR/$DIST.tgz
-
mkdir -p $WORKSPACE/dist/deb
# add missing packages and components to pbuilder
sudo pbuilder update \
--distribution $DIST \
--basetgz $PBUILDDIR/$DIST.tgz \
- --extrapackages "apt-transport-https apt-utils ca-certificates librados-dev libcephfs-dev librgw-dev libntirpc-dev debhelper python-all" \
+ --extrapackages "apt-transport-https apt-utils ca-certificates debhelper python-all liblttng-ust0 liblttng-ust-dev liblttng-ctl-dev pkgconf quilt" \
--components "main restricted universe multiverse" \
- --othermirror "${SHAMAN_MIRROR}" \
+ --override-config
+
+sudo pbuilder update \
+ --distribution $DIST \
+ --basetgz $PBUILDDIR/$DIST.tgz \
+ --removepackages "librados2 libcephfs2 librgw2 librados-dev libcephfs-dev librgw-dev libntirpc-dev" \
+ --override-config
+
+sudo pbuilder update \
+ --distribution $DIST \
+ --basetgz $PBUILDDIR/$DIST.tgz \
+ --extrapackages "libntirpc-dev" \
--othermirror "deb [trusted=yes] file://$WORKSPACE/dist/ntirpc/deb ./" \
--bindmounts "$WORKSPACE/dist/ntirpc/deb" \
--override-config
+# use libcephfs and librgw from shaman
+sudo pbuilder update \
+ --distribution $DIST \
+ --basetgz $PBUILDDIR/$DIST.tgz \
+ --extrapackages "librados2 libcephfs2 librgw2 librados-dev libcephfs-dev librgw-dev" \
+ --othermirror "${SHAMAN_MIRROR}" \
+ --override-config
+
echo "Building debs for $DIST"
sudo pbuilder build \
--distribution $DIST \
- string:
name: NTIRPC_BRANCH
description: "The git branch (or tag) to build"
- default: "v1.7"
+ default: "v1.7.1"
- string:
name: NTIRPC_DEBIAN_BRANCH
description: "The git branch (or tag) for debian build scripts for ntirpc"
- default: "xenial-libntirpc-1.5"
+ default: "xenial-libntirpc-1.7"
- string:
name: NFS_GANESHA_DEBIAN_BRANCH
builders:
- shell: |
echo "Cleaning up top-level workarea (shared among workspaces)"
- rm -rf dist
- rm -rf venv
- rm -rf release
+ sudo rm -rf dist
+ sudo rm -rf venv
+ sudo rm -rf release
# debian build scripts
- shell:
!include-raw:
sudo pbuilder update \
--basetgz $PBUILDDIR/$DIST.tgz \
--distribution $DIST \
- --extrapackages "apt-transport-https apt-utils ca-certificates" \
+ --extrapackages "apt-transport-https apt-utils ca-certificates debhelper python-all liblttng-ust0 liblttng-ust-dev liblttng-ctl-dev pkgconf quilt" \
--components "main restricted universe multiverse"
+# make sure no ceph packages are left over in pbuilder env
+sudo pbuilder update \
+ --basetgz $PBUILDDIR/$DIST.tgz \
+ --distribution $DIST \
+ --removepackages "librados2 libcephfs2 librgw2 librados-dev libcephfs-dev librgw-dev" \
+ --override-config
+
# add other mirror to pbuilder
sudo pbuilder update \
--basetgz $PBUILDDIR/$DIST.tgz \
--debbuildopts "-j`grep -c processor /proc/cpuinfo`" \
$WORKSPACE/nfs-ganesha_${VERSION}-1${DIST}.dsc
-
## Upload the created debs to chacra
chacra_endpoint="nfs-ganesha/${NFS_GANESHA_BRANCH}/${GIT_COMMIT}/${DISTRO}/${DIST}"
chacra_repo_endpoint="${chacra_endpoint}/flavors/${FLAVOR}"