Skip site navigation (1)Skip section navigation (2)
Date:      Sun,  7 Jul 2002 18:49:21 +0200 (CEST)
From:      Thierry Thomas <thierry@pompo.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/40300: news/newsx: fixing make + replacing PERL by REINPLACE_CMD
Message-ID:  <20020707164921.CC2AC752E@graf.pompo.net>

next in thread | raw e-mail | index | archive | help

>Number:         40300
>Category:       ports
>Synopsis:       news/newsx: fixing make + replacing PERL by REINPLACE_CMD
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jul 07 10:00:07 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Thierry Thomas
>Release:        FreeBSD 4.6-STABLE i386
>Organization:
Kabbale Eros
>Environment:
System: FreeBSD graf.pompo.net 4.6-STABLE FreeBSD 4.6-STABLE #0: Sun Jun 16 15:14:29 CEST 2002 root@graf.pompo.net:/usr/obj/mntsrc/src/sys/GRAF010429 i386


	
>Description:
	1) newsx requires autoconf213, but make fails if autoconf is installed
		=> need to force autoheader213.

	2) PERL -> REINPLACE_CMD.

>How-To-Repeat:
	Install autoconf, remove perl, and try to build newsx.

>Fix:

	Apply the following patch:


diff -urN /usr/ports/news/newsx.orig/Makefile /usr/ports/news/newsx/Makefile
--- /usr/ports/news/newsx.orig/Makefile	Sat Feb 23 21:40:34 2002
+++ /usr/ports/news/newsx/Makefile	Sun Jul  7 18:23:13 2002
@@ -19,7 +19,8 @@
 BUILD_DEPENDS=	${LOCALBASE}/news/lib/libinn.a:${PORTSDIR}/news/inn
 .endif
 
-USE_AUTOMAKE_VER=14
+USE_AUTOMAKE=	yes
+USE_REINPLACE=	yes
 CONFIGURE_ENV=	PATH="${PATH}:${LOCALBASE}/news/bin"
 .if !defined(WITH_CNEWS)
 .if !defined(WITHOUT_INN_2-X)
@@ -33,7 +34,7 @@
 DOCS=		AUTHORS COPYING ChangeLog FAQ INSTALL NEWS README TODO
 
 post-patch:
-	@${PERL} -pi -e "s:%%LOCALBASE%%:${LOCALBASE}:" ${WRKSRC}/configure.in
+	@${REINPLACE_CMD} -e "s:%%LOCALBASE%%:${LOCALBASE}:" ${WRKSRC}/configure.in
 
 pre-configure:
 	@${ECHO} "*********************************************************"
diff -urN /usr/ports/news/newsx.orig/files/patch-aclocal.m4 /usr/ports/news/newsx/files/patch-aclocal.m4
--- /usr/ports/news/newsx.orig/files/patch-aclocal.m4	Thu Jan  1 01:00:00 1970
+++ /usr/ports/news/newsx/files/patch-aclocal.m4	Sun Jul  7 18:22:56 2002
@@ -0,0 +1,11 @@
+--- aclocal.m4.orig	Tue Jan 29 21:32:47 2002
++++ aclocal.m4	Sun Jul  7 18:21:47 2002
+@@ -39,7 +39,7 @@
+ AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
+ AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
+ AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
+-AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
++AM_MISSING_PROG(AUTOHEADER, autoheader213, $missing_dir)
+ AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
+ AC_REQUIRE([AC_PROG_MAKE_SET])])
+ 


>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020707164921.CC2AC752E>