[pve-devel] [PATCH cluster] buildsys: generate control file before copying
Thomas Lamprecht
t.lamprecht at proxmox.com
Wed Feb 8 11:03:22 CET 2017
Else the first
$ make {deb,dinstall}
from a clean repo fails, as we generated the debian control file
after copying the debian folder to the build directory. The second
call to make worked as then the control was already generated, but it
could result in using an outdated control file.
Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index e5d61de..a1686e4 100644
--- a/Makefile
+++ b/Makefile
@@ -25,8 +25,8 @@ ${DEB}:
rm -f *.deb
rm -rf build
cp -a data build
- cp -a debian build/debian
sed -e "s|@PERLAPI@|perlapi-$(PERL_APIVER)|g" debian/control.in > debian/control
+ cp -a debian build/debian
echo "git clone git://git.proxmox.com/git/pve-cluster.git\\ngit checkout ${GITVERSION}" > build/debian/SOURCE
cd build; ./autogen.sh
cd build; dpkg-buildpackage -rfakeroot -b -us -uc
--
2.1.4
More information about the pve-devel
mailing list