Skip to content

pango: fix errors building with Clang 23 - #593134

Merged
reckenrode merged 2 commits into
NixOS:stagingfrom
reckenrode:push-lwnloloourmm
Nov 29, 2026
Merged

reckenrode merged 2 commits into
NixOS:stagingfrom
reckenrode:push-lwnloloourmm

Conversation

@reckenrode

Copy link
Copy Markdown
Contributor

Things done

@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 Nov 25, 2026
@nixpkgs-ci
nixpkgs-ci Bot requested a review from a team November 25, 2026 15:40
@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. 10.rebuild-nixos-tests This PR causes rebuilds for all NixOS tests and should normally target the staging branches. labels Nov 25, 2026

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

Thanks! Is there any way I can reproduce this failure? Building on top of #562683 fails on transitive dependencies of pango deep in the dependency tree for me.

# Upstream MR: https://gitlab.gnome.org/GNOME/pango/-/merge_requests/947
./coretext-fix-incompatible-pointer-type-error-with-clang.patch
# Fix build failure with Clang 23.
(fetchpatch2 {

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.

Shouldn't we use either fetchpatch or .diff (TIL, thanks 👀) here?

See also the warning in pkgs/README.md.

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.

I switched it to .diff, but GNOME’s GitLab instance is down right now. I’ll push an update once I can get a new hash.

@reckenrode

Copy link
Copy Markdown
Contributor Author

Is there any way I can reproduce this failure? Building on top of #562683 fails on transitive dependencies of pango deep in the dependency tree for me.

What’s failing to build? I’ve opened a few other PRs to fix Clang 23 issues, but none of those were Pango dependencies as far as I know.

@reckenrode

Copy link
Copy Markdown
Contributor Author

If it’s tzdata that’s failing, you need #582577 if building directly on #562683.

@reckenrode

reckenrode commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor Author

It’s Kyua …. My dev branch is testing another attempt at #238993, so it doesn’t build Kyua. I’ll work on a fix and confirm Apple’s libiconv also builds.

Edit: Nope, random test failure. That’s not good, but it’s probably not the issue.

@thunze

thunze commented Nov 25, 2026

Copy link
Copy Markdown
Member

If it’s tzdata that’s failing, you need #582577 if building directly on #562683.

Thanks, yes, it was tzdata at first.

I gave up on building for now, but apart from my fetchpatch comment, your diff looks good.

Feel free to let me know when everything works on your end, then I'll have another look :)

@reckenrode

Copy link
Copy Markdown
Contributor Author

Feel free to let me know when everything works on your end, then I'll have another look :)

GNOME’s GitLab is working again, so I updated the PR to use .diff. The build log is at https://gist.github.com/reckenrode/93627cc9add9819c62210a908a67a7a3.

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

Thanks! I haven't attempted another clang 23 build, but your build log looks fine and I've corroborated the changes with the clang 22 and 23 release notes. Also, thanks for sending the fix upstream!

  • Diff LGTM
  • After rebasing on the merge base between master and staging (cf0cf54 at the time of writing):
    • Verified that pango and pango.tests build on all 3 major platforms
    • Verified basic functionality of all binaries in $bin/bin on x86_64-linux

@nixpkgs-ci nixpkgs-ci Bot added 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. labels Nov 27, 2026
@reckenrode
reckenrode added this pull request to the merge queue Nov 29, 2026
Merged via the queue into NixOS:staging with commit a7d9cda Nov 29, 2026
30 checks passed
@reckenrode
reckenrode deleted the push-lwnloloourmm branch November 29, 2026 12:24
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". 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. 10.rebuild-nixos-tests This PR causes rebuilds for all NixOS tests and should normally target the staging branches. 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants