[pve-devel] [PATCH zfsonlinux 1/7] build: use dpkg-parsechangelog

Stoiko Ivanov s.ivanov at proxmox.com
Thu Mar 7 18:03:49 CET 2019


Signed-off-by: Stoiko Ivanov <s.ivanov at proxmox.com>
---
 Makefile | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/Makefile b/Makefile
index 78cea56..2c0ab01 100644
--- a/Makefile
+++ b/Makefile
@@ -2,12 +2,6 @@ RELEASE=5.1
 
 # source form https://github.com/zfsonlinux/
 
-ZFSVER=0.7.12
-ZFSPKGREL=pve1~bpo1
-SPLPKGREL=pve1~bpo1
-ZFSPKGVER=${ZFSVER}-${ZFSPKGREL}
-SPLPKGVER=${ZFSVER}-${SPLPKGREL}
-
 SPLDIR=spl-linux_${ZFSVER}
 SPLSRC=spl/upstream
 SPLPKG=spl/debian
@@ -15,6 +9,11 @@ ZFSDIR=zfs-linux_${ZFSVER}
 ZFSSRC=zfs/upstream
 ZFSPKG=zfs/debian
 
+ZFSVER != dpkg-parsechangelog -l ${ZFSPKG}/changelog -Sversion | cut -d- -f1
+
+ZFSPKGVER != dpkg-parsechangelog -l ${ZFSPKG}/changelog -Sversion
+SPLPKGVER != dpkg-parsechangelog -l ${SPLPKG}/changelog -Sversion
+
 SPL_DEB = 					\
 spl_${SPLPKGVER}_amd64.deb
 SPL_DSC = spl-linux_${SPLPKGVER}.dsc
-- 
2.11.0





More information about the pve-devel mailing list