Your message dated Sun, 28 Oct 2018 09:01:20 +0000
with message-id <[email protected]>
and subject line Bug#903319: fixed in mupdf 1.14.0+ds1-1
has caused the Debian Bug report #903319,
regarding mupdf FTCBFS: uses the build architecture pkg-config
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.)
--
903319: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=903319
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: mupdf
Version: 1.13.0+ds1-2
Tags: patch upstream
User: [email protected]
Usertags: rebootstrap
Thank you for quickly applying my other patch. Now mupdf still fails to
cross build, because it uses the build architecture pkg-config and thus
fails to find a pile of .pc files. The attached pkgconfig.patch fixes
that and I think it is something upstream could reasonably maintain.
Then it fails running hexdump.exe. That's due to building hexdump.exe
with the host architecture compiler (called $(CC)) rather than the build
architecture compiler (often called $(CC_FOR_BUILD) or $(BUILD_CC)). The
next patch ccforbuild.patch adds a new variable CC_FOR_BUILD and
defaults it to $(CC). It then makes hexdump.exe and namedump.exe use
$(CC_FOR_BUILD). In order to properly support it from Debian you also
need to set up this variable as the $(CC) default is again the host
architecture compiler. Exporting CC_FOR_BUILD=cc is enough.
Alternatively, letting /usr/share/dpkg/buildtools.mk supply it works as
well. This patch also looks like something upstream could reasonably
maintain, but they may have a preference on the variable name.
After applying both patches, mupdf still cross builds from source as it
fails to run cmapdump.exe. That tool tightly integrates into a pile of
mupdf source files and it is not very obvious whether switching the
compiler works here. My knowledge of mupdf is too limited to help here.
Nevertheless, I ask you to fix the issues that are understood (calling
pkg-config and compiling hexdump.exe and namedump.exe) e.g. using the
supplied patches. Please close this bug when doing so. It will allow
others to immediately spot the remaining failure in public cross build
logs.
Thanks for your help
Helmut
--- mupdf-1.13.0+ds1.orig/Makerules
+++ mupdf-1.13.0+ds1/Makerules
@@ -6,6 +6,8 @@
OS := $(OS:Windows_NT=MINGW)
OS := $(OS:Darwin=MACOS)
+PKG_CONFIG ?= pkg-config
+
HAVE_LIBDL ?= yes
CFLAGS += -Wall -Wdeclaration-after-statement
@@ -100,43 +102,43 @@
SYS_GLUT_CFLAGS :=
SYS_GLUT_LIBS := -lglut -lGL
-ifeq "$(shell pkg-config --exists 'libcrypto >= 1.1.0' && echo yes)" "yes"
+ifeq "$(shell $(PKG_CONFIG) --exists 'libcrypto >= 1.1.0' && echo yes)" "yes"
HAVE_LIBCRYPTO := yes
-SYS_LIBCRYPTO_CFLAGS := -DHAVE_LIBCRYPTO $(shell pkg-config --cflags libcrypto)
-SYS_LIBCRYPTO_LIBS := $(shell pkg-config --libs libcrypto)
+SYS_LIBCRYPTO_CFLAGS := -DHAVE_LIBCRYPTO $(shell $(PKG_CONFIG) --cflags libcrypto)
+SYS_LIBCRYPTO_LIBS := $(shell $(PKG_CONFIG) --libs libcrypto)
endif
-ifeq "$(shell pkg-config --exists libcurl && echo yes)" "yes"
+ifeq "$(shell $(PKG_CONFIG) --exists libcurl && echo yes)" "yes"
HAVE_CURL := yes
-SYS_CURL_CFLAGS := $(shell pkg-config --cflags libcurl)
-SYS_CURL_LIBS := $(shell pkg-config --libs libcurl)
-ifeq "$(shell pkg-config --exists openssl && echo yes)" "yes"
+SYS_CURL_CFLAGS := $(shell $(PKG_CONFIG) --cflags libcurl)
+SYS_CURL_LIBS := $(shell $(PKG_CONFIG) --libs libcurl)
+ifeq "$(shell $(PKG_CONFIG) --exists openssl && echo yes)" "yes"
HAVE_OPENSSL_SSL := yes
-SYS_CURL_CFLAGS += $(shell pkg-config --cflags openssl)
-SYS_CURL_DEPS += $(shell pkg-config --libs openssl)
+SYS_CURL_CFLAGS += $(shell $(PKG_CONFIG) --cflags openssl)
+SYS_CURL_DEPS += $(shell $(PKG_CONFIG) --libs openssl)
endif
endif
SYS_CURL_DEPS += -lpthread -lrt
-ifeq "$(shell pkg-config --exists x11 xext && echo yes)" "yes"
+ifeq "$(shell $(PKG_CONFIG) --exists x11 xext && echo yes)" "yes"
HAVE_X11 := yes
-SYS_X11_CFLAGS := $(shell pkg-config --cflags x11 xext)
-SYS_X11_LIBS := $(shell pkg-config --libs x11 xext)
+SYS_X11_CFLAGS := $(shell $(PKG_CONFIG) --cflags x11 xext)
+SYS_X11_LIBS := $(shell $(PKG_CONFIG) --libs x11 xext)
endif
-ifeq "$(shell pkg-config --exists harfbuzz && echo yes)" "yes"
-SYS_HARFBUZZ_CFLAGS := $(shell pkg-config --cflags harfbuzz)
-SYS_HARFBUZZ_LIBS := $(shell pkg-config --libs harfbuzz)
+ifeq "$(shell $(PKG_CONFIG) --exists harfbuzz && echo yes)" "yes"
+SYS_HARFBUZZ_CFLAGS := $(shell $(PKG_CONFIG) --cflags harfbuzz)
+SYS_HARFBUZZ_LIBS := $(shell $(PKG_CONFIG) --libs harfbuzz)
endif
-ifeq "$(shell pkg-config --exists freetype2 && echo yes)" "yes"
-SYS_FREETYPE_CFLAGS := $(shell pkg-config --cflags freetype2)
-SYS_FREETYPE_LIBS := $(shell pkg-config --libs freetype2)
+ifeq "$(shell $(PKG_CONFIG) --exists freetype2 && echo yes)" "yes"
+SYS_FREETYPE_CFLAGS := $(shell $(PKG_CONFIG) --cflags freetype2)
+SYS_FREETYPE_LIBS := $(shell $(PKG_CONFIG) --libs freetype2)
endif
-ifeq "$(shell pkg-config --exists libopenjp2 && echo yes)" "yes"
-SYS_OPENJPEG_CFLAGS := $(shell pkg-config --cflags libopenjp2)
-SYS_OPENJPEG_LIBS := $(shell pkg-config --libs libopenjp2)
+ifeq "$(shell $(PKG_CONFIG) --exists libopenjp2 && echo yes)" "yes"
+SYS_OPENJPEG_CFLAGS := $(shell $(PKG_CONFIG) --cflags libopenjp2)
+SYS_OPENJPEG_LIBS := $(shell $(PKG_CONFIG) --libs libopenjp2)
endif
SYS_JBIG2DEC_LIBS := -ljbig2dec
--- mupdf-1.13.0+ds1.orig/Makerules
+++ mupdf-1.13.0+ds1/Makerules
@@ -6,6 +6,8 @@
OS := $(OS:Windows_NT=MINGW)
OS := $(OS:Darwin=MACOS)
+CC_FOR_BUILD ?= $(CC)
+
HAVE_LIBDL ?= yes
CFLAGS += -Wall -Wdeclaration-after-statement
--- mupdf-1.13.0+ds1.orig/Makefile
+++ mupdf-1.13.0+ds1/Makefile
@@ -180,6 +180,8 @@
# --- Generated PDF name tables ---
NAMEDUMP_EXE := $(OUT)/scripts/namedump.exe
+$(NAMEDUMP_EXE): scripts/namedump.c | $(ALL_DIR)
+ $(QUIET_CC) $(CC_FOR_BUILD) $(CFLAGS) $< -o $@
include/mupdf/pdf.h : include/mupdf/pdf/name-table.h
NAME_GEN := include/mupdf/pdf/name-table.h source/pdf/pdf-name-table.h
@@ -197,6 +199,8 @@
# --- Generated embedded font files ---
HEXDUMP_EXE := $(OUT)/scripts/hexdump.exe
+$(HEXDUMP_EXE): scripts/hexdump.c | $(ALL_DIR)
+ $(QUIET_CC) $(CC_FOR_BUILD) $(CFLAGS) -o $@ $<
FONT_BIN_DROID := $(sort $(wildcard resources/fonts/droid/*.ttf))
FONT_BIN_NOTO := $(sort $(wildcard resources/fonts/noto/*.ttf))
--- End Message ---
--- Begin Message ---
Source: mupdf
Source-Version: 1.14.0+ds1-1
We believe that the bug you reported is fixed in the latest version of
mupdf, 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.
Kan-Ru Chen (陳侃如) <[email protected]> (supplier of updated mupdf 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: Sun, 28 Oct 2018 14:48:12 +0900
Source: mupdf
Binary: libmupdf-dev mupdf mupdf-tools
Architecture: source amd64
Version: 1.14.0+ds1-1
Distribution: unstable
Urgency: medium
Maintainer: Kan-Ru Chen (陳侃如) <[email protected]>
Changed-By: Kan-Ru Chen (陳侃如) <[email protected]>
Description:
libmupdf-dev - development files for the MuPDF viewer
mupdf - lightweight PDF viewer
mupdf-tools - command line tools for the MuPDF viewer
Closes: 900129 903319
Changes:
mupdf (1.14.0+ds1-1) unstable; urgency=medium
.
* New upstream version 1.14.0+ds1
- Fixes CVE-2018-1000036 (Closes: #900129, upstream bug 699695)
* d/patches: fresh patches
* d/rules: adjust to work with updated upstream Makefile
* d/rules: Set CC_FOR_BUILD (Closes: #903319)
Checksums-Sha1:
bc617733e88e235aea20966f07483cf7b0ebce4c 2156 mupdf_1.14.0+ds1-1.dsc
2321618e56a908cfa3444f019f805d688d9fa127 24348296 mupdf_1.14.0+ds1.orig.tar.xz
ca80a55e7f2a96a016c05e224987c1f785980547 26532 mupdf_1.14.0+ds1-1.debian.tar.xz
9884c035c8198eb3e6a126c6a106bec77ccfd472 22556068
libmupdf-dev_1.14.0+ds1-1_amd64.deb
18ba651146aed3d0aa3e768ee4b5081b824eda87 2972192
mupdf-dbgsym_1.14.0+ds1-1_amd64.deb
612958bfa45f9a920f78362408ed2adc3d49b4b7 3263740
mupdf-tools-dbgsym_1.14.0+ds1-1_amd64.deb
0ba8094d37f828c13143060b9707d0be3e7d57ad 20089468
mupdf-tools_1.14.0+ds1-1_amd64.deb
2dfb85fea5fe63c6f99c935ef4ed31b6cc88c875 11181
mupdf_1.14.0+ds1-1_amd64.buildinfo
185f95eba9b1bd33c36e4f21eae788e1a7e25c9a 19993828 mupdf_1.14.0+ds1-1_amd64.deb
Checksums-Sha256:
5081694299959c4fa49bda4ab5035e414b6f989baf74ab67c45b05e4668b7fc7 2156
mupdf_1.14.0+ds1-1.dsc
289b4f5cb4ffa2f4c9ca67fda5a48deb9615f2ca51f276b5fd9318b62329cc93 24348296
mupdf_1.14.0+ds1.orig.tar.xz
7f427383072f345a52266e2ac95df2a46329b1c5189f9a209917b72b543d8d2f 26532
mupdf_1.14.0+ds1-1.debian.tar.xz
cdfaaf6513cf480daae23907cc252621e53e36b6b9fe51411f80de2573862641 22556068
libmupdf-dev_1.14.0+ds1-1_amd64.deb
cc452c30cf413f1d4e52820b186b58f57cbc05fd9a9ec84bb667e6b92c8fafd7 2972192
mupdf-dbgsym_1.14.0+ds1-1_amd64.deb
f809a532b1c7be8a1c914365176dd72205e5f3403a529067052774eb8b3b388c 3263740
mupdf-tools-dbgsym_1.14.0+ds1-1_amd64.deb
aa8db8ad436620b491617494d74fb4d22e65dac1fb334b3c32dbcd15b66bf0d2 20089468
mupdf-tools_1.14.0+ds1-1_amd64.deb
c71b6254af70d60c9c716030320298245302a2c6899ebb3326ff605266e87bd1 11181
mupdf_1.14.0+ds1-1_amd64.buildinfo
0873adce00699e1e5a0dd7fcf25d8e5597bb1c156435b61dcea4d01672ac2c44 19993828
mupdf_1.14.0+ds1-1_amd64.deb
Files:
9dfd0e9e512cb57a291d023021efea15 2156 text optional mupdf_1.14.0+ds1-1.dsc
10b771cd3389a4e0b8a0deceb5254e96 24348296 text optional
mupdf_1.14.0+ds1.orig.tar.xz
50cea91caeaa2cc203bb08110b334220 26532 text optional
mupdf_1.14.0+ds1-1.debian.tar.xz
e106dfa86411c6a16c62c68b266cc407 22556068 libdevel optional
libmupdf-dev_1.14.0+ds1-1_amd64.deb
e68ff402da664e21bafa5505d678f8cd 2972192 debug optional
mupdf-dbgsym_1.14.0+ds1-1_amd64.deb
951bf06266fe040581d7f6741f74c92d 3263740 debug optional
mupdf-tools-dbgsym_1.14.0+ds1-1_amd64.deb
1319c1a0dd6e4965b015a4dba87603f0 20089468 text optional
mupdf-tools_1.14.0+ds1-1_amd64.deb
148326951be91da4ac8a3f20497837dc 11181 text optional
mupdf_1.14.0+ds1-1_amd64.buildinfo
5b92226bab473a63ddba03ad127d5c8f 19993828 text optional
mupdf_1.14.0+ds1-1_amd64.deb
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEE2JDTPWFH4vUeM4aHCjk1SrblfeEFAlvVTxwACgkQCjk1Srbl
feFInw//ZqZ/JuOmuK1HMKjNXT3d1D6iWDMExPagLvWFfNM2XjbJIfVKm4ywY/OX
2Kwq78QIZ0l2yzBD+RdawJzJN1ZjkWEeT/GTiuTO/c3o+LRBO44E0ELKIKG/4sbz
rJ2WPtGsByVa7Fba9WD7Fg4NgG7jP2akVDUSOlG6Ba+jvT8BYUeIyRK9UQ6ZWYth
HGmNJHoo5CsyHDf/jVT+J+T2EdaGNyK45UyncMfFySdXROXA7RNpaDpYrjkItdWB
dlN5s33iPsItBEkqQX9YiDv72qDFao+egjVMs7IWCo+aZolZP8ajK2ZEmuu+8Yfg
Me1xWnpaOJaefzFpJZhfdUmytU8l4DfItwbkV05SgmSsXQRNlSjWh8tYEtH7WPAz
nTcBf3U/fXlRhh14qxSUkmHE81Jz/bWqQsLB36wCYOp6Ay1FFF7jwnigE5gf1dJO
q2Yk8Wzc6wLtyZjOEUnuHZsDpnxNQSgN5V6OZs0VnujfJR+gQA6T+NoDAkDqnGRH
+lqrU03aQeawzJrXH5ss/Gg/S0Esu6YLeCfgqD0qYjfeWDF66P4YhThp6ZhSdtVx
PCZuGCrbjb2DFqIN2H8uEEpUD8HfB469QJ960iFTLoO6BGi8mojUW58wGzw43pcK
Iv/YP2BeZkr0/QQBinRiHVzsPOXiZ6R2ZY6vCQuk4AK7VMKp8CE=
=Y28E
-----END PGP SIGNATURE-----
--- End Message ---