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

Bug#888593: marked as done (apr: FTBFS with debhelper/11.1 due to empty build target)



Your message dated Sun, 25 Feb 2018 16:20:18 +0000
with message-id <E1epz2A-000GBQ-U5@fasolo.debian.org>
and subject line Bug#888593: fixed in apr 1.6.3-2
has caused the Debian Bug report #888593,
regarding apr: FTBFS with debhelper/11.1 due to empty build target
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
immediately.)


-- 
888593: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=888593
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: apr
Version: 1.6.3-1
Severity: serious
Tags: patch

Hi,

The apr package FTBFS with debhelper/11.1 as it has an empty build
target.  This is caused by debhelper had a bug in its handling of
"explicitly defined rules targets" that has now been fixed.

Previously, this happened to work because dpkg-buildpackage would
invoke "debian/rules build" (which would be a no-op) followed by
"fakeroot debian/rules binary".  During the binary target, dh's
suboptimal handling would run the build commands.


The solution is trivial but less pretty; explicitly define "build"
with the same content as the "%:" target (or rename the "build" folder
and drop the ".PHONY" target).  I have attached a patch for this.

I have also added two optional patches (0002 + 0003) to remove some
redundancy by reducing the number of options passed to dh.  When apr
in unstable was rebuilt, they produced bit-for-bit identical output
compared to apr in sid (with 0001; I could not built it without 0001,
which is why I am filing the bug).
  Both patches bumps the minimum debhelper version requriement for
building apr.  Most likely, it will be a non-issue for you as the
minimum requirements are satisfied in stable and oldstable-backports.


More details can be found in:
 * #886901 comment #35
 * #887688 comment #37
 * #880840

Apologies for the inconvenience.

Thanks,
~Niels
>From f88ac824e68a3608de481e213d83aa2f41f2092f Mon Sep 17 00:00:00 2001
From: Niels Thykier <niels@thykier.net>
Date: Sat, 27 Jan 2018 14:45:24 +0000
Subject: [PATCH 1/3] Avoid empty build target

The dh sequencer as of debhelper/11.1 is stricter with this in order
to solve #880840 (where debhelper would fail to handle such targets
correctly).

Signed-off-by: Niels Thykier <niels@thykier.net>
---
 debian/rules | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/debian/rules b/debian/rules
index 7b723ca..80415ca 100755
--- a/debian/rules
+++ b/debian/rules
@@ -14,6 +14,10 @@ DEB_HOST_MULTIARCH  ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 # The 'build' target needs special handling because there there is a directory
 # named 'build'.
 .PHONY: build
+# The build target must not be empty.  Sadly because of how make
+# works, we have do duplicate the target in this case.
+build:
+	dh $@ -B$(BUILDDIR) --parallel --with autotools_dev
 %:
 	dh $@ -B$(BUILDDIR) --parallel --with autotools_dev
 
-- 
2.15.1

>From 73250df024ceeb312a468d62d97296778581bc1a Mon Sep 17 00:00:00 2001
From: Niels Thykier <niels@thykier.net>
Date: Sat, 27 Jan 2018 14:52:36 +0000
Subject: [PATCH 2/3] Drop deprecated autotools-dev sequence

Signed-off-by: Niels Thykier <niels@thykier.net>
---
 debian/control | 2 +-
 debian/rules   | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/debian/control b/debian/control
index e25e9ab..e4038fb 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: libs
 Priority: optional
 Maintainer: Debian Apache Maintainers <debian-apache@lists.debian.org>
 Uploaders: Stefan Fritsch <sf@debian.org>
-Build-Depends: debhelper (>= 9), autoconf, autotools-dev, mawk, uuid-dev, doxygen, netbase, net-tools, libtool (>= 2), python:any, libsctp-dev [linux-any]
+Build-Depends: debhelper (>= 9), autoconf, mawk, uuid-dev, doxygen, netbase, net-tools, libtool (>= 2), python:any, libsctp-dev [linux-any]
 Standards-Version: 3.9.8
 Vcs-Browser: https://anonscm.debian.org/cgit/pkg-apache/apr.git
 Vcs-Git: git://anonscm.debian.org/pkg-apache/apr.git
diff --git a/debian/rules b/debian/rules
index 80415ca..2f58066 100755
--- a/debian/rules
+++ b/debian/rules
@@ -17,9 +17,9 @@ DEB_HOST_MULTIARCH  ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 # The build target must not be empty.  Sadly because of how make
 # works, we have do duplicate the target in this case.
 build:
-	dh $@ -B$(BUILDDIR) --parallel --with autotools_dev
+	dh $@ -B$(BUILDDIR) --parallel
 %:
-	dh $@ -B$(BUILDDIR) --parallel --with autotools_dev
+	dh $@ -B$(BUILDDIR) --parallel
 
 #
 # configure
-- 
2.15.1

From b89fcf818bb466498d2abc9d3888bed5d862cd69 Mon Sep 17 00:00:00 2001
From: Niels Thykier <niels@thykier.net>
Date: Sat, 27 Jan 2018 15:06:36 +0000
Subject: [PATCH 3/3] Bump debhelper compat to 10

This enables us to ditch the --parallel option for dh as it is now the
default.

Signed-off-by: Niels Thykier <niels@thykier.net>
---
 debian/compat  |  2 +-
 debian/control |  2 +-
 debian/rules   | 15 +++++++++++++--
 3 files changed, 15 insertions(+), 4 deletions(-)

diff --git a/debian/compat b/debian/compat
index ec63514..f599e28 100644
--- a/debian/compat
+++ b/debian/compat
@@ -1 +1 @@
-9
+10
diff --git a/debian/control b/debian/control
index e4038fb..e68a3ac 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: libs
 Priority: optional
 Maintainer: Debian Apache Maintainers <debian-apache@lists.debian.org>
 Uploaders: Stefan Fritsch <sf@debian.org>
-Build-Depends: debhelper (>= 9), autoconf, mawk, uuid-dev, doxygen, netbase, net-tools, libtool (>= 2), python:any, libsctp-dev [linux-any]
+Build-Depends: debhelper (>= 10), autoconf, mawk, uuid-dev, doxygen, netbase, net-tools, libtool (>= 2), python:any, libsctp-dev [linux-any]
 Standards-Version: 3.9.8
 Vcs-Browser: https://anonscm.debian.org/cgit/pkg-apache/apr.git
 Vcs-Git: git://anonscm.debian.org/pkg-apache/apr.git
diff --git a/debian/rules b/debian/rules
index 2f58066..d514a95 100755
--- a/debian/rules
+++ b/debian/rules
@@ -17,9 +17,20 @@ DEB_HOST_MULTIARCH  ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 # The build target must not be empty.  Sadly because of how make
 # works, we have do duplicate the target in this case.
 build:
-	dh $@ -B$(BUILDDIR) --parallel
+	dh $@ -B$(BUILDDIR)
 %:
-	dh $@ -B$(BUILDDIR) --parallel
+	dh $@ -B$(BUILDDIR)
+
+# Skip dh_autoreconf; it interacts with the "SAVE_FILES" (which could probably
+# be solved by doing it before dh_autoreconf) and it causes generated apr_rules.mk
+# to get a different LIBTOOL setting.  The effects of that has not been researched
+# and until it has, we skip dh_autoreconf.
+#
+# The difference being:
+#│ │ │ -LIBTOOL=$(SHELL) $(apr_builddir)/libtool
+#│ │ │ +LIBTOOL=$(SHELL) $(top_builddir)/libtool
+#
+override_dh_autoreconf:
 
 #
 # configure
-- 
2.15.1


--- End Message ---
--- Begin Message ---
Source: apr
Source-Version: 1.6.3-2

We believe that the bug you reported is fixed in the latest version of
apr, 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 888593@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Stefan Fritsch <sf@debian.org> (supplier of updated apr 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)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sun, 25 Feb 2018 16:35:41 +0100
Source: apr
Binary: libapr1 libapr1-dev libapr1-dbg
Architecture: source amd64
Version: 1.6.3-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Apache Maintainers <debian-apache@lists.debian.org>
Changed-By: Stefan Fritsch <sf@debian.org>
Description:
 libapr1    - Apache Portable Runtime Library
 libapr1-dbg - Apache Portable Runtime Library - Debugging Symbols
 libapr1-dev - Apache Portable Runtime Library - Development Headers
Closes: 888593
Changes:
 apr (1.6.3-2) unstable; urgency=medium
 .
   * Avoid empty build target, fixes FTBFS. Thanks to Niels Thykier for the
     patch. Closes: #888593
   * Drop deprecated autotools-dev sequence. Thanks to Niels Thykier for the
     patch.
   * Switch to debhelper compat level 11 and use dh_autoreconf.
   * Include NOTICE file in packages, as required by license.
   * Bump Standards-Version (no changes).
Checksums-Sha1:
 d583100937d25279eecbf50a7afe3389abef6db8 2305 apr_1.6.3-2.dsc
 eed69ca52e2dff09a620ae1d0ac9d704b9536694 213068 apr_1.6.3-2.debian.tar.xz
 97277110db1edb97a8556f8156172b75d88fd7a8 6920 apr_1.6.3-2_amd64.buildinfo
 ff1c694794389a244ece0ed8a8cfb5b494527c80 290428 libapr1-dbg_1.6.3-2_amd64.deb
 78eaffcbd87ef4ff836197bb4e8538b7d6decb2b 704388 libapr1-dev_1.6.3-2_amd64.deb
 a9af4e4fb46d60d576256460d69371a2709ed591 101116 libapr1_1.6.3-2_amd64.deb
Checksums-Sha256:
 0597703f9ea3bc3b30fcd7e055c67c2113e5c4255df5ff42738ce6a396bf5afc 2305 apr_1.6.3-2.dsc
 ac515f888f7157586631e3de9792ee01d239f9cbf1e768be31ee6daac61f2597 213068 apr_1.6.3-2.debian.tar.xz
 8be5e4f87d7872f5ea486a52f502ea70025f5c4a1dc0b6356a483c89f77f1300 6920 apr_1.6.3-2_amd64.buildinfo
 0139e644bb782620753979448add8145d4971a00e21a51630c932bd77072242e 290428 libapr1-dbg_1.6.3-2_amd64.deb
 5e8bbad0ac84736000725416c8d8c47bfc9fd00851fe63786369229a59861d9d 704388 libapr1-dev_1.6.3-2_amd64.deb
 df239c27ad23e2edc86b333956c6b4cd44187ddf7e2f983fca2adc8b0c21d61e 101116 libapr1_1.6.3-2_amd64.deb
Files:
 e9047bc2d071dcee1f5c2197ad365e63 2305 libs optional apr_1.6.3-2.dsc
 38603aa032dc9fcd3f570e2fadc746b2 213068 libs optional apr_1.6.3-2.debian.tar.xz
 1b462917952ca00433babb4e7b2c8703 6920 libs optional apr_1.6.3-2_amd64.buildinfo
 12abe86d6b0b3ecc6d1b202ea6585f9f 290428 debug optional libapr1-dbg_1.6.3-2_amd64.deb
 0706840bc6567780442d97433388f44c 704388 libdevel optional libapr1-dev_1.6.3-2_amd64.deb
 8272d6ebc13e5359a71e10cdc8554e8e 101116 libs optional libapr1_1.6.3-2_amd64.deb

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEOpiNza8JqByyYYsxxodfNUHO/eAFAlqS2dQACgkQxodfNUHO
/eAegg/9GvBErjrGWnhfh3cWzwgd+cvNpSQPV3vo0Tev5EFtH3AzHp2+XsLZDXzM
C9yEuK3x35CQEnWpb3wiKNAKiurVcwLfARsFDi4deEWlLUwaJpN73GAFQZevfHzu
yzDWIPBV8ixiSG2RA7Eupnr2VgJ8l3dnpH5/G7lrN1KP4J0HbowB+RNc7AyKMmEE
LZy2svJWFsYHC77dNXFM0o1MDAttUHtouZTUvhssGI6o4e8EjMSaUUtwSmkpm/QC
01P2NozFR+2RThl9mdJrki1pRXv/rVYYusPjzfHgNXHMXl0yU91dR6jdyJSN+edc
UmrpMzfmFIWQRb+HUACc7akSARy5l1epWR5yzdN9uXXOH8diI2yNpZqDqgNK2KGy
h6MBCgEib+y0IVunuf1leZSfkUU7zVaGSu5amw14hRGctZTukmnan4+aUc4ZfQJz
a+LDlKgt8bmA2i3SvlUOOLfYTSgnkELCvYjQZYkFLlDfkgbak/FZd5iLXpNSCfQh
M15oSfzt53SQqDNW9kY9ZczcnqL3KBIef3Mknai/yPof1TNz4b0PUger/hvbhRSl
bNM0qfoJnOc7fkaGpMNTSXt1X8bIk8PK8LxkTH1E491OATzWhKfIiue190M1ePsC
aQh1eoG+yyGc5U8QjDYB3/sanBmd5JATQSqZMPneooDEO57VgBk=
=G34l
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: