We want to patch configure.ac since we use autofoo.

Fix an implicit declaration.
This commit is contained in:
ajacoutot 2010-04-18 09:04:35 +00:00
parent 0ca01b0f74
commit 012de91e9f
4 changed files with 29 additions and 20 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.14 2010/04/13 17:03:24 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.15 2010/04/18 09:04:35 ajacoutot Exp $
COMMENT= Foomatic PPD print filters
DISTNAME= foomatic-filters-4.0.4
PKGNAME= ${DISTNAME}p1
PKGNAME= ${DISTNAME}p2
CATEGORIES= print
HOMEPAGE= http://www.linuxfoundation.org/en/OpenPrinting/Database/Foomatic
@ -46,9 +46,7 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
FAKE_FLAGS= ETCDIR="${PREFIX}/share/examples/foomatic"
pre-configure:
perl -pi -e 's,!!SYSCONFDIR!!,${SYSCONFDIR},g;' \
-e 's,!!LOCALBASE!!,${LOCALBASE},g' \
${WRKSRC}/configure
${SUBST_CMD} ${WRKSRC}/foomaticrip.c ${WRKSRC}/filter.conf
${SUBST_CMD} ${WRKSRC}/configure.ac \
${WRKSRC}/foomaticrip.c ${WRKSRC}/filter.conf
.include <bsd.port.mk>

View File

@ -1,14 +0,0 @@
$OpenBSD: patch-configure,v 1.2 2010/03/21 14:39:40 ajacoutot Exp $
--- configure.orig Wed Aug 19 20:08:45 2009
+++ configure Mon Dec 7 18:03:22 2009
@@ -6804,8 +6804,8 @@ done
-ETCSEARCHPATH=${prefix}/etc:/usr/etc:/usr/local/etc
-LIBSEARCHPATH=${prefix}/lib:${prefix}/lib64:/usr/lib:/usr/lib64:/usr/local/lib:${prefix}/libexec:/usr/libexec:/usr/local/libexec
+ETCSEARCHPATH=!!SYSCONFDIR!!
+LIBSEARCHPATH=!!LOCALBASE!!/lib:/usr/lib:!!LOCALBASE!!/libexec:/usr/libexec
uname=`uname`
uversion=`uname -r | sed -e '1,$s/[^0-9]//g'`

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-configure_ac,v 1.1 2010/04/18 09:04:36 ajacoutot Exp $
--- configure.ac.orig Sun Apr 18 10:56:08 2010
+++ configure.ac Sun Apr 18 10:57:09 2010
@@ -42,8 +42,8 @@ AC_FUNC_VPRINTF
AC_CHECK_FUNCS([dup2 getcwd gethostname regcomp setenv strcasecmp strchr strcspn strdup strncasecmp strndup strrchr strstr strtol])
-ETCSEARCHPATH=${prefix}/etc:/usr/etc:/usr/local/etc
-LIBSEARCHPATH=${prefix}/lib:${prefix}/lib64:/usr/lib:/usr/lib64:/usr/local/lib:${prefix}/libexec:/usr/libexec:/usr/local/libexec
+ETCSEARCHPATH=${SYSCONFDIR}
+LIBSEARCHPATH=${LOCALBASE}/lib:/usr/lib:${LOCALBASE}/libexec:/usr/libexec
uname=`uname`
uversion=`uname -r | sed -e '1,$s/[[^0-9]]//g'`

View File

@ -0,0 +1,11 @@
$OpenBSD: patch-process_c,v 1.1 2010/04/18 09:04:36 ajacoutot Exp $
--- process.c.orig Sun Apr 18 10:57:34 2010
+++ process.c Sun Apr 18 10:57:43 2010
@@ -28,6 +28,7 @@
#include <sys/wait.h>
#include <errno.h>
#include <stdlib.h>
+#include <signal.h>
int kidgeneration = 0;