Skip to content

groff: 1.23.0 -> 1.24.1 - #481765

Merged
philiptaron merged 2 commits into
NixOS:stagingfrom
afh:update-groff
Mar 22, 2026
Merged

philiptaron merged 2 commits into
NixOS:stagingfrom
afh:update-groff

Conversation

@afh

@afh afh commented Jan 19, 2026 •

Copy link
Copy Markdown
Member

Things done

  • Update gnulib since groff 1.24.x depends on it (I'm curious to see what implications for other packages arise from this)
  • Adapt to upstream source tree changes, e.g. pdfroff was removed
  • Replace lib.getBin with lib.getExe and lib.getExe'
  • Add enableUrwFonts option to include URW fonts for a more complete (PDF) typesetting experience
  • Include URW fonts to improve available fonts for PDF output (❓ are we okay with this? FYI: not including URW fonts leads to a build error, which has been reported upstream)
  • Add --enable-year2038 to configureFlags (❓ are we okay with this?)
  • Remove --with-awk from configureFlags as it was removed upstream
  • Rename --with-appresdir to --with-appdefdir in configureFlags as it was renamed upstream
  • Introduce finalAttrs
  • Remove superfluous ${pname}
  • Use --replace-fail instead of --replace
  • 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.

@afh afh changed the title groff: 1.23.0 -> 1.24.0.rc1 (WIP) WIP gnulib: 20241001 -> 20251214; groff: 1.23.0 -> 1.24.0.rc1 Jan 19, 2026
@nixos-discourse

Copy link
Copy Markdown

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/prs-ready-for-review/3032/6292

@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. labels Jan 19, 2026
@afh

afh commented Jan 19, 2026

Copy link
Copy Markdown
Member Author

I'd appreciate pointers as to why the "PR / Eval /…" check fails

@mdaniels5757

Copy link
Copy Markdown
Member

Fixed now, it was because of some deployment problems with some changes I made to CI.

Comment thread pkgs/by-name/gr/groff/package.nix Resolved
@SuperSandro2000

Copy link
Copy Markdown
Member
  • Add --enable-year2038 to configureFlags (❓ are we okay with this?)

Can't find anything about that here https://cgit.git.savannah.gnu.org/cgit/groff.git/tree/NEWS

@afh

afh commented Jan 20, 2026

Copy link
Copy Markdown
Member Author

It seems to to bubble up from gnulib, see https://cgit.git.savannah.gnu.org/cgit/gnulib.git/tree/NEWS

@afh
afh force-pushed the update-groff branch 3 times, most recently from f1188e4 to 01e7551 Compare January 27, 2026 08:31
@afh afh changed the title WIP gnulib: 20241001 -> 20251214; groff: 1.23.0 -> 1.24.0.rc1 WIP gnulib: 20241001 -> 20251214; groff: 1.23.0 -> 1.24.0.rc2 Jan 27, 2026
@nixpkgs-ci nixpkgs-ci Bot added the 8.has: package (update) This PR updates a package to a newer version label Jan 27, 2026
@afh

afh commented Jan 28, 2026

Copy link
Copy Markdown
Member Author

More info on --enable-year2038 can be found in the gnulib module documentation. After going over it, it seems that the option is only relevant on 32-bit systems.

@afh afh changed the title WIP gnulib: 20241001 -> 20251214; groff: 1.23.0 -> 1.24.0.rc2 WIP gnulib: 20241001 -> 20260127; groff: 1.23.0 -> 1.24.0.rc2 Jan 30, 2026
@afh
afh force-pushed the update-groff branch 3 times, most recently from 26664ab to 23567c5 Compare January 31, 2026 05:48
@nixpkgs-ci nixpkgs-ci Bot added the 2.status: merge conflict This PR has merge conflicts with the target branch label Feb 7, 2026
@afh afh changed the title WIP gnulib: 20241001 -> 20260127; groff: 1.23.0 -> 1.24.0.rc2 WIP gnulib: 20241001 -> 20260127; groff: 1.23.0 -> 1.24.0.rc3 Feb 8, 2026
@nixpkgs-ci nixpkgs-ci Bot removed the 2.status: merge conflict This PR has merge conflicts with the target branch label Feb 8, 2026
@afh afh changed the title WIP gnulib: 20241001 -> 20260127; groff: 1.23.0 -> 1.24.0.rc3 WIP gnulib: 20241001 -> 20260214; groff: 1.23.0 -> 1.24.0.rc4 Feb 21, 2026
@afh
afh force-pushed the update-groff branch 3 times, most recently from ef74e4b to 0a05b09 Compare March 17, 2026 19:03
@nixpkgs-ci nixpkgs-ci Bot removed the 2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". label Mar 17, 2026
@afh

afh commented Mar 17, 2026

Copy link
Copy Markdown
Member Author

Something related to renaming xxHash to xxhash seems to have broken at least texlive on staging, which breaks the checks for PRs 😒

@nixpkgs-ci nixpkgs-ci Bot added the 2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". label Mar 18, 2026
@afh

afh commented Mar 18, 2026 •

Copy link
Copy Markdown
Member Author

To anyone following along:

  1. Updating gnulib creates too many issues with other packages, as software in nixpgs using gnulib (e.g. man-db, idutils, etc.) seems to move slower than groff in regards to following changes in gnulib.
  2. While building groff from the source tree requires (an updated) gnulib, it seems that building groff from a distribution archive works just fine.

@afh

afh commented Mar 18, 2026

Copy link
Copy Markdown
Member Author

nixpkgs-review result

Generated using nixpkgs-review-gha

Command: nixpkgs-review pr 481765 -p gnulib -p gnutls -p findutils -p coreutils -p gss
Commit: efb792de48f15c951a7b3075f46eb1b82aca5118 (subsequent changes)
Merge: b9ce9a7820820322f98263d58f2a087c91b1bc0b

Logs: https://github.com/afh/nixpkgs-review-gha/actions/runs/22640544198


x86_64-linux

✅ 13 packages built:
  • coreutils
  • coreutils.debug (coreutils.debug.debug, coreutils.debug.info)
  • coreutils.info (coreutils.info.debug, coreutils.info.info)
  • findutils
  • findutils.info (findutils.info.info, findutils.info.locate)
  • findutils.locate (findutils.locate.info, findutils.locate.locate)
  • gnulib
  • gnutls
  • gnutls.bin (gnutls.bin.bin, gnutls.bin.dev, gnutls.bin.devdoc, gnutls.bin.man)
  • gnutls.dev (gnutls.dev.bin, gnutls.dev.dev, gnutls.dev.devdoc, gnutls.dev.man)
  • gnutls.devdoc (gnutls.devdoc.bin, gnutls.devdoc.dev, gnutls.devdoc.devdoc, gnutls.devdoc.man)
  • gnutls.man (gnutls.man.bin, gnutls.man.dev, gnutls.man.devdoc, gnutls.man.man)
  • gss

aarch64-linux

✅ 13 packages built:
  • coreutils
  • coreutils.debug (coreutils.debug.debug, coreutils.debug.info)
  • coreutils.info (coreutils.info.debug, coreutils.info.info)
  • findutils
  • findutils.info (findutils.info.info, findutils.info.locate)
  • findutils.locate (findutils.locate.info, findutils.locate.locate)
  • gnulib
  • gnutls
  • gnutls.bin (gnutls.bin.bin, gnutls.bin.dev, gnutls.bin.devdoc, gnutls.bin.man)
  • gnutls.dev (gnutls.dev.bin, gnutls.dev.dev, gnutls.dev.devdoc, gnutls.dev.man)
  • gnutls.devdoc (gnutls.devdoc.bin, gnutls.devdoc.dev, gnutls.devdoc.devdoc, gnutls.devdoc.man)
  • gnutls.man (gnutls.man.bin, gnutls.man.dev, gnutls.man.devdoc, gnutls.man.man)
  • gss

x86_64-darwin (sandbox = relaxed)

✅ 12 packages built:
  • coreutils
  • coreutils.info (coreutils.info.info)
  • findutils
  • findutils.info (findutils.info.info, findutils.info.locate)
  • findutils.locate (findutils.locate.info, findutils.locate.locate)
  • gnulib
  • gnutls
  • gnutls.bin (gnutls.bin.bin, gnutls.bin.dev, gnutls.bin.devdoc, gnutls.bin.man)
  • gnutls.dev (gnutls.dev.bin, gnutls.dev.dev, gnutls.dev.devdoc, gnutls.dev.man)
  • gnutls.devdoc (gnutls.devdoc.bin, gnutls.devdoc.dev, gnutls.devdoc.devdoc, gnutls.devdoc.man)
  • gnutls.man (gnutls.man.bin, gnutls.man.dev, gnutls.man.devdoc, gnutls.man.man)
  • gss

aarch64-darwin (sandbox = relaxed)

✅ 12 packages built:
  • coreutils
  • coreutils.info (coreutils.info.info)
  • findutils
  • findutils.info (findutils.info.info, findutils.info.locate)
  • findutils.locate (findutils.locate.info, findutils.locate.locate)
  • gnulib
  • gnutls
  • gnutls.bin (gnutls.bin.bin, gnutls.bin.dev, gnutls.bin.devdoc, gnutls.bin.man)
  • gnutls.dev (gnutls.dev.bin, gnutls.dev.dev, gnutls.dev.devdoc, gnutls.dev.man)
  • gnutls.devdoc (gnutls.devdoc.bin, gnutls.devdoc.dev, gnutls.devdoc.devdoc, gnutls.devdoc.man)
  • gnutls.man (gnutls.man.bin, gnutls.man.dev, gnutls.man.devdoc, gnutls.man.man)
  • gss

@philiptaron
philiptaron added this pull request to the merge queue Mar 22, 2026
@nixpkgs-ci nixpkgs-ci Bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Mar 22, 2026
Merged via the queue into NixOS:staging with commit 3230274 Mar 22, 2026
28 of 30 checks passed
@afh
afh deleted the update-groff branch March 23, 2026 12:52
@afh

afh commented Mar 23, 2026

Copy link
Copy Markdown
Member Author

Thanks for reviewing, approving, and merging this, @philiptaron , very much appreciated! 🎉

@vcunat

vcunat commented Apr 7, 2026 •

Copy link
Copy Markdown
Member

groff now fails to build on aarch64-darwin, apparently:
https://hydra.nixos.org/build/325914689/nixlog/1/tail
(I'm not 100% sure this PR is the culprit, but it seems likely and it's relevant either way.)

@afh

afh commented Apr 7, 2026

Copy link
Copy Markdown
Member Author

Thanks for raising this, @vcunat.

Do you know if there have been recent changes to the cflags nix uses and whether it's been bumped to gnu23 somewhat recently?

What's the best way to test the following addition to the groff package.nix on Hydra?

env.NIX_CFLAGS_COMPILE = "-std=gnu11";

@vcunat

vcunat commented Apr 7, 2026 •

Copy link
Copy Markdown
Member

I could test builds manually on a (non-Hydra) aarch64-darwin machine, later/tomorrow.

@afh

afh commented Apr 7, 2026

Copy link
Copy Markdown
Member Author

Mind sharing the command(s) you'd run to test the builds, @vcunat? I'd be interested to learn where my previous test builds may have fallen short.

@vcunat

vcunat commented Apr 7, 2026

Copy link
Copy Markdown
Member

What's failing on Hydra is nix build -f. groff (or equivalents).

@mdaniels5757 mdaniels5757 mentioned this pull request Apr 8, 2026
3 of 13 tasks
@mdaniels5757

Copy link
Copy Markdown
Member

Confirmed on the community builder, fix in #507771.

Outside of comments, the file that fails to compile has not been touched in years (https://cgit.git.savannah.gnu.org/cgit/groff.git/log/src/libs/libgroff/matherr.c), so I suspect it's not this update? (Indeed, it's failing because it's a K&R-style definition, and the function has been like this for 26+ years: https://cgit.git.savannah.gnu.org/cgit/groff.git/commit/src/libs/libgroff/matherr.c?id=e092fba45175220aeee4912da9e2b96228a798b3.) But clang/LLVM hasn't been updated this cycle either.... I guess it doesn't matter.

@afh

afh commented Apr 8, 2026

Copy link
Copy Markdown
Member Author

Thanks, @vcunat, I've built the groff nixpkg using nix build .#groff many, many times on aarch64-darwin while working on this PR, so I'm somewhat stumped the build error reported by hydra did not show up for me. Guess that's why we have hydra :)

Thanks, @mdaniels5757, for helping out, diving deeper, and providing a fix, very much appreciated 🙏

@vcunat

vcunat commented Apr 8, 2026

Copy link
Copy Markdown
Member

The error might not've been caused by this PR.

@whispersofthedawn

Copy link
Copy Markdown
Contributor

But clang/LLVM hasn't been updated this cycle either.... I guess it doesn't matter.

For what it's worth, I believe this is a result of autoconf 2.73. From its NEWS:

*** AC_PROG_CC now prefers C23 if available.
Older code may need to be updated, as C23 has removed old-style (K&R) function definitions and declarations, now uses type-generic functions for strchr and similar functions, and has new keywords alignas, alignof, bool, constexpr, false, nullptr, static_assert, thread_local, true, typeof, typeof_unqual.

https://lists.gnu.org/archive/html/autoconf/2026-03/msg00060.html

sarahec pushed a commit to sarahec/nixpkgs that referenced this pull request Apr 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". 8.has: package (update) This PR updates a package to a newer version 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. 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.

8 participants