Subject: print/scribus misses mkdir prototype
To: None <tech-pkg@netbsd.org>
From: Joerg Sonnenberger <joerg@britannica.bec.de>
List: tech-pkg
Date: 05/31/2005 19:06:36
--8GpibOaaTibBMecb
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hi all,
print/scribus doesn't compile on DragonFly, because it doesn't find
a prototype for mkdir. The attached patch includes sys/stat.h, where
it belongs into according to POSIX. I haven't submitted it upstream,
since the files are gone in 1.3.x at least.

Joerg

--8GpibOaaTibBMecb
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="scribus.diff"

Index: distinfo
===================================================================
RCS file: /home/joerg/wd/repository/netbsd/pkgsrc/print/scribus/distinfo,v
retrieving revision 1.8
diff -u -r1.8 distinfo
--- distinfo	31 Mar 2005 19:15:23 -0000	1.8
+++ distinfo	31 May 2005 15:39:06 -0000
@@ -10,3 +10,5 @@
 SHA1 (patch-af) = dd909856719c957a6d593eb81da2b7a928c5ca8c
 SHA1 (patch-ag) = ad687b457bd15a80189ee31613bb4c341d93b041
 SHA1 (patch-ah) = e2e6c88bdee3c8e349a66d44e45a822e462d4cb8
+SHA1 (patch-ai) = e9db252fa660f4f2df80d3affba25f53f769b78a
+SHA1 (patch-aj) = 3707687ad5ea9faa7216433203515ad56492c717
Index: patches/patch-ai
===================================================================
RCS file: patches/patch-ai
diff -N patches/patch-ai
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ patches/patch-ai	31 May 2005 15:27:54 -0000
@@ -0,0 +1,15 @@
+$NetBSD$
+
+--- scribus/plugins/gettext/sxwim/sxwunzip.cpp.orig	2005-05-31 17:26:38.000000000 +0200
++++ scribus/plugins/gettext/sxwim/sxwunzip.cpp
+@@ -22,6 +22,10 @@
+ 
+ #ifdef HAVE_XML
+ 
++#ifdef unix
++#include <sys/stat.h>
++#endif
++
+ #include <stdlib.h>
+ #include <string.h>
+ #include <errno.h>
Index: patches/patch-aj
===================================================================
RCS file: patches/patch-aj
diff -N patches/patch-aj
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ patches/patch-aj	31 May 2005 15:38:57 -0000
@@ -0,0 +1,15 @@
+$NetBSD$
+
+--- scribus/plugins/fileloader/oodraw/sxwunzip.cpp.orig	2005-05-31 17:26:38.000000000 +0200
++++ scribus/plugins/fileloader/oodraw/sxwunzip.cpp
+@@ -20,6 +20,10 @@
+ 
+ #include "sxwunzip.h"
+ 
++#ifdef unix
++#include <sys/stat.h>
++#endif
++
+ #include <stdlib.h>
+ #include <string.h>
+ #include <errno.h>

--8GpibOaaTibBMecb--