ports/64479: [MAINTAINER] databases/db42: convenience patch for broken ports tools

Matthias Andree matthias.andree at gmx.de
Fri Mar 19 19:10:14 UTC 2004


>Number:         64479
>Category:       ports
>Synopsis:       [MAINTAINER] databases/db42: convenience patch for broken ports tools
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 19 11:10:14 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Matthias Andree
>Release:        FreeBSD 4.9-STABLE i386
>Organization:
>Environment:
System: FreeBSD libertas.emma.line.org 4.9-STABLE FreeBSD 4.9-STABLE #91: Wed Mar 17 12:53:04 CET 2004
>Description:
This patch is a convenience patch to allow broken port tools to continue
to go about their rotten business. It is issued without acknowledgment
of any obligation, in response to ports/64393.

The patch does NOT bump PORTREVISION as the change is invisible for the
port's or package's users. $FreeBSD$ is sufficient.

I also refute any "bug" with respect to the the porter's handbook's
pages referenced in ports/64393, my port has not written anything after
bsd.port.mk and portlint has nothing to complain about (only that it
can't figure "patch" is legal in a PATCHFILES variable).

Informational: tools that assume .include <bsd.port.[post.]mk> was the
last line in a port's makefile are broken. They should be comparing
the output of realpath $(make -V MASTERDIR) against the output of
realpath $(pwd) instead:

-bash-2.05b$ realpath $(pwd)
/usr/home/ma/db42
-bash-2.05b$ realpath $(make -V MASTERDIR)
/usr/home/ma/db42

-bash-2.05b$ cd ../db42-nocrypto # switch to slave's port directory
-bash-2.05b$ realpath $(make -V MASTERDIR)
/usr/home/ma/db42
-bash-2.05b$ realpath $(pwd)
/usr/home/ma/db42-nocrypto

Generated with FreeBSD Port Tools 0.50
>How-To-Repeat:
>Fix:

--- db42-4.2.52_2.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/databases/db42/Makefile /usr/home/emma/db42/Makefile
--- /usr/ports/databases/db42/Makefile	Wed Mar  3 20:49:26 2004
+++ /usr/home/emma/db42/Makefile	Fri Mar 19 19:38:57 2004
@@ -19,3 +19,4 @@
 MASTERDIR?=	${.CURDIR}
 
 .include <${MASTERDIR}/Makefile.db>
+.include <bsd.port.mk>
diff -ruN --exclude=CVS /usr/ports/databases/db42/Makefile.db /usr/home/emma/db42/Makefile.db
--- /usr/ports/databases/db42/Makefile.db	Sat Feb 28 17:55:41 2004
+++ /usr/home/emma/db42/Makefile.db	Fri Mar 19 19:38:51 2004
@@ -44,5 +44,3 @@
 .endif
 	cd ${PREFIX}/bin/${PORTNAME} ; \
 	for i in * ; do ${LN} -s ${PORTNAME}/$$i ../$$i-${BDBVER} ; done
-
-.include <bsd.port.mk>
--- db42-4.2.52_2.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list