error building index on 4.x
Oliver Eikemeier
eikemeier at fillmore-labs.com
Thu Sep 2 10:37:46 PDT 2004
Joey Mingrone wrote:
> Hi,
>
> Running:
>
> /usr/local/bin/cvsup -r 3 ports-all-supfile; /usr/local/sbin/portsdb -uU
>
> gives:
>
> Updating the ports index ... Generating INDEX.tmp - please wait..make:
> illegal option -- C
> usage: make [-Beiknqrstv] [-D variable] [-d flags] [-E variable] [-f
> makefile]
> [-I directory] [-j max_jobs] [-m directory] [-V variable]
> [variable=value] [target ...]
> "Makefile", line 16: warning: "make
> -C /usr/ports/net/tkabber/../../devel/tcllib -V PORTVERSION" returned
> non-zero status
> "Makefile", line 44: warning: String comparison operator should be either
> == or !=
> "Makefile", line 44: Malformed conditional (${OSVERSION} < 490000 ||
> (${OSVERSION} >= 500000 && ${OSVERSION} < 502001))
> "Makefile", line 44: Missing dependency operator
> "Makefile", line 46: if-less endif
> "Makefile", line 46: Need an operator
> make: fatal errors encountered -- cannot continue
> ===> x11/nvidia-driver failed
> *** Error code 1
> 1 error
>
> *** Error code 1
>
> Stop in /usr/ports.
> *** Error code 1
>
> Stop in /usr/ports.
> failed to generate INDEX!
> portsdb: index generation error
>
> Please let me know if there is any other information I can provide.
At least uname -a would have been helpful, showing us that you have a pre-4.8 system.
<http://www.freebsd.org/doc/en_US.ISO8859-1/articles/problem-reports/article.html>
The following patch should fix your problems:
Index: net/tkabber/Makefile
===================================================================
RCS file: /home/ncvs/ports/net/tkabber/Makefile,v
retrieving revision 1.3
diff -u -u -r1.3 Makefile
--- net/tkabber/Makefile 3 Aug 2004 22:07:42 -0000 1.3
+++ net/tkabber/Makefile 2 Sep 2004 17:27:59 -0000
@@ -13,7 +13,7 @@
MAINTAINER= gonzo at univ.kiev.ua
COMMENT= Tcl/Tk based jabber client
-TCLLIBVER!= ${MAKE} -C ${.CURDIR}/../../devel/tcllib -V PORTVERSION
+TCLLIBVER!= cd ${.CURDIR}/../../devel/tcllib && ${MAKE} -V PORTVERSION
RUN_DEPENDS= wish8.4:${PORTSDIR}/x11-toolkits/tk84 \
${LOCALBASE}/lib/tcllib${TCLLIBVER}/pkgIndex.tcl:${PORTSDIR}/devel/tcllib \
${LOCALBASE}/lib/tls/pkgIndex.tcl:${PORTSDIR}/devel/tcltls \
Index: x11/nvidia-driver/Makefile
===================================================================
RCS file: /home/ncvs/ports/x11/nvidia-driver/Makefile,v
retrieving revision 1.19
diff -u -u -r1.19 Makefile
--- x11/nvidia-driver/Makefile 27 Aug 2004 09:24:05 -0000 1.19
+++ x11/nvidia-driver/Makefile 2 Sep 2004 17:29:38 -0000
@@ -41,7 +41,7 @@
PLIST_SUB+= LINUX="@comment "
.endif
-.if ${OSVERSION} < 490000 || (${OSVERSION} >= 500000 && ${OSVERSION} < 502001)
+.if ${OSVERSION} < 490000 || ( ${OSVERSION} >= 500000 && ${OSVERSION} < 502001 )
IGNORE= "supports FreeBSD -STABLE (4.9 or later), or FreeBSD -CURRENT (5.2.1 or later)"
.endif
Btw, I don't like the != line, there must be another way.
-Oliver
More information about the freebsd-ports
mailing list