Conversation
wegank
left a comment
There was a problem hiding this comment.
stdenv fails to build on darwin:
clang -DHAVE_CONFIG_H -I. -I.. -Iglib -DIN_LIBTEXTSTYLE -DLIBXML_STATIC -I./libcroco -DDEPENDS_ON_LIBICONV=1 -g -O2 -w -c iconv-ostream.c
iconv-ostream.c:297:3: error: incompatible function pointer types initializing 'void (*)(iconv_ostream_t, ostream_flush_scope_t)' (aka 'void (*)(struct any_ostream_representation *, ostream_flush_scope_t)') with an expression of type 'void (iconv_ostream_t)' (aka 'void (struct any_ostream_representation *)') [-Wincompatible-function-pointer-types]
297 | iconv_ostream__flush,
| ^~~~~~~~~~~~~~~~~~~~
1 error generated.
make[4]: *** [Makefile:10540: config.h] Error 1
make[4]: Leaving directory '/private/tmp/nix-build-gettext-0.25.drv-0/gettext-0.25/libtextstyle/lib'
make[3]: *** [Makefile:2499: all-recursive] Error 1
make[3]: Leaving directory '/private/tmp/nix-build-gettext-0.25.drv-0/gettext-0.25/libtextstyle'
make[2]: *** [Makefile:2427: all] Error 2
make[2]: Leaving directory '/private/tmp/nix-build-gettext-0.25.drv-0/gettext-0.25/libtextstyle'
make[1]: *** [Makefile:414: all-recursive] Error 1
make[1]: Leaving directory '/private/tmp/nix-build-gettext-0.25.drv-0/gettext-0.25'
make: *** [Makefile:370: all] Error 2
Hmm, I don't have a MacBook, feel free to commit to my branch. |
https://savannah.gnu.org/news/?id=10699 https://savannah.gnu.org/news/?id=10730 https://savannah.gnu.org/news/?id=10765 https://savannah.gnu.org/news/?id=10769 Signed-off-by: misilelab <misileminecord@gmail.com>
|
Built up to hello on Darwin and git on Linux, let's see how the next staging-next goes... |
|
Broke |
|
I think I know what's going on: the package works with # ${gettext}/share/aclocal is gone...
postPatch = ''
addToSearchPath "ACLOCAL_PATH" "${gettext}/share/gettext/m4"
'';I wonder if adding a symlink is enough to fix this. Another stdenv rebuild on the way... |
|
Adding the following to # *.m4 was installed into $out/share/gettext/m4 since gettext 0.24.1
# the following restores the old behavior
postInstall = ''
ln -s $out/share/gettext/m4 $out/share/aclocal
'';Upstream seems strongly against this though: https://savannah.gnu.org/support/?111238#comment2 |
|
Also broke |
|
Also And |
|
Also |
|
|
Fix for wavpack: #420493 |
|
Upstream report for po4a: mquinson/po4a#580 |
|
html2text: #420957 |
|
Proposed |
|
dosfstools: #421760 |
|
Proposed disabling |
|
Fix for memory safety issue causing crashes on musl: #423179 |
|
Opened #425196 for I really have no idea what I'm doing, I've never really worked with autotools stuff. |
I am far from an autotools expert, but this does make the package compile again. I cobbled this together from various workarounds posted on <#405793>.
https://savannah.gnu.org/news/?id=10699
https://savannah.gnu.org/news/?id=10730
https://savannah.gnu.org/news/?id=10765
https://savannah.gnu.org/news/?id=10769
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.