Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Sep 1998 14:00:59 +0200 (CEST)
From:      Stefan Eggers <seggers@semyam.dinoco.de>
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Cc:        seggers@semyam.dinoco.de
Subject:   ports/7917: problem with ELF tcp_wrappers 7.6 deinstallation
Message-ID:  <199809131200.OAA04932@semyam.dinoco.de>

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

>Number:         7917
>Category:       ports
>Synopsis:       problem with ELF tcp_wrappers 7.6 deinstallation
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Sep 13 05:40:00 PDT 1998
>Last-Modified:
>Originator:     Stefan Eggers
>Organization:
none
>Release:        FreeBSD 3.0-CURRENT i386
>Environment:

	An ELF -current system.

>Description:

	I changed the port to conform to the ELF guidelines and then
made a package.  Testing it I noticed that libwrap.a doesn't get un-
installed on pkg_delete.

   The problem I traced back to an unnecessary ranlib in PLIST which
causes the md5 pkg_install records in +CONTENTS and the md5 of the
installed file to differ.

>How-To-Repeat:

	Make a tcp_wrappers 7.6 package, deinstall it, install it,
deinstall it with "pkg_delete -v tcp_wrappers-7.6" and look at the
errors reported.

>Fix:
	
	The propper fix is to remove the unnecessary ranlib call.  The
tcp_wrapper Makefile itself does it already after installing the
library.  Doing it again on installation of the package is thus not
necessary.

	This patch removes the ranlib execution from PLIST:

[Please note that the library version is from my ELF patch which I
send in another PR.  If you want to apply it w/o ELF patch change the
.so.8 to .so.7.6 and remove everything between @exec/@unexec and
/sbin/ldconfig from the last two lines.]

diff -r -u ../tcp_old/pkg/PLIST ./pkg/PLIST
--- ../tcp_old/pkg/PLIST	Sun Sep 13 13:26:18 1998
+++ ./pkg/PLIST	Sun Sep 13 13:27:30 1998
@@ -5,7 +5,6 @@
 bin/safe_finger
 bin/try-from
 lib/libwrap.a
-@exec ranlib %D/%F
 lib/libwrap.so.8
 @exec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -m %B
 @unexec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -R
>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?199809131200.OAA04932>