--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: rpcsvc-proto FTCBFS: runs the built rpcgen
- From: Helmut Grohne <helmut@subdivi.de>
- Date: Wed, 30 Nov 2022 08:26:49 +0100
- Message-id: <Y4cFubDfOQ5ia3ux@alf.mars>
Source: rpcsvc-proto
Version: 1.4.2-4
Tags: patch
User: debian-cross@lists.debian.org
Usertags: ftcbfs
rpcsvc-proto fails to cross build from source, because it runs the just
built rpcgen during build. There are basically two ways to fix this. One
is modifying the upstream build system to build rpcgen twice (for build
and for host). The other is adding a self-dependency and running the
installed rpcgen. Since the latter is far simpler, I'm attaching a patch
for that variant. Do you find that acceptable?
Helmut
diff --minimal -Nru rpcsvc-proto-1.4.2/debian/changelog rpcsvc-proto-1.4.2/debian/changelog
--- rpcsvc-proto-1.4.2/debian/changelog 2021-08-18 22:04:55.000000000 +0200
+++ rpcsvc-proto-1.4.2/debian/changelog 2022-11-30 08:22:32.000000000 +0100
@@ -1,3 +1,10 @@
+rpcsvc-proto (1.4.2-4.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix FTCBFS: Run the installed rpcgen during cross builds. (Closes: #-1)
+
+ -- Helmut Grohne <helmut@subdivi.de> Wed, 30 Nov 2022 08:22:32 +0100
+
rpcsvc-proto (1.4.2-4) unstable; urgency=medium
* Bump the breaks + replace version to 2.31-14. Thanks to Simon McVittie for
diff --minimal -Nru rpcsvc-proto-1.4.2/debian/control rpcsvc-proto-1.4.2/debian/control
--- rpcsvc-proto-1.4.2/debian/control 2021-08-18 22:04:42.000000000 +0200
+++ rpcsvc-proto-1.4.2/debian/control 2022-11-30 08:20:02.000000000 +0100
@@ -3,7 +3,7 @@
Priority: optional
Maintainer: GNU Libc Maintainers <debian-glibc@lists.debian.org>
Uploaders: Aurelien Jarno <aurel32@debian.org>, Josue Ortega <josue@debian.org>
-Build-Depends: debhelper-compat (= 13)
+Build-Depends: debhelper-compat (= 13), rpcsvc-proto <cross>
Rules-Requires-Root: no
Standards-Version: 4.6.0
Vcs-Browser: https://salsa.debian.org/glibc-team/rpcsvc-proto
diff --minimal -Nru rpcsvc-proto-1.4.2/debian/rules rpcsvc-proto-1.4.2/debian/rules
--- rpcsvc-proto-1.4.2/debian/rules 2020-08-19 23:45:51.000000000 +0200
+++ rpcsvc-proto-1.4.2/debian/rules 2022-11-30 08:22:32.000000000 +0100
@@ -1,4 +1,13 @@
#!/usr/bin/make -f
+include /usr/share/dpkg/architecture.mk
+
%:
dh $@
+
+ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
+execute_before_dh_auto_build:
+ set -e; for f in rpcsvc/*.x; do \
+ rpcgen -h -o $${f%.x}.h $$f; \
+ done
+endif
--- End Message ---
--- Begin Message ---
Source: rpcsvc-proto
Source-Version: 1.4.3-1
Done: Aurelien Jarno <aurel32@debian.org>
We believe that the bug you reported is fixed in the latest version of
rpcsvc-proto, 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 1025148@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Aurelien Jarno <aurel32@debian.org> (supplier of updated rpcsvc-proto 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: Fri, 02 Dec 2022 22:30:20 +0100
Source: rpcsvc-proto
Architecture: source
Version: 1.4.3-1
Distribution: unstable
Urgency: medium
Maintainer: GNU Libc Maintainers <debian-glibc@lists.debian.org>
Changed-By: Aurelien Jarno <aurel32@debian.org>
Closes: 1025148
Changes:
rpcsvc-proto (1.4.3-1) unstable; urgency=medium
.
[ Aurelien Jarno ]
* New upstream version.
* Update debian/copyright.
* Bump Standards-Version to 4.6.1 (no changes).
.
[ Helmut Grohne ]
* Fix FTCBFS: Run the installed rpcgen during cross builds. Closes:
#1025148)
Checksums-Sha1:
3f1e8f97337839199af2b9500a54c88f3e82a657 1999 rpcsvc-proto_1.4.3-1.dsc
e08f0ca92c0d6ff6248462ff4bbc6290970b257f 167964 rpcsvc-proto_1.4.3.orig.tar.xz
7c797234570a47c3c6c87c213f3ed2a4558d3a7d 4228 rpcsvc-proto_1.4.3-1.debian.tar.xz
bd333a0ab1c28d4342d88bbc512e9012763948d7 5752 rpcsvc-proto_1.4.3-1_source.buildinfo
Checksums-Sha256:
7d8e122bd18b02fe0de6d467a0ecdafff74035b3e1ed0da1c0c792d9c015682f 1999 rpcsvc-proto_1.4.3-1.dsc
69315e94430f4e79c74d43422f4a36e6259e97e67e2677b2c7d7060436bd99b1 167964 rpcsvc-proto_1.4.3.orig.tar.xz
02034b9dadcf3af5424f72eb65c3842c8d7117b6b78e7a3c798316ceb60843d1 4228 rpcsvc-proto_1.4.3-1.debian.tar.xz
85145f5da337d94d1c78c36ffca1862a4573bd1128d560a4efdf4a09429a0394 5752 rpcsvc-proto_1.4.3-1_source.buildinfo
Files:
7a4c3daf11e2efc9f9ac3669de3eb7ea 1999 devel optional rpcsvc-proto_1.4.3-1.dsc
5cc9a871db85e34ab68a9cecfb448a97 167964 devel optional rpcsvc-proto_1.4.3.orig.tar.xz
2588be0c07d8e7e8608ed6b435944415 4228 devel optional rpcsvc-proto_1.4.3-1.debian.tar.xz
66cf5e80dd0b5b638c19397869a66fd8 5752 devel optional rpcsvc-proto_1.4.3-1_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEUryGlb40+QrX1Ay4E4jA+JnoM2sFAmOKbqwACgkQE4jA+Jno
M2sgiw/+Moqxh7Oyk7wuMVpeZIro51a4FnQBjQGyYDRazbIKOardWgohA4N6lUjN
Qz3iUfB+C6yG36B0s0OQdS3aQH2utorFiCr/qgpkj78RMdomy4lfdD20j3USImeh
V3Pk9kq2YJ7rRD1qEVD3BfnFHNw6YH4ZGQsIvMYHfTEOfB77k6cgfma0Qe83i7zq
JiY5nreoTdCxQ9dFF/QjTX5M1AUVhztoOBOjJfD4mkNZp/pVLNuxlXgAYWtebXzN
ohsGtGUlv4zi+sVDXsGwyPCnu7d/f8Hb+YEYiWwiL5/U8pFAbJ47Ml2P3F1py7u7
wRfoxsCsgnCkkwoxqVczTA8TEERrtkI5Z5QaO6Iq0oKjOG4a3HaU6IMcuraOjXqN
TDC2icxHN91J83cm9JowP9T9lCiKZPGDycQxDYGH31uQCsxXpElmuGZwc6qXNprR
v6VoemFyzgD7BAm9qSrBUAzzEvlfYK/Gd1tft07OWn1n1GGWDH/xLY9lfaQFImdu
7hKL/jNChgIuEt4Fao/9m4oa72s+JdM9ICkHq245Ly7pwzwcHaVDCgC/EK27HCSw
Pjj+lvIdH7OsNxgYKZGXaKbXUr2ObsvXNYVdnDuoMXMi/NayfrANUd7CFh4Cf+Sb
7pkDQJX1HE5p+AnYkTbztH/Zj8SkfQYmk3oajH9fMakbBdZZy4Q=
=7PzO
-----END PGP SIGNATURE-----
--- End Message ---