--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: mplayer FTCBFS: multiple reasons
- From: Helmut Grohne <helmut@subdivi.de>
- Date: Tue, 28 Feb 2023 21:42:41 +0100
- Message-id: <Y/5nQe4hNhJwPJmd@alf.mars>
Source: mplayer
Version: 2:1.5+svn38408-1
Tags: patch
User: debian-cross@lists.debian.org
Usertags: ftcbfs
mplayer fails to cross build from source for quite a number of reasons.
It has a quite unique configure script that doesn't work with standard
cross compilation flags. I figured that you need --target,
--enable-cross-compile, --cc, and --host-cc (with a meaning that differs
from dpkg's meaning of "host"). Beyond that, it hard codes the build
architecture pkg-config in really a lot of places. Instead of adding a
gigantic patch for this, I opt for adding a wrapper script. It also
requires libavutil-dev for the build architecture. I'm attaching a patch
for your convenience. Note that you must chmod +x
debian/devbin/pkg-config after applying it for it to work.
Helmut
diff --minimal -Nru mplayer-1.5+svn38408/debian/changelog mplayer-1.5+svn38408/debian/changelog
--- mplayer-1.5+svn38408/debian/changelog 2023-01-26 20:14:25.000000000 +0100
+++ mplayer-1.5+svn38408/debian/changelog 2023-02-28 21:19:56.000000000 +0100
@@ -1,3 +1,13 @@
+mplayer (2:1.5+svn38408-1.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix FTCBFS: (Closes: #-1)
+ + Pass cross compilation flags to configure.
+ + Inject a pkg-config for host into $PATH.
+ + Missing Build-Depends: libavutil-dev:native.
+
+ -- Helmut Grohne <helmut@subdivi.de> Tue, 28 Feb 2023 21:19:56 +0100
+
mplayer (2:1.5+svn38408-1) unstable; urgency=medium
[ Debian Janitor ]
diff --minimal -Nru mplayer-1.5+svn38408/debian/control mplayer-1.5+svn38408/debian/control
--- mplayer-1.5+svn38408/debian/control 2023-01-26 20:14:25.000000000 +0100
+++ mplayer-1.5+svn38408/debian/control 2023-02-28 21:19:56.000000000 +0100
@@ -22,6 +22,7 @@
libavcodec-dev,
libavformat-dev,
libavutil-dev,
+ libavutil-dev:native,
libbluray-dev,
libbs2b-dev,
libcaca-dev,
diff --minimal -Nru mplayer-1.5+svn38408/debian/devbin/pkg-config mplayer-1.5+svn38408/debian/devbin/pkg-config
--- mplayer-1.5+svn38408/debian/devbin/pkg-config 1970-01-01 01:00:00.000000000 +0100
+++ mplayer-1.5+svn38408/debian/devbin/pkg-config 2023-02-28 21:19:56.000000000 +0100
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec "${DEB_HOST_GNU_TYPE}-pkg-config" "$@"
diff --minimal -Nru mplayer-1.5+svn38408/debian/rules mplayer-1.5+svn38408/debian/rules
--- mplayer-1.5+svn38408/debian/rules 2023-01-26 20:14:25.000000000 +0100
+++ mplayer-1.5+svn38408/debian/rules 2023-02-28 21:19:56.000000000 +0100
@@ -8,6 +8,7 @@
.NOTPARALLEL:
include /usr/share/dpkg/architecture.mk
+include /usr/share/dpkg/buildtools.mk
CFLAGS +=$(CPPFLAGS)
@@ -74,6 +75,17 @@
sound_backend := alsa,oss
endif
+ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
+ifeq ($(archconf),)
+ archconf += --target=$(DEB_HOST_GNU_CPU)-$(DEB_HOST_ARCH_OS)
+endif
+ archconf += \
+ --enable-cross-compile \
+ --cc=$(CC) \
+ --host-cc=$(CC_FOR_BUILD)
+ export PATH:=$(CURDIR)/debian/devbin:$(PATH)
+endif
+
%:
dh $@
--- End Message ---
--- Begin Message ---
Source: mplayer
Source-Version: 2:1.5+svn38423-1
Done: Lorenzo Puliti <plorenzo@disroot.org>
We believe that the bug you reported is fixed in the latest version of
mplayer, 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 1032158@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Lorenzo Puliti <plorenzo@disroot.org> (supplier of updated mplayer 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: Tue, 23 May 2023 15:02:42 +0200
Source: mplayer
Architecture: source
Version: 2:1.5+svn38423-1
Distribution: experimental
Urgency: medium
Maintainer: Debian Multimedia Maintainers <debian-multimedia@lists.debian.org>
Changed-By: Lorenzo Puliti <plorenzo@disroot.org>
Closes: 842809 1032158 1036170
Changes:
mplayer (2:1.5+svn38423-1) experimental; urgency=medium
.
* update copyright for debian files
* Fix FTCBFS: (Closes: #1032158)
- Pass cross compilation flags to configure.
- Inject a pkg-config for host into $PATH.
- Missing Build-Depends: libavutil-dev:native.
Thanks to Helmut Grohne <helmut@subdivi.de>
* mplayer-gui: add Native Language Support: (Closes: #1036170)
- build the gui variant with --enable-nls
- generate and install *.mo files
- clean up the temporary dir for .mo files
Thanks to Ingo Brückl <ib@wupperonline.de>
* mplayer-gui: add missing MIME types to desktop file.
Thanks to Petter Reinholdtsen <pere@hungry.com> (Closes: #842809)
* Automate version in in d/rules
* New upstream snapshot 1.5+svn38423
Checksums-Sha1:
8a8f78ac080977fefa6823be0f06cec41e3f53c9 3250 mplayer_1.5+svn38423-1.dsc
da266ff306d0199fedad9de705422a91c303543d 16204700 mplayer_1.5+svn38423.orig.tar.gz
1c405acefa711bc0b06dbe4cb9b9d9eb85291b83 34816 mplayer_1.5+svn38423-1.debian.tar.xz
d47a31a5008aae41a2a7e11ecd9f71bef036c1a5 17572 mplayer_1.5+svn38423-1_source.buildinfo
Checksums-Sha256:
6268f61d8814b968732fb7bdbcd9b0aaf53404dc8d0a22c9ded2417390e6c496 3250 mplayer_1.5+svn38423-1.dsc
06ed2573f83557d259f9afda753783d24af3a1d9d24267e6a3b0857f1028c3eb 16204700 mplayer_1.5+svn38423.orig.tar.gz
1cf0edecef4f60983d833387132afaece7194b7acbda98b38af46c0875a61c8a 34816 mplayer_1.5+svn38423-1.debian.tar.xz
0ebcb288668183ff721cd3e6df65327d1517d5c133fadee613bf8054e5d3f2bd 17572 mplayer_1.5+svn38423-1_source.buildinfo
Files:
4dd43b45409fcb4175f49faf8db05f31 3250 video optional mplayer_1.5+svn38423-1.dsc
211d293534fe1a053bb5b90c969a2118 16204700 video optional mplayer_1.5+svn38423.orig.tar.gz
9d95c6ca81436b9bd4b383b9378ae884 34816 video optional mplayer_1.5+svn38423-1.debian.tar.xz
20289fda1d8b36a8020d59f4e6b9674e 17572 video optional mplayer_1.5+svn38423-1_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEkjZVexcMh/iCHArDweDZLphvfH4FAmRx2pkACgkQweDZLphv
fH6d5Q/+PIhxnlXvDTfVgoa0Migz3WgxGRsOqmghgiqwZulLWSwteY80cLOKZ+lP
ZySTYUyeuGGTtejhuEcR5VMqjcpHOObgZXbPkjbePL5XX8OxjZ7Yk1bz9OhsQ1OG
8gF8RX8bbQyJ+QweqvnT83tNmuKQ4Fis8GPn0Hpnk+S4cRkopx4Lr2O5+AnZi0aH
MbVr0p1f70DnXU8K++QuF61+39B4VwhBFrRxQWm2lTR6ARaQJcSvEOaJ80kUH4Qe
D2TeVoA5REGxNxbfTasefKX+mFiJUu/uREpec7jtgEkSpsJAM100J6WFklSk7LQ2
FUul7VoCVLprDYRC4hpVZQ8tKLwiQ24360gZlexAJ2eb2BVZFEQ/r4x3ViYfMfP8
iEZ3vF/hSF71qafIAGIOCm/cv98/lvPV7R3HQNb+Yst5MKzbpW0MbyVmDVOam6+7
a8LTFHJKvbeoeOxXaya8nJWiqTgl5m3OC0k0JKrK8804hehTQ43X3ebb2w0pquRY
4hPHEXRFCeZEz75eeGTyIo2d+rx6GzTA29ZggIN4Ub5QIF4ZkbHT+q0Dcq1qiSrh
Zp5EeVxzmMNcENCyougT0/A4ino3SbkBFTdslyFWXwf6u5VwiNXa57rflb7Z3Zjl
aklWxeVelhd+5fEyq3mAs/jIKuNvPYmKbytJu8uNb/KMOGgBwKM=
=zp/p
-----END PGP SIGNATURE-----
--- End Message ---