Skip site navigation (1)Skip section navigation (2)
Date:      Thu,  7 Mar 2002 00:30:34 +0900 (JST)
From:      SASAKI Katuhiro <sahiro@crest.ocn.ne.jp>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/35594: Bug: misc/kwatch fails to build if autoconf or automake is available
Message-ID:  <20020306153056.9193ABAB4@sahiro.merseine.nu>

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

>Number:         35594
>Category:       ports
>Synopsis:       Bug: misc/kwatch fails to build if autoconf or automake is available
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 06 07:40:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     SASAKI Katuhiro
>Release:        FreeBSD 4.5-STABLE i386
>Organization:
personal
>Environment:
>Description:
If devel/autoconf port or devel/automake port is already installed on the 
system on which make runs, misc/kwtch (kwatch-2.2.0) port fails to build as 
shown below.

>How-To-Repeat:
# cd ${PORTSDIR}/deve/autoconf && make install
...
# cd ${PORTSDIR}/deve/automake && make install
...
# cd ${PORTSDIR}/misc/kwatch && make
...
===>  Building for kwatch-2.2.0
cd . && make -f admin/Makefile.common configure.in ;
cd . && aclocal
cd . && autoheader
./aclocal.m4:2509: error: m4_defn: undefined macro: _m4_divert_diversion
acfunctions.m4:1108: AM_FUNC_OBSTACK is expanded from...
./aclocal.m4:2509: the top level
autoconf: tracing failed
*** Error code 1
...

>Fix:
Apply a patch below to skeleton of misc/kwatch.

diff -u /usr/ports/misc/kwatch/Makefile kwatch/Makefile
--- /usr/ports/misc/kwatch/Makefile	Sun Mar  3 15:39:56 2002
+++ kwatch/Makefile	Mon Mar  4 19:00:13 2002
@@ -14,12 +14,24 @@
 
 MAINTAINER=	ports@FreeBSD.org
 
-BUILD_DEPENDS=	msgfmt:${PORTSDIR}/devel/gettext
+BUILD_DEPENDS=	msgfmt:${PORTSDIR}/devel/gettext \
+		autoconf213:${PORTSDIR}/devel/autoconf213 \
+		automake14:${PORTSDIR}/devel/automake14
 
-USE_KDELIBS_VER=	2
+USE_KDELIBS_VER=2
+USE_GMAKE=	yes
 GNU_CONFIGURE=	yes
 
-post-patch:
-	@${PERL} -pi -e 's|-O2 ||g' ${WRKSRC}/configure
+pre-configure:
+	${MKDIR} ${WRKSRC}/auto-bin
+.for AC in autoconf autoheader
+	${LN} -sf ${LOCALBASE}/bin/${AC}213 ${WRKSRC}/auto-bin/${AC}
+.endfor
+.for AM in automake aclocal
+	${LN} -sf ${LOCALBASE}/bin/${AM}14 ${WRKSRC}/auto-bin/${AM}
+.endfor
+	cd ${WRKSRC} && env PATH=${WRKSRC}/auto-bin:$$PATH \
+		${GMAKE} -f Makefile.cvs
+	${PERL} -pi -e 's|-O2 ||g' ${WRKSRC}/configure
 
 .include <bsd.port.mk>
>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?20020306153056.9193ABAB4>