Skip to content

Comments

pciutils, ntfs3g: don't pull in kmod on darwin#182720

Merged
SuperSandro2000 merged 1 commit intoNixOS:stagingfrom
trofi:drop-kmod-on-darwin
Jul 25, 2022
Merged

pciutils, ntfs3g: don't pull in kmod on darwin#182720
SuperSandro2000 merged 1 commit intoNixOS:stagingfrom
trofi:drop-kmod-on-darwin

Conversation

@trofi
Copy link
Contributor

@trofi trofi commented Jul 24, 2022

kmod is a linux-only package. Previous versions worked on darwin
by chance and might break in the future:

#182714

Remove kmod import from there.

Description of changes
Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • 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/)
  • 22.11 Release Notes (or backporting 22.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
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • Fits CONTRIBUTING.md.

@ofborg ofborg bot added the 6.topic: darwin Running or building packages on Darwin label Jul 24, 2022
@ofborg ofborg bot requested review from dezgeg and vcunat July 24, 2022 16:50
@ofborg ofborg bot added 10.rebuild-darwin: 101-500 This PR causes between 101 and 500 packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Jul 24, 2022
@trofi trofi mentioned this pull request Jul 24, 2022
13 tasks
@trofi trofi force-pushed the drop-kmod-on-darwin branch from d0b44be to a5c3e0a Compare July 24, 2022 19:28
@trofi trofi changed the base branch from staging-next to staging July 24, 2022 19:29
@ofborg ofborg bot added 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. and removed 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Jul 24, 2022
`kmod` is a linux-only package. Previous versions worked on `darwin`
by chance and might break in the future. Remove `kmod` import from
there.

Co-authored-by: Artturi <Artturin@artturin.com>
@trofi trofi force-pushed the drop-kmod-on-darwin branch from a5c3e0a to ab4d64d Compare July 25, 2022 06:41
@SuperSandro2000 SuperSandro2000 merged commit a3ed2eb into NixOS:staging Jul 25, 2022
@trofi trofi deleted the drop-kmod-on-darwin branch July 25, 2022 14:42
trofi added a commit to trofi/nixpkgs that referenced this pull request Jul 25, 2022
commit 7a2c07d "kmod: enable on darwin" added darwin
support mostly for `depmod` to be able to build `linux` kernel
on `darwin`.

In version 30 kmod requires more and more linux syscalls to build.
Instead of patching it for darwin let's drop it's support instead.

Maybe `depmod` could be packaged using some other way if needed.

Related: NixOS#182720 removed
`kmod` use on `darwin` from rare packages that still pulled it in.
Artturin pushed a commit to Artturin/nixpkgs that referenced this pull request Jul 27, 2022
commit 7a2c07d "kmod: enable on darwin" added darwin
support mostly for `depmod` to be able to build `linux` kernel
on `darwin`.

In version 30 kmod requires more and more linux syscalls to build.
Instead of patching it for darwin let's drop it's support instead.

Maybe `depmod` could be packaged using some other way if needed.

Related: NixOS#182720 removed
`kmod` use on `darwin` from rare packages that still pulled it in.
@trofi trofi mentioned this pull request Aug 2, 2022
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: darwin Running or building packages on Darwin 10.rebuild-darwin: 101-500 This PR causes between 101 and 500 packages to rebuild on Darwin. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants