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

Bug#794546: marked as done (cross-gcc-dev: Non-empty SUFFIX causes package build failures)

Your message dated Mon, 16 Nov 2015 03:34:28 +0000
with message-id <E1ZyAYm-0004Fu-21@franck.debian.org>
and subject line Bug#794546: fixed in cross-gcc 58
has caused the Debian Bug report #794546,
regarding cross-gcc-dev: Non-empty SUFFIX causes package build failures
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

794546: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=794546
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: cross-gcc-dev
Version: 45
Severity: normal
Tags: patch

Using a non-empty SUFFIX when generating sources causes subsequent build
failures of cross-gcc packages.

To reproduce:

$ TARGET_LIST=arm64 HOST_LIST=amd64 SUFFIX=.1 cross-gcc-gensource 4.9
$ cd cross-gcc-packages-amd64/cross-gcc-4.9-arm64
$ dpkg-buildpackage -us -uc

Which results in the following build failure:

repacking cpp-4.9-aarch64-linux-gnu_4.9.2-10_amd64.deb ...
dpkg-deb: building package `cpp-4.9-aarch64-linux-gnu' in `../cpp-4.9-aarch64
repacking gcc-4.9-aarch64-linux-gnu_4.9.2-10_amd64.deb ...
dpkg-deb: building package `gcc-4.9-aarch64-linux-gnu' in `../gcc-4.9-aarch64
repacking g++-4.9-aarch64-linux-gnu_4.9.2-10_amd64.deb ...
dpkg-deb: building package `g++-4.9-aarch64-linux-gnu' in `../g++-4.9-aarch64
repacking gfortran-4.9-aarch64-linux-gnu_4.9.2-10_amd64.deb ...
dpkg-deb: building package `gfortran-4.9-aarch64-linux-gnu' in
START mangle-debian-files
Debs: cpp-4.9-aarch64-linux-gnu_4.9.2-10_amd64.deb gcc-4.9-aarch64-linux-
gnu_4.9.2-10_amd64.deb g++-4.9-aarch64-linux-gnu_4.9.2-10_amd64.deb
 dpkg-genchanges  >../cross-gcc-4.9-arm64_44.1_amd64.changes
dpkg-genchanges: including full source code in upload
dpkg-genchanges: error: cannot fstat file ../cpp-4.9-aarch64-linux-
gnu_4.9.2-10_amd64.deb: No such file or directory
dpkg-buildpackage: error: dpkg-genchanges gave error exit status 2

The problem is in the rules file:

After building the packages, debian/files is generated using the macro
generate_debian_files from rules.generic. The package versions written to
debian/files are incorrect (they are missing the SUFFIX) which causes dpkg-
genchanges to fail. The attached patch fixes this issue.

Juerg Haefliger
>From 408b58b1f068d91afe81ed8f2412c6aaa6ecf9a9 Mon Sep 17 00:00:00 2001
From: Juerg Haefliger <juerg.haefliger@hp.com>
Date: Mon, 3 Aug 2015 13:46:23 +0200
Subject: [PATCH] Use FINAL_VER_GCC as package version in debian/files

When using a non-empty SUFFIX, the final package version FINAL_VER_GCC
is different from DEB_VER_GCC (the version from the gcc-x.y-source
package). When creating debian/files, the versions of the listed
packages need to be modified accordingly. Otherwise there's a mismatch
which causes dpkg-genchanges to fail.

Signed-off-by: Juerg Haefliger <juerg.haefliger@hp.com>
 template/rules.generic | 1 +
 1 file changed, 1 insertion(+)

diff --git a/template/rules.generic b/template/rules.generic
index a0fb57b..92c614f 100755
--- a/template/rules.generic
+++ b/template/rules.generic
@@ -242,6 +242,7 @@ define generate_debian_files
 		dpkg-deb -f $$deb Priority | tr -d "\n"  >>debian/files; \
 		echo "" >>debian/files; \
+	sed -i -e 's/_$(DEB_VER_GCC)_/_$(FINAL_VER_GCC)_/' debian/files
 mangle-debian-files: $(stamp)debian-files-base repack-debs

--- End Message ---
--- Begin Message ---
Source: cross-gcc
Source-Version: 58

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

Debian distribution maintenance software
Dima Kogan <dima@secretsauce.net> (supplier of updated cross-gcc 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: Sun, 15 Nov 2015 19:05:37 -0800
Source: cross-gcc
Binary: cross-gcc-dev
Architecture: source all
Version: 58
Distribution: unstable
Urgency: medium
Maintainer: Debian Cross-Toolchain Team <debian-toolchain@lists.debian.org>
Changed-By: Dima Kogan <dima@secretsauce.net>
 cross-gcc-dev - Tools for building cross-compilers and cross-compiler packages
Closes: 794546
 cross-gcc (58) unstable; urgency=medium
   * Bug fix: "Non-empty SUFFIX causes package build failures", thanks to
     Juerg Haefliger (Closes: #794546).
 683e38f72c8c693acc9fd44be00b434713c76d65 1303 cross-gcc_58.dsc
 e3cc8c72d65976fd1a04463dc1c4299c88221094 26336 cross-gcc_58.tar.xz
 8cfe28c8f57ce5db9bb716a27af93ae6edfca5f0 27918 cross-gcc-dev_58_all.deb
 aad7a958a1039e5a8e96e4907e24e14d48777a47597fd8d44660d533b852832b 1303 cross-gcc_58.dsc
 acaaa0f2c227cb68853f0a81b3b637f08e779e2e4d0ef3264e36909a30e300c1 26336 cross-gcc_58.tar.xz
 f1cf2d1894e62f33e5632adb562359aa4031304f542969eb0cdba855bb9e0acc 27918 cross-gcc-dev_58_all.deb
 dea4e9c2395c28e8996d812d17e69333 1303 devel extra cross-gcc_58.dsc
 fb45cda220d7d40cb78328d2ff4a3d02 26336 devel extra cross-gcc_58.tar.xz
 6b1d6ca13434796478f04e4bbfb06c82 27918 devel extra cross-gcc-dev_58_all.deb

Version: GnuPG v1


--- End Message ---

Reply to: