docs/178221: Addition to handbook jails chapter: warning about make deinstall

Brandon Thomson bt at brandonthomson.com
Mon May 13 13:00:02 UTC 2013


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

From: Brandon Thomson <bt at brandonthomson.com>
To: bug-followup at FreeBSD.org
Cc:  
Subject: Re: docs/178221: Addition to handbook jails chapter: warning about
 make deinstall
Date: Mon, 13 May 2013 12:54:48 +0000

 [This message didn't make it into GNATS because I left out the address. Just
 resubmitting so it gets archived]
 
 >It seems to me that the Handbook advice includes linking the
 >/s/usr-local onto /usr/local inside the jail.  This is highly desirable
 >for regular users because having /usr/local/bin in a PATH works just
 >like on a real system.
 
 Yes, I think that is correct. This link exists on my system where I found this
 issue.
 
 Here is a transcript of a shell session demonstrating the issue. I also
 included some demonstration that the link from /usr/local to /rw/usr_local
 exists and is working (note that I have used slightly different directory names
 from the handbook example, so it is /rw/usr_local instead of /s/usr-local)
 
 I probably should have included this in the first message! Sorry about that.
 
 root at pipe:/usr/ports/ports-mgmt/portaudit # make
 ===> Fetching all distfiles required by portaudit-0.6.0 for building
 ===>  Extracting for portaudit-0.6.0
 ===>  Patching for portaudit-0.6.0
 ===>  Configuring for portaudit-0.6.0
 ===>  Building for portaudit-0.6.0
 root at pipe:/usr/ports/ports-mgmt/portaudit # make install
 ===>  Installing for portaudit-0.6.0
 ===>   Generating temporary packing list
 ===>  Checking if ports-mgmt/portaudit already installed
 
 ===>  To check your installed ports for known vulnerabilities now, do:
 
         /usr/local/sbin/portaudit -Fda
 
 ===>   Compressing manual pages for portaudit-0.6.0
 ===>   Registering installation for portaudit-0.6.0
 root at pipe:/usr/ports/ports-mgmt/portaudit # make deinstall
 ===>  Deinstalling for ports-mgmt/portaudit
 ===>   portaudit-0.6.0 has a different PREFIX: /rw/usr_local, skipping
 root at pipe:/usr/ports/ports-mgmt/portaudit # make deinstall PREFIX=/rw/usr_local
 ===>  Deinstalling for ports-mgmt/portaudit
 ===>   Deinstalling portaudit-0.6.0
 
 The portaudit package has been deleted.
 
 root at pipe:/usr/ports/ports-mgmt/portaudit # readlink /usr/local
 ../rw/usr_local
 root at pipe:/usr/ports/ports-mgmt/portaudit # ls -la /usr/
 total 144
 drwxr-xr-x  14 root  wheel   16 Mar 16 11:46 .
 drwxr-xr-x  13 root  wheel   20 Apr 18 14:38 ..
 lrwxr-xr-x   1 root  wheel   15 Mar 16 11:46 X11R6 -> ../rw/usr_X11R6
 drwxr-xr-x   2 root  wheel  475 Mar 16 11:00 bin
 drwxr-xr-x   2 root  wheel   16 Mar 16 10:59 games
 drwxr-xr-x  53 root  wheel  283 Mar 16 10:59 include
 drwxr-xr-x   7 root  wheel  556 Mar 16 10:59 lib
 drwxr-xr-x   4 root  wheel  571 Mar 16 11:00 lib32
 drwxr-xr-x   5 root  wheel    5 Mar 16 10:59 libdata
 drwxr-xr-x   6 root  wheel   62 Mar 16 11:00 libexec
 lrwxr-xr-x   1 root  wheel   15 Mar 16 11:45 local -> ../rw/usr_local
 drwxr-xr-x   2 root  wheel    2 Mar 16 10:59 obj
 drwxr-xr-x  68 root  wheel   83 Apr 21 20:18 ports
 drwxr-xr-x   2 root  wheel  286 Mar 16 10:59 sbin
 drwxr-xr-x  27 root  wheel   27 Mar 16 10:59 share
 drwxr-xr-x  22 root  wheel   31 Mar 16 04:05 src
 root at pipe:/usr/ports/ports-mgmt/portaudit # ls -la /usr/local/
 total 111
 drwxr-xr-x  13 root  wheel  13 May  7 09:00 .
 drwxr-xr-x  12 root  wheel  15 May  7 09:00 ..
 drwxr-xr-x   2 root  wheel   2 May  7 09:00 bin
 drwxr-xr-x   6 root  wheel   6 May  7 09:02 etc
 drwxr-xr-x   3 root  wheel   3 May  7 09:00 include
 drwxr-xr-x   2 root  wheel   2 May  7 09:00 info
 drwxr-xr-x   3 root  wheel   3 May  7 09:00 lib
 drwxr-xr-x   5 root  wheel   5 May  7 09:00 libdata
 drwxr-xr-x   2 root  wheel   2 May  7 09:00 libexec
 drwxr-xr-x  28 root  wheel  28 May  7 09:00 man
 drwxr-xr-x   2 root  wheel   2 May  7 09:02 sbin
 drwxr-xr-x  15 root  wheel  15 May  7 09:00 share
 drwxr-xr-x   2 root  wheel   2 May  7 09:00 www
 root at pipe:/usr/ports/ports-mgmt/portaudit #


More information about the freebsd-doc mailing list