Skip to content

fwts: 25.09.00 -> 26.07.00, remove kernel module, remove pcre - #505060

Merged
mweinelt merged 3 commits into
NixOS:masterfrom
mBornand:fwts
Aug 9, 2026
Merged

mweinelt merged 3 commits into
NixOS:masterfrom
mBornand:fwts

Conversation

@mBornand

@mBornand mBornand commented Mar 30, 2026 •

Copy link
Copy Markdown
Contributor

Things done

  • Add missing zlib dependency
  • Removed the efi_runtime module since it is only for old kernels <4.8. And was removed from the repo in v06.01.00
  • Update to the last version, this requires some changes to the root path.

Changelog: https://github.com/fwts/fwts/releases

  • 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-ci
nixpkgs-ci Bot requested a review from tadfisher March 30, 2026 18:07
@nixpkgs-ci nixpkgs-ci Bot added 8.has: package (update) This PR updates a package to a newer version 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. labels Mar 30, 2026
@nixpkgs-ci
nixpkgs-ci Bot requested a review from a team March 30, 2026 19:21
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 8.has: changelog This PR adds or changes release notes 8.has: documentation This PR adds or changes documentation and removed 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. labels Mar 30, 2026
@mBornand

Copy link
Copy Markdown
Contributor Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 505060
Commit: eeedb96c571461732cb8d55e16a0b92d7599d56d


x86_64-linux

⏩ 1 package blacklisted:
  • tests.nixos-functions.nixos-test
✅ 2 packages built:
  • fwts
  • nixpkgs-manual

aarch64-linux

⏩ 1 package blacklisted:
  • tests.nixos-functions.nixos-test
✅ 2 packages built:
  • fwts
  • nixpkgs-manual

@nixpkgs-ci nixpkgs-ci Bot added the 2.status: merge conflict This PR has merge conflicts with the target branch label May 8, 2026
@nixpkgs-ci nixpkgs-ci Bot added 6.topic: kernel The Linux kernel and removed 2.status: merge conflict This PR has merge conflicts with the target branch 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. labels May 9, 2026
Ma27
Ma27 previously requested changes May 14, 2026

@Ma27 Ma27 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please add a throw alias to linux-kernels.nix for the removed attribute.

@mBornand
mBornand force-pushed the fwts branch 2 times, most recently from a40ba07 to bceaa8f Compare May 16, 2026 08:21
@nixpkgs-ci nixpkgs-ci Bot added the 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. label May 16, 2026
@mBornand
mBornand requested a review from Ma27 May 16, 2026 08:28
@thunze thunze added the 0.kind: ZHF Fixes Fixes during the Zero Hydra Failures (ZHF) campaign label May 16, 2026
Comment thread pkgs/os-specific/linux/fwts/default.nix Outdated
--replace-fail "dtc -I" "${dtc}/bin/dtc -I"

substituteInPlace src/lib/src/Makefile.am \
--replace-fail "libfwts_la_LIBADD =" "libfwts_la_LIBADD = -lz"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We can't just set this in makeFlags?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

No, at least I don't know how. We are replacing in a multi line statement that looks like

libfwts_la_LIBADD = 				\
	-lm -lpthread -lbsd				\
	@GIO_LIBS@					\
	@GLIB_LIBS@

https://github.com/fwts/fwts/blob/3e05ba9c2640a85cac1f408a423d25e712677fa1/src/lib/src/Makefile.am#L33

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hmm. How is this supposed to work? Why hasn't upstream needed to add this?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is what I got with a bisect bisect-fwts.log

I am not entirely sure why it broke fwts, but since fwts is using zlib directly, it should have the flags here. For why it did work before and upstream, maybe there was a library reexporting zlib or something similar.

But we are clearly not the only once having issues with this: https://github.com/openbmc/openbmc/blob/7afa8803b803635f8eb6411e7e6ca63703b9d62e/upstream-layers/meta-openembedded/meta-oe/recipes-test/fwts/fwts/0001-Makefile.am-Add-missing-link-with-zlib.patch

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think a change ought to be submitted upstream for this. They call zlib functions directly in their code, so they should also link it directly.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Well #522269 was faster so for now I dropped this part, for upstream see fwts/fwts#38

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

solved: use github release like https://wiki.ubuntu.com/FirmwareTestSuite (seems to be the official wiki) recommends

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

sorry wrong discussion

@nixpkgs-ci nixpkgs-ci Bot added the 2.status: merge conflict This PR has merge conflicts with the target branch label May 27, 2026
@nixpkgs-ci nixpkgs-ci Bot removed the 2.status: merge conflict This PR has merge conflicts with the target branch label May 27, 2026
Comment thread pkgs/os-specific/linux/fwts/default.nix Outdated
src = fetchzip {
url = "https://fwts.ubuntu.com/release/fwts-V${finalAttrs.version}.tar.gz";
hash = "sha256-OJI2O9MptckmGj4rTrh9haIGaXJOO3er59yIorbgSVw=";
hash = "sha256-w4KIGag+o7XQ9qLE6oJ0EgzwEp4Rq5nSsWPP0oeQ44A=";

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Any idea why OfBorg can't access this?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

No, I currently cannot access it either it seems. I don't know if this a temporary problem.

We could also switch to github or github releases.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

solved: use github release like https://wiki.ubuntu.com/FirmwareTestSuite (seems to be the official wiki) recommends

@mBornand

mBornand commented Jun 2, 2026

Copy link
Copy Markdown
Contributor Author

Because of #356387 I added a commit to remove pcre from the dependencies, builds fine usage seems fine too.

@mBornand

mBornand commented Jun 2, 2026

Copy link
Copy Markdown
Contributor Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 505060
Commit: fea11ddbb3742388202caa1e25ca796b388fe0a1


x86_64-linux

⏩ 1 package blacklisted:
  • tests.nixos-functions.nixos-test
✅ 2 packages built:
  • fwts
  • nixpkgs-manual

@mBornand

mBornand commented Jun 2, 2026

Copy link
Copy Markdown
Contributor Author

In the process of fixing the url, it is also updated to 26.05.00

@alyssais

Copy link
Copy Markdown
Member

Please squash the two update commits.

@mBornand

Copy link
Copy Markdown
Contributor Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 505060
Commit: 4498e21ca25e47db9300ef9377738ad031372c4f


x86_64-linux

⏩ 1 package blacklisted:
  • tests.nixos-functions.nixos-test
✅ 2 packages built:
  • fwts
  • nixpkgs-manual

@mBornand
mBornand requested a review from alyssais June 11, 2026 17:14
@nixpkgs-ci nixpkgs-ci Bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Jun 11, 2026
@GrimmTheShrimp
GrimmTheShrimp dismissed Ma27’s stale review July 23, 2026 12:22

throw alias is now present

Comment thread pkgs/os-specific/linux/fwts/default.nix Outdated
version = "25.09.00";
version = "26.05.00";

src = fetchzip {

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.

does this actually need to be a fetchzip or can we fetchFromGitHub like we do everywhere else?

mBornand added 3 commits July 24, 2026 14:36
The url changed since it wasn't acessible
and the wiki did recommend this url,
build fines and usage seems fine too
see NixOS#356387 for deprecation
@mBornand mBornand changed the title fwts: fix compilation and update fwts: 25.09.00 -> 26.07.00, remove kernel module, remove pcre Jul 24, 2026
@mBornand

Copy link
Copy Markdown
Contributor Author

Latest changes: Use FetchFromGitHub, Update to latest version

@mBornand

Copy link
Copy Markdown
Contributor Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 505060
Commit: 7f5c1b254d4f97349bd5e664d33a022180c196b9


x86_64-linux

⏩ 1 package blacklisted:
  • tests.nixos-functions.nixos-test
✅ 2 packages built:
  • fwts
  • nixpkgs-manual

@mBornand
mBornand requested a review from GrimmTheShrimp July 24, 2026 13:19
@mweinelt
mweinelt added this pull request to the merge queue Aug 9, 2026
Merged via the queue into NixOS:master with commit 20e5e91 Aug 9, 2026
26 of 28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

0.kind: ZHF Fixes Fixes during the Zero Hydra Failures (ZHF) campaign 6.topic: kernel The Linux kernel 8.has: changelog This PR adds or changes release notes 8.has: documentation This PR adds or changes documentation 8.has: package (update) This PR updates a package to a newer version 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants