dist/debian: apply generated package version for .orig.tar.gz file
Same as scylladb/scylla#6752, we currently does not able to apply version number fixup for .orig.tar.gz file, even we applied correct fixup on debian/changelog, becuase it just reading SCYLLA-VERSION-FILE. We should parse debian/{changelog,control} instead. Fixes #120
This commit is contained in:
parent
b2195734cc
commit
5820992a8e
14
dist/debian/build_deb.sh
vendored
14
dist/debian/build_deb.sh
vendored
@ -89,12 +89,12 @@ if [ "$ID" = "debian" ] && [ ! -f /usr/share/keyrings/ubuntu-archive-keyring.gpg
|
|||||||
sudo apt-get install -y ubuntu-archive-keyring
|
sudo apt-get install -y ubuntu-archive-keyring
|
||||||
fi
|
fi
|
||||||
|
|
||||||
RELOC_PKG_FULLPATH=$(readlink -f $RELOC_PKG)
|
RELOC_PKG=$(readlink -f $RELOC_PKG)
|
||||||
RELOC_PKG_BASENAME=$(basename $RELOC_PKG)
|
|
||||||
SCYLLA_VERSION=$(cat scylla-jmx/SCYLLA-VERSION-FILE)
|
|
||||||
SCYLLA_RELEASE=$(cat scylla-jmx/SCYLLA-RELEASE-FILE)
|
|
||||||
|
|
||||||
ln -fv $RELOC_PKG_FULLPATH ../$PRODUCT-jmx_$SCYLLA_VERSION-$SCYLLA_RELEASE.orig.tar.gz
|
mv scylla-jmx/debian debian
|
||||||
|
PKG_NAME=$(dpkg-parsechangelog --show-field Source)
|
||||||
cp -al scylla-jmx/debian debian
|
# XXX: Drop revision number from version string.
|
||||||
|
# Since it always '1', this should be okay for now.
|
||||||
|
PKG_VERSION=$(dpkg-parsechangelog --show-field Version |sed -e 's/-1$//')
|
||||||
|
ln -fv $RELOC_PKG ../"$PKG_NAME"_"$PKG_VERSION".orig.tar.gz
|
||||||
debuild -rfakeroot -us -uc
|
debuild -rfakeroot -us -uc
|
||||||
|
Loading…
x
Reference in New Issue
Block a user