Your message dated Wed, 17 Feb 2016 06:19:17 +0000
with message-id <[email protected]>
and subject line Bug#762180: fixed in flex 2.6.0-8
has caused the Debian Bug report #762180,
regarding FTCBFS: runs host arch binaries during build via help2man
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-8
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: Tue, 16 Feb 2016 21:55:51 -0800
Source: flex
Binary: flex flex-doc libfl-dev
Architecture: source amd64 all
Version: 2.6.0-8
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 812659
Changes:
flex (2.6.0-8) unstable; urgency=low
.
* Bug fix: "flex FTCBFS: runs tests even when DEB_BUILD_OPTIONS contains
nocheck", thanks to Helmut Grohne. Added an AM_CONDITIONAL that tests
DEB_BUILD_OPTIONS in configure.ac, and use that in
tests/Makefile.am. Seems to work fine. (Closes: #812659).
* Bug fix: "runs host arch binaries during build via help2man", thanks
to Helmut Grohne. The change from the previous patch is that the flex
binary now is created in ./src/ (Closes: #762180).
Checksums-Sha1:
30b338ffac6fd53305391e3bd3f097e1097bd423 1869 flex_2.6.0-8.dsc
9a6c73aa70de0424389f577deee2edad6d2b076b 28530 flex_2.6.0-8.diff.gz
79dd3e7aeb13585f1fc3427a7093019d6a2cf550 130738 flex-dbgsym_2.6.0-8_amd64.deb
7e57a1f6d3acb267c86c51482ed43ecaaf07aed7 746716 flex-doc_2.6.0-8_all.deb
9e2d54207957ff775cb985bf10600b16acc7480b 418746 flex_2.6.0-8_amd64.deb
d89c04a707bf489556c86ef47d16758fd3aaaed5 2774
libfl-dev-dbgsym_2.6.0-8_amd64.deb
a6bc72562a9c992db957c5fcc89c2fed92eecaa7 84018 libfl-dev_2.6.0-8_amd64.deb
Checksums-Sha256:
1bd2cc89ffc4e52500f199901fa6c9fb1ccba788a74dbe55328c4687123dfdbd 1869
flex_2.6.0-8.dsc
8a61a99e7a7d24f7411332c9d12211614da9c84a2484af35c1908b3e90108c67 28530
flex_2.6.0-8.diff.gz
adebfe6d5d2cd95e75f25bbb720f2b3ff9f40cb0e4daf0fdfd7f468c3d6e8bff 130738
flex-dbgsym_2.6.0-8_amd64.deb
d54f14bb3a52de053ad6163e32e53d1b6dbbd7730a6969588ef69e2749338a89 746716
flex-doc_2.6.0-8_all.deb
c819c4b8db26d310f80f236dbf1c47f2aad41c2044299cf8d3a55ba45b627000 418746
flex_2.6.0-8_amd64.deb
5cd5ad8a0edde46d5215aa613a6ed45e38a03d189e3b76a1784cb76d611a9da8 2774
libfl-dev-dbgsym_2.6.0-8_amd64.deb
a5dfb3e581009cc64013de25b5f20dd591d7d5c7321353301806838e1690e3c1 84018
libfl-dev_2.6.0-8_amd64.deb
Files:
afdc23e20508ee103013434d386d4b8c 1869 devel optional flex_2.6.0-8.dsc
b5b6b64267ec66adf663c5885d807fdf 28530 devel optional flex_2.6.0-8.diff.gz
bd456aba6b03926b5c488c18604389b0 130738 debug extra
flex-dbgsym_2.6.0-8_amd64.deb
5b36d7c918b5c440009a5539e0c7083b 746716 doc optional flex-doc_2.6.0-8_all.deb
53d673c222010f0e1f19acc1291e71de 418746 devel optional flex_2.6.0-8_amd64.deb
6b63bcbec11925c25c85a987c49faa31 2774 debug extra
libfl-dev-dbgsym_2.6.0-8_amd64.deb
a22aac8f959b8eea023b72b16eea608c 84018 libdevel optional
libfl-dev_2.6.0-8_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQFuBAEBCgBYBQJWxA4TURSAAAAAABsALXNyaXZhc3RhQGdvbGRlbi1ncnlwaG9u
LmNvbUFCQTcxMDI1QTFCNUE4OEE0RTVGNjhDMjM2QkQ3MjBGNkY1NzY0NzJfMTUx
NAAKCRA2vXIPb1dkclRpB/0ZLw4Bit6ETH0Kk1PpzikGB+4ctf7OBtRWTZLiAL/f
NUlMmdduiDSOFieb5VfDsoLigmQIs5nvphoIb1KUPfghcJTS4CByUXS/VFrZTL2U
m2tOTVyu2faU86jtZCq4EHp0ftB11J4bb1EMs1KX2FU0G0W4Qpl4RXPtbIrH5TZu
oUu7UN2mPTpKDuxkAgdU9CkpQWYNgG4xXB5BOnfWce+f7VfYW3tqm2VRoXgtusIf
RMXjdJRtfW7rikyw4T4ckHZKmsOQP8AA4J8SUz/YiRbxwBXny9W/SqTbsRio2scM
BcNxb7HGkoREuJCJ1DqxU7rMDV81SfzHm0WurgNvnh20
=DYoo
-----END PGP SIGNATURE-----
--- End Message ---