Skip to content

gftp: workaround incompatible pointer types - #405643

Merged
phaer merged 1 commit into
NixOS:masterfrom
msbence:fix-gftp
May 10, 2025
Merged

phaer merged 1 commit into
NixOS:masterfrom
msbence:fix-gftp

Conversation

@msbence

@msbence msbence commented May 9, 2025

Copy link
Copy Markdown
Contributor

Due to an upstream issue regarding GCC-14 compatibility (masneyb/gftp#178), the package is failing build to build due to incompatible pointer types. This PR is to workaround this issue by adding the -Wno-incompatible-pointer-types compiler flag.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@github-actions github-actions Bot added 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels May 9, 2025
@phaer

phaer commented May 9, 2025

Copy link
Copy Markdown
Member

The linked upstream repo seems to propose a single-line patch, did you consider just using that? Would seem more targeted than the extra compiler flag?

@msbence

msbence commented May 9, 2025

Copy link
Copy Markdown
Contributor Author

Thanks a lot @phaer for taking a look at this PR! Yes, I saw the proposed patch, but I decided not to go that route as the cause of the failing build is not related to nix, but actually an upstream issue. The ideal solution would be to fix upstream, but for the time being I thought adding this flag is a non-invasive workaround.
(I am also happy to incorporate the patch at nix-level if you think that is a better course of action.)

@phaer

phaer commented May 10, 2025

Copy link
Copy Markdown
Member

@msbence I think in general the implications of a small patch files are often easier to estimate then those of a compiler flag affecting the whole package.
But in this case I think both should be fine and was mostly curios. Thanks for the fix!

@phaer
phaer merged commit 9dba4b6 into NixOS:master May 10, 2025
@Sigmanificient Sigmanificient mentioned this pull request Aug 4, 2025
3 of 13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants