Your message dated Mon, 02 Jan 2023 15:06:20 +0000
with message-id <[email protected]>
and subject line Bug#1025361: fixed in netavark 1.4.0-1
has caused the Debian Bug report #1025361,
regarding netavark FTCBFS: can't find crate for `core`
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.)
--
1025361: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1025361
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: netavark
Version: 1.0.3-4
Tags: patch
User: [email protected]
Usertags: ftcbfs
netavark fails to cross build from source. A build ends with:
| Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=cfg_if
CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>>/debian/cargo_registry/cfg-if-1.0.0
CARGO_PKG_AUTHORS='Alex Crichton <[email protected]>'
CARGO_PKG_DESCRIPTION='A macro to ergonomically define an item depending on a
large number of #[cfg]
| parameters. Structured like an if-else chain, the first matching branch is the
| item that gets emitted.
| ' CARGO_PKG_HOMEPAGE='https://github.com/alexcrichton/cfg-if'
CARGO_PKG_LICENSE=MIT/Apache-2.0 CARGO_PKG_LICENSE_FILE=''
CARGO_PKG_NAME=cfg-if
CARGO_PKG_REPOSITORY='https://github.com/alexcrichton/cfg-if'
CARGO_PKG_VERSION=1.0.0 CARGO_PKG_VERSION_MAJOR=1 CARGO_PKG_VERSION_MINOR=0
CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE=''
LD_LIBRARY_PATH='/<<PKGBUILDDIR>>/target/release/deps:/usr/lib' rustc
--crate-name cfg_if --edition=2018
/<<PKGBUILDDIR>>/debian/cargo_registry/cfg-if-1.0.0/src/lib.rs
--error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat
--crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C
embed-bitcode=no -C metadata=df2022695625b25e -C
extra-filename=-df2022695625b25e --out-dir
/<<PKGBUILDDIR>>/target/armv7-unknown-linux-gnueabihf/release/deps --target
armv7-unknown-linux-gnueabihf -L
dependency=/<<PKGBUILDDIR>>/target/armv7-unknown-linux-gnueabihf/release/deps
-L dependency=/<<PKGBUILDDIR>>/target/release/deps --cap-lints warn -C
debuginfo=2 --cap-lints warn -C linker=arm-linux-gnueabihf-gcc -C
link-arg=-Wl,-z,relro --remap-path-prefix
/<<PKGBUILDDIR>>=/usr/share/cargo/registry/netavark-1.0.3 --remap-path-prefix
/<<PKGBUILDDIR>>/debian/cargo_registry=/usr/share/cargo/registry`
| error[E0463]: can't find crate for `core`
| |
| = note: the `armv7-unknown-linux-gnueabihf` target may not be installed
| = help: consider downloading the target with `rustup target add
armv7-unknown-linux-gnueabihf`
|
| error[E0463]: can't find crate for `compiler_builtins`
|
| For more information about this error, try `rustc --explain E0463`.
| error: could not compile `cfg-if` due to 2 previous errors
|
| Caused by:
| process didn't exit successfully: `CARGO=/usr/bin/cargo
CARGO_CRATE_NAME=cfg_if
CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>>/debian/cargo_registry/cfg-if-1.0.0
CARGO_PKG_AUTHORS='Alex Crichton <[email protected]>'
CARGO_PKG_DESCRIPTION='A macro to ergonomically define an item depending on a
large number of #[cfg]
| parameters. Structured like an if-else chain, the first matching branch is
the
| item that gets emitted.
| ' CARGO_PKG_HOMEPAGE='https://github.com/alexcrichton/cfg-if'
CARGO_PKG_LICENSE=MIT/Apache-2.0 CARGO_PKG_LICENSE_FILE=''
CARGO_PKG_NAME=cfg-if
CARGO_PKG_REPOSITORY='https://github.com/alexcrichton/cfg-if'
CARGO_PKG_VERSION=1.0.0 CARGO_PKG_VERSION_MAJOR=1 CARGO_PKG_VERSION_MINOR=0
CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE=''
LD_LIBRARY_PATH='/<<PKGBUILDDIR>>/target/release/deps:/usr/lib' rustc
--crate-name cfg_if --edition=2018
/<<PKGBUILDDIR>>/debian/cargo_registry/cfg-if-1.0.0/src/lib.rs
--error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat
--crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C
embed-bitcode=no -C metadata=df2022695625b25e -C
extra-filename=-df2022695625b25e --out-dir
/<<PKGBUILDDIR>>/target/armv7-unknown-linux-gnueabihf/release/deps --target
armv7-unknown-linux-gnueabihf -L
dependency=/<<PKGBUILDDIR>>/target/armv7-unknown-linux-gnueabihf/release/deps
-L dependency=/<<PKGBUILDDIR>>/target/release/deps --cap-lints warn -C
debuginfo=2 --cap-lints warn -C linker=arm-linux-gnueabihf-gcc -C
link-arg=-Wl,-z,relro --remap-path-prefix
/<<PKGBUILDDIR>>=/usr/share/cargo/registry/netavark-1.0.3 --remap-path-prefix
/<<PKGBUILDDIR>>/debian/cargo_registry=/usr/share/cargo/registry` (exit status:
1)
| error: failed to compile `netavark v1.0.3 (/<<PKGBUILDDIR>>)`, intermediate
artifacts can be found at `/<<PKGBUILDDIR>>/target`
| Traceback (most recent call last):
| File "/usr/share/cargo/bin/cargo", line 241, in <module>
| sys.exit(main(*sys.argv[1:]))
| File "/usr/share/cargo/bin/cargo", line 231, in main
| return install(os.getenv("DESTDIR", ""),
| File "/usr/share/cargo/bin/cargo", line 134, in install
| logrun(["env", "RUST_BACKTRACE=1",
| File "/usr/share/cargo/bin/cargo", line 76, in logrun
| return subprocess.run(*args, **kwargs)
| File "/usr/lib/python3.10/subprocess.py", line 526, in run
| raise CalledProcessError(retcode, process.args,
| subprocess.CalledProcessError: Command '['env', 'RUST_BACKTRACE=1',
'CARGO_TARGET_DIR=/<<PKGBUILDDIR>>/target', '/usr/bin/cargo',
'-Zavoid-dev-deps', 'install', '--verbose', '--verbose', '-j1', '--target',
'armv7-unknown-linux-gnueabihf', '--path', '/<<PKGBUILDDIR>>', '--root',
'debian/netavark/usr']' returned non-zero exit status 101.
| dh_auto_install: error: env DESTDIR=debian/netavark
/usr/share/cargo/bin/cargo install returned exit code 1
| make: *** [debian/rules:8: binary-arch] Error 25
| dpkg-buildpackage: error: debian/rules binary-arch subprocess returned exit
status 2
I looked into this and wondered why libstd-rust-dev was tagged
<!nocheck> (and thus dropped from a cross build). Indeed, the nocheck
build succeeds, but this is not because libstd-rust-dev isn't needed,
it's because libstd-rust-dev is implied by other dependencies. During
cross builds, this implication does not hold, so we actually need that
explicit dependency. I'm attaching a patch for your convenience.
Helmut
diff --minimal -Nru netavark-1.0.3/debian/changelog
netavark-1.0.3/debian/changelog
--- netavark-1.0.3/debian/changelog 2022-10-19 22:22:07.000000000 +0200
+++ netavark-1.0.3/debian/changelog 2022-12-02 09:32:15.000000000 +0100
@@ -1,3 +1,10 @@
+netavark (1.0.3-4.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix FTCBFS: Depend on libstd-rust-dev unconditionally. (Closes: #-1)
+
+ -- Helmut Grohne <[email protected]> Fri, 02 Dec 2022 09:32:15 +0100
+
netavark (1.0.3-4) unstable; urgency=medium
* Fix FTBFS, bump nix version, thanks to Lucas Nussbaum (Closes: #1020122).
diff --minimal -Nru netavark-1.0.3/debian/control netavark-1.0.3/debian/control
--- netavark-1.0.3/debian/control 2022-10-19 22:22:07.000000000 +0200
+++ netavark-1.0.3/debian/control 2022-12-02 09:32:15.000000000 +0100
@@ -32,7 +32,7 @@
librust-url-dev,
librust-zbus-dev,
librust-zvariant-dev,
- libstd-rust-dev <!nocheck>,
+ libstd-rust-dev,
rustc:native <!nocheck>,
Standards-Version: 4.6.1
Homepage: https://github.com/containers/netavark
--- End Message ---
--- Begin Message ---
Source: netavark
Source-Version: 1.4.0-1
Done: Reinhard Tartler <[email protected]>
We believe that the bug you reported is fixed in the latest version of
netavark, 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.
Reinhard Tartler <[email protected]> (supplier of updated netavark 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: Mon, 02 Jan 2023 08:45:36 -0500
Source: netavark
Architecture: source
Version: 1.4.0-1
Distribution: unstable
Urgency: medium
Maintainer: Reinhard Tartler <[email protected]>
Changed-By: Reinhard Tartler <[email protected]>
Closes: 1025361 1027624
Changes:
netavark (1.4.0-1) unstable; urgency=medium
.
* New upstream release
* Allow cross-compilation by relaxing build-dep on libstd-rust-dev,
Closes: #1025361
* Bug fix: "FTBFS: dh_auto_test: error: /usr/share/cargo/bin/cargo build
returned exit code 101", thanks to Lucas Nussbaum (Closes: #1027624).
* Break on older versions of aardvark-dns, the must match minor versions.
* Invoke test suite
Checksums-Sha1:
1c6891c98e296a5f361b68ca6cc9f0ea1288bef4 2786 netavark_1.4.0-1.dsc
3f326e626b72b53951404eca2203a80a288f0ae4 72904 netavark_1.4.0.orig.tar.xz
6dfd276be772709d0720a2b452d6fd7b42f08b7e 3504 netavark_1.4.0-1.debian.tar.xz
Checksums-Sha256:
798e1219538c75626ff5caa41b71ad13166aa3f02e20e0055b05a7fad78e9cdd 2786
netavark_1.4.0-1.dsc
c9738c5cb431081b0106f905a379d1f1cea30aac7d978c64a6e85a8c1e9de7f4 72904
netavark_1.4.0.orig.tar.xz
1840b21e03d5f51abb650c67db9ec3b00fc10d4c8084509c83a2bc2b1f493997 3504
netavark_1.4.0-1.debian.tar.xz
Files:
54b56df3828c27a3430711f13654d943 2786 net optional netavark_1.4.0-1.dsc
8a3dd756d8204b87f57f86de1bdddd15 72904 net optional netavark_1.4.0.orig.tar.xz
dd03d4daef0e28f96fe5f7bb07143df8 3504 net optional
netavark_1.4.0-1.debian.tar.xz
-----BEGIN PGP SIGNATURE-----
iQJIBAEBCgAyFiEEMN59F2OrlFLH4IJQSadpd5QoJssFAmOy7iEUHHNpcmV0YXJ0
QHRhdXdhcmUuZGUACgkQSadpd5QoJsvQaw/9HTYCLq4Jxeu46NXyiYbZ9brK1YjW
j6GAuVnUkUdxQufORl1LqahEGivyeJWFxozUSN/Zywv5jNREnW7Dkcr8VRrraiEy
i5MdhjqMVLeUGseIUW8eMv1OxbVTftKA90x30OPDz5VBeLt6MlvmXT4nmdkqM6p0
3tobQITT9oRhf84zrLcJPLQQpa9Nx4HONO5p3JBSyURd1slvJZbVuaSxBmAaZziH
izaMWKU/Sld5ve5FI0z4DuyfJ1fVItYKKzQWj+R45J/m+VPuDmjvym9XHOxNL6eL
wr2LMzAUtGrq5XZZVsxvncrKHCnddlmvS1H/EVA4scZ3HOu1wzEsBNrbqIhfRxup
cd/ogVx6ZODgLRu2zzI0nZ7rA+As6QNkMPfVecTit61uWBHN0ENxTrrVfiLZZTEL
QVtkrez+AxoIbNdmNRYYImGo+jB9DHzWz/dIK4vOs5MEiHamC5PJfnc3xDaAnRF9
/g9ADASEFvKz1nW+CbmlkE6wWTfw4tI+1FS/011ucQfgzkHFm5Mk0m5ISplGj73F
sYPHSgDZdn0OlpgxX/c1MqqKMcIg4AQ0AnMJvhRH2TU3nKzNewz63D+nM4GNSgXj
Oag+nt7ARGryaPnM75B+0qSq8Z39wuKXECRRgruzB2hhvwU/X59bY5fSptwWtK1s
YB47lkpEY/jREgU=
=FmdP
-----END PGP SIGNATURE-----
--- End Message ---