Coder Social home page Coder Social logo

Comments (8)

ximon18 avatar ximon18 commented on June 28, 2024 1

Hi @orhun,

Thanks for the link. Ignoring the dpkg-shlibdeps issue for the moment, the test that failed for you passed for me.

Can you give more guidance on how to reproduce the issue, as just running cargo test on latest cargo-deb on Arch Linux doesn't seem to be enough.

It's been a long time since I looked at the cargo-deb code but I think the test panics that you reported might happen when the log output certain expected statements indicating that cargo-deb didn't behave as expected, but it gives no insight as to why that might be. I may be able to dig further to find out what conditions were not met, though at present I don't have any free time to do that. If you can provide more specific instructions to reproduce the issue that would be most helpful.

Thanks,

Ximon

from cargo-deb.

ximon18 avatar ximon18 commented on June 28, 2024 1

First I should check if I actually ran the tests that fail - I'm now thinking I didn't modify the clone so if it has the skip args then the tests would have been skipped - that's what I get for trying to squeeze it in a free moment 🧐

from cargo-deb.

kornelski avatar kornelski commented on June 28, 2024

@ximon18 any idea what's happening there?

from cargo-deb.

ximon18 avatar ximon18 commented on June 28, 2024

I'm not familiar with Arch Linux but an attempt to reproduce the problem in a Docker container failed as those tests pass but a different one fails:

$ docker run -it --rm archlinux
[root@3b452054ebf2]# curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
[root@3b452054ebf2]# pacman -Syyu
[root@3b452054ebf2]# pacman -S --needed git base-devel dpkg
[root@3b452054ebf2]# git clone https://github.com/kornelski/cargo-deb.git
[root@3b452054ebf2]# cd cargo-deb
[root@3b452054ebf2 cargo-deb]# source ~/.cargo/env
[root@3b452054ebf2 cargo-deb]# cargo test
...
test manifest::tests::add_systemd_assets_with_config_adds_unit_assets ... ok
test control::tests::generate_scripts_generates_missing_maintainer_scripts_for_unit_in_root_package ... ok
test control::tests::generate_scripts_augments_maintainer_scripts_for_unit_in_root_package ... ok
test control::tests::generate_scripts_archives_user_supplied_maintainer_scripts_in_root_package ... ok
test control::tests::generate_scripts_archives_user_supplied_maintainer_scripts_in_workspace_package ... ok
test control::tests::generate_scripts_augments_maintainer_scripts_for_unit_in_workspace_package ... ok
test control::tests::generate_scripts_does_nothing_if_maintainer_scripts_is_not_set ... ok
test control::tests::generate_scripts_generates_missing_maintainer_scripts_for_unit_in_workspace_package ... ok
test manifest::tests::add_systemd_assets_with_no_config_does_nothing ... ok
test dependencies::resolve_test ... FAILED

failures:

---- dependencies::resolve_test stdout ----
thread 'dependencies::resolve_test' panicked at 'called `Result::unwrap()` on an `Err` value: CommandError("dpkg-shlibdeps", "/cargo-deb/target/debug/deps/cargo_deb-a3b17124cfa0c2cb", [100, 112, 107, 103, 45, 115, 104, 108, 105, 98, 100, 101, 112, 115, 58, 32, 101, 114, 114, 111, 114, 58, 32, 110, 111, 32, 100, 101, 112, 101, 110, 100, 101, 110, 99, 121, 32, 105, 110, 102, 111, 114, 109, 97, 116, 105, 111, 110, 32, 102, 111, 117, 110, 100, 32, 102, 111, 114, 32, 47, 108, 105, 98, 47, 108, 105, 98, 108, 122, 109, 97, 46, 115, 111, 46, 53, 32, 40, 117, 115, 101, 100, 32, 98, 121, 32, 47, 99, 97, 114, 103, 111, 45, 100, 101, 98, 47, 116, 97, 114, 103, 101, 116, 47, 100, 101, 98, 117, 103, 47, 100, 101, 112, 115, 47, 99, 97, 114, 103, 111, 95, 100, 101, 98, 45, 97, 51, 98, 49, 55, 49, 50, 52, 99, 102, 97, 48, 99, 50, 99, 98, 41, 10, 72, 105, 110, 116, 58, 32, 99, 104, 101, 99, 107, 32, 105, 102, 32, 116, 104, 101, 32, 108, 105, 98, 114, 97, 114, 121, 32, 97, 99, 116, 117, 97, 108, 108, 121, 32, 99, 111, 109, 101, 115, 32, 102, 114, 111, 109, 32, 97, 32, 112, 97, 99, 107, 97, 103, 101, 46, 10])', src/dependencies.rs:59:37

from cargo-deb.

orhun avatar orhun commented on June 28, 2024

That failure looks similar to #75

from cargo-deb.

orhun avatar orhun commented on June 28, 2024

Sure. Here are the steps to reproduce the behavior:

  1. Use the PKGBUILD from Arch Linux repos.
  2. Remove --skip arguments from cargo test command.
  3. Build in a clean chroot via running extra-x86_64-build.

Alternatively you can use an Arch Linux docker image and use makepkg to build after setting EUID=1.

from cargo-deb.

ximon18 avatar ximon18 commented on June 28, 2024

Sorry, still unable to reproduce. I tried using the Docker approach, as follows:

In one shell session:

❯ docker run -it --rm --name deleteme archlinux
[root@e7e418601509 /]# pacman -Sy git glibc fakeroot binutils rust
:: Synchronizing package databases...
 core downloading...
 extra downloading...
resolving dependencies...
looking for conflicting packages...

Package (18)          Old Version  New Version     Net Change  Download Size

core/db                            6.2.32-1          7.16 MiB       1.33 MiB
core/db5.3                         5.3.28-4          6.52 MiB       1.20 MiB
core/gcc                           13.2.1-3        184.16 MiB      46.84 MiB
core/gcc-libs         13.1.1-2     13.2.1-3          0.02 MiB      35.35 MiB
core/jansson                       2.14-2            0.18 MiB       0.05 MiB
core/libedit                       20230828_3.1-1    0.28 MiB       0.11 MiB
core/libisl                        0.26-1            5.71 MiB       0.85 MiB
core/libmpc                        1.3.1-1           0.17 MiB       0.08 MiB
extra/llvm-libs                    16.0.6-1        131.52 MiB      31.23 MiB
core/perl                          5.38.0-1         75.91 MiB      20.26 MiB
extra/perl-error                   0.17029-5         0.04 MiB       0.02 MiB
extra/perl-mailtools               2.21-7            0.10 MiB       0.06 MiB
extra/perl-timedate                2.33-5            0.08 MiB       0.03 MiB
core/binutils                      2.41-3           40.87 MiB       7.59 MiB
core/fakeroot                      1.32.1-1          0.13 MiB       0.07 MiB
extra/git                          2.42.0-1         26.31 MiB       6.17 MiB
core/glibc            2.37-3       2.38-3            1.84 MiB       9.92 MiB
extra/rust                         1:1.72.0-1      463.21 MiB      86.16 MiB

Total Download Size:    247.31 MiB
Total Installed Size:  1135.33 MiB
Net Upgrade Size:       944.22 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 rust-1:1.72.0-1-x86_64 downloading...
 gcc-13.2.1-3-x86_64 downloading...
 gcc-libs-13.2.1-3-x86_64 downloading...
 llvm-libs-16.0.6-1-x86_64 downloading...
 perl-5.38.0-1-x86_64 downloading...
 glibc-2.38-3-x86_64 downloading...
 binutils-2.41-3-x86_64 downloading...
 git-2.42.0-1-x86_64 downloading...
 db-6.2.32-1-x86_64 downloading...
 db5.3-5.3.28-4-x86_64 downloading...
 libisl-0.26-1-x86_64 downloading...
 libedit-20230828_3.1-1-x86_64 downloading...
 libmpc-1.3.1-1-x86_64 downloading...
 fakeroot-1.32.1-1-x86_64 downloading...
 perl-mailtools-2.21-7-any downloading...
 jansson-2.14-2-x86_64 downloading...
 perl-timedate-2.33-5-any downloading...
 perl-error-0.17029-5-any downloading...
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
:: Processing package changes...
upgrading glibc...
Generating locales...
Generation complete.
upgrading gcc-libs...
installing db5.3...
installing db...
installing perl...
installing perl-error...
installing perl-timedate...
installing perl-mailtools...
installing git...
Optional dependencies for git
    tk: gitk and git gui
    openssh: ssh transport and crypto
    perl-libwww: git svn
    perl-term-readkey: git svn and interactive.singlekey setting
    perl-io-socket-ssl: git send-email TLS support
    perl-authen-sasl: git send-email TLS support
    perl-mediawiki-api: git mediawiki support
    perl-datetime-format-iso8601: git mediawiki support
    perl-lwp-protocol-https: git mediawiki https support
    perl-cgi: gitweb (web interface) support
    python: git svn & git p4
    subversion: git svn
    org.freedesktop.secrets: keyring credential helper
    libsecret: libsecret credential helper [installed]
installing fakeroot...
installing jansson...
installing binutils...
Optional dependencies for binutils
    debuginfod: for debuginfod server/client functionality
installing libmpc...
installing libisl...
installing gcc...
Optional dependencies for gcc
    lib32-gcc-libs: for generating code for 32-bit ABI
installing libedit...
installing llvm-libs...
installing rust...
Optional dependencies for rust
    gdb: rust-gdb script
    lldb: rust-lldb script
:: Running post-transaction hooks...
(1/5) Creating system user accounts...
Creating group 'git' with GID 974.
Creating user 'git' (git daemon user) with UID 974 and GID 974.
(2/5) Reloading system manager configuration...
  Skipped: Current root is not booted.
(3/5) Creating temporary files...
/usr/lib/tmpfiles.d/journal-nocow.conf:26: Failed to replace specifiers in '/var/log/journal/%m': No such file or directory
/usr/lib/tmpfiles.d/systemd.conf:23: Failed to replace specifiers in '/run/log/journal/%m': No such file or directory
/usr/lib/tmpfiles.d/systemd.conf:25: Failed to replace specifiers in '/run/log/journal/%m': No such file or directory
/usr/lib/tmpfiles.d/systemd.conf:26: Failed to replace specifiers in '/run/log/journal/%m/*.journal*': No such file or directory
/usr/lib/tmpfiles.d/systemd.conf:29: Failed to replace specifiers in '/var/log/journal/%m': No such file or directory
/usr/lib/tmpfiles.d/systemd.conf:30: Failed to replace specifiers in '/var/log/journal/%m/system.journal': No such file or directory
/usr/lib/tmpfiles.d/systemd.conf:32: Failed to replace specifiers in '/var/log/journal/%m': No such file or directory
/usr/lib/tmpfiles.d/systemd.conf:33: Failed to replace specifiers in '/var/log/journal/%m/system.journal': No such file or directory
(4/5) Arming ConditionNeedsUpdate...
(5/5) Warn about old perl modules

Now leave that shell open and in a new shell do:

❯ docker exec -it --user $EUID deleteme /bin/bash
[I have no name!@e7e418601509 /]$ mkdir /tmp/h
[I have no name!@e7e418601509 /]$ export HOME=/tmp/h
[I have no name!@e7e418601509 /]$ cd /tmp
[I have no name!@e7e418601509 tmp]$ git clone https://gitlab.archlinux.org/archlinux/packaging/packages/cargo-deb.git
Cloning into 'cargo-deb'...
remote: Enumerating objects: 20, done.
remote: Counting objects: 100% (8/8), done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 20 (delta 1), reused 0 (delta 0), pack-reused 12
Receiving objects: 100% (20/20), 5.74 KiB | 5.74 MiB/s, done.
Resolving deltas: 100% (3/3), done.
[I have no name!@e7e418601509 tmp]$ cd cargo-deb/
[I have no name!@e7e418601509 cargo-deb]$ makepkg
==> Making package: cargo-deb 1.44.1-1 (Tue Sep 12 20:57:03 2023)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading cargo-deb-1.44.1.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 74611    0 74611    0     0   183k      0 --:--:-- --:--:-- --:--:-- 4080k
==> Validating source files with sha256sums...
    cargo-deb-1.44.1.tar.gz ... Passed
==> Extracting sources...
  -> Extracting cargo-deb-1.44.1.tar.gz with bsdtar
==> Starting prepare()...
    Updating crates.io index
  Downloaded quote v1.0.33
  Downloaded tempfile v3.8.0
  Downloaded equivalent v1.0.1
  Downloaded serde_json v1.0.105
  Downloaded cc v1.0.83
  Downloaded ryu v1.0.15
  Downloaded memchr v2.6.3
  Downloaded rstest v0.17.0
  Downloaded serde v1.0.188
  Downloaded predicates-core v1.0.6
  Downloaded md5 v0.7.0
  Downloaded errno v0.3.3
  Downloaded quick-error v2.0.1
  Downloaded fastrand v2.0.0
  Downloaded crossbeam-deque v0.8.3
  Downloaded pkg-config v0.3.27
  Downloaded proc-macro2 v1.0.66
  Downloaded itertools v0.10.5
  Downloaded serde_derive v1.0.188
  Downloaded rayon-core v1.11.0
  Downloaded cargo_toml v0.15.3
  Downloaded is-terminal v0.4.9
  Downloaded crc32fast v1.3.2
  Downloaded glob v0.3.1
  Downloaded miniz_oxide v0.7.1
  Downloaded xattr v1.0.1
  Downloaded adler v1.0.2
  Downloaded num_cpus v1.16.0
  Downloaded rustc_version v0.4.0
  Downloaded libc v0.2.147
  Downloaded lzma-sys v0.1.20
  Downloaded termcolor v1.2.0
  Downloaded ar v0.9.0
  Downloaded humantime v2.1.0
  Downloaded memoffset v0.9.0
  Downloaded getopts v0.2.21
  Downloaded fragile v2.0.0
  Downloaded lazy_static v1.4.0
  Downloaded unicode-width v0.1.10
  Downloaded float-cmp v0.9.0
  Downloaded semver v1.0.18
  Downloaded env_logger v0.10.0
  Downloaded mockall_derive v0.11.4
  Downloaded tar v0.4.40
  Downloaded bitflags v2.4.0
  Downloaded crossbeam-channel v0.5.8
  Downloaded rstest_macros v0.17.0
  Downloaded rayon v1.7.0
  Downloaded aho-corasick v1.0.5
  Downloaded crossbeam-epoch v0.9.15
  Downloaded crossbeam-utils v0.8.16
  Downloaded predicates v2.1.5
  Downloaded autocfg v1.1.0
  Downloaded regex-syntax v0.7.5
  Downloaded syn v1.0.109
  Downloaded regex-automata v0.3.8
  Downloaded linux-raw-sys v0.4.5
  Downloaded rustix v0.38.11
  Downloaded scopeguard v1.2.0
  Downloaded log v0.4.20
  Downloaded downcast v0.11.0
  Downloaded normalize-line-endings v0.3.0
  Downloaded predicates-tree v1.0.9
  Downloaded mockall v0.11.4
  Downloaded difflib v0.4.0
  Downloaded filetime v0.2.22
  Downloaded flate2 v1.0.27
  Downloaded num-traits v0.2.16
  Downloaded serde_spanned v0.6.3
  Downloaded either v1.9.0
  Downloaded regex v1.9.5
  Downloaded cfg-if v1.0.0
  Downloaded winnow v0.5.15
  Downloaded syn v2.0.31
  Downloaded termtree v0.4.1
  Downloaded itoa v1.0.9
  Downloaded indexmap v2.0.0
  Downloaded xz2 v0.1.7
  Downloaded unicode-ident v1.0.11
  Downloaded toml v0.7.6
  Downloaded toml_datetime v0.6.3
  Downloaded hashbrown v0.14.0
  Downloaded toml_edit v0.19.14
  Downloaded 83 crates (7.6 MB) in 0.35s (largest was `linux-raw-sys` at 1.3 MB)
==> Starting build()...
   Compiling proc-macro2 v1.0.66
   Compiling unicode-ident v1.0.11
   Compiling cfg-if v1.0.0
   Compiling libc v0.2.147
   Compiling autocfg v1.1.0
   Compiling serde v1.0.188
   Compiling crossbeam-utils v0.8.16
   Compiling rustix v0.38.11
   Compiling hashbrown v0.14.0
   Compiling scopeguard v1.2.0
   Compiling pkg-config v0.3.27
   Compiling bitflags v2.4.0
   Compiling memchr v2.6.3
   Compiling linux-raw-sys v0.4.5
   Compiling equivalent v1.0.1
   Compiling rayon-core v1.11.0
   Compiling regex-syntax v0.7.5
   Compiling crc32fast v1.3.2
   Compiling winnow v0.5.15
   Compiling either v1.9.0
   Compiling serde_json v1.0.105
   Compiling adler v1.0.2
   Compiling fastrand v2.0.0
   Compiling humantime v2.1.0
   Compiling ryu v1.0.15
   Compiling cargo-deb v1.44.1 (/tmp/cargo-deb/src/cargo-deb-1.44.1)
   Compiling unicode-width v0.1.10
   Compiling termcolor v1.2.0
   Compiling log v0.4.20
   Compiling itoa v1.0.9
   Compiling quick-error v2.0.1
   Compiling ar v0.9.0
   Compiling md5 v0.7.0
   Compiling glob v0.3.1
   Compiling miniz_oxide v0.7.1
   Compiling getopts v0.2.21
   Compiling itertools v0.10.5
   Compiling memoffset v0.9.0
   Compiling crossbeam-epoch v0.9.15
   Compiling flate2 v1.0.27
   Compiling aho-corasick v1.0.5
   Compiling quote v1.0.33
   Compiling cc v1.0.83
   Compiling crossbeam-channel v0.5.8
   Compiling syn v2.0.31
   Compiling indexmap v2.0.0
   Compiling crossbeam-deque v0.8.3
   Compiling num_cpus v1.16.0
   Compiling filetime v0.2.22
   Compiling xattr v1.0.1
   Compiling regex-automata v0.3.8
   Compiling tar v0.4.40
   Compiling lzma-sys v0.1.20
   Compiling rayon v1.7.0
   Compiling is-terminal v0.4.9
   Compiling tempfile v3.8.0
   Compiling serde_derive v1.0.188
   Compiling regex v1.9.5
   Compiling env_logger v0.10.0
   Compiling toml_datetime v0.6.3
   Compiling serde_spanned v0.6.3
   Compiling toml_edit v0.19.14
   Compiling xz2 v0.1.7
   Compiling toml v0.7.6
   Compiling cargo_toml v0.15.3
    Finished release [optimized] target(s) in 32.69s
==> Starting check()...
   Compiling proc-macro2 v1.0.66
   Compiling unicode-ident v1.0.11
   Compiling cfg-if v1.0.0
   Compiling autocfg v1.1.0
   Compiling libc v0.2.147
   Compiling serde v1.0.188
   Compiling crossbeam-utils v0.8.16
   Compiling memchr v2.6.3
   Compiling rustix v0.38.11
   Compiling semver v1.0.18
   Compiling regex-syntax v0.7.5
   Compiling hashbrown v0.14.0
   Compiling scopeguard v1.2.0
   Compiling linux-raw-sys v0.4.5
   Compiling bitflags v2.4.0
   Compiling pkg-config v0.3.27
   Compiling equivalent v1.0.1
   Compiling syn v1.0.109
   Compiling either v1.9.0
   Compiling winnow v0.5.15
   Compiling rayon-core v1.11.0
   Compiling crc32fast v1.3.2
   Compiling adler v1.0.2
   Compiling serde_json v1.0.105
   Compiling termcolor v1.2.0
   Compiling predicates-core v1.0.6
   Compiling itoa v1.0.9
   Compiling humantime v2.1.0
   Compiling ryu v1.0.15
   Compiling unicode-width v0.1.10
   Compiling fastrand v2.0.0
   Compiling cargo-deb v1.44.1 (/tmp/cargo-deb/src/cargo-deb-1.44.1)
   Compiling log v0.4.20
   Compiling miniz_oxide v0.7.1
   Compiling getopts v0.2.21
   Compiling ar v0.9.0
   Compiling normalize-line-endings v0.3.0
   Compiling difflib v0.4.0
   Compiling itertools v0.10.5
   Compiling md5 v0.7.0
   Compiling termtree v0.4.1
   Compiling glob v0.3.1
   Compiling quick-error v2.0.1
   Compiling downcast v0.11.0
   Compiling predicates-tree v1.0.9
   Compiling fragile v2.0.0
   Compiling lazy_static v1.4.0
   Compiling memoffset v0.9.0
   Compiling crossbeam-epoch v0.9.15
   Compiling num-traits v0.2.16
   Compiling flate2 v1.0.27
   Compiling indexmap v2.0.0
   Compiling rustc_version v0.4.0
   Compiling crossbeam-channel v0.5.8
   Compiling aho-corasick v1.0.5
   Compiling rstest_macros v0.17.0
   Compiling crossbeam-deque v0.8.3
   Compiling quote v1.0.33
   Compiling cc v1.0.83
   Compiling syn v2.0.31
   Compiling num_cpus v1.16.0
   Compiling xattr v1.0.1
   Compiling filetime v0.2.22
   Compiling tar v0.4.40
   Compiling float-cmp v0.9.0
   Compiling lzma-sys v0.1.20
   Compiling rayon v1.7.0
   Compiling is-terminal v0.4.9
   Compiling tempfile v3.8.0
   Compiling regex-automata v0.3.8
   Compiling serde_derive v1.0.188
   Compiling regex v1.9.5
   Compiling env_logger v0.10.0
   Compiling predicates v2.1.5
   Compiling mockall_derive v0.11.4
   Compiling rstest v0.17.0
   Compiling mockall v0.11.4
   Compiling serde_spanned v0.6.3
   Compiling toml_datetime v0.6.3
   Compiling toml_edit v0.19.14
   Compiling xz2 v0.1.7
   Compiling toml v0.7.6
   Compiling cargo_toml v0.15.3
    Finished test [unoptimized + debuginfo] target(s) in 7.63s
     Running unittests src/lib.rs (target/debug/deps/cargo_deb-8dd594d108df761f)

running 92 tests
test dh_installsystemd::tests::find_units_for_package ... ok
test dh_installsystemd::tests::generate_acts_only_on_unit_files_with_the_expected_install_path ... ok
test dh_installsystemd::tests::find_units_in_empty_dir_finds_nothing ... ok
test dh_installsystemd::tests::find_named_units_for_package ... ok
test config::parse_objcopy ... ok
test config::parse_strip ... ok
test dh_installsystemd::tests::generate_creates_expected_autoscript_fragments::case_01 ... ok
test dh_installsystemd::tests::generate_creates_expected_autoscript_fragments::case_04 ... ok
test dh_installsystemd::tests::generate_creates_expected_autoscript_fragments::case_05 ... ok
test dh_installsystemd::tests::generate_creates_expected_autoscript_fragments::case_03 ... ok
test dh_installsystemd::tests::generate_creates_expected_autoscript_fragments::case_02 ... ok
test dh_installsystemd::tests::generate_creates_expected_autoscript_fragments::case_16 ... ok
test dh_installsystemd::tests::generate_creates_expected_autoscript_fragments::case_06 ... ok
test dh_installsystemd::tests::generate_creates_expected_autoscript_fragments::case_08 ... ok
test dh_installsystemd::tests::generate_creates_expected_autoscript_fragments::case_28 ... ok
test dh_installsystemd::tests::generate_creates_expected_autoscript_fragments::case_29 ... ok
test dh_installsystemd::tests::generate_creates_expected_autoscript_fragments::case_26 ... ok
test dh_installsystemd::tests::generate_creates_expected_autoscript_fragments::case_25 ... ok
test dh_installsystemd::tests::generate_creates_expected_autoscript_fragments::case_24 ... ok
test dh_installsystemd::tests::generate_creates_expected_autoscript_fragments::case_23 ... ok
test dh_installsystemd::tests::generate_creates_expected_autoscript_fragments::case_27 ... ok
test dh_installsystemd::tests::generate_creates_expected_autoscript_fragments::case_30 ... ok
test dh_installsystemd::tests::generate_creates_expected_autoscript_fragments::case_10 ... ok
test dh_installsystemd::tests::generate_creates_expected_autoscript_fragments::case_07 ... ok
test dh_installsystemd::tests::generate_creates_expected_autoscript_fragments::case_17 ... ok
test dh_installsystemd::tests::generate_creates_expected_autoscript_fragments::case_33 ... ok
test dh_installsystemd::tests::generate_creates_expected_autoscript_fragments::case_09 ... ok
test dh_installsystemd::tests::generate_creates_expected_autoscript_fragments::case_12 ... ok
test dh_installsystemd::tests::generate_creates_expected_autoscript_fragments::case_11 ... ok
test dh_installsystemd::tests::generate_creates_expected_autoscript_fragments::case_20 ... ok
test dh_installsystemd::tests::generate_creates_expected_autoscript_fragments::case_32 ... ok
test dh_installsystemd::tests::generate_creates_expected_autoscript_fragments::case_31 ... ok
test dh_installsystemd::tests::generate_creates_expected_autoscript_fragments::case_13 ... ok
test dh_installsystemd::tests::generate_creates_expected_autoscript_fragments::case_21 ... ok
test dh_installsystemd::tests::generate_creates_expected_autoscript_fragments::case_15 ... ok
test dh_installsystemd::tests::generate_creates_expected_autoscript_fragments::case_14 ... ok
test dh_installsystemd::tests::generate_creates_expected_autoscript_fragments::case_18 ... ok
test dh_installsystemd::tests::generate_creates_expected_autoscript_fragments::case_19 ... ok
test dh_installsystemd::tests::generate_creates_expected_autoscript_fragments::case_22 ... ok
test dh_installsystemd::tests::generate_with_empty_inputs_does_nothing ... ok
test dh_installsystemd::tests::generate_with_empty_tmp_file_asset ... ok
test dh_installsystemd::tests::is_comment_detects_comments ... ok
test dh_installsystemd::tests::is_comment_detects_non_comments ... ok
test dh_installsystemd::tests::unquote_ignores_embedded_quotes ... ok
test dh_installsystemd::tests::unquote_ignores_mismatched_quotes ... ok
test dh_installsystemd::tests::unquote_ignores_partial_quotes ... ok
test dh_installsystemd::tests::unquote_unquotes_matching_double_quotes ... ok
test dh_installsystemd::tests::generate_filters_out_template_units ... ok
test dh_installsystemd::tests::unquote_unquotes_matching_single_quotes ... ok
test dh_lib::tests::apply_with_no_matching_files ... ok
test dh_installsystemd::tests::generate_with_arbitrary_asset_does_nothing ... ok
test dh_installsystemd::tests::generate_filters_out_subdir ... ok
test dh_lib::tests::autoscript_detailed_check::case_4_postrm ... ok
test dh_lib::tests::apply_with_valid_user_files ... ok
test dh_lib::tests::autoscript_check_embedded_files ... ok
test dh_lib::tests::debhelper_script_subst_with_generated_file_only ... ok
test dh_lib::tests::debhelper_script_subst_with_no_matching_files ... ok
test dh_lib::tests::autoscript_sanity_check_all_embedded_autoscripts ... ok
test dh_lib::tests::debhelper_script_subst_with_user_and_generated_file ... ok
test dh_lib::tests::autoscript_check_service_order ... ok
test dh_lib::tests::autoscript_detailed_check::case_1_prerm ... ok
test dh_lib::tests::debhelper_script_subst_with_user_and_generated_files::case_3 ... ok
test dh_lib::tests::autoscript_detailed_check::case_2_preinst ... ok
test dh_lib::tests::debhelper_script_subst_with_user_and_generated_files::case_4 ... ok
test dh_lib::tests::debhelper_script_subst_with_user_and_generated_files::case_2 ... ok
test dh_lib::tests::debhelper_script_subst_with_user_file_access_error::case_2_interrupted ... ok
test dh_lib::tests::debhelper_script_subst_with_user_file_access_error::case_1_invalid_input ... ok
test dh_lib::tests::debhelper_script_subst_with_user_file_access_error::case_3_permission_denied ... ok
test dh_lib::tests::debhelper_script_subst_with_user_file_access_error::case_4_not_found ... ok
test dh_lib::tests::debhelper_script_subst_with_user_and_generated_files::case_1 ... ok
test dh_lib::tests::debhelper_script_subst_with_user_file_access_error::case_5_other ... ok
test dh_lib::tests::debhelper_script_subst_with_user_file_only ... ok
test dh_lib::tests::pkgfile_fails_to_find_a_match ... ok
test dh_lib::tests::autoscript_detailed_check::case_3_postinst ... ok
test dh_lib::tests::pkgfile_finds_a_fallback_match ... ok
test dh_lib::tests::pkgfile_finds_most_specific_match_without_pkg_file ... ok
test dh_lib::tests::debhelper_script_subst_errs_if_user_file_lacks_token - should panic ... ok
test dh_lib::tests::pkgfile_finds_most_specific_match_without_unit_file ... ok
test pathbytes::unix_path ... ok
test manifest::deb_ver ... ok
test util::tests::btreeset_join ... ok
test util::tests::fname_from_path_panics_when_path_is_empty - should panic ... ok
test dh_lib::tests::autoscript_panics_in_sed_mode - should panic ... ok
test util::tests::fname_from_path_panics_when_path_has_no_filename - should panic ... ok
test dh_installsystemd::tests::generate_with_invalid_tmp_file_asset_panics - should panic ... ok
test dh_lib::tests::autoscript_panics_with_unknown_autoscript - should panic ... ok
test dh_installsystemd::tests::generate_with_data_tmp_file_asset_panics - should panic ... ok
test dh_lib::tests::pkgfile_finds_most_specific_match_with_pkg_unit_file ... ok
test util::tests::fname_from_path_returns_file_name_even_if_it_looks_like_a_directory ... ok
test util::tests::map_macro ... ok
test util::tests::fname_from_path_returns_file_name_even_if_file_does_not_exist ... ok
test wordsplit::test_split_by_chars ... ok

test result: ok. 92 passed; 0 failed; 0 ignored; 0 measured; 22 filtered out; finished in 0.00s

     Running unittests src/main.rs (target/debug/deps/cargo_deb-cba5672afe8739c1)

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running tests/command.rs (target/debug/deps/command-52c2a8b58f3e0ac0)

running 7 tests
test run_cargo_deb_command_on_example_dir_with_version ... ok
test run_cargo_deb_command_on_example_dir ... ok
test run_cargo_deb_command_on_example_dir_with_variant ... ok
test run_cargo_deb_command_on_example_dir_with_separate_debug_symbols ... ok
test build_workspaces ... ok
test build_with_command_line_compress ... ok
test build_with_explicit_compress_type ... ok

test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 10.42s

   Doc-tests cargo_deb

running 2 tests
test src/util.rs - util::map (line 41) ... ignored
test src/util.rs - util::map (line 53) - compile fail ... ok

test result: ok. 1 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.03s

==> Entering fakeroot environment...
==> Starting package()...
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> WARNING: Package contains reference to $srcdir
usr/bin/cargo-deb
==> Creating package "cargo-deb"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: cargo-deb 1.44.1-1 (Tue Sep 12 20:58:46 2023)
[I have no name!@e7e418601509 cargo-deb]$ 

from cargo-deb.

orhun avatar orhun commented on June 28, 2024

Ah, maybe the Docker approach is not the same as building in a clean chroot. Can you try building with extra-x86_64-build?

from cargo-deb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.