From 64a58c751c00d47e8b942599a3fa2ec4363fd367 Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Mon, 4 Aug 2025 14:02:46 +0200 Subject: [PATCH] gnu-smalltalk: fix build --- .../gnu-smalltalk/0001-fix-compilation.patch | 26 +++++++++++++++++++ pkgs/by-name/gn/gnu-smalltalk/package.nix | 1 + 2 files changed, 27 insertions(+) create mode 100644 pkgs/by-name/gn/gnu-smalltalk/0001-fix-compilation.patch diff --git a/pkgs/by-name/gn/gnu-smalltalk/0001-fix-compilation.patch b/pkgs/by-name/gn/gnu-smalltalk/0001-fix-compilation.patch new file mode 100644 index 000000000000..1784942f3ed0 --- /dev/null +++ b/pkgs/by-name/gn/gnu-smalltalk/0001-fix-compilation.patch @@ -0,0 +1,26 @@ +diff --git a/packages/iconv/iconv.c b/packages/iconv/iconv.c +index ba2c38a7..55c2e737 100644 +--- a/packages/iconv/iconv.c ++++ b/packages/iconv/iconv.c +@@ -66,7 +66,7 @@ iconvWrapper (iconv_t handle, OOP readBufferOOP, int readPos, + int readCount, OOP writeBufferOOP, int writeCount, + OOP bytesLeftOOP) + { +- const char *inbuf; ++ char *inbuf; + size_t inbytesleft; + char *outbuf; + size_t outbytesleft; +diff --git a/packages/xml/expat/expat.c b/packages/xml/expat/expat.c +index 0ceee46c..4ea35289 100644 +--- a/packages/xml/expat/expat.c ++++ b/packages/xml/expat/expat.c +@@ -573,7 +573,7 @@ gst_XML_ParserCreate (OOP parserOOP) + XML_SetNotationDeclHandler (p, gst_NotationDeclHandler); + XML_SetStartNamespaceDeclHandler (p, gst_StartNamespaceDeclHandler); + XML_SetEndNamespaceDeclHandler (p, gst_EndNamespaceDeclHandler); +- XML_SetSkippedEntityHandler (p, gst_SkippedEntityHandler); ++ XML_SetSkippedEntityHandler (p, (void (*)(void *, const XML_Char *, int))(gst_SkippedEntityHandler)); + XML_SetReturnNSTriplet (p, true); + + if (!saxEventSequenceClass) diff --git a/pkgs/by-name/gn/gnu-smalltalk/package.nix b/pkgs/by-name/gn/gnu-smalltalk/package.nix index 07d83d8bdd13..89df07a91afc 100644 --- a/pkgs/by-name/gn/gnu-smalltalk/package.nix +++ b/pkgs/by-name/gn/gnu-smalltalk/package.nix @@ -47,6 +47,7 @@ stdenv.mkDerivation rec { # The awk script incorrectly parsed `glib/glib.h` and was trying to find `glib/gwin32.h`, # that isn't included since we're building only for linux. ./0000-fix_mkorder.patch + ./0001-fix-compilation.patch ]; # The dependencies and their justification are explained at