Skip to content

linuxPackages.tp_smapi: patch strncpy - #565825

Merged
SuperSandro2000 merged 1 commit into
NixOS:masterfrom
ArtifyCZ:fix-linux-tp_smapi
Oct 4, 2026
Merged

SuperSandro2000 merged 1 commit into
NixOS:masterfrom
ArtifyCZ:fix-linux-tp_smapi

Conversation

@ArtifyCZ

@ArtifyCZ ArtifyCZ commented Sep 22, 2026 •

Copy link
Copy Markdown
Member

The package is using function strncpy that has been removed in Linux v7.2

The Hydra builds have been failing since the release of v7.2, including linux_latest, linux_7_2, linux_zen, and other kernels.

Once the upstream merges the required changes, we should update the package.

Closes #565795

Things done

@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. 9.needs: reviewer This PR currently has no reviewers requested and needs attention. 7.no default reviewers This PR targets a package or module with no existing maintainers; roving reviewers, take pity! labels Sep 22, 2026
@nixpkgs-review-gha

Copy link
Copy Markdown

✅ nixpkgs-review result

Generated using nixpkgs-review-gha (05be241)

Command: nixpkgs-review pr 565825
Commit: e582f74f8a82380cfb8ac01848f9c0d8c97a9d63 (subsequent changes)
Merge: 2da37ed323566a99c2214b40587db11ef9437ab9

Triggered by @ArtifyCZ (57506608)
Logs: https://github.com/ArtifyCZ/nixpkgs-review-gha/actions/runs/36147505853/attempts/1


x86_64-linux

⏩ 8 packages marked as broken and skipped:
  • linuxKernel.packages.linux_7_2.tp_smapi
  • linuxKernel.packages.linux_xanmod_latest.tp_smapi
  • linuxKernel.packages.linux_xanmod_stable.tp_smapi
  • linuxKernel.packages.linux_zen.tp_smapi
  • linuxPackages_latest.tp_smapi
  • linuxPackages_xanmod_latest.tp_smapi
  • linuxPackages_xanmod_stable.tp_smapi
  • linuxPackages_zen.tp_smapi

aarch64-linux

✅ No rebuilds

@NickCao NickCao 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.

@nixpkgs-ci nixpkgs-ci Bot removed the 9.needs: reviewer This PR currently has no reviewers requested and needs attention. label Sep 25, 2026
@ArtifyCZ

Copy link
Copy Markdown
Member Author

It's a single line patch: https://github.com/linux-thinkpad/tp_smapi/pull/81/changes

@NickCao I know about that, but I think there's a reason they haven't merged it yet 🤷‍♂️

@ArtifyCZ

Copy link
Copy Markdown
Member Author

@iedame This package is one of the packages that have never built successfully on x86_64-linux.

@ArtifyCZ
ArtifyCZ force-pushed the fix-linux-tp_smapi branch 2 times, most recently from fe731ff to eaa852d Compare September 26, 2026 17:29
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. and removed 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Sep 26, 2026
@iedame

iedame commented Sep 26, 2026

Copy link
Copy Markdown
Contributor

Thank you for patching! PR title needs to be updated to reflect changes.

@nixpkgs-review-gha

Copy link
Copy Markdown

✅ nixpkgs-review result

Generated using nixpkgs-review-gha (05be241)

Command: nixpkgs-review pr 565825
Commit: eaa852d22399a81f1c1f8560af7e21ade58fecf4 (subsequent changes)
Merge: 399c80575fa1ad1ffa56d008d4ee0da8a6622e04

Triggered by @ArtifyCZ (57506608)
Logs: https://github.com/ArtifyCZ/nixpkgs-review-gha/actions/runs/36260301543/attempts/1


x86_64-linux

✅ 10 packages built:
  • linuxKernel.packages.linux_5_10.tp_smapi
  • linuxKernel.packages.linux_6_1.tp_smapi
  • linuxKernel.packages.linux_5_15.tp_smapi
  • linuxKernel.packages.linux_6_6.tp_smapi
  • linuxPackages.tp_smapi (linuxKernel.packages.linux_6_18.tp_smapi)
  • linuxKernel.packages.linux_6_12.tp_smapi
  • linuxPackages_xanmod.tp_smapi (linuxKernel.packages.linux_xanmod.tp_smapi)
  • linuxPackages_latest.tp_smapi (linuxKernel.packages.linux_7_2.tp_smapi)
  • linuxPackages_xanmod_latest.tp_smapi (linuxKernel.packages.linux_xanmod_latest.tp_smapi, linuxPackages_xanmod_stable.tp_smapi)
  • linuxPackages_zen.tp_smapi (linuxKernel.packages.linux_zen.tp_smapi)

aarch64-linux

✅ No rebuilds

@ArtifyCZ ArtifyCZ changed the title linuxPackages.tp_smapi: mark as broken for kernel >= v7.2 linuxPackages.tp_smapi: patch strncpy Sep 26, 2026
@ArtifyCZ
ArtifyCZ requested review from NickCao and iedame September 26, 2026 17:52

@iedame iedame 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.

LGTM, thank you!

@nixpkgs-ci nixpkgs-ci Bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Sep 27, 2026
@ArtifyCZ ArtifyCZ added the 0.kind: build failure A package fails to build label Sep 28, 2026
The package is using the `strncpy` function that has been removed in
Linux v7.2. Because the function has been removed, the package has been
failing to build ever since.

The Hydra builds have been failing since the release of v7.2, including
`linux_latest`, `linux_7_2`, `linux_zen`, and other kernels.

Once the upstream merges the required changes, we should update the
package.

Hydra -
https://hydra.nixos.org/eval/1829382?filter=tp_smapi&compare=1829373&full=1#tabs-still-fail

nixpkgs issue - NixOS#565795

upstream issue - linux-thinkpad/tp_smapi#82
@ArtifyCZ
ArtifyCZ force-pushed the fix-linux-tp_smapi branch from eaa852d to 9d917ed Compare October 4, 2026 18:14
@nixpkgs-review-gha

Copy link
Copy Markdown

✅ nixpkgs-review result

Generated using nixpkgs-review-gha (05be241)

Command: nixpkgs-review pr 565825
Commit: 9d917ede31ef834b6792608bd7e12c77bb24006e (subsequent changes)
Merge: 33a79b0ab3a7343206c49c555c0a3e5c6bffb3fc

Triggered by @ArtifyCZ (57506608)
Logs: https://github.com/ArtifyCZ/nixpkgs-review-gha/actions/runs/37223924308/attempts/1


x86_64-linux

✅ 10 packages built:
  • linuxKernel.packages.linux_5_10.tp_smapi
  • linuxKernel.packages.linux_5_15.tp_smapi
  • linuxKernel.packages.linux_6_1.tp_smapi
  • linuxPackages.tp_smapi (linuxKernel.packages.linux_6_18.tp_smapi)
  • linuxKernel.packages.linux_6_6.tp_smapi
  • linuxKernel.packages.linux_6_12.tp_smapi
  • linuxPackages_latest.tp_smapi (linuxKernel.packages.linux_7_2.tp_smapi)
  • linuxPackages_xanmod_latest.tp_smapi (linuxKernel.packages.linux_xanmod_latest.tp_smapi, linuxPackages_xanmod_stable.tp_smapi)
  • linuxPackages_xanmod.tp_smapi (linuxKernel.packages.linux_xanmod.tp_smapi)
  • linuxPackages_zen.tp_smapi (linuxKernel.packages.linux_zen.tp_smapi)

@ArtifyCZ

ArtifyCZ commented Oct 4, 2026

Copy link
Copy Markdown
Member Author

Note that it is also broken in the stable 26.05 release; should we backport it after merge?

https://hydra.nixos.org/jobset/nixos/release-26.05#tabs-jobs

@SuperSandroBot

Copy link
Copy Markdown

✅ nixpkgs-review result

Generated using nixpkgs-review-gha (a0a3a8d)

Command: nixpkgs-review pr 565825
Commit: 9d917ede31ef834b6792608bd7e12c77bb24006e (subsequent changes)
Merge: 33a79b0ab3a7343206c49c555c0a3e5c6bffb3fc

Logs: https://github.com/SuperSandro2000/nixpkgs-review-gha/actions/runs/37227838214/attempts/1


x86_64-linux

✅ 10 packages built:
  • linuxKernel.packages.linux_5_15.tp_smapi
  • linuxKernel.packages.linux_6_1.tp_smapi
  • linuxKernel.packages.linux_5_10.tp_smapi
  • linuxKernel.packages.linux_6_6.tp_smapi
  • linuxKernel.packages.linux_6_12.tp_smapi
  • linuxPackages_latest.tp_smapi (linuxKernel.packages.linux_7_2.tp_smapi)
  • linuxPackages.tp_smapi (linuxKernel.packages.linux_6_18.tp_smapi)
  • linuxPackages_xanmod_stable.tp_smapi (linuxKernel.packages.linux_xanmod_latest.tp_smapi, linuxPackages_xanmod_latest.tp_smapi)
  • linuxPackages_xanmod.tp_smapi (linuxKernel.packages.linux_xanmod.tp_smapi)
  • linuxPackages_zen.tp_smapi (linuxKernel.packages.linux_zen.tp_smapi)

aarch64-linux

✅ No rebuilds

@SuperSandro2000
SuperSandro2000 dismissed NickCao’s stale review October 4, 2026 22:07

using a patch here is fine

@SuperSandro2000
SuperSandro2000 added this pull request to the merge queue Oct 4, 2026
Merged via the queue into NixOS:master with commit 812dbfa Oct 4, 2026
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

0.kind: build failure A package fails to build 7.no default reviewers This PR targets a package or module with no existing maintainers; roving reviewers, take pity! 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. 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.

Build failure: tp_smapi-0.45-7.2.6

6 participants