Skip to content

libeb: fix the build against gcc-14 - #369191

Merged
emilazy merged 1 commit into
NixOS:masterfrom
linj-fork:pr/fix-libeb-gcc14
Dec 29, 2024
Merged

emilazy merged 1 commit into
NixOS:masterfrom
linj-fork:pr/fix-libeb-gcc14

Conversation

@jian-lin

Copy link
Copy Markdown
Contributor

https://hydra.nixos.org/build/281826046

puts_eucjp.c: In function 'fputs_eucjp_to_locale':
puts_eucjp.c:97:23: error: passing argument 2 of 'iconv' from incompatible pointer type [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wincompatible-pointer-types-Wincompatible-pointer-types8;;]
   97 |         if (iconv(cd, &in_p, &in_left, &out_p, &out_left) != -1)
      |                       ^~~~~
      |                       |
      |                       const char **
In file included from puts_eucjp.c:40:
/nix/store/kj8hbqx4ds9qm9mq7hyikxyfwwg13kzj-glibc-2.40-36-dev/include/iconv.h:49:54: note: expected 'char ** restrict' but argument is of type 'const char **'
   49 | extern size_t iconv (iconv_t __cd, char **__restrict __inbuf,
      |                                    ~~~~~~~~~~~~~~~~~~^~~~~~~

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-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Dec 29, 2024
@emilazy

emilazy commented Dec 29, 2024

Copy link
Copy Markdown
Member

Could you source the patch from a pinned commit on salsa.debian.org as the sources.debian.org URLs inevitably rot?

@jian-lin

Copy link
Copy Markdown
Contributor Author

I did try to use salsa but failed to locate the patch on salsa😅.

@jian-lin

Copy link
Copy Markdown
Contributor Author

I tried a bit harder and now the patch is fetched from salsa.debian.org.

@emilazy emilazy 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!

@emilazy
emilazy merged commit 7154c3b into NixOS:master Dec 29, 2024
@jian-lin
jian-lin deleted the pr/fix-libeb-gcc14 branch December 29, 2024 19:23
@Sigmanificient Sigmanificient mentioned this pull request Mar 8, 2025
27 of 28 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-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants