Date: Sat, 3 Sep 2005 10:10:23 GMT From: Boris Samorodov <bsam@ipt.ru> To: emulation@FreeBSD.org Subject: Re: ports/85625: [patch] emulators/linux_base-8, plist fix Message-ID: <200509031010.j83AANJt010239@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/85625; it has been noted by GNATS. 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 Date: Sat, 03 Sep 2005 14:09:13 +0400 --=-=-= 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?200509031010.j83AANJt010239>