From owner-freebsd-emulation@FreeBSD.ORG Sat Sep 3 10:10:24 2005 Return-Path: X-Original-To: emulation@hub.freebsd.org Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6175E16A41F for ; Sat, 3 Sep 2005 10:10:24 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0D53D43D49 for ; Sat, 3 Sep 2005 10:10:24 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j83AANpg010240 for ; Sat, 3 Sep 2005 10:10:23 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j83AANJt010239; Sat, 3 Sep 2005 10:10:23 GMT (envelope-from gnats) Date: Sat, 3 Sep 2005 10:10:23 GMT Message-Id: <200509031010.j83AANJt010239@freefall.freebsd.org> To: emulation@FreeBSD.org From: Boris Samorodov Cc: Subject: Re: ports/85625: [patch] emulators/linux_base-8, plist fix X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Boris Samorodov List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Sep 2005 10:10:24 -0000 The following reply was made to PR ports/85625; it has been noted by GNATS. From: Boris Samorodov To: FreeBSD-gnats-submit@FreeBSD.org Cc: freebsd-ports-bugs@FreeBSD.org, Alexander Leidinger 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 --=-=-=--