Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Jan 2003 11:43:47 +0100 (CET)
From:      Matthias Andree <matthias.andree@web.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/46795: maintainer update port: database/db4, fix package deinstall bug
Message-ID:  <200301061043.h06AhlsG052780@libertas.emma.line.org>

next in thread | raw e-mail | index | archive | help

>Number:         46795
>Category:       ports
>Synopsis:       maintainer update port: database/db4, fix package deinstall bug
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 06 02:50:02 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Matthias Andree
>Release:        FreeBSD 4.7-STABLE i386
>Organization:
>Environment:
System: FreeBSD libertas.emma.line.org 4.7-STABLE FreeBSD 4.7-STABLE #10: Fri Jan 3 22:37:33 CET 2003 root@libertas.emma.line.org:/usr/src/sys/compile/LIBERTAS i386


	
>Description:
The package built from the db port throws bogus messages that the
directory ${PREFIX}/share/doc/db4/ref/splash could not be removed at
uninstall time, then later that the port had not been completely
removed.

Cause is that the empty directory is installed by the port, but not by
the package, so the @dirrm makes trouble.
	
>How-To-Repeat:
cd /usr/ports/databases/db4
make install
make package
make deinstall
pkg_add /path/to/db4-4.0.14_1,1.tgz
make deinstall # this causes the bogus messages
>Fix:
Apply this patch:

diff -Nur --exclude CVS /usr/ports/databases/db4/Makefile /root/db4/Makefile
--- /usr/ports/databases/db4/Makefile	Sun Jan  5 05:43:18 2003
+++ /root/db4/Makefile	Mon Jan  6 11:35:06 2003
@@ -34,6 +34,14 @@
 INSTALL_TARGET=	install install_docs
 .endif
 
+# the db install_docs target installs an empty directory, kill it
+# (it's not packaged and it's not needed):
+
+.if !defined(NOPORTDOCS)
+post-install:
+	@${RMDIR} ${PREFIX}/share/doc/db4/ref/splash
+.endif
+
 post-patch:
 	@${REINPLACE_CMD} -e \
 		's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/${CONFIGURE_SCRIPT}
diff -Nur --exclude CVS /usr/ports/databases/db4/pkg-plist /root/db4/pkg-plist
--- /usr/ports/databases/db4/pkg-plist	Sun Jan  5 05:43:18 2003
+++ /root/db4/pkg-plist	Mon Jan  6 10:41:10 2003
@@ -860,7 +860,6 @@
 %%PORTDOCS%%@dirrm share/doc/db4/ref/transapp
 %%PORTDOCS%%@dirrm share/doc/db4/ref/test
 %%PORTDOCS%%@dirrm share/doc/db4/ref/tcl
-%%PORTDOCS%%@dirrm share/doc/db4/ref/splash
 %%PORTDOCS%%@dirrm share/doc/db4/ref/simple_tut
 %%PORTDOCS%%@dirrm share/doc/db4/ref/sendmail
 %%PORTDOCS%%@dirrm share/doc/db4/ref/rpc
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200301061043.h06AhlsG052780>