From owner-freebsd-ports@FreeBSD.ORG Sun Oct 13 11:57:56 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 9701C8CD for ; Sun, 13 Oct 2013 11:57:56 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 23D3F2FE9 for ; Sun, 13 Oct 2013 11:57:55 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.2.117.99]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.7/8.14.7) with ESMTP id r9DBvm7R081038 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Sun, 13 Oct 2013 12:57:49 +0100 (BST) (envelope-from matthew@FreeBSD.org) DKIM-Filter: OpenDKIM Filter v2.8.3 smtp.infracaninophile.co.uk r9DBvm7R081038 Authentication-Results: smtp.infracaninophile.co.uk/r9DBvm7R081038; dkim=none reason="no signature"; dkim-adsp=none (unprotected policy) Message-ID: <525A8AB5.9000102@FreeBSD.org> Date: Sun, 13 Oct 2013 12:57:41 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 MIME-Version: 1.0 To: Ekkehard Gehm , freebsd-ports@freebsd.org Subject: Re: stagedir vs. jail References: <20131013105853.GA63463@doom-labs.net> In-Reply-To: <20131013105853.GA63463@doom-labs.net> X-Enigmail-Version: 1.5.2 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="NirtoAHrWTO9F3MJuql6ciHiui7lrRDFa" X-Virus-Scanned: clamav-milter 0.97.8 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Oct 2013 11:57:56 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --NirtoAHrWTO9F3MJuql6ciHiui7lrRDFa Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 13/10/2013 11:58, Ekkehard Gehm wrote: > I resently have some problems installing/updating ports. The main > problem is that the stagedir path is somehow messed up. >=20 > The system is running FreeBSD 9.1-RELEASE-p6 and I'm working in a > jail. While building it creates the stagedir in > /s/portbuild/usr/ports/...../usr/local/ BUT: When it comes to the pkg > building it suddently is looking in .../usr-local/.. witch acctualy > is a part of the symlink. (In the jail /usr/local is a symlink to > /s/usr-local). Resulting in an failure. >=20 > The only workiaround is disabling stage completly thru make.conf...=20 > As this is very quick'n'dirty I wonder if there is any other > solution! Your subject line is (perhaps) a bit misleading: this seems to be nothing specific to the use of jails, but due to having sym-links in various paths. It could happen just the same if you laid out your host filesystem using sym-links. Anyhow, this looks like a bug to me -- using sym-links to put your filesystem together should not result in chaos. Are you using pkg(8)? There are differences in the way a package is generated from the staging directory between pkg(8) and pkg_create(1) which might make all the difference. Is it all ports that are affected? Does the use of PLIST_FILES or PLIST_DIRS in the port Makefile make any difference compared to having a pkg-plist file? A possible work-around: instead of sym-linking /s/usr-local -> /usr/local use a nullfs mount instead. mount -t nullfs /s/usr-local /usr/local (Actually, you'ld probably do that from outside the jail so adjust the paths accordingly.) Another workaround: set up your own poudriere instance to build packages for all your jails. poudriere(8) will create its own jails to do package building in, and manage paths etc. itself. It's a natural partner to pkg(8) and zfs(8) but it will work without either of those. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey --NirtoAHrWTO9F3MJuql6ciHiui7lrRDFa Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.20 (Darwin) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQJ8BAEBCgBmBQJSWoq8XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATOf0P/1xqdyT9+BH5/tIC9YFKQFYs 63We7WGVkpfAh+Oj4LTeQtUUr/Z0sOPM8fT30T2Q5NtrkHyDxM77FhF7TokOH1Yx JRYCKvdqAXfBOqZN1UgX95wCP6spgz7y9237U/iNL3tEUACdhrRKyNimP44rMKFg e9qLwFmfnmbOWuP6I9mXjCwzKswplHiCA8haozW1dG+XXWGl+tqxnC30xS43kIYm rJy77XSuXxgzhAkbRPimmvAeoCcrVk3gA8IfVk5jVJQNo+lb3UdH7U5/i64E+ehy yr7I0cOC/9ZmrZT6d3odxqJA3iwyHYdPq+DTF7LgLpJFr1SDkGrQPzxHjT5S1xcU zX7i3x7BSCms86DxNh1y7Eu1XBxQMkodLOD97I5hCZUc3RDi8d+nvbAo3HBDhgLI tfYP3/omuiKuHh7dWXWwpJVsJc1/Zz38WJQiovp87vT6dE5SHX6lY+cN67jvyPJ3 2mP065mzk+rk0qCsz+NpIOxbHiFEklh7vv6KHp0OCUYSuowUUPedyrtXKsDco+bG 7Z+7PDDh4H/6QF7nJoBhQtTZvTzLDxwQKUuUxX1QZudJawWvjfMMc3uTaKgQzVF5 xE2sWyJsF769fOnS6kbKlc2u8a3ZI3p/xtPwIi6ZufySgUiIwWNsSc5ypIDtDeu8 TrfKtqCpmmugA0D90An3 =o0Q/ -----END PGP SIGNATURE----- --NirtoAHrWTO9F3MJuql6ciHiui7lrRDFa--