Skip to content
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

rpm: add a disableUnshare option #371387

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

msanft
Copy link
Contributor

@msanft msanft commented Jan 6, 2025

Add an option to disable the unshare RPM plugin. Enabling it hinders execution within the Nix sandbox. While plain RPM invocations can use --noplugins and friends, many consumers like tdnf do not expose such a knob for enabling / disabling RPM options. Thus, add an easy interface to disable the plugin via Nix.

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/)
  • 25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (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.

Add a 👍 reaction to pull requests you find important.

@msanft msanft requested review from baloo, emilazy and katexochen January 6, 2025 10:52
@github-actions github-actions bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux labels Jan 6, 2025
@msanft msanft mentioned this pull request Jan 6, 2025
13 tasks
Add an option to disable the unshare RPM plugin. Enabling it hinders execution within the Nix sandbox. While plain RPM invocations can use `--noplugins` and friends, many consumers like `tdnf` do not expose such a knob for enabling / disabling RPM options. Thus, add an easy interface to disable the plugin via Nix.
@msanft msanft force-pushed the msanft/rpm/disable-unshare branch from b64af64 to ec405dc Compare January 7, 2025 10:47
@github-actions github-actions bot added 10.rebuild-darwin: 11-100 10.rebuild-linux: 101-500 and removed 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux labels Jan 7, 2025
@nix-owners nix-owners bot requested a review from copumpkin January 7, 2025 10:55
@msanft msanft requested a review from baloo January 7, 2025 12:33
@msanft
Copy link
Contributor Author

msanft commented Jan 7, 2025

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 371387


x86_64-linux

⏩ 1 package marked as broken and skipped:
  • hpmyroom
❌ 8 packages failed to build:
  • clmagma
  • epson-201106w
  • epson-201401w
  • epson-workforce-635-nx625-series
  • epson_201207w
  • hqplayerd
  • lattice-diamond
  • nice-dcv-client
✅ 145 packages built:
  • apkg
  • apkg.dist
  • clair
  • createrepo_c
  • dell-530cdn
  • diffoscope
  • diffoscope.dist
  • diffoscope.man
  • diffoscopeMinimal
  • diffoscopeMinimal.dist
  • diffoscopeMinimal.man
  • dnf-plugins-core (python312Packages.dnf-plugins-core)
  • dnf-plugins-core.man (python312Packages.dnf-plugins-core.man)
  • dnf4
  • dnf4.man
  • dnf4.py
  • dnf5
  • dnf5.man
  • doodle
  • dsseries
  • dtrx
  • dtrx.dist
  • epkowa
  • epm
  • epson-escpr2
  • febio
  • febio-studio
  • flatpak-builder
  • flatpak-builder.doc
  • flatpak-builder.installedTests
  • flatpak-builder.man
  • garble
  • gnunet
  • gnunet-gtk
  • gutenprintBin
  • hydra
  • hydra.doc
  • intel-ocl
  • libdnf
  • libdnf.dev
  • libdnf.py (python312Packages.libdnf ,python312Packages.libdnf.dev ,python312Packages.libdnf.py)
  • libextractor
  • libfprint-focaltech-2808-a658
  • libmamba
  • libmodulemd
  • libmodulemd.bin
  • libmodulemd.dev
  • libmodulemd.devdoc
  • libmodulemd.man
  • libmodulemd.py (python312Packages.libmodulemd ,python312Packages.libmodulemd.bin ,python312Packages.libmodulemd.dev ,python312Packages.libmodulemd.devdoc ,python312Packages.libmodulemd.man ,python312Packages.libmodulemd.py)
  • libsolv
  • megacli
  • microdnf
  • micromamba
  • mkl
  • openscap
  • perccli
  • perl538Packages.RPM2
  • perl538Packages.RPM2.devdoc
  • perl540Packages.RPM2
  • perl540Packages.RPM2.devdoc
  • plasticity
  • postscript-lexmark
  • python312Packages.conda
  • python312Packages.conda-libmamba-solver
  • python312Packages.conda-libmamba-solver.dist
  • python312Packages.conda.dist
  • python312Packages.dnf4
  • python312Packages.dnf4.man
  • python312Packages.dnf4.py
  • python312Packages.libmambapy
  • python312Packages.libmambapy.dist
  • python312Packages.mkl-service
  • python312Packages.mkl-service.dist
  • python312Packages.osc
  • python312Packages.osc.dist
  • rpm (python312Packages.rpm)
  • rpm.debug (python312Packages.rpm.debug)
  • rpm.dev (python312Packages.rpm.dev)
  • rpm.man (python312Packages.rpm.man)
  • python313Packages.conda
  • python313Packages.conda-libmamba-solver
  • python313Packages.conda-libmamba-solver.dist
  • python313Packages.conda.dist
  • python313Packages.dnf-plugins-core
  • python313Packages.dnf-plugins-core.man
  • python313Packages.dnf4
  • python313Packages.dnf4.man
  • python313Packages.dnf4.py
  • python313Packages.libdnf (python313Packages.libdnf.dev ,python313Packages.libdnf.py)
  • python313Packages.libmambapy
  • python313Packages.libmambapy.dist
  • python313Packages.libmodulemd (python313Packages.libmodulemd.bin ,python313Packages.libmodulemd.dev ,python313Packages.libmodulemd.devdoc ,python313Packages.libmodulemd.man ,python313Packages.libmodulemd.py)
  • python313Packages.mkl-service
  • python313Packages.mkl-service.dist
  • python313Packages.osc
  • python313Packages.osc.dist
  • python313Packages.rpm
  • python313Packages.rpm.debug
  • python313Packages.rpm.dev
  • python313Packages.rpm.man
  • realvnc-vnc-viewer
  • rpm-ostree
  • rpm-ostree.dev
  • rpm-ostree.devdoc
  • rpm-ostree.man
  • rpmextract
  • scaleft
  • snowsql
  • storcli
  • storcli2
  • taler-challenger
  • taler-exchange
  • taler-merchant
  • taler-sync
  • tdnf
  • tests.dotnet.final-attrs.check-output
  • tests.dotnet.final-attrs.output-matches-const
  • tests.dotnet.final-attrs.override-has-no-effect
  • tests.dotnet.final-attrs.override-modifies-output
  • tests.dotnet.structured-attrs.check-output
  • tests.dotnet.use-dotnet-from-env.fallback
  • tests.dotnet.use-dotnet-from-env.use-dotnet-path-env
  • tests.dotnet.use-dotnet-from-env.use-dotnet-root-env
  • tests.replaceVars.replaceVars
  • tests.replaceVars.replaceVars-succeeds-with-exemption
  • tests.substitute.legacySingleArg
  • tests.substitute.legacySingleReplace
  • tests.substitute.legacyString
  • tests.substitute.legacyVar
  • tests.substitute.substitutions
  • tests.testers.testEqualContents.emptyFileAndDir
  • tests.testers.testEqualContents.equalDir
  • tests.testers.testEqualContents.equalExe
  • tests.testers.testEqualContents.fileDiff
  • tests.testers.testEqualContents.fileMissing
  • tests.testers.testEqualContents.nonExistentPath
  • tests.testers.testEqualContents.unequalExe
  • tests.testers.testEqualContents.unequalExeInDir
  • tsm-client
  • tsm-client-withGui
  • utsushi-networkscan
  • vdrPlugins.xineliboutput
  • vk-messenger
  • yandex-disk

@msanft
Copy link
Contributor Author

msanft commented Jan 7, 2025

The broken packages are also broken on master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants