Skip to content

releaseTools, vmTools: remove old builders #423355

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

dblsaiko
Copy link
Contributor

@dblsaiko dblsaiko commented Jul 8, 2025

Remove some very old unused and undocumented builders from releaseTools. In particular, debBuild depends on the insecure checkinstall and is currently broken.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • Nixpkgs 25.11 Release Notes (or backporting 25.05 Nixpkgs Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
  • NixOS 25.11 Release Notes (or backporting 25.05 NixOS Release notes)
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other contributing documentation in corresponding paths.

Add a 👍 reaction to pull requests you find important.

@dblsaiko dblsaiko requested a review from emilazy July 8, 2025 01:26
@dblsaiko dblsaiko force-pushed the saiko/releasetools branch from d27b0a0 to b54ddf3 Compare July 8, 2025 01:27
@dblsaiko dblsaiko marked this pull request as ready for review July 8, 2025 01:29
@nix-owners nix-owners bot requested a review from philiptaron July 8, 2025 01:31
@nixpkgs-ci nixpkgs-ci bot added 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: changelog This PR adds or changes release notes 8.has: documentation This PR adds or changes documentation labels Jul 8, 2025
@dblsaiko dblsaiko force-pushed the saiko/releasetools branch 2 times, most recently from 6057db2 to 2e33c76 Compare July 8, 2025 01:39
@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 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. 2.status: merge conflict This PR has merge conflicts with the target branch labels Jul 8, 2025
Copy link
Member

@emilazy emilazy left a comment

Choose a reason for hiding this comment

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

Sorry for forgetting about this. Thanks for helping clean this up.

/*
Like `rpmClosureGenerator', but now for Debian/Ubuntu releases
closure of a set of top-level deb packages from the
`primary.xml.gz' file of a Debian/Ubuntu release.
Copy link
Member

Choose a reason for hiding this comment

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

primary.xml.gz is an RPM thing, so this comment can’t be correct.

Comment on lines -985 to -988
# The set of supported RPM-based distributions.

rpmDistros = { };

Copy link
Member

Choose a reason for hiding this comment

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

FWIW, I deliberately left this stuff around when removing all the existing EOL versions in case anyone wanted to re‐add support for newer ones. But it’ll survive in the commit log anyway, so meh.

Comment on lines -42 to -58
binaryTarball =
args:
import ./binary-tarball.nix (
{
inherit lib stdenv;
}
// args
);

mvnBuild =
args:
import ./maven-build.nix (
{
inherit lib stdenv;
}
// args
);
Copy link
Member

Choose a reason for hiding this comment

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

Are these broken, or is this just on a principle of “nothing is using them and it seems like nobody cares”? (I don’t mind dropping them, to be clear.)

Comment on lines +24 to +28
binaryTarball = throw "removed (8 Jul 2025)";
debBuild = throw "removed (8 Jul 2025)";
makeSourceTarball = throw "removed (8 Jul 2025); use releaseTools.sourceTarball";
mvnBuild = throw "removed (8 Jul 2025)";
rpmBuild = throw "removed (8 Jul 2025)";
Copy link
Member

Choose a reason for hiding this comment

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

Can you make these more like the removal messages in pkgs/top-level/aliases.nix? Right now they’d be pretty confusing without a stack trace. (Thankfully it seems like we don’t recurse into here so we don’t need to guard these with an aliases check.)

@dblsaiko dblsaiko force-pushed the saiko/releasetools branch from 2e33c76 to b94aac8 Compare August 11, 2025 20:28
@nixpkgs-ci nixpkgs-ci bot removed the 2.status: merge conflict This PR has merge conflicts with the target branch label Aug 11, 2025
Broken, unused, undocumented and unmaintained. Fails with 'mkdir:
command not found' when building any image because the postHook
runs before the VM is started in addition to inside the VM.
Undocumented, unmaintained and unused.
Undocumented, unmaintained and unused.
Undocumented, unmaintained and unused.
This is a compatibility alias added in 2009. I think it's time for
it to go.
@dblsaiko dblsaiko force-pushed the saiko/releasetools branch from b94aac8 to ddf5103 Compare August 11, 2025 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: changelog This PR adds or changes release notes 8.has: documentation This PR adds or changes documentation 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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants