Skip to content

pkgsMusl.gss: fix build#436189

Closed
yuyuyureka wants to merge 1 commit intoNixOS:masterfrom
yuyuyureka:gss-musl
Closed

pkgsMusl.gss: fix build#436189
yuyuyureka wants to merge 1 commit intoNixOS:masterfrom
yuyuyureka:gss-musl

Conversation

@yuyuyureka
Copy link
Contributor

Depends on #436187

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.

@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. labels Aug 23, 2025
@nix-owners nix-owners bot requested a review from lovek323 August 23, 2025 13:02
@yuyuyureka yuyuyureka mentioned this pull request Aug 23, 2025
13 tasks
@alyssais
Copy link
Member

Seems a bit odd but given we're already doing it for Darwin I guess it doesn't hurt to do it for musl too…

@alyssais
Copy link
Member

A quick web search does suggest the problem would be fixed with a more recent gnulib, though. Would you be interested in seeing whether there's a gnulib patch we can backport instead?

@yuyuyureka
Copy link
Contributor Author

I did not find any discussions related to GNULIBHEADERS_OVERRIDE_WINT_T and musl. Can you share the results of your search?

@alyssais
Copy link
Member

I found https://lists.gnu.org/archive/html/help-libidn/2021-07/msg00006.html which mentions a similar problem on Cygwin. Generally I find that musl problems tend to actually be not-Glibc problems, so I'd expect it to have probably been the same fix.

@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. and removed 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. labels Aug 31, 2025
@yuyuyureka
Copy link
Contributor Author

That discussion is from 2021, and our gnulib is much more recent than that. So I doubt it's the same issue.

@alyssais
Copy link
Member

alyssais commented Sep 7, 2025

But do we use our gnulib here? Usually packages vendor gnulib sources.

@yuyuyureka
Copy link
Contributor Author

You're right, gss uses a vendored gnulib copy. However this copy is also dated August 2022, so after the discussion.

It would be nice if we could try building with a more recent gnulib, but it does not seem easy to reproduce the steps done to create the gss release tarball, which determines the gnulib version used. Swapping out the gnulib src is also not easy (at least with the paths I tried).

@alyssais alyssais mentioned this pull request Sep 21, 2025
13 tasks
alyssais added a commit to alyssais/nixpkgs that referenced this pull request Sep 21, 2025
Should let us drop the Darwin hack, and not have to apply it on other
platfomrs, like musl, too.

I used Nixpkgs' gnulib source because it works, but if it stops
working in future we could use fetchgit to get the gnulib submodule.

Fixes: 90805a4 ("gss: use autoreconfHook")
Closes: NixOS#436189
@alyssais
Copy link
Member

alyssais commented Sep 21, 2025 via email

@yuyuyureka yuyuyureka closed this Sep 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants