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

Bug#971092: marked as done (ghostscript FTCBFS: multiple reasons)



Your message dated Sun, 04 Oct 2020 12:18:26 +0000
with message-id <E1kP2yA-0007YO-JM@fasolo.debian.org>
and subject line Bug#971092: fixed in ghostscript 9.53.3~dfsg-2
has caused the Debian Bug report #971092,
regarding ghostscript FTCBFS: multiple reasons
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.)


-- 
971092: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=971092
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: ghostscript
Version: 9.53.2~dfsg-1
Tags: patch
User: debian-cross@lists.debian.org
Usertags: ftcbfs

ghostscript fails to cross build from source for a number of reasons.
The immediate reason is that it configures for the build architecture.
It actually attempts to configure twice and the second pass would
configure for the host architecture if the first one weren't failing.
The first one is completely unnecessary and should be dropped. All that
needs to be done here is telling autogen.sh not to call configure.

The second issue is that it fails finding zlib. It's a build dependency,
so it should be there, no? Almost. ghostscript is quite clever and calls
a subconfigure for auxiliary tools with the host architecture set to the
build architecture. It actually needs zlib for the build architecture.
That's achieved using a :native annotation.

It then fails running cups-config. It correctly depends on libcups2-dev,
which contains cups-config. Unfortunately, that's a host architecture
executable and cannot be run during cross builds.

The attached patch solves the first two of these issues. For cups-config
there are multiple options. One is fixing cups the other is using
pkg-config instead of cups-config if possible. Please consider applying
my patch. When doing so, please close this bug even though ghostscript
will not be cross buildable. It does hoever make the cups-config issue
more visible and easier to talk about.

Helmut
diff --minimal -Nru ghostscript-9.53.2~dfsg/debian/changelog ghostscript-9.53.2~dfsg/debian/changelog
--- ghostscript-9.53.2~dfsg/debian/changelog	2020-09-25 16:51:43.000000000 +0200
+++ ghostscript-9.53.2~dfsg/debian/changelog	2020-09-27 17:11:39.000000000 +0200
@@ -1,3 +1,12 @@
+ghostscript (9.53.2~dfsg-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Improve cross building:
+    + Don't configure during autogen.sh.
+    + zlib is needed for auxiliary tools -> build architecture.
+
+ -- Helmut Grohne <helmut@subdivi.de>  Sun, 27 Sep 2020 17:11:39 +0200
+
 ghostscript (9.53.2~dfsg-1) unstable; urgency=medium
 
   [ upstream ]
diff --minimal -Nru ghostscript-9.53.2~dfsg/debian/control ghostscript-9.53.2~dfsg/debian/control
--- ghostscript-9.53.2~dfsg/debian/control	2020-09-25 16:49:25.000000000 +0200
+++ ghostscript-9.53.2~dfsg/debian/control	2020-09-27 17:11:39.000000000 +0200
@@ -27,7 +27,7 @@
  libx11-dev,
  libxext-dev,
  libxt-dev,
- libz-dev,
+ libz-dev:native,
  pkg-config,
  rename,
 Standards-Version: 4.5.0
diff --minimal -Nru ghostscript-9.53.2~dfsg/debian/patches/cross.patch ghostscript-9.53.2~dfsg/debian/patches/cross.patch
--- ghostscript-9.53.2~dfsg/debian/patches/cross.patch	1970-01-01 01:00:00.000000000 +0100
+++ ghostscript-9.53.2~dfsg/debian/patches/cross.patch	2020-09-27 17:11:39.000000000 +0200
@@ -0,0 +1,11 @@
+--- ghostscript-9.53.2~dfsg.orig/autogen.sh
++++ ghostscript-9.53.2~dfsg/autogen.sh
+@@ -43,6 +43,8 @@
+   cp `automake --print-libdir`/install-sh . || exit 1
+ fi
+ 
++test -n "$NOCONFIGURE" && exit 0
++
+ if test -z "$*"; then
+         echo "I am going to run ./configure with no arguments - if you wish "
+         echo "to pass any to it, please specify them on the $0 command line."
diff --minimal -Nru ghostscript-9.53.2~dfsg/debian/patches/series ghostscript-9.53.2~dfsg/debian/patches/series
--- ghostscript-9.53.2~dfsg/debian/patches/series	2020-08-20 18:19:32.000000000 +0200
+++ ghostscript-9.53.2~dfsg/debian/patches/series	2020-09-27 17:09:25.000000000 +0200
@@ -9,3 +9,4 @@
 2009_use_system_javascript.patch
 2010_add_build_timestamp_setting.patch
 2011_avoid_remote_font.patch
+cross.patch
diff --minimal -Nru ghostscript-9.53.2~dfsg/debian/rules ghostscript-9.53.2~dfsg/debian/rules
--- ghostscript-9.53.2~dfsg/debian/rules	2020-09-10 19:51:24.000000000 +0200
+++ ghostscript-9.53.2~dfsg/debian/rules	2020-09-27 17:11:37.000000000 +0200
@@ -22,6 +22,9 @@
 # use upstream bootstrapping script
 DEB_DH_AUTORECONF_ARGS = ./autogen.sh
 
+# don't run configure during autogen.sh
+export NOCONFIGURE = 1
+
 # TODO: enable when supporting system-shared libjpeg
 # http://bugs.ghostscript.com/show_bug.cgi?id=696654
 DEB_CONFIGURE_EXTRA_FLAGS += --without-pcl

--- End Message ---
--- Begin Message ---
Source: ghostscript
Source-Version: 9.53.3~dfsg-2
Done: Jonas Smedegaard <dr@jones.dk>

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

Debian distribution maintenance software
pp.
Jonas Smedegaard <dr@jones.dk> (supplier of updated ghostscript 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, 04 Oct 2020 13:52:56 +0200
Source: ghostscript
Architecture: source
Version: 9.53.3~dfsg-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Printing Team <debian-printing@lists.debian.org>
Changed-By: Jonas Smedegaard <dr@jones.dk>
Closes: 971092
Changes:
 ghostscript (9.53.3~dfsg-2) unstable; urgency=medium
 .
   * improve (but not fully solve) cross build support:
     + add patch 1001 to allow skipping configure during bootstrap,
       and use that during build
     + build-depend on libz-dev:native (not libz-dev)
     closes: bug#971092, thanks to Helmut Grohne
   * simplify build;
     migrate binary package ghostscript-dbg
     to automated *-dbgsym packages;
     stop build-depend on cdbs
   * fix configure additional multi-arch paths
   * use debhelper compatibility level 12 (not 10);
     build-depend on debhelper-compat (not debhelper)
   * unfuzz patch 2009
Checksums-Sha1:
 1d93d3bb71cf828195a4fbd7e6e7f6cf93fe3991 2643 ghostscript_9.53.3~dfsg-2.dsc
 4cd34e55789c1517ff2577335fed93094f8307ba 112064 ghostscript_9.53.3~dfsg-2.debian.tar.xz
 6b0cedf7e547e0aadefc6f32e773366ef211e9f6 11624 ghostscript_9.53.3~dfsg-2_amd64.buildinfo
Checksums-Sha256:
 6ac28beeb1157f483d3fa4c681d83400d1363b839f1bfd28ecf62075e3aac4ab 2643 ghostscript_9.53.3~dfsg-2.dsc
 427d3bf1277d1ba7ed95ba436fceae87ca1277b64f5882347a079a5c071de835 112064 ghostscript_9.53.3~dfsg-2.debian.tar.xz
 cce4b5082512d23581cff694a9d4ee6cef092b513609f053a51ca03666554826 11624 ghostscript_9.53.3~dfsg-2_amd64.buildinfo
Files:
 c05fb09b4a49ac486ec3c14783351db1 2643 text optional ghostscript_9.53.3~dfsg-2.dsc
 8c7c9dcd3897ebd6a449713a56184123 112064 text optional ghostscript_9.53.3~dfsg-2.debian.tar.xz
 cc20ca2c6599dbbbd2f93cf1bb93537e 11624 text optional ghostscript_9.53.3~dfsg-2_amd64.buildinfo

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

iQIzBAEBCgAdFiEEn+Ppw2aRpp/1PMaELHwxRsGgASEFAl95uq8ACgkQLHwxRsGg
ASGteg/9GUZjJyEIfTWnodN9npqZ8KxzYdP49c4tEY6EU6k1htq+jQ4d+tHyp6RJ
gDGmSkHVroHr7NgCEVTSKq/P15kNoGnRr1IofLiwUYIexublcThyDuhq6gVuTDqZ
2xmL8IrF//abZwpuxnc0Pvo4e514o2aaEFqY734lOABfOXuKRz8lizcSLCo+AAj8
YYh2h9CpTTthS2PL6UhFLIgvZu+seAaKqtVXh2l26IANQO5uo7XKs5eUZp6YDeTG
tqEA3t5WxhyORMdPRhMugelwoWeltXkhSm2CS2LLNRDWAkNPeyPqto6W9mMCrvmD
FdLcYkl0UJHlbm8vFjmjQKkLJDwiSj8I+g6DtbPasZE+V9+swF5JRuoSld+TWZj/
k1S3OAkxDj9eoCy6PRylHJP8nu8BC2y+tRioIWy7UHlXctNKcUCEOED4RNzTmZI8
aeh37DaUkzVfZYqhFVdI/0WdOwGEOjNKmOBWQVh7hxNgI5C657DGujGxU5k7eC23
o1m7yBt8+NUs9rivILUuJWDOo4nJ96UcWAlyjVdMotQaINmuRAWprrSdBKbOP/Pl
JvGPzdEy1db4jHux2JWq+TooAztqXk1U32uJCqPCFKr377WZLg4USVy4uW+Uo8Uy
L0qJanpB31C0jk1HDRmOpvk/r54/Cw/uGmqPv/0tmGHyxSPKdkM=
=BCo5
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: