ports/117643: devel/ncurses fails to build if WRKDIRPREFIX is set
Stefan Sperling
stsp at stsp.name
Mon Oct 29 21:00:05 UTC 2007
>Number: 117643
>Category: ports
>Synopsis: devel/ncurses fails to build if WRKDIRPREFIX is set
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Oct 29 21:00:04 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator: Stefan Sperling
>Release: FreeBSD 6.2-RELEASE-p8 i386
>Organization:
>Environment:
System: FreeBSD ted.stsp.lan 6.2-RELEASE-p8 FreeBSD 6.2-RELEASE-p8 #0: Sun Oct 14 21:01:47 CEST 2007 stsp at ted.stsp.lan:/usr/obj/usr/src/sys/TED i386
>Description:
Tyring to compile mutt with wide char support, I hit a problem
building the devel/ncurses port.
After running the configure script for devel/ncurses the first
time, make failed complaining about not knowing how to run do-configure.
The port's Makefile tries to run the configure script twice
(each time with different options), the second time by calling
the do-configure target again.
It does the same for do-build and do-install.
If WRKDIRPREFIX is set, it apparently tries to run these target
inside the ncurses source tree, and not in the
/usr/ports/devel/ncurses directory.
This is obviously wrong.
I have 'WRKDIRPREFIX=/usr/obj' in /etc/make.conf.
>How-To-Repeat:
Set WRKDIRPREFIX=/usr/obj in /etc/make.conf, try to compile
the Äevel/ncurses port.
>Fix:
This patch fixes the problem for me:
Index: devel/ncurses/Makefile
===================================================================
RCS file: /usr/ncvs/ports/devel/ncurses/Makefile,v
retrieving revision 1.47
diff -u -u -r1.47 Makefile
--- devel/ncurses/Makefile 4 Aug 2007 11:40:47 -0000 1.47
+++ devel/ncurses/Makefile 28 Oct 2007 22:10:42 -0000
@@ -120,9 +120,10 @@
post-configure:
.if !defined(WITHOUT_WIDEC)
- ${MAKE} CONFIGURE_WRKSRC=${WIDEC_WRKSRC} \
+ (cd ${PORTSDIR}/${PKGORIGIN} && \
+ ${MAKE} CONFIGURE_WRKSRC=${WIDEC_WRKSRC} \
CONFIGURE_ARGS="${CONFIGURE_ARGS} --enable-widec" \
- do-configure
+ do-configure)
.endif
.for d in test c++
.if !defined(WITHOUT_WIDEC)
@@ -133,12 +134,14 @@
post-build:
.if !defined(WITHOUT_WIDEC)
- ${MAKE} BUILD_WRKSRC=${WIDEC_WRKSRC} do-build
+ (cd ${PORTSDIR}/${PKGORIGIN} && \
+ ${MAKE} BUILD_WRKSRC=${WIDEC_WRKSRC} do-build)
.endif
post-install:
.if !defined(WITHOUT_WIDEC)
- ${MAKE} INSTALL_WRKSRC=${WIDEC_WRKSRC} do-install
+ (cd ${PORTSDIR}/${PKGORIGIN} && \
+ ${MAKE} INSTALL_WRKSRC=${WIDEC_WRKSRC} do-install)
.endif
.for i in ${EXAMPLES_TARGETS}
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list