Skip to content

fuse2: drop - #521536

Closed
jackrosenberg wants to merge 1 commit into
NixOS:stagingfrom
jackrosenberg:push-slntmuyxorzn
Closed

jackrosenberg wants to merge 1 commit into
NixOS:stagingfrom
jackrosenberg:push-slntmuyxorzn

Conversation

@jackrosenberg

@jackrosenberg jackrosenberg commented May 18, 2026 •

Copy link
Copy Markdown
Member

This PR will remove fuse, since it points to fuse-2.9.9 - which is unmaintained and deprecated in favor of fuse3. Other distributions have taken similar steps (1) (2).

This PR does:

  • Remove fuse(fuse-2.9.9)

Related:

Help wanted with:

  • Migrating modules that use fuse by setting options.programs.fuse.enable = true
  • Migrating packages to use fuse3 where possible, or if unmaintained and unused -- dropping them
  • Building and testing the packages in the checklist below, built off of this branch

If you are the maintainer of one of the packages this PR affects, please test if your package works as intended!

see:

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.

nixpkgs-branch-check[bot]

This comment was marked as outdated.

@jackrosenberg
jackrosenberg changed the base branch from master to staging May 18, 2026 11:05
@nixpkgs-ci nixpkgs-ci Bot closed this May 18, 2026
@nixpkgs-ci nixpkgs-ci Bot reopened this May 18, 2026
@nixpkgs-branch-check
nixpkgs-branch-check Bot dismissed their stale review May 18, 2026 11:06

Review dismissed automatically

@jackrosenberg
jackrosenberg force-pushed the push-slntmuyxorzn branch 2 times, most recently from e7548aa to f4310eb Compare May 18, 2026 11:23
@jackrosenberg jackrosenberg changed the title drop fuse2 WIP: drop fuse2 May 18, 2026
@GrimmTheShrimp

GrimmTheShrimp commented May 18, 2026 •

Copy link
Copy Markdown
Contributor

Couple notes, without much review done on the actual changes:

  • this will need to wait till after branch-off (which is fine, this is going to staging, we are past branch-off there)
  • several things still depend on fuse2 (see following list) and need to be migrated
    • Biggest consumers are libappimage and swtpm, migrating those away would be an important first step.
  • renaming fuse3 to fuse is a great way to break a lot of stuff expecting the old fuse, both in- and out of tree. Just remove fuse / fuse2, do the rename in a year or so when it has been gone for a release cycle
  • removing fuse2 (libfuse) from nixpkgs should make consumers obviously broken during build time, with the exception of out-of-tree non-nix consumers of /run/wrappers/bin/fusermount (we probably don't care about that niche scenario)
  • fuse3 should probably also not be enabled by default
    • one way to get that default disabled is to put explicit enables in portals/flatpak modules and warn if anyone is using the default value without explicitly defining it
    • warning will be quite noisy
    • less noisy would be to warn if fuse3 is in the closure of a system that relies on default enable, but i am not sure we can do that
  • fuse2 appears as /run/wrappers/bin/fusermount, we should not have 7 year old unmaintained suid binaries in our default config, making this PR security-relevant (without a concrete exploitation path i know of, but still)
Consumers of fuse 2

List generated using https://gitlab.com/K900/nix-drv-index against roughly current master branch.

/nix/store/lnwicy6d1r0s7drm0jr3xjyf02ax0p1m-fuse-2.9.9.drv x86_64-linux 6184
/nix/store/x3ras9jq7jix9z2nklwz2nvpzln1ca9v-swtpm-0.10.1.drv x86_64-linux 5939
/nix/store/ncqj0abqkvv96nkxl919n690z4rvi9l9-libappimage-1.0.4-5.drv x86_64-linux 40
/nix/store/4kjhv2y42md20nv6gkra5sgsjn2bgk6f-xrootd-5.9.1.drv x86_64-linux 24
/nix/store/9qm1xg2p4zy5a5knwm2d0xrfdfb1ilpr-ntfs3g-2026.2.25.drv x86_64-linux 19
/nix/store/xklvxkkdv08agkd47id2k3g43kgi00bw-python3.13-fusepy-3.0.1.drv x86_64-linux 13
/nix/store/fkhq7zhj1hnl4nxcx6afha8r5w302pq6-python3.13-fuse-python-1.0.9.drv x86_64-linux 12
/nix/store/y0v1nbp7c46hxyw4s4k4syl2wl0acjgl-rclone-1.74.1.drv x86_64-linux 12
/nix/store/9yls5ss7iaqvlh8a0252my8q9g6jw1ah-erofs-utils-1.9.1.drv x86_64-linux 8
/nix/store/6504rzc1y0bzmbgnr7jwx10a3698sfdq-gocryptfs-2.6.1.drv x86_64-linux 6
/nix/store/5fbrsiqqrjji10m4qy7l1kn17c5yrhvk-libnbd-1.22.5.drv x86_64-linux 5
/nix/store/gsckmgma5wz8c4rnk2w1yj2m3sd6ma1p-ceph-20.2.1.drv x86_64-linux 3
/nix/store/ha8g9a67xw58swz269w0ay1pr86igkbv-grub-2.12.drv x86_64-linux 3
/nix/store/5ivklhwak8d6whqamps3nsdd5fq23wm8-libguestfs-1.56.2.drv x86_64-linux 3
/nix/store/ngkns671n61n3aj50hm87ap3gyzd1199-libguestfs-1.56.2.drv x86_64-linux 3
/nix/store/g8i6qvzff5hgqbxfxzwa9jp1nxcpnffw-python3.14-fusepy-3.0.1.drv x86_64-linux 3
/nix/store/y1ihffikisg41aw5rf13yzp953q3m3q4-sbcl-cl-fuse-20200925-git.drv x86_64-linux 3
/nix/store/q7fhbhfl2mg8723gg2jhszg9y70v4hps-adbfs-rootless-0-unstable-2023-03-21.drv x86_64-linux 2
/nix/store/fidzih4hrbgingi5xj0dq8w320k5v5bq-encfs-1.9.5.drv x86_64-linux 2
/nix/store/b6n1dsfsc1p3yix1fk4qaiq3vxg5fqcd-fuseiso-20070708.drv x86_64-linux 2
/nix/store/2hianj24mnsygmvvakzxn4xqxzd74qvf-glusterfs-11.2.drv x86_64-linux 2
/nix/store/lwqy2qpb75n3sj7hdz0zhhwr14f7bnv4-grub-2.12.drv x86_64-linux 2
/nix/store/q9rbk2khxkdf2ippbf8ic9j4fkgq86m2-grub-2.12.drv x86_64-linux 2
/nix/store/kyfkjkd7l32czsrq03vgqg9k0zrr1nh4-ifuse-1.1.4+date=2022-04-04.drv x86_64-linux 2
/nix/store/bj9kxphby3dilibz2jxmfndiyqijgk38-ocaml5.4.1-ocamlfuse-2.7.1_cvs13.drv x86_64-linux 2
/nix/store/zdzj3nbg0ih701jcxjfrxan284jrjkdl-libnbd-1.22.5.drv x86_64-linux 2
/nix/store/a5jq83bl8frspxrc310f2y54sws07rk8-seadrive-fuse-3.0.22.drv x86_64-linux 2
/nix/store/5jpifqzslimwxpykymxppxcbmkjh5kzs-9pfs-0.5.drv x86_64-linux 1
/nix/store/whc6wkvrajflm9l7q0kjx56vnccgjnq4-aefs-0-unstable-2015-05-06.drv x86_64-linux 1
/nix/store/p7wrmal1nii5mpgqrn6vbb6q05bkjn3v-afuse-0.5.0.drv x86_64-linux 1
/nix/store/1xaszih2jw0a6wm52d8x2p7v6pprx3wc-apt-cacher-ng-3.7.5.drv x86_64-linux 1
/nix/store/58hnaiga3cahjikfwg6rqzwdafh6q0rk-archivemount-1b.drv x86_64-linux 1
/nix/store/3sy0mfyihxw6wlah5kbp3zbfnhchlhm0-avfs-1.3.0.drv x86_64-linux 1
/nix/store/gdrizj1pq68kf9664vkwgriipn8crrfc-boxfs-2-20150109.drv x86_64-linux 1
/nix/store/g71fh00g62x0nx2wv979m8v6n75r6gif-casync-2-unstable-2023-10-16.drv x86_64-linux 1
/nix/store/9fspy54r4nyiwjj96yfz2rfbxqyzshgp-catfs-0.9.0-unstable-2023-10-09.drv x86_64-linux 1
/nix/store/3kxvh317cdf2m1vabflfrnpsgzl5kyzj-chicken-fuse-0.1.1.drv x86_64-linux 1
/nix/store/gy6wm5m7f1j0sb25jmv81w6p40c5sqjh-chunkfs-0.8.drv x86_64-linux 1
/nix/store/iz2f5k78799c3q2wlvr5f5r6qk25zl4b-ciopfs-0.4.drv x86_64-linux 1
/nix/store/hs5qyz3703481k5l7fbrimvhb855djls-cromfs-1.5.10.2.drv x86_64-linux 1
/nix/store/h8ygaji5lr79vaif2pm1vw4liaw0pb0r-cryfs-1.0.3.drv x86_64-linux 1
/nix/store/xwi3ap01xzfhnbwwqrm2iny9vhcrwwrc-curlftpfs-0.9.2.drv x86_64-linux 1
/nix/store/yjb695sq5190j2bz22vkf1rg9hraqzs4-darling-dmg-1.0.4-unstable-2023-07-26.drv x86_64-linux 1
/nix/store/qd53s1cx7mc788v38c9b94kpnvi35na6-djmount-0.71.drv x86_64-linux 1
/nix/store/9lm97z7w70h4kashwmgbjaja57d31bc4-exfat-1.4.0.drv x86_64-linux 1
/nix/store/k0i21sy2801z5ngnzqd7lgjc9g0gnld1-ext4fuse-0.1.3.drv x86_64-linux 1
/nix/store/14brfyfjyh73fqq5jjz0h58fgckrzkbq-fuse-7z-ng-0-unstable-2014-06-08.drv x86_64-linux 1
/nix/store/zp8575gn918cqs51yallwxdc1i41xkhb-fuse-archive-1.10.drv x86_64-linux 1
/nix/store/vnh2skrcw41yqmngjqhxbrqg5jp47680-fuse-ext2-0.0.11.drv x86_64-linux 1
/nix/store/qh9j1s9h8y1r2sk2b015y1xrqmv44c8f-gphoto2fs-0.5.0.drv x86_64-linux 1
/nix/store/f4nqkiz15w12f49fd99bci1c118zglw5-grub-2.12.drv x86_64-linux 1
/nix/store/913249pagj0jwam350vy16fdlf611rc9-grub-2.12.drv x86_64-linux 1
/nix/store/98laz95phyrnpz9dp7x9w8m87wyd5dh1-HFuse-0.2.5.0.drv x86_64-linux 1
/nix/store/xk8wkkhrd6f187m36gi1qyskmf81lgg4-hpe-ltfs-3.4.2_Z7550-02501.drv x86_64-linux 1
/nix/store/hjwd2wpj4f4lzvkz43kxilb6kc4irfvq-httpfs2-0.1.5.drv x86_64-linux 1
/nix/store/d1n8kahavcg9jl7a8i9qsw8dbps4gq24-jmtpfs-0.5.drv x86_64-linux 1
/nix/store/badn2pjai8zyd099xxcpn17zgf7j0y56-libbde-20240502.drv x86_64-linux 1
/nix/store/48xm1xmbhyg4qlr1xxriykf12978jl2r-libvmi-0.14.0-unstable-2026-01-04.drv x86_64-linux 1
/nix/store/22006mi7p0jy81ap7yjwl0ggd2dszlw4-littlefs-fuse-2.7.15.drv x86_64-linux 1
/nix/store/5j5rvnr5shq8k9mhmqky6xprdbag500g-megacmd-2.5.2.drv x86_64-linux 1
/nix/store/amc267dq2nd2s9zs414vwfndrwjnidyn-megatools-1.11.5.drv x86_64-linux 1
/nix/store/rc3hmr2gadb0lb27x79a48517z7dr844-mhddfs-0.1.39.drv x86_64-linux 1
/nix/store/3ygsnjp1bswakqdpyykqy8g30kvlby69-moosefs-4.59.1.drv x86_64-linux 1
/nix/store/q5y5jqfp1yrpvasx90n36wwbgas03yva-mp3fs-1.1.1.drv x86_64-linux 1
/nix/store/80c3sk41d28m93r1775050lkn3lnkc9y-mtpfs-0-unstable-2024-12-10.drv x86_64-linux 1
/nix/store/vrg30shg4yw0kq60l944pi0hg3lf4imj-obexfs-0.12.drv x86_64-linux 1
/nix/store/z1lm2q621qq7vap4jqn9pmwckx6p07hh-libnbd-1.22.5.drv x86_64-linux 1
/nix/store/n0v14wyx2x0c8vyk5n9gsckpbh1h9513-oku-0.1.1.drv x86_64-linux 1
/nix/store/nvd4bglvz0z82zd60lzsp8aq5nrcv6j3-onedriver-0.15.0.drv x86_64-linux 1
/nix/store/lfjjym3p6b4rxwmfrswzj187w89g2pl0-openlist-4.2.1.drv x86_64-linux 1
/nix/store/450fc30cjn1yc1s2ccrhb2dnfd7c1z67-pcloud-2.0.4.drv x86_64-linux 1
/nix/store/bk5bavgkk88milx8yl3gcn5j0wh0kl1h-pfsshell-1.1.1-unstable-2025-07-13.drv x86_64-linux 1
/nix/store/ygiw2nkpn20p16mdm9izyi4782i0467r-plakar-1.0.6.drv x86_64-linux 1
/nix/store/68zihnsxpv7fr6zf3sxqhjhp4cl7dxm8-prl-tools-26.3.2-57398.drv x86_64-linux 1
/nix/store/gdss8ffcfi68n7cvrb03xzg4ajdhrc3x-python3.13-llfuse-1.5.2.drv x86_64-linux 1
/nix/store/jbqwg7w072sa4h71rvjzxlwljfa2yxzj-python3.14-fuse-python-1.0.9.drv x86_64-linux 1
/nix/store/fqpkz025rm9wjc4wibclgws432p5a2jc-libguestfs-1.56.2.drv x86_64-linux 1
/nix/store/hkpxmxhibc8xmm7a1il1h84af7bj50hb-libnbd-1.22.5.drv x86_64-linux 1
/nix/store/fzg27i2j5vjcb7hsm8y9n8h2z9d2a2sk-python3.14-llfuse-1.5.2.drv x86_64-linux 1
/nix/store/ps2w442g0f1s9wj9liaq90ixp6lq0lbb-rar2fs-1.29.7.drv x86_64-linux 1
/nix/store/l890dbmlwhjph1ic0dha374y0zry36ma-romdirfs-1.2.drv x86_64-linux 1
/nix/store/nh6qp4spp4bbv2vsm8w5dbw3j33dpgmg-rshim-user-space-2.6.6.drv x86_64-linux 1
/nix/store/gk90pd62ry8wdl8paapzmgyk4yxxw2zl-rustic-0.11.2.drv x86_64-linux 1
/nix/store/9ym30nym0p0pb1akk6va647fns4rf9xf-s3fs-fuse-1.95.drv x86_64-linux 1
/nix/store/pzw8xzwqw4yjqg8sj6mwl1gci4k076n7-securefs-2.0.0.drv x86_64-linux 1
/nix/store/ijhf2570s7b61hcvj8dxb01hs8mkh040-simple-mtpfs-0.4.0.drv x86_64-linux 1
/nix/store/g4cb5hynsykz2kc4ccmh7ll3ih7k89zr-smbnetfs-0.6.3.drv x86_64-linux 1
/nix/store/0p6ky52pmk9zhgn1zsyfyx6h6mdpwifn-sqlar-2018-01-07.drv x86_64-linux 1
/nix/store/ds8wy0dgswsdrhjqfsk92klb0n40g0cv-svnfs-0.4.drv x86_64-linux 1
/nix/store/y6bsj90dym5x9dnlskwzlsxg84rlmk0q-veracrypt-1.26.24.drv x86_64-linux 1
/nix/store/h03qj6chmiam7vy3yzvmkrzw72bmj2bw-vmfs-tools-0.2.5.20160116.drv x86_64-linux 1
/nix/store/ibzb1yskcik6ag8pawgksiy4hrajdgcy-waydroid-helper-0.2.7.drv x86_64-linux 1
/nix/store/61cifi6k18pd20lcqsvs5b67zx1bxjb0-wdfs-fuse-1.4.2.drv x86_64-linux 1
/nix/store/41a31a0d4r1s00nm73w4b1l5chj4iixp-wiimms-iso-tools-3.05a.drv x86_64-linux 1
/nix/store/1wyvbjc4xk3w57rbkbdd7mldz41l1f0n-zkfuse-3.9.5.drv x86_64-linux 1

@GrimmTheShrimp GrimmTheShrimp added 1.severity: security Issues which raise a security issue, or PRs that fix one 1.severity: significant Novel ideas, large API changes, notable refactorings, issues with RFC potential, etc. labels May 18, 2026
@SuperSandro2000

Copy link
Copy Markdown
Member

I think the ideas that where shared yesterday in the Security Discussion Matrix Chat are a good requirement for this:

Make fuse2 opt-in and enable it explicitly for every module and than work with upstream to migrate those away. So fuse2 will probably not go for a while...

@GrimmTheShrimp

Copy link
Copy Markdown
Contributor

Make fuse2 opt-in and enable it explicitly for every module and than work with upstream to migrate those away. So fuse2 will probably not go for a while...

I understood that was about fuse3 and we should drop fuse2 asap because there is no reason anyone should be using it in this day and age

@SuperSandro2000

SuperSandro2000 commented May 18, 2026 •

Copy link
Copy Markdown
Member

Before we can drop it we need to either migrate all its dependents, break functionality or disable it in users or remove those packages. fuse3 needs explicit support in programs as the include path for the main header changed and return values for functions are different, so just mass upgrading it might result in broken packages or worse that silently features are deactivated.

I start with the users on my machine:

@ryand56 ryand56 added the 2.status: wait for branch‐off Waiting for the next Nixpkgs branch‐off label May 18, 2026
@jackrosenberg jackrosenberg mentioned this pull request May 19, 2026
14 tasks
@jackrosenberg

jackrosenberg commented May 19, 2026 •

Copy link
Copy Markdown
Member Author

I've removed the following from all-packages.nix, since it feels very hacky... Are there reasons to keep it?

  fuse3 = lowPrio (
    if stdenv.hostPlatform.isDarwin then macfuse-stubs.override { isFuse3 = true; } else fuse
  );

@wegank

wegank commented May 19, 2026

Copy link
Copy Markdown
Member

I've removed the following from all-packages.nix, since it feels very hacky... Are there reasons to keep it?

  fuse3 = lowPrio (
    if stdenv.hostPlatform.isDarwin then macfuse-stubs.override { isFuse3 = true; } else fuse
  );

To not effectively drop FUSE support on macOS?

@jackrosenberg

jackrosenberg commented May 19, 2026 •

Copy link
Copy Markdown
Member Author

To not effectively drop FUSE support on macOS?

Shouldn't consumers implement this logic themselves? such as in #521729

@wegank

wegank commented May 19, 2026

Copy link
Copy Markdown
Member

Shouldn't consumers implement this logic themselves? such as in #521729

I'm not sure. If that's the direction we want to take for the next release, I think we should at least document it.

@jackrosenberg jackrosenberg mentioned this pull request May 19, 2026
14 tasks
@jackrosenberg

Copy link
Copy Markdown
Member Author

I'm not sure. If that's the direction we want to take for the next release, I think we should at least document it.

asked around and this is the way it is done. adding it back

@jackrosenberg
jackrosenberg force-pushed the push-slntmuyxorzn branch 4 times, most recently from bdd6fd7 to dc365a7 Compare May 19, 2026 16:38
@jackrosenberg
jackrosenberg marked this pull request as ready for review June 11, 2026 10:55
@jackrosenberg jackrosenberg changed the title WIP: drop fuse2 fuse2: drop Jun 11, 2026
@nixpkgs-ci nixpkgs-ci Bot removed the 2.status: merge conflict This PR has merge conflicts with the target branch label Jun 11, 2026
@nixpkgs-ci nixpkgs-ci Bot added the 2.status: merge conflict This PR has merge conflicts with the target branch label Jul 19, 2026
This was referenced Jul 27, 2026
@whispersofthedawn whispersofthedawn removed the 2.status: wait for branch‐off Waiting for the next Nixpkgs branch‐off label Jul 30, 2026
@whispersofthedawn

Copy link
Copy Markdown
Contributor

#578828

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

Labels

1.severity: security Issues which raise a security issue, or PRs that fix one 1.severity: significant Novel ideas, large API changes, notable refactorings, issues with RFC potential, etc. 2.status: merge conflict This PR has merge conflicts with the target branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants