[Swan-dev] Some ugliness during compile

Paul Wouters paul at nohats.ca
Tue Apr 15 01:34:11 EEST 2014


On Mon, 14 Apr 2014, Lennart Sorensen wrote:

>> I am seeing this: cc1: error: bad value (generic) for -mtune
>>
>> Appears to come from: testing/plutoconfigs/Makefile.inc
>
> And Makefile.inc too of course.

$ grep mtune Makefile.inc
paul at bofh:~/libreswan (master *)$

perhaps that was fixed after 3.8 was released? It will be fixed in the
next release already.

I'll have to check the debian packaging further. We apparently just
submitted a package for review, so we will see what comes back. But I'll
forward this note.

Paul

>> 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
> _______________________________________________
> Swan-dev mailing list
> Swan-dev at lists.libreswan.org
> https://lists.libreswan.org/mailman/listinfo/swan-dev
>


More information about the Swan-dev mailing list