[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#709627: marked as done (libffi: Patch to bootstrap without multilib or texinfo)

Your message dated Mon, 18 Nov 2013 09:20:36 +0000
with message-id <E1ViL0W-0006b0-75@franck.debian.org>
and subject line Bug#709627: fixed in libffi 3.0.13-5
has caused the Debian Bug report #709627,
regarding libffi: Patch to bootstrap without multilib or texinfo
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org

709627: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=709627
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: libffi
Version: 3.0.13-4
Severity: wishlist
Tags: patch

As the subject says: the attached patch provides an option to bootstrap libffi 
without the multilib builds.  And there's also a bit in there to allow 
skipping the use of the texinfo build dependency.

(Context: the aim of my pbuildd project is to bootstrap the Debian archive 
from source packages, starting from a minimal debootstrap chroot.  libffi comes 
into the process early because of:
debhelper Depends on man-db
man-db Depends on bsdmainutils
bsdmainutils Build-Depends on libncurses5-dev [and even though libncurses5 is 
part of that initial chroot, libncurses5-dev is not]
ncurses Build-Depends on pkg-config
pkg-config Build-Depends on libglib2.0-dev
glib2.0 Build-Depends on libffi-dev

Of course glib2.0 has more issues, so I don't even pretend to have a 
functional bootstrap this early.  But I can build a static version for the 
bootstrapped pkg-config to link against -- which still requires libffi.

And hopefully the chain above also explains why texinfo isn't available to be 
bootstrapped yet at this point.)
Daniel Schepler
diff -urN libffi-3.0.13.old/debian/rules libffi-3.0.13/debian/rules
--- libffi-3.0.13.old/debian/rules	2013-05-08 08:58:51.000000000 -0700
+++ libffi-3.0.13/debian/rules	2013-05-23 16:25:14.984021770 -0700
@@ -31,6 +31,13 @@
   with_check = yes
+ifeq ($(DEB_BUILD_PROFILE),stage1)
+bootstrap_dh_flags = -Nlib32ffi-dev -Nlib64ffi-dev -Nlibn32ffi-dev \
+	-Nlib32ffi$(major) -Nlib64ffi$(major) -Nlibn32ffi$(major)
 ifneq (,$(filter $(DEB_HOST_ARCH), i386 mips mipsel powerpc s390 sparc))
   multiarch += biarch64
   m64 = -m64
@@ -49,6 +56,8 @@
   abi64 = -gnuabi64
 ifeq (,$(filter $(distrelease),lenny etch squeeze wheezy sid dapper hardy jaunty karmic lucid))
   biarch_map := i686=x86_64 powerpc=powerpc64 sparc=sparc64 s390=s390x \
                 x86_64=i686 powerpc64=powerpc mips=mips64 mipsel=mips64el
@@ -130,8 +139,13 @@
     $(if $(filter yes, $(with_check)), stamp-check $(foreach a, $(multiarch), stamp-check-$(a)))
 stamp-build: stamp-configure
+ifeq ($(DEB_BUILD_PROFILE),stage1)
+	touch doc/libffi.info
 	$(MAKE) -C build
+ifneq ($(DEB_BUILD_PROFILE),stage1)
 	$(MAKE) -C build html
 	touch $@
 stamp-build-biarch32: stamp-configure-biarch32
@@ -197,14 +211,16 @@
 	dh_clean -k
-	dh_installdirs -s
+	dh_installdirs -s $(bootstrap_dh_flags)
 	$(MAKE) -C build DESTDIR=$(CURDIR)/debian/tmp install
 	mkdir -p debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)
 	-mv debian/tmp/usr/lib/* debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/.
 	cp -p build/.libs/libffi_convenience.a \
 	mkdir -p debian/libffi-dev/usr/share/doc/$(p)
+ifneq ($(DEB_BUILD_PROFILE),stage1)
 	cp -a build/doc/libffi.html debian/libffi-dev/usr/share/doc/$(p)/html
 ifneq (,$(filter biarch32, $(multiarch)))
 	$(MAKE) -C build32 DESTDIR=$(CURDIR)/debian/tmp install
 	cp -p build32/.libs/libffi_convenience.a \
@@ -220,7 +236,7 @@
 	cp -p buildn32/.libs/libffi_convenience.a \
-	dh_install -s --sourcedir=debian/tmp
+	dh_install -s --sourcedir=debian/tmp $(bootstrap_dh_flags)
 	mkdir -p debian/libffi-dev/usr/include/$(DEB_HOST_MULTIARCH)
 	mv debian/libffi-dev/usr/include/*.h \
@@ -250,8 +266,8 @@
 binary-arch: build install
-	dh_installchangelogs -s
-	dh_installdocs -s
+	dh_installchangelogs -s $(bootstrap_dh_flags)
+	dh_installdocs -s $(bootstrap_dh_flags)
 	dh_installinfo -plibffi-dev doc/libffi.info
 	rm -f debian/libffi-dev/usr/share/info/dir*
 	cp -p ChangeLog debian/libffi-dev/usr/share/doc/libffi$(major)/changelog
@@ -284,17 +300,17 @@
 	cat buildn32/check.log >> debian/libffi-dev/usr/share/doc/libffi$(major)/test_results_bi32n_$(DEB_HOST_MULTIARCH).txt
-	dh_strip -s --dbg-package=libffi$(major)-dbg
+	dh_strip -s --dbg-package=libffi$(major)-dbg $(bootstrap_dh_flags)
 	rm -f debian/libffi6-dbg/usr/lib/debug/usr/lib{,32,n32,64}/libffi.so.*
-	dh_compress -s
-	dh_fixperms -s
+	dh_compress -s $(bootstrap_dh_flags)
+	dh_fixperms -s $(bootstrap_dh_flags)
 	dh_makeshlibs -plibffi$(major) --add-udeb=libffi$(major)-udeb
-	dh_makeshlibs -s -Nlibffi$(major)
-	dh_installdeb -s
-	dh_shlibdeps -s
-	dh_gencontrol -s
-	dh_md5sums -s
-	dh_builddeb -s
+	dh_makeshlibs -s -Nlibffi$(major) $(bootstrap_dh_flags)
+	dh_installdeb -s $(bootstrap_dh_flags)
+	dh_shlibdeps -s $(bootstrap_dh_flags)
+	dh_gencontrol -s $(bootstrap_dh_flags)
+	dh_md5sums -s $(bootstrap_dh_flags)
+	dh_builddeb -s $(bootstrap_dh_flags)
 binary: binary-indep binary-arch
 .PHONY: build clean binary-indep binary-arch binary install 

--- End Message ---
--- Begin Message ---
Source: libffi
Source-Version: 3.0.13-5

We believe that the bug you reported is fixed in the latest version of
libffi, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 709627@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
Matthias Klose <doko@debian.org> (supplier of updated libffi package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)

Hash: SHA1

Format: 1.8
Date: Mon, 18 Nov 2013 09:20:37 +0100
Source: libffi
Binary: libffi-dev lib32ffi-dev lib64ffi-dev libn32ffi-dev libffi6 lib32ffi6 lib64ffi6 libn32ffi6 libffi6-dbg libffi6-udeb
Architecture: source amd64
Version: 3.0.13-5
Distribution: unstable
Urgency: low
Maintainer: Debian GCC Maintainers <debian-gcc@lists.debian.org>
Changed-By: Matthias Klose <doko@debian.org>
 lib32ffi-dev - Foreign Function Interface library (development files, 32bit)
 lib32ffi6  - Foreign Function Interface library runtime (32bit)
 lib64ffi-dev - Foreign Function Interface library (development files, 64bit)
 lib64ffi6  - Foreign Function Interface library runtime (64bit)
 libffi-dev - Foreign Function Interface library (development files)
 libffi6    - Foreign Function Interface library runtime
 libffi6-dbg - Foreign Function Interface library runtime (debug symbols)
 libffi6-udeb - Foreign Function Interface library runtime (udeb)
 libn32ffi-dev - Foreign Function Interface library (development files, n32)
 libn32ffi6 - Foreign Function Interface library runtime (n32)
Closes: 709627
 libffi (3.0.13-5) unstable; urgency=low
   * Add a stage1 build profile (Daniel Schepler). Closes: #709627.
   * Backport powerpc ABIv2 support from the trunk (Alan Modra).
 4f1fafbb2a5550bb44cd6b6026372591c9db9aac 1619 libffi_3.0.13-5.dsc
 9ce5836074558127a8fbf6d166b0ebb0d8ad67fa 28209 libffi_3.0.13-5.debian.tar.gz
 ac88d85651e7bdfa7d07883732d9899644f35843 99958 libffi-dev_3.0.13-5_amd64.deb
 0b7d7dce5f8a604038df2c8f837df223260db7d9 23514 lib32ffi-dev_3.0.13-5_amd64.deb
 1c2ed5ba9e4f791574f5c40587bcd1bd2be0e867 19162 libffi6_3.0.13-5_amd64.deb
 e8b911189934a042441a97c695d525e1a4e9f94a 16124 lib32ffi6_3.0.13-5_amd64.deb
 ab096d463bf70de416ff61df396f16a40c4808ee 30064 libffi6-dbg_3.0.13-5_amd64.deb
 c5b3348d45054a1601a61ae99e1a927dc402ce02 14406 libffi6-udeb_3.0.13-5_amd64.udeb
 8dcd6abc9d3dc5f47f267a61c57d5283f7df6e13c89d81c422120c604495b07e 1619 libffi_3.0.13-5.dsc
 3ccd32d747dce66ed2fdc6e62f07a996201a411348166390fecbe8dbca7b718f 28209 libffi_3.0.13-5.debian.tar.gz
 7ec22b3465c0a2226bcc419eda56dfdb9dd00b27da20374874455cdf673d6380 99958 libffi-dev_3.0.13-5_amd64.deb
 05e96babc944ffdce969bedfd63b29c3d7e7e931ead3f88a7f8d7166f459b31b 23514 lib32ffi-dev_3.0.13-5_amd64.deb
 fef63743e65cf8eba6a1f84af8bbf91179bd174991d36874ee585fc2698add7b 19162 libffi6_3.0.13-5_amd64.deb
 f97239e44bd4e01733fb9536578b0f9c4726d3429fa224e2caaf86ce6f730f97 16124 lib32ffi6_3.0.13-5_amd64.deb
 36f9cc2e4f5576ae7dde185e10fa58a41916ad5de1c1d001b15704dec97a5703 30064 libffi6-dbg_3.0.13-5_amd64.deb
 a2f8d4c58a32831e081d10b9c56df64a7bc6d38f2a0e00fcfae3113b68f4d5c9 14406 libffi6-udeb_3.0.13-5_amd64.udeb
 ab26cbb3e1f20786388e00632df1b709 1619 libs optional libffi_3.0.13-5.dsc
 ba7d541146bc0b5c6c60927c67020808 28209 libs optional libffi_3.0.13-5.debian.tar.gz
 6ff4886e47b012899c9d17454db8c2a4 99958 libdevel optional libffi-dev_3.0.13-5_amd64.deb
 af6f4f147c8aa22e8a1dad4183e02ec8 23514 libdevel extra lib32ffi-dev_3.0.13-5_amd64.deb
 7a0a0867fd5a27d99d715dbaf2fc2778 19162 libs optional libffi6_3.0.13-5_amd64.deb
 52bcafebc0840e480eeb68b688339f0e 16124 libs extra lib32ffi6_3.0.13-5_amd64.deb
 12a0c0a436bf9f33608bfc84e32c3fe1 30064 debug extra libffi6-dbg_3.0.13-5_amd64.deb
 15f5d19755b8c3391f86c098245ab2b1 14406 debian-installer optional libffi6-udeb_3.0.13-5_amd64.udeb
Package-Type: udeb

Version: GnuPG v1.4.15 (GNU/Linux)


--- End Message ---

Reply to: