[Swan-dev] Some ugliness during compile

Lennart Sorensen lsorense at csclub.uwaterloo.ca
Tue Apr 15 01:20:48 EEST 2014


I am seeing this: cc1: error: bad value (generic) for -mtune

Appears to come from: testing/plutoconfigs/Makefile.inc

Also the following makes the building of a debian package work a lot
better (You should NOT have dpatch commands in a quilt format package):

diff -urN libreswan-3.8/debian/rules libreswan-3.8.new/debian/rules
--- libreswan-3.8/debian/rules  2014-01-16 07:46:24.000000000 +0000
+++ libreswan-3.8.new/debian/rules      2014-04-14 21:46:02.000000000 +0000
@@ -14,17 +14,10 @@

 	touch configure-stamp

-patch:
-	dh_testdir
-	dpatch apply-all
-
-unpatch:
-	dpatch deapply-all
-
 build-arch: build
 build-indep: build
 build: build-stamp
-build-stamp: patch
+build-stamp: configure
 	# create a dummy ipsec.secrets file before building the package so
 	# that no RSA keys are created during the build process
 	# (a package should not include a RSA key, it should produce the key
@@ -48,7 +41,7 @@

 	touch build-stamp

-clean: unpatch
+clean:
 	dh_testdir
 	dh_testroot
 	rm -f build-stamp configure-stamp
@@ -75,8 +68,6 @@

 	dh_clean

-	rm -rf debian/patched || true
-
 install-libreswan: DH_OPTIONS=-a
 install-libreswan: build
 	dh_testdir
@@ -187,7 +178,7 @@
 install-libreswan-modules-source: DH_OPTIONS=-plibreswan-modules-source
 install-libreswan-modules-source: PKGDIR=$(CURDIR)/debian/libreswan-modules-source
 install-libreswan-modules-source: BUILDDIR=$(CURDIR)/debian/libreswan-modules-source-build
-install-libreswan-modules-source: patch
+install-libreswan-modules-source:
 	dh_testdir
 	dh_testroot
 	dh_installdirs

-- 
Len Sorensen


More information about the Swan-dev mailing list