Skip to content

gss: fix Darwin build by pinning autoconf269 - #511361

Merged
vcunat merged 1 commit into
NixOS:staging-nextfrom
4evy:flameflag/push-olwxmttoxrlo
Apr 21, 2026
Merged

vcunat merged 1 commit into
NixOS:staging-nextfrom
4evy:flameflag/push-olwxmttoxrlo

Conversation

@4evy

@4evy 4evy commented Apr 19, 2026

Copy link
Copy Markdown
Member

autoconf269, but that's best avoided, so try leaving a comment here first — maybe somebody has a better idea.

If anyone has better idea please let me know and I'll do it, otherwise this should do?


The autoconf 2.73 update on staging-next broke gnulib's stdint.h
generation: the GNULIBHEADERS_OVERRIDE_WINT_T AC_SUBST variable ends
up empty in the generated Makefile, so sed substitutes it as the empty
string in stdint.h line 89 (from stdint.in.h line 88, plus the one
DO NOT EDIT header line the generator prepends), producing a bare
#if that fails to parse:

In file included from strverscmp.c:25:
./stdint.h:89:5: error: expected value in expression
   89 | #if
      |     ^

Template line:
https://github.com/coreutils/gnulib/blob/0a01f6737dc5666c730bdfe6a038da53a4156cc2/lib/stdint.in.h#L88

A CFLAGS=-std=gnu17 pin does not help: autoconf still reports C11
features as "none needed" (same as the previously-succeeding autoconf
2.72 build), yet the substitution is still empty

The nixpkgs gnulib pin (2024-10-01) is too old for this autoconf

Refs: #511329

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.

The autoconf 2.73 update on staging-next broke gnulib's stdint.h
generation: the `GNULIBHEADERS_OVERRIDE_WINT_T` AC_SUBST variable ends
up empty in the generated Makefile, so sed substitutes it as the empty
string in `stdint.h` line 89 (from `stdint.in.h` line 88, plus the one
`DO NOT EDIT` header line the generator prepends), producing a bare
`#if` that fails to parse:

    In file included from strverscmp.c:25:
    ./stdint.h:89:5: error: expected value in expression
       89 | #if
          |     ^

Template line:
https://github.com/coreutils/gnulib/blob/0a01f6737dc5666c730bdfe6a038da53a4156cc2/lib/stdint.in.h#L88

A `CFLAGS=-std=gnu17` pin does not help: autoconf still reports C11
features as "none needed" (same as the previously-succeeding autoconf
2.72 build), yet the substitution is still empty

The nixpkgs gnulib pin (2024-10-01) is too old for this autoconf

Refs: NixOS#511329
@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: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 9.needs: reviewer This PR currently has no reviewers requested and needs attention. labels Apr 19, 2026
@ofborg ofborg Bot added the 6.topic: darwin Running or building packages on Darwin label Apr 19, 2026
@booxter

booxter commented Apr 20, 2026

Copy link
Copy Markdown
Contributor

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 511361 --package gss
Commit: 627c9c4781c1e96e5aa1dca6560b621e500e9088


x86_64-linux

✅ 1 package built:
  • gss

aarch64-linux

✅ 1 package built:
  • gss

aarch64-darwin

✅ 1 package built:
  • gss

@alyssais

Copy link
Copy Markdown
Member

Ah, I've seen this before for musl. Upstream needs to update their vendored gnulib code.

@alyssais

Copy link
Copy Markdown
Member

Have you tried the latest upstream commit?

@4evy

4evy commented Apr 20, 2026

Copy link
Copy Markdown
Member Author

No, but I'll give it a try

@4evy

4evy commented Apr 20, 2026

Copy link
Copy Markdown
Member Author

I just tried fe70be6 + plain autoconf + CFLAGS=-std=gnu17. Configure correctly reports C23... unsupported / C11... none needed and builds with -std=gnu17, but it still dies at the same stdint.h:89 line

Digging into the configure log, the substitution breaks before any compilation. With autoconf 2.72, gt_TYPE_WINT_T gets expanded twice (from gl_INIT and libgl_INIT)

The second expansion prints checking for wint_t... yes, but silently skips the whether wint_t is large enough sub-check, which is the branch that calls AC_SUBST([GNULIBHEADERS_OVERRIDE_WINT_T])

So for lib/gl/ (the subdir that fails), the var is never set, and sed rewrites @GNULIBHEADERS_OVERRIDE_WINT_T@ to the empty string. With autoconf 2.69 both expansions run the sub-check and the AC_SUBST fires, so CFLAGS can't reach this

@alyssais

alyssais commented Apr 20, 2026 via email

Copy link
Copy Markdown
Member

@vcunat
vcunat added this pull request to the merge queue Apr 21, 2026
Merged via the queue into NixOS:staging-next with commit a4853c6 Apr 21, 2026
30 of 32 checks passed
@4evy
4evy deleted the flameflag/push-olwxmttoxrlo branch April 21, 2026 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: darwin Running or building packages on Darwin 9.needs: reviewer This PR currently has no reviewers requested and needs attention. 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants