ports/85625: [patch] emulators/linux_base-8, plist fix

Boris Samorodov bsam at ipt.ru
Sat Sep 3 03:10:24 PDT 2005


The following reply was made to PR ports/85625; it has been noted by GNATS.

From: Boris Samorodov <bsam at ipt.ru>
To: FreeBSD-gnats-submit at FreeBSD.org
Cc: freebsd-ports-bugs at FreeBSD.org, Alexander Leidinger <Alexander at 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
 
 --=-=-=--


More information about the freebsd-emulation mailing list