Skip to content

cargo-deb: 1.24.0 -> 1.29.1 + build fix#114311

Merged
Ma27 merged 3 commits intoNixOS:masterfrom
bobrik:ivan/cargo-deb-1.29.1
Feb 25, 2021
Merged

cargo-deb: 1.24.0 -> 1.29.1 + build fix#114311
Ma27 merged 3 commits intoNixOS:masterfrom
bobrik:ivan/cargo-deb-1.29.1

Conversation

@bobrik
Copy link
Contributor

@bobrik bobrik commented Feb 25, 2021

Motivation for this change

The checkType attribute does not apply after #113193, and since we're changing tests anyway, let's run them in the release mode to avoid the need for checkType.

This fixes the otherwise broken build.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

The `checkType` attribute does not apply after NixOS#113193,
and since we're changing tests anyway, let's run them
in the release mode to avoid the need for `checkType`.

This fixes the otherwise broken build.
@bobrik bobrik requested a review from danieldk February 25, 2021 03:43
@ofborg ofborg bot requested a review from Br1ght0ne February 25, 2021 03:53
@ofborg ofborg bot added 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. labels Feb 25, 2021
@r-rmcgibbo
Copy link

r-rmcgibbo commented Feb 25, 2021

Result of nixpkgs-review pr 114311 at 0ae422a run on aarch64-linux 1

1 package failed to build:

Result of nixpkgs-review pr 114311 at 0ae422a run on x86_64-linux 1

1 package failed to build:

@bobrik bobrik force-pushed the ivan/cargo-deb-1.29.1 branch 2 times, most recently from bc9dbad to dbad57a Compare February 25, 2021 05:58
@bobrik
Copy link
Contributor Author

bobrik commented Feb 25, 2021

Addressed the Linux build failure.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use an upstream tag?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like a good idea, updated.

@bobrik bobrik force-pushed the ivan/cargo-deb-1.29.1 branch from dbad57a to a422684 Compare February 25, 2021 07:41
Comment on lines +29 to +30
substituteInPlace src/dependencies.rs \
--replace 'assert!(deps.iter().any(|d| d.starts_with("libc")));' '// no libc assert here'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To make this more ryantm-r friendly as the error is only detected at runtime, can we make this a patch instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's detected at build time, during the test. Nothing changes for runtime here.

@Ma27 Ma27 merged commit 3d9e721 into NixOS:master Feb 25, 2021
@bobrik bobrik deleted the ivan/cargo-deb-1.29.1 branch March 6, 2021 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants