ports/78088: [PATCH] databases/sqlite2 breaks when WRKDIRPREFIX is set

Jilles Tjoelker jilles at stack.nl
Fri Feb 25 19:40:31 UTC 2005


>Number:         78088
>Category:       ports
>Synopsis:       [PATCH] databases/sqlite2 breaks when WRKDIRPREFIX is set
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Feb 25 19:40:28 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Jilles Tjoelker
>Release:        FreeBSD 5.3-RELEASE-p2 i386
>Organization:
MCGV Stack
>Environment:
System: FreeBSD turtle.stack.nl 5.3-RELEASE-p2 FreeBSD 5.3-RELEASE-p2 #5: Thu Dec 2 17:25:55 CET 2004 jilles at snail.stack.nl:/usr/obj/usr/src/sys/SNAIL i386

WRKDIRPREFIX?=/usr/obj in /etc/make.conf
>Description:
Invocations of make in /usr/ports/databases/sqlite2/ give these errors:

/usr/bin/awk: can't open file pkg-plist
 source line number 1
"/usr/ports/databases/sqlite2/Makefile", line 77: warning: "/usr/bin/awk 'BEGIN {FS="/"}; /^%%PORTDOCS%%%%DOCSDIR%%/{print $2}' pkg-plist" returned non-zero status

This also happens when running pkg_version(1).

When installing the port, the documentation is not installed.
>How-To-Repeat:
Set WRKDIRPREFIX and install the port. The documentation is missing.
Run pkg_version -v with the port installed and WRKDIRPREFIX set.
>Fix:
Patch included.

I emailed this to the maintainer but did not get any response yet.
Date: Thu, 3 Feb 2005 18:03:01 +0100
Message-ID: <20050203170301.GA68931 at stack.nl>

--- sqlite2.patch begins here ---
--- ports/databases/sqlite2/Makefile.orig	Sun Dec 26 02:22:43 2004
+++ ports/databases/sqlite2/Makefile	Thu Feb  3 00:07:41 2005
@@ -74,7 +74,7 @@
 
 .include <bsd.port.pre.mk>
 
-DOCFILES!=	${AWK} 'BEGIN {FS="/"}; /^%%PORTDOCS%%%%DOCSDIR%%/{print $$2}' pkg-plist
+DOCFILES!=	${AWK} 'BEGIN {FS="/"}; /^%%PORTDOCS%%%%DOCSDIR%%/{print $$2}' <${.CURDIR}/pkg-plist
 
 post-patch:
 	@${REINPLACE_CMD} -e "s/tclsh \$$(TOP)/\$$(TCLSH) \$$(TOP)/g" \
--- sqlite2.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list