From owner-freebsd-doc@FreeBSD.ORG Mon May 13 13:00:02 2013 Return-Path: Delivered-To: freebsd-doc@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 89ED46DF for ; Mon, 13 May 2013 13:00:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 7C92896 for ; Mon, 13 May 2013 13:00:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r4DD02BI000308 for ; Mon, 13 May 2013 13:00:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r4DD01Mm000307; Mon, 13 May 2013 13:00:01 GMT (envelope-from gnats) Date: Mon, 13 May 2013 13:00:01 GMT Message-Id: <201305131300.r4DD01Mm000307@freefall.freebsd.org> To: freebsd-doc@FreeBSD.org Cc: From: Brandon Thomson Subject: Re: docs/178221: Addition to handbook jails chapter: warning about make deinstall X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Brandon Thomson List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 May 2013 13:00:02 -0000 The following reply was made to PR docs/178221; it has been noted by GNATS. From: Brandon Thomson To: bug-followup@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@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@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@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@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@pipe:/usr/ports/ports-mgmt/portaudit # readlink /usr/local ../rw/usr_local root@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@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@pipe:/usr/ports/ports-mgmt/portaudit #