Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 03 Sep 2005 14:09:13 +0400
From:      Boris Samorodov <bsam@ipt.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        freebsd-ports-bugs@FreeBSD.org, Alexander Leidinger <Alexander@Leidinger.net>
Subject:   Re: ports/85625: [patch] emulators/linux_base-8, plist fix
Message-ID:  <28226502@srv.sem.ipt.ru>
In-Reply-To: <200509020940.j829eIxk092076@freefall.freebsd.org> (FreeBSD-gnats-submit@freebsd.org's message of "Fri, 2 Sep 2005 09:40:18 GMT")
References:  <200509020940.j829eIxk092076@freefall.freebsd.org>

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

I double-checked my patches and to my surprise I found out that with
the presence of record for linprocfs (linproc) at /etc/fstab
pkg_delete command doesn't umount linprocfs and hence doesn't remove
/compat/linux/proc.

We do have lines for deinstallation at the port's pkg-install
file. But at http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/pkg-deinstall.html
it is said that we should use a pkg-deinstall script.

Here are two more patches. The first one is a real patch for pkg-install
and the second is a new file pkg-deinstall.

Hm. It become too many stand alone files and patches. Should I prepare
one patch-file to replace those?


WBR
-- 
Boris B. Samorodov, Research Engineer
InPharmtech Co,     http://www.ipt.ru
Telephone & Internet Service Provider


--=-=-=
Content-Disposition: attachment; filename=patch-pkg-install
Content-Description: patch for pkg-install

--- pkg-install.orig	Sat Sep  3 13:26:45 2005
+++ pkg-install	Sat Sep  3 13:27:14 2005
@@ -31,16 +31,6 @@
 		mount linproc
 	fi
 	;;
-DEINSTALL)
-	if [ -n "`mount | grep -w ^linprocfs`" ]; then
-		echo 'Un-mounting linprocfs...'
-		umount linprocfs
-	fi
-	if [ -n "`mount | grep -w ^linproc`" ]; then
-		echo 'Un-mounting linproc...'
-		umount linproc
-	fi
-	;;
 esac
 
 exit 0

--=-=-=
Content-Disposition: attachment; filename=pkg-deinstall
Content-Description: new file pkg-deinstall

#!/bin/sh
# a deinstallation script for linux_base

case "$2" in
DEINSTALL)
	if [ -n "`mount | grep -w ^linprocfs`" ]; then
		echo 'Un-mounting linprocfs...'
		umount linprocfs
	fi
	if [ -n "`mount | grep -w ^linproc`" ]; then
		echo 'Un-mounting linproc...'
		umount linproc
	fi
	;;
esac

exit 0

--=-=-=--



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