From owner-freebsd-ports Wed Mar 6 7:40:12 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 388A737B405 for ; Wed, 6 Mar 2002 07:40:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g26Fe1J17260; Wed, 6 Mar 2002 07:40:01 -0800 (PST) (envelope-from gnats) Received: from sahiro.homeip.net (p17-dna05sawada.niigata.ocn.ne.jp [211.122.195.145]) by hub.freebsd.org (Postfix) with ESMTP id 4D3FC37B41C for ; Wed, 6 Mar 2002 07:30:58 -0800 (PST) Received: by sahiro.merseine.nu (Postfix, from userid 1000) id 9193ABAB4; Thu, 7 Mar 2002 00:30:34 +0900 (JST) Message-Id: <20020306153056.9193ABAB4@sahiro.merseine.nu> Date: Thu, 7 Mar 2002 00:30:34 +0900 (JST) From: SASAKI Katuhiro To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/35594: Bug: misc/kwatch fails to build if autoconf or automake is available Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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 >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message