Skip to content

fuse2: drop - #578828

Merged
mweinelt merged 13 commits into
NixOS:masterfrom
mweinelt:kill-fuse2
Oct 26, 2026
Merged

mweinelt merged 13 commits into
NixOS:masterfrom
mweinelt:kill-fuse2

Conversation

@mweinelt

@mweinelt mweinelt commented Oct 25, 2026 •

Copy link
Copy Markdown
Member

The package is considered end of life and was last maintainted in 2019.

We spent the 26.11 cycle working on removing our reliance on it and this
is the final stretch.

Closes: #526161

Things done

@Scrumplex Scrumplex added this to the 26.11 milestone Oct 25, 2026
@Scrumplex Scrumplex moved this to In progress in 26.11 Blockers Oct 25, 2026
@mweinelt
mweinelt force-pushed the kill-fuse2 branch 2 times, most recently from fa0bb87 to 2eebde6 Compare October 25, 2026 15:36
@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: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 6.topic: haskell General-purpose, statically typed, purely functional programming language labels Oct 25, 2026
@mweinelt
mweinelt marked this pull request as ready for review October 25, 2026 15:44
@nixpkgs-ci nixpkgs-ci Bot added the 6.topic: python Python is a high-level, general-purpose programming language. label Oct 25, 2026
@mweinelt

Copy link
Copy Markdown
Member Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 578828
Commit: 738ba3096ceacd6bad105ce7af3d4fe9eb9f8336


x86_64-linux

⏩ 49 packages marked as broken and skipped:
  • alist
  • darling-dmg
  • gfal2
  • haskellPackages.HFuse
  • hepmc3
  • herwig
  • libguestfs
  • applgrid
  • gfal2-util
  • ns-3
  • apfelgrid
  • pfsshell
  • python313Packages.fsspec-xrootd
  • python313Packages.gfal2-python
  • python313Packages.gfal2-util
  • python313Packages.guestfs
  • python313Packages.hepdata-converter
  • python313Packages.hepmc3
  • python313Packages.rivet
  • python313Packages.root
  • python313Packages.xrootd
  • python314Packages.fsspec-xrootd
  • python314Packages.gfal2-python
  • python314Packages.gfal2-util
  • python314Packages.guestfs
  • python314Packages.hepdata-converter
  • python314Packages.hepmc3
  • python313Packages.rucio
  • python314Packages.rivet
  • python314Packages.root
  • python314Packages.rucio
  • python314Packages.xrootd
  • rivet
  • root
  • rucio
  • sbclPackages.cl-fuse
  • sbclPackages.cl-fuse-meta-fs
  • seadrive-fuse
  • thepeg
  • sbclPackages.query-fs
  • virt-v2v
  • xfitter
  • xrootd
  • yoda-with-root
  • python313Packages.snakemake-storage-plugin-xrootd
  • seadrive-gui
  • diffoscope
  • vagrant
  • python314Packages.snakemake-storage-plugin-xrootd
⏩ 2 packages present in ofBorg's evaluation, but not found in the checkout:
  • fuse2
  • hpe-ltfs
❌ 1 package failed to build:
  • nak
✅ 17 packages built:
  • copyparty-min
  • pcloud
  • dpt-rp1-py
  • python313Packages.dissect
  • python313Packages.fusepy
  • python313Packages.dissect-target
  • mtkclient
  • python313Packages.htmllistparse
  • python314Packages.fusepy
  • python313Packages.acquire
  • qemu-python-utils
  • copyparty-most
  • python314Packages.htmllistparse
  • copyparty-full-buggy
  • copyparty
  • lutris
  • lutris-free

nak
Running phase: unpackPhase
@nix {"action":"setPhase","phase":"unpackPhase"}
unpacking source archive /nix/store/yajirdn37w0hx1m1g2vcvrqx3vcq124b-source
source root is source
Running phase: patchPhase
@nix {"action":"setPhase","phase":"patchPhase"}
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix {"action":"setPhase","phase":"updateAutotoolsGnuConfigScriptsPhase"}
Running phase: configurePhase
@nix {"action":"setPhase","phase":"configurePhase"}
Running phase: buildPhase
@nix {"action":"setPhase","phase":"buildPhase"}
Building subPackage .
Building subPackage ./nostrfs
Building subPackage ./nostrfs_cgo
# github.com/winfsp/cgofuse/fuse
vendor/github.com/winfsp/cgofuse/fuse/host_cgo.go:119:10: fatal error: fuse.h: No such file or directory
  119 | #include <fuse.h>
      |          ^~~~~~~~
compilation terminated.

@Skyb0rg007 Skyb0rg007 left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You need to drop the reference in nixos/programs/fuse.nix

here:

fusermount = mkSetuidRoot "${lib.getBin pkgs.fuse}/bin/fusermount";

Comment thread nixos/modules/programs/fuse.nix Resolved
@nixpkgs-ci nixpkgs-ci Bot added the 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS label Oct 25, 2026

@GrimmTheShrimp GrimmTheShrimp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Couple notes, but very close, and i want this

Comment thread pkgs/by-name/na/nak/package.nix Outdated
passthru.updateScript = nix-update-script { };

meta = {
broken = true; # stuck on fuse2 via github.com/winfsp/cgofuse/fuse

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You sure? Supposedly fuse3 is supported: winfsp/cgofuse@a40e268, setting a go tag.

Following diff at least succeeds to build:

diff --git a/pkgs/by-name/na/nak/package.nix b/pkgs/by-name/na/nak/package.nix
index e5799f85e868..38cb483777ca 100644
--- a/pkgs/by-name/na/nak/package.nix
+++ b/pkgs/by-name/na/nak/package.nix
@@ -35,6 +35,9 @@ buildGoModule (finalAttrs: {
     fuse
   ];
 
+  tags = [ "fuse3" ];
+  env.CGO_CFLAGS = "-I${lib.getDev fuse}/include/fuse3";
+
   # Integration tests fail (requires connection to relays)
   doCheck = false;
 
@@ -44,7 +47,6 @@ buildGoModule (finalAttrs: {
   passthru.updateScript = nix-update-script { };
 
   meta = {
-    broken = true; # stuck on fuse2 via github.com/winfsp/cgofuse/fuse
     description = "Command-line tool for Nostr things";
     homepage = "https://github.com/fiatjaf/nak";
     changelog = "https://github.com/fiatjaf/nak/releases/tag/${finalAttrs.src.tag}";

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

substituteInPlace fuse.py --replace \
"find_library('fuse')" "'${lib.getLib pkgs.fuse}/lib/libfuse.so'"
substituteInPlace fuse.py --replace-fail \
"find_library('fuse')" "'${lib.getLib pkgs.fuse3}/lib/libfuse3.so'"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

urgs, calling pkgs here is super ugly, doesn't this turbo-explode on splicing? And fuse -> fuse3 as a simple replace is unexpected, but i didn't dig.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

No idea, but I didn't make it worse.

);
fuse = fuse2;
fuse2 = lowPrio (if stdenv.hostPlatform.isDarwin then macfuse-stubs else fusePackages.fuse_2);
fuse = fuse3;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this may cause problems for out-of-tree users. I'd have preferred just dropping (unversioned) fuse attr for a release cycle, but if you want to do this i won't stop you.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Meh, too much work.

Comment thread pkgs/top-level/aliases.nix Outdated
frozen-bubble = throw "'frozen-bubble' has been removed because it is broken and unmaintained"; # Added 2026-05-17
frugal = throw "'frugal' was removed because upstream has been pulled"; # Added 2025-12-20
fscrypt-experimental = warnAlias "'fscrypt-experimental' has been renamed to/replaced by 'fscrypt'" fscrypt; # Added 2026-01-19
fuse = throw "'fuse' was an alias for `fuse2`, which has been removed. Migrate to `fuse3` instead."; # Added 2026-10-26

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You should also drop fuse from every package, its fine because they already broken

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Decided not to remove the fuse name after all. Someone else can do that work.

mweinelt and others added 6 commits October 26, 2026 00:46
The package is considered end of life and was last maintainted in 2019.

We spent the 26.11 cycle working on removing our reliance on it and this
is the final stretch.
@nixpkgs-ci
nixpkgs-ci Bot requested a review from Moraxyc October 25, 2026 23:53
@mweinelt
mweinelt added this pull request to the merge queue Oct 26, 2026
Merged via the queue into NixOS:master with commit 055a962 Oct 26, 2026
30 checks passed
@mweinelt
mweinelt deleted the kill-fuse2 branch October 26, 2026 00:17
@whispersofthedawn whispersofthedawn mentioned this pull request Oct 26, 2026
2 of 13 tasks
@Scrumplex Scrumplex moved this from In progress to Done in 26.11 Blockers Oct 26, 2026
@dchrist22 dchrist22 mentioned this pull request Nov 3, 2026
4 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: haskell General-purpose, statically typed, purely functional programming language 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 6.topic: python Python is a high-level, general-purpose programming language. 8.has: module (update) This PR changes an existing module in `nixos/` 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 12.approvals: 2 This PR was reviewed and approved by two persons.

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

Tracking: Migrate from fuse (2.x) to fuse3 (3.x)

5 participants