Skip to content

tcp_wrappers: 7.6.q-33 -> 7.6.q-36 and fetch patches from salsa#465685

Merged
dotlambda merged 1 commit intoNixOS:masterfrom
conatsera:tcp_wrappers-update-to-36
Nov 29, 2025
Merged

tcp_wrappers: 7.6.q-33 -> 7.6.q-36 and fetch patches from salsa#465685
dotlambda merged 1 commit intoNixOS:masterfrom
conatsera:tcp_wrappers-update-to-36

Conversation

@conatsera
Copy link
Contributor

@conatsera conatsera commented Nov 27, 2025

Patch level 33 is no longer available from Debian mirrors. This also changes to fetch from the Debian salsa gitlab which will prevent this issue from reoccurring. This is an alternate PR to #456509
closes #456509

This also needs to be backported to release-25.11 as this blocks building the ISO from source due to the dependency chain zfs -> nfs-utils -> tcp_wrappers

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

Add a 👍 reaction to pull requests you find important.

@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 9.needs: reviewer This PR currently has no reviewers requested and needs attention. labels Nov 27, 2025
Copy link
Member

@SuperSandro2000 SuperSandro2000 left a comment

Choose a reason for hiding this comment

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

As a follow up, we could clean up the prePatch and split it into patches and postPatch and use --replace-fail

@nixpkgs-ci nixpkgs-ci bot added 12.approvals: 1 This PR was reviewed and approved by one person. and removed 9.needs: reviewer This PR currently has no reviewers requested and needs attention. labels Nov 28, 2025
Copy link
Member

@dotlambda dotlambda left a comment

Choose a reason for hiding this comment

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

@dotlambda dotlambda requested a review from raboof November 28, 2025 17:38
Copy link
Member

@raboof raboof left a comment

Choose a reason for hiding this comment

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

Seems like a good improvement, thanks. One comment for your consideration, and it might be nice to include the -> notation in the commit message, but otherwise LGTM.

debian = fetchurl {
url = "mirror://debian/pool/main/t/tcp-wrappers/tcp-wrappers_${version}.debian.tar.xz";
hash = "sha256-Lykjyu4hKDS/DqQ8JAFhKDffHrbJ9W1gjBKNpdaNRew=";
src = fetchFromGitLab {
Copy link
Member

Choose a reason for hiding this comment

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

I wonder if it would be slightly better to take src from http://ftp.porcupine.org/pub/security/tcp_wrappers_7.6.tar.gz and only rely on the Debian repo for the patches

Copy link
Member

Choose a reason for hiding this comment

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

I agree. That would be better.

@nixpkgs-ci nixpkgs-ci bot added 12.approvals: 2 This PR was reviewed and approved by two persons. and removed 12.approvals: 1 This PR was reviewed and approved by one person. labels Nov 28, 2025
@conatsera conatsera changed the title tcp_wrappers: update to 36 and fetch src with patches from salsa tcp_wrappers: patch level 33 -> 36 and fetch src with patches from salsa Nov 28, 2025
@conatsera conatsera force-pushed the tcp_wrappers-update-to-36 branch from 9f295d6 to aef3bb0 Compare November 28, 2025 18:29
@dotlambda dotlambda changed the title tcp_wrappers: patch level 33 -> 36 and fetch src with patches from salsa tcp_wrappers: 7.6.q-33 -> 7.6.q-36 and fetch src with patches from salsa Nov 28, 2025
@dotlambda
Copy link
Member

Follow https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md#commit-conventions.

I changed the PR title to something that would be okay.

@conatsera conatsera force-pushed the tcp_wrappers-update-to-36 branch from aef3bb0 to ae0005e Compare November 28, 2025 18:40
@conatsera
Copy link
Contributor Author

conatsera commented Nov 28, 2025

I changed the PR title to something that would be okay.

thanks, I was about to ask what you meant because this isn't just version update so it falls into "etc".

Oh whoops, was mid-edit when I amended that. Give me a moment to finish it. I've confirmed porcupine matches what was in debian's salsa

};

prePatch = ''
tar -xaf $debian
patches="$(cat debian/patches/series | sed 's,^,debian/patches/,') $patches"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
patches="$(cat debian/patches/series | sed 's,^,debian/patches/,') $patches"
patches="$(cat ${debian}/patches/series | sed 's,^,debian/patches/,') $patches"

Copy link
Member

Choose a reason for hiding this comment

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

Actually, this only works if a substituteInPlace below is no longer needed.

};

prePatch = ''
tar -xaf $debian
patches="$(cat debian/patches/series | sed 's,^,debian/patches/,') $patches"

substituteInPlace Makefile --replace STRINGS STRINGDEFS
Copy link
Member

Choose a reason for hiding this comment

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

Is this and the line below still needed? I would be good to use --replace-fail in that case.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Honestly I can't tell you why this substitution is being made, but it is making one functional substitution in both files. I'm inclined to leave it be

@conatsera conatsera force-pushed the tcp_wrappers-update-to-36 branch 2 times, most recently from a6abd5b to 110c5c3 Compare November 28, 2025 19:06
@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. and removed 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. labels Nov 28, 2025
@conatsera conatsera requested a review from dotlambda November 28, 2025 19:19
@conatsera
Copy link
Contributor Author

If someone could also add the backport 25.11 label that would be appreciated. This is a blocker for building the ISOs unless a user disables zfs

@raboof raboof added the backport release-25.11 Backport PR automatically label Nov 28, 2025
@dotlambda
Copy link
Member

This is a blocker for building the ISOs unless a user disables zfs

Not anymore I assume since #465984 was merged.

url = "mirror://debian/pool/main/t/tcp-wrappers/tcp-wrappers_${vanillaVersion}.orig.tar.gz";
sha256 = "0p9ilj4v96q32klavx0phw9va21fjp8vpk11nbh6v2ppxnnxfhwm";
url = "http://ftp.porcupine.org/pub/security/tcp_wrappers_7.6.tar.gz";
sha256 = "sha256-lUPXre33im3gsiHMu9GVLgi1E4cX9K3oFAObtImkMV0=";
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
sha256 = "sha256-lUPXre33im3gsiHMu9GVLgi1E4cX9K3oFAObtImkMV0=";
hash = "sha256-lUPXre33im3gsiHMu9GVLgi1E4cX9K3oFAObtImkMV0=";

Copy link
Member

Choose a reason for hiding this comment

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

@conatsera Mind making this change? Then I'll merge.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@dotlambda dotlambda changed the title tcp_wrappers: 7.6.q-33 -> 7.6.q-36 and fetch src with patches from salsa tcp_wrappers: 7.6.q-33 -> 7.6.q-36 and fetch src patches from salsa Nov 28, 2025
@dotlambda dotlambda changed the title tcp_wrappers: 7.6.q-33 -> 7.6.q-36 and fetch src patches from salsa tcp_wrappers: 7.6.q-33 -> 7.6.q-36 and fetch patches from salsa Nov 28, 2025
@nixpkgs-ci nixpkgs-ci bot added 12.approvals: 3+ This PR was reviewed and approved by three or more persons. and removed 12.approvals: 2 This PR was reviewed and approved by two persons. labels Nov 28, 2025
@conatsera
Copy link
Contributor Author

This is a blocker for building the ISOs unless a user disables zfs

Not anymore I assume since #465984 was merged.

That PR hasn't backported yet, but yeah that would unblock it too. Not sure how many users of tcp_wrappers there are but I think it's still reasonable to backport this one anyways. The existing package.nix is non-functional as it is.

@conatsera conatsera force-pushed the tcp_wrappers-update-to-36 branch from 110c5c3 to 0f61c40 Compare November 29, 2025 20:34
@conatsera conatsera force-pushed the tcp_wrappers-update-to-36 branch from 0f61c40 to 1df3a50 Compare November 29, 2025 20:35
@dotlambda dotlambda enabled auto-merge November 29, 2025 20:43
@dotlambda dotlambda added this pull request to the merge queue Nov 29, 2025
Merged via the queue into NixOS:master with commit 695c875 Nov 29, 2025
26 of 30 checks passed
@nixpkgs-ci
Copy link
Contributor

nixpkgs-ci bot commented Nov 29, 2025

Successfully created backport PR for release-25.11:

@github-actions github-actions bot added the 8.has: port to stable This PR already has a backport to the stable release. label Nov 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

8.has: port to stable This PR already has a backport to the stable release. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 12.approvals: 3+ This PR was reviewed and approved by three or more persons. backport release-25.11 Backport PR automatically

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants