WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit a060f75

Browse files
committed
perlPackages.YAMLSyck: fix build with gcc15
- add "-std=gnu17" to `env.NIX_CFLAGS_COMPILE` Upstream issue: https://www.github.com/cpan-authors/YAML-Syck/issues/61 There is a PR with proposed patch: https://www.github.com/cpan-authors/YAML-Syck/pull/64 alpine uses it: https://gitlab.alpinelinux.org/alpine/aports/-/commit/7dab2a77194967a52df82378c817f686d32056a7 Other distros settled on "-std=gnu17": https://gitlab.archlinux.org/archlinux/packaging/packages/perl-yaml-syck/-/commit/9355df2bddfdda80963a629d750d0dbc1c1d8aa8 https://src.fedoraproject.org/rpms/perl-YAML-Syck/c/5fb93f7185d99ad738c985a944191ceb89368a82 Fixes build failure with gcc15: ``` emitter.c:161:9: error: too many arguments to function 'st_foreach'; expected 0, have 3 161 | st_foreach( e->anchors, syck_st_free_anchors, 0 ); | ^~~~~~~~~~ ~~~~~~~~~~ In file included from syck.h:36, from emitter.c:15: syck_st.h:35:6: note: declared here 35 | void st_foreach(), st_add_direct(), st_free_table(), st_cleanup_safe(); | ^~~~~~~~~~ emitter.c:162:9: error: too many arguments to function 'st_free_table'; expected 0, have 1 162 | st_free_table( e->anchors ); | ^~~~~~~~~~~~~ ~~~~~~~~~~ syck_st.h:35:37: note: declared here 35 | void st_foreach(), st_add_direct(), st_free_table(), st_cleanup_safe(); | ^~~~~~~~~~~~~ emitter.c:400:9: error: too many arguments to function 'st_lookup'; expected 0, have 3 400 | st_lookup( e->markers, n, (st_data_t *)&oid ) && | ^~~~~~~~~ ~~~~~~~~~~ syck_st.h:34:18: note: declared here 34 | int st_insert(), st_lookup(); | ^~~~~~~~~ ```
1 parent 76223c0 commit a060f75

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkgs/top-level/perl-packages.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39082,6 +39082,7 @@ with self;
3908239082
url = "mirror://cpan/authors/id/T/TO/TODDR/YAML-Syck-1.34.tar.gz";
3908339083
hash = "sha256-zJFWzK69p5jr/i8xthnoBld/hg7RcEJi8X/608bjQVk=";
3908439084
};
39085+
env.NIX_CFLAGS_COMPILE = "-std=gnu17";
3908539086
meta = {
3908639087
description = "Fast, lightweight YAML loader and dumper";
3908739088
homepage = "https://github.com/toddr/YAML-Syck";

0 commit comments

Comments
 (0)