From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id DA57213829C for ; Mon, 13 Jun 2016 03:32:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C578CE0970; Mon, 13 Jun 2016 03:32:27 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D2F44E093B for ; Mon, 13 Jun 2016 03:32:26 +0000 (UTC) Received: from [192.168.1.55] (c-73-173-67-16.hsd1.va.comcast.net [73.173.67.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: jcallen) by smtp.gentoo.org (Postfix) with ESMTPSA id F19ED340564 for ; Mon, 13 Jun 2016 03:32:24 +0000 (UTC) Subject: [gentoo-dev] Re: RFC: kernel-2.eclass Prefix support To: gentoo-dev@lists.gentoo.org References: <87k2hv22gz.fsf@gentoo.org> <575C2B0C.1090808@gentoo.org> <87vb1ft8ve.fsf_-_@gentoo.org> <22364.60568.833685.618063@a1i15.kph.uni-mainz.de> <87r3c2u6ef.fsf@gentoo.org> <575D264D.6050203@gentoo.org> <87mvmqu5i4.fsf@gentoo.org> <575D53E5.50404@gentoo.org> <8760tdhoxp.fsf@gentoo.org> <575E1DAD.7000200@gentoo.org> From: Jonathan Callen Message-ID: Date: Sun, 12 Jun 2016 23:32:18 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 In-Reply-To: <575E1DAD.7000200@gentoo.org> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Gk9w6srQDUNV5D0Xv8U8mmuQQQ6sGw6FK" X-Archives-Salt: 3afe1e48-ceac-4084-8678-0de95d97ae66 X-Archives-Hash: 13bbd836763d8ca48fac6826dc19e30e This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --Gk9w6srQDUNV5D0Xv8U8mmuQQQ6sGw6FK Content-Type: multipart/mixed; boundary="h51d6V7GQidATqKEDtIn88xAPqe6xiWap" From: Jonathan Callen To: gentoo-dev@lists.gentoo.org Message-ID: Subject: Re: RFC: kernel-2.eclass Prefix support References: <87k2hv22gz.fsf@gentoo.org> <575C2B0C.1090808@gentoo.org> <87vb1ft8ve.fsf_-_@gentoo.org> <22364.60568.833685.618063@a1i15.kph.uni-mainz.de> <87r3c2u6ef.fsf@gentoo.org> <575D264D.6050203@gentoo.org> <87mvmqu5i4.fsf@gentoo.org> <575D53E5.50404@gentoo.org> <8760tdhoxp.fsf@gentoo.org> <575E1DAD.7000200@gentoo.org> In-Reply-To: <575E1DAD.7000200@gentoo.org> --h51d6V7GQidATqKEDtIn88xAPqe6xiWap Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 06/12/2016 10:42 PM, Michael Orlitzky wrote: > On 06/12/2016 09:12 PM, Benda Xu wrote: >> Michael Orlitzky writes: >>> >>> Every rm, cp, mv, mkdir, dodir, cd, etc. needs "|| die". >> >> Thanks, updated. >> >> ... >> =20 >> # Don't forget to make directory for sysfs >> - [[ ! -d ${ROOT}sys ]] && kernel_is 2 6 && mkdir ${ROOT}sys >> + [[ ! -d ${EROOT}sys ]] && kernel_is 2 6 && mkdir "${EROOT}"sys >> =20 >=20 > One more =3D) >=20 >=20 >=20 >=20 This one probably should also be guarded by a `if ! use prefix` or `if [[ -z ${EPREFIX} ]]` (or whatever), as it doesn't make as much sense to have a ${EPREFIX}/sys directory. --h51d6V7GQidATqKEDtIn88xAPqe6xiWap-- --Gk9w6srQDUNV5D0Xv8U8mmuQQQ6sGw6FK Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCgAGBQJXXilCAAoJEEIQbvYRB3mgNmsP/3oPdt6I+6OOtpKBlouxYRn/ pvbXKxu8mOERzI/AHgG9o5DwYK07NztjiFzxZGbtdncFHM59IZm66/lEwQdaqyS+ VpVTm+OjXd442nIjWd+hapsWmI5yC9DHQP40bXQzhm+NYcUpzdnQZKkA39gwmeHl +CxOJWM+27NCHE6sqSCXlnE+jTf5GJ656/SYCdQrAa1lHZ5PI2AevkU7bFrf5ZFp zfB+2LcUXQtJN1wySAYe8Czdf9tBWfKaxwmLsv7siQWTRuTVtGpbtL0aMpXhzI84 V5bXxg/L6OGn4Q+9Mg3u011WqPbinFtpEOq0gwvX225lJp56d1YAMV9bUhw26ILT XO3nAvKgwVJjP7sCM78aBiuzKpK3+f9wkFAbjcdz4zrSbWOK80PS3pUbHFWOPTl1 AmJlNIfnVLOGynTQF18lt/8cGM6kNT4yygJEihUfWJI5lOn7S137WSbcNVEMxYoa F3Y8WLAp1kxJn4iLDN93ynSj5QYWrATLuNYx4jn8ZOBdVHm2ECZ0po5VjthWCCKg uXWlyDVIQeAYpE1UFKimnCwxuT+LhLrnBidCf87oq3qFOYFRtxwgxFCD3v53GvYc j16rBpJIKDGUeqkcNlD1QGyFRHs6jzNhIh5xVE8KLoL2hffOfggerRSoafnHlPzV +vl8lzvwPCUAqE2g/GxK =V7vW -----END PGP SIGNATURE----- --Gk9w6srQDUNV5D0Xv8U8mmuQQQ6sGw6FK--