Your message dated Thu, 18 Feb 2016 21:54:29 +0000
with message-id <[email protected]>
and subject line Bug#762180: fixed in flex 2.6.0-9
has caused the Debian Bug report #762180,
regarding [src:flex] FTCBFS: runs host arch binaries during build
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 [email protected]
immediately.)
--
762180: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=762180
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: src:flex
Version: 2.5.39-8
Tags: patch
User: [email protected]
Usertags: rebootstrap
flex FTCBFS for any architecture, because the manual page generation
fails. help2man fails to execute ../flex, because in general host arch
executables cannot be run on during cross-build.
It is not obvious what the best solution to this problem is. I am
listing those, that I am aware of and attach a patch for one solution.
1. When cross building, run help2man on the system copy of flex. This
requires that flex is build natively before it can be cross built.
The attached patch implements this method. One bit is missing in the
patch: flex needs to gain a new Build-Depends on flex, but only when
cross building. This can be done using build profiles[1], but build
profile enabled packages cannot be uploaded to the archive. The
dependency that flex needs to gain, probably looks like:
Build-Depends: flex <profile.cross>
This still does not enforce that the flex package used to fulfil the
dependency has the same version as the flex package that is being
built, so the manual page can be outdated. An attempt to support
versioned Build-Depends was not met with enthusiasm by the dpkg
maintainer (#751437).
Nevertheless, this method makes flex somewhat cross-buildable today!
2. Add a nodoc build profile to flex that prevents documentation from
being built or installed. This approach cannot produce subtly wrong
packages (documentation for different version), but it also requires
build profiles and requires a larger diff to be carried. Multiple
places, both in the upstream build and the debian packaging, need to
learn that the documentation can go missing.
3. Do not rebuild manual pages during cross-build but take the pre-built
copy from the source tarball. Not building from source sounds like a
bad idea to me.
If you prefer a method other than 1., please tell me so I can write a
new patch.
Helmut
[1] https://wiki.debian.org/BuildProfileSpec
diff -Nru flex-2.5.39/debian/changelog flex-2.5.39/debian/changelog
--- flex-2.5.39/debian/changelog 2014-06-21 06:01:27.000000000 +0200
+++ flex-2.5.39/debian/changelog 2014-09-18 23:24:27.000000000 +0200
@@ -1,3 +1,10 @@
+flex (2.5.39-8.1) UNRELEASED; urgency=low
+
+ * Non-maintainer upload.
+ * Do not run host arch binaries during cross build. (Closes: #-1)
+
+ -- Helmut Grohne <[email protected]> Thu, 18 Sep 2014 23:08:01 +0200
+
flex (2.5.39-8) unstable; urgency=low
* Added a missing build depends on vm-super-minimal, reuired fro
diff -Nru flex-2.5.39/debian/patches/help2man-cross.patch
flex-2.5.39/debian/patches/help2man-cross.patch
--- flex-2.5.39/debian/patches/help2man-cross.patch 1970-01-01
01:00:00.000000000 +0100
+++ flex-2.5.39/debian/patches/help2man-cross.patch 2014-09-18
23:24:49.000000000 +0200
@@ -0,0 +1,32 @@
+From: Helmut Grohne <[email protected]>
+Subject: Run help2man on the system copy of flex when cross building
+Last-Modified: 2014-09-18
+
+Index: flex-2.5.39/configure.ac
+===================================================================
+--- flex-2.5.39.orig/configure.ac 2014-03-26 19:55:03.000000000 +0100
++++ flex-2.5.39/configure.ac 2014-09-18 23:06:59.199483266 +0200
+@@ -50,6 +50,12 @@
+
+ AC_PATH_PROG(BISON, bison,bison)
+ AC_PATH_PROG(HELP2MAN, help2man, help2man)
++if test "$cross_compiling" = yes; then
++FLEXexe='flex$(EXEEXT)'
++else
++FLEXexe='$(top_builddir)/flex$(EXEEXT)'
++fi
++AC_SUBST(FLEXexe)
+
+ # Check for a m4 that supports -P
+
+Index: flex-2.5.39/doc/Makefile.am
+===================================================================
+--- flex-2.5.39.orig/doc/Makefile.am 2014-03-26 13:46:44.000000000 +0100
++++ flex-2.5.39/doc/Makefile.am 2014-09-18 23:07:11.335481934 +0200
+@@ -27,5 +27,5 @@
+ for i in $(dist_man_MANS) ; do \
+ $(help2man) --name='$(PACKAGE_NAME)' \
+ --section=`echo $$i | sed -e 's/.*\.\([^.]*\)$$/\1/'` \
+- ../flex$(EXEEXT) > $$i || rm -f $$i ; \
++ $(FLEXexe) > $$i || rm -f $$i ; \
+ done
diff -Nru flex-2.5.39/debian/patches/series flex-2.5.39/debian/patches/series
--- flex-2.5.39/debian/patches/series 2014-06-21 06:01:27.000000000 +0200
+++ flex-2.5.39/debian/patches/series 2014-09-18 23:06:50.000000000 +0200
@@ -4,3 +4,4 @@
0003-ia64-buffer-fix-Some-more-fixes-for-the-ia64-buffer-.patch
0004-bison-test-fixes-Do-not-use-obsolete-bison-construct.patch
0005-fix-off-by-one-error-generatred-line-numbers-are-off.patch
+help2man-cross.patch
--- End Message ---
--- Begin Message ---
Source: flex
Source-Version: 2.6.0-9
We believe that the bug you reported is fixed in the latest version of
flex, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Manoj Srivastava <[email protected]> (supplier of updated flex 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 [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Thu, 18 Feb 2016 12:26:17 -0800
Source: flex
Binary: flex flex-doc libfl-dev
Architecture: source amd64 all
Version: 2.6.0-9
Distribution: unstable
Urgency: low
Maintainer: Manoj Srivastava <[email protected]>
Changed-By: Manoj Srivastava <[email protected]>
Description:
flex - fast lexical analyzer generator
flex-doc - Documentation for flex (a fast lexical analyzer generator)
libfl-dev - static library for flex (a fast lexical analyzer generator)
Closes: 762180
Changes:
flex (2.6.0-9) unstable; urgency=low
.
* Updated standards version to 3.9.7. No changes needed.
* Bug fix: "[src:flex] FTCBFS: runs host arch binaries during build",
thanks to Helmut Grohne. Make the tests use either the installed flex
or the newly built flex to generate test soureces, depending on
whether or not we are cross compiling. Also added a build depends flex
<cross>
Hope this works. This has not broken the common case. (Closes: #762180).
Checksums-Sha1:
61f2b5ca6329e49f21152f4d57039c0a4d214836 1883 flex_2.6.0-9.dsc
ff8e774d606588d778814f88fa8fbb1da6b675ad 28752 flex_2.6.0-9.diff.gz
e6f73fde3992fa460ca1479e78f25fda0b591dd2 130744 flex-dbgsym_2.6.0-9_amd64.deb
4f0437de459236bf831a05b1c775d73fab152c9d 746888 flex-doc_2.6.0-9_all.deb
50f74eb74391e13ef27ce7d29f2404d15deb79ce 418900 flex_2.6.0-9_amd64.deb
3b8859354c722a90acde2fbe771aeb25b5a18ceb 2772
libfl-dev-dbgsym_2.6.0-9_amd64.deb
b289ca5d10650408aaac658a27c9f3c694eba08c 84150 libfl-dev_2.6.0-9_amd64.deb
Checksums-Sha256:
eea87dda6edcb3860ebfe5cc146de81eb89121083103f9f91817e0b3ea4ff1f0 1883
flex_2.6.0-9.dsc
34aca4b6a998c208caa326a1342c12b58dc1552ebb4d2c25aae4ffd0d7dc39e6 28752
flex_2.6.0-9.diff.gz
aa517ab07aeb00c58bb4393efefec17c7027ce60124244d6da9ba4a44dcd9b1b 130744
flex-dbgsym_2.6.0-9_amd64.deb
b50ba274216dc8a6ca51f71b44cca3ff89ad359e5085ad903305ddfcc9e982c4 746888
flex-doc_2.6.0-9_all.deb
c845d6aff9aca0602609aedbc4e5d01d067aaea2ad5bec92058695483111d6e1 418900
flex_2.6.0-9_amd64.deb
30b73758badbbd6786dd4373f7837e330cd699397bfe00b9411479a64f003683 2772
libfl-dev-dbgsym_2.6.0-9_amd64.deb
5fa21a10dbf32da3070e2b37094ae679a437648f6dbb3310999ff00580a15a88 84150
libfl-dev_2.6.0-9_amd64.deb
Files:
9aeee7960ac18e1cabec7f4b2d3c0dbb 1883 devel optional flex_2.6.0-9.dsc
b1c70fa48412056db359db5343001d1a 28752 devel optional flex_2.6.0-9.diff.gz
f45ecb4492011fffc2a3251ed6ad9636 130744 debug extra
flex-dbgsym_2.6.0-9_amd64.deb
be9111c7479f92c38e7696b971bb887e 746888 doc optional flex-doc_2.6.0-9_all.deb
77573847e4750fc40ab2f18940ea11a8 418900 devel optional flex_2.6.0-9_amd64.deb
fd7f7846594cacb8ccf232381af1b7d5 2772 debug extra
libfl-dev-dbgsym_2.6.0-9_amd64.deb
aa6a000d6f475583f4842cd4c5c06437 84150 libdevel optional
libfl-dev_2.6.0-9_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQFuBAEBCgBYBQJWxjvLURSAAAAAABsALXNyaXZhc3RhQGdvbGRlbi1ncnlwaG9u
LmNvbUFCQTcxMDI1QTFCNUE4OEE0RTVGNjhDMjM2QkQ3MjBGNkY1NzY0NzJfMTUy
NAAKCRA2vXIPb1dkcjBRCADj2TO/Iz9HeHrFmxtkFfvvh5gZBbVmDnB+5s/RNBU2
fViiCiGpQBz9xFw5WAg9tV5CyW3MXA+AEqD1PTk0afOrmS0m5SeVpNcaQk2kPlCW
s/UIbUO9YEnd/drgRfM+SwhdCYNQWAigxk65oLyMy9vOC/FwuUFWRDQvXFS6uGNv
Ad7OqLd83jjTbvYRaNLc4qF7ghESxZcsrYMPcsadwXY5Dqg4/FIRo/y2TdalIIsL
Q8idw9polAKgao/a2qik+Lx+gbUBwBABkJjRVslWXgbKKGUViFIAcEXd21Pl7fBc
K/yGl/+GLkvK/NSapqA8KlzJDUPz7hR3/FrNWFxrxykT
=t85I
-----END PGP SIGNATURE-----
--- End Message ---