Skip to content

Conversation

@JohnRTitor
Copy link
Member

@JohnRTitor JohnRTitor commented Oct 21, 2025

Manual backport of #452314

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.

(cherry picked from commit 4257910)
add github repo as downloadPage

(cherry picked from commit 4c6e189)
koverstreet/bcachefs-tools@456f73c
Tools is now compatible with Kernel version 6.18

(cherry picked from commit 80776b6)
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

This report is automatically generated by the PR / Check / cherry-pick CI workflow.

Some of the commits in this PR require the author's and reviewer's attention.

Please follow the backporting guidelines and cherry-pick with the -x flag.
This requires changes to the unstable master and staging branches first, before backporting them.

Occasionally, commits are not cherry-picked at all, for example when updating minor versions of packages which have already advanced to the next major on unstable.
These commits can optionally be marked with a Not-cherry-picked-because: <reason> footer.

Sometimes it is not possible to cherry-pick exactly the same patch.
This most frequently happens when resolving merge conflicts.
The range-diff will help to review the resolution of conflicts.

If you need to merge this PR despite the warnings, please dismiss this review shortly before merging.

Warning

Difference between a975d6d and original 3f4171b may warrant inspection.

Show diff
@@ Metadata
  ## Commit message ##
     bcachefs-tools: use versionCheckHook instead of a passthru.tests
 
+    (cherry picked from commit 3f4171b8b38d716ae3a20ee12083f04c12bbb1fa)
+
  ## pkgs/by-name/bc/bcachefs-tools/package.nix ##
 @@
    rustPlatform,
@@ pkgs/by-name/bc/bcachefs-tools/package.nix
    nixosTests,
    installShellFiles,
    fuseSupport ? false,
-@@ pkgs/by-name/bc/bcachefs-tools/package.nix: stdenv.mkDerivation (finalAttrs: {
-     rustPlatform.bindgenHook
-     makeWrapper
-     installShellFiles
--    udevCheckHook
-   ];
++  udevCheckHook,
+ }:
  
-   buildInputs = [
+ stdenv.mkDerivation (finalAttrs: {
 @@ pkgs/by-name/bc/bcachefs-tools/package.nix: stdenv.mkDerivation (finalAttrs: {
+   # FIXME: Try enabling this once the default linux kernel is at least 6.7
    doCheck = false; # needs bcachefs module loaded on builder
  
-   doInstallCheck = true;
++  doInstallCheck = true;
 +  nativeInstallCheckInputs = [
 +    udevCheckHook
 +    versionCheckHook
 +  ];
 +  versionCheckProgramArg = "version";
- 
++
    postPatch = ''
      substituteInPlace Makefile \
+       --replace-fail "target/release/bcachefs" "target/${stdenv.hostPlatform.rust.rustcTargetSpec}/release/bcachefs"
 @@ pkgs/by-name/bc/bcachefs-tools/package.nix: stdenv.mkDerivation (finalAttrs: {
      kernelModule = import ./kernel-module.nix finalAttrs.finalPackage;
  

Warning

Couldn't locate original commit hash in message of 17f553a.

Hint: The full diffs are also available in the runner logs with slightly better highlighting.

@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. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 4.workflow: backport This targets a stable branch labels Oct 21, 2025
@nix-owners nix-owners bot requested review from Madouura and davidak October 21, 2025 14:46
@JohnRTitor

This comment was marked as outdated.

@JohnRTitor

This comment was marked as outdated.

@JohnRTitor
Copy link
Member Author

For some reason versionCheckHook is not respecting meta.mainProgram?

This should be reverted once/if NixOS#454228 is merged to release-25.05.
@JohnRTitor
Copy link
Member Author

nixpkgs-review result

Generated using nixpkgs-review-gha

Command: nixpkgs-review pr 454223

Logs: https://github.com/JohnRTitor/nixpkgs-review-gha/actions/runs/18687707613


x86_64-linux

✅ 1 test built:
  • nixosTests.bcachefs

@JohnRTitor
Copy link
Member Author

nixpkgs-review result

Generated using nixpkgs-review-gha

Command: nixpkgs-review pr 454223

Logs: https://github.com/JohnRTitor/nixpkgs-review-gha/actions/runs/18687699798


x86_64-linux

❌ 2 packages failed to build:
  • linuxPackages_latest-libre.bcachefs (linuxKernel.packages.linux_latest_libre.bcachefs)
  • linuxPackages_lqx.bcachefs (linuxKernel.packages.linux_lqx.bcachefs)
✅ 6 packages built:
  • bcachefs-tools
  • bcachefs-tools.dkms
  • linuxKernel.packages.linux_6_16.bcachefs
  • linuxPackages_latest.bcachefs (linuxKernel.packages.linux_6_17.bcachefs)
  • linuxPackages_xanmod_latest.bcachefs (linuxKernel.packages.linux_xanmod_latest.bcachefs, linuxPackages_xanmod_stable.bcachefs)
  • linuxPackages_zen.bcachefs (linuxKernel.packages.linux_zen.bcachefs)

Error logs: `x86_64-linux`
linuxPackages_lqx.bcachefs
  CC [M]  src/fs/bcachefs/data/reflink.o
  CC [M]  src/fs/bcachefs/data/update.o
  CC [M]  src/fs/bcachefs/data/write.o
  CC [M]  src/fs/bcachefs/debug/async_objs.o
src/fs/bcachefs/data/write.c: In function '__wp_update_state':
src/fs/bcachefs/data/write.c:634:32: error: 'struct task_struct' has no member named 'se'
  634 |                 u64 runtime = p->se.sum_exec_runtime +
      |                                ^~
src/fs/bcachefs/data/write.c:635:33: error: 'struct task_struct' has no member named 'se'
  635 |                         (now - p->se.exec_start);
      |                                 ^~
make[5]: *** [/nix/store/p3x3yrmphrkljpjimjnhiiiylkxiknhz-linux-lqx-6.16.9-dev/lib/modules/6.16.9-lqx1/source/scripts/Makefile.build:287: src/fs/bcachefs/data/write.o] Error 1
make[5]: *** Waiting for unfinished jobs....
make[4]: *** [/nix/store/p3x3yrmphrkljpjimjnhiiiylkxiknhz-linux-lqx-6.16.9-dev/lib/modules/6.16.9-lqx1/source/scripts/Makefile.build:555: src/fs/bcachefs] Error 2
make[3]: *** [/nix/store/p3x3yrmphrkljpjimjnhiiiylkxiknhz-linux-lqx-6.16.9-dev/lib/modules/6.16.9-lqx1/source/Makefile:2001: .] Error 2
make[2]: *** [/nix/store/p3x3yrmphrkljpjimjnhiiiylkxiknhz-linux-lqx-6.16.9-dev/lib/modules/6.16.9-lqx1/source/Makefile:248: __sub-make] Error 2
make[2]: Leaving directory '/build/bcachefs-tools-1.31.11-dkms'
make[1]: *** [/nix/store/p3x3yrmphrkljpjimjnhiiiylkxiknhz-linux-lqx-6.16.9-dev/lib/modules/6.16.9-lqx1/source/Makefile:248: __sub-make] Error 2
make[1]: Leaving directory '/nix/store/p3x3yrmphrkljpjimjnhiiiylkxiknhz-linux-lqx-6.16.9-dev/lib/modules/6.16.9-lqx1/build'
make: *** [Makefile:9: default] Error 2

aarch64-linux

❌ 1 package failed to build:
  • linuxPackages_latest-libre.bcachefs (linuxKernel.packages.linux_latest_libre.bcachefs)
✅ 4 packages built:
  • bcachefs-tools
  • bcachefs-tools.dkms
  • linuxKernel.packages.linux_6_16.bcachefs
  • linuxPackages_latest.bcachefs (linuxKernel.packages.linux_6_17.bcachefs)

@dotlambda
Copy link
Member

dotlambda commented Oct 21, 2025

For some reason versionCheckHook is not respecting meta.mainProgram?

I suggest you disable versionCheckHook on 25.11.
That's what I did in #452659.

@bengsparks
Copy link
Contributor

Alternatively set versionCheckProgram manually, merge it for now, and soon enough the versionCheckHook change will make its way to release-25.11 when we start on 26.05.
There will hopefully be a treewide to catch cases like these where versionCheckProgram's last component matches mainProgram

@JohnRTitor JohnRTitor enabled auto-merge October 21, 2025 17:28
@JohnRTitor JohnRTitor dismissed github-actions[bot]’s stale review October 21, 2025 17:30

expected due to conflict res

@JohnRTitor JohnRTitor added this pull request to the merge queue Oct 21, 2025
@JohnRTitor
Copy link
Member Author

Alternatively set versionCheckProgram manually

That's what I did (17f553a), thanks.

Merged via the queue into NixOS:release-25.05 with commit a38150e Oct 21, 2025
27 of 31 checks passed
@JohnRTitor JohnRTitor deleted the bcachefs-backport branch October 21, 2025 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4.workflow: backport This targets a stable branch 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants