Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing include for libxml2 to gnucobol #371974

Merged
merged 1 commit into from
Jan 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions pkgs/by-name/gn/gnucobol/fix-libxml2-include.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
libcob: Fix include for xmlCleanupParser

common.c uses xmlCleanupParser, which is defined in libxml/parser.h.
---

--- a/libcob/common.c 2025-01-01 03:03:49.762316279 +0100
+++ b/libcob/common.c 2025-01-01 03:01:56.632597306 +0100
@@ -136,6 +136,7 @@
#if defined (WITH_XML2)
#include <libxml/xmlversion.h>
#include <libxml/xmlwriter.h>
+#include <libxml/parser.h>
#endif

#if defined (WITH_CJSON)

4 changes: 4 additions & 0 deletions pkgs/by-name/gn/gnucobol/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ stdenv.mkDerivation (finalAttrs: {
# XXX: Without this, we get a cycle between bin and dev
propagatedBuildOutputs = [ ];

patches = [
./fix-libxml2-include.patch
];

# Skips a broken test
postPatch = ''
sed -i '/^AT_CHECK.*crud\.cob/i AT_SKIP_IF([true])' tests/testsuite.src/listings.at
Expand Down