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 8D4BD198005 for ; Sat, 23 Mar 2013 17:28:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 650B8E04D2; Sat, 23 Mar 2013 17:28:22 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8106EE039A for ; Sat, 23 Mar 2013 17:28:21 +0000 (UTC) Received: from pomiocik.lan (unknown [83.238.59.230]) (using SSLv3 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: mgorny) by smtp.gentoo.org (Postfix) with ESMTPSA id 7FE6133DB34; Sat, 23 Mar 2013 17:28:19 +0000 (UTC) Date: Sat, 23 Mar 2013 18:28:58 +0100 From: =?UTF-8?B?TWljaGHFgiBHw7Nybnk=?= To: gentoo-dev@lists.gentoo.org Cc: ulm@gentoo.org Subject: Re: [gentoo-dev] [PATCH 1/2] Introduce multibuild_merge_root() to merge interim installs. Message-ID: <20130323182858.1846ba8d@pomiocik.lan> In-Reply-To: <20813.57273.945749.854552@a1i15.kph.uni-mainz.de> References: <20130323172532.1b1100e2@pomiocik.lan> <1364055998-23674-1-git-send-email-mgorny@gentoo.org> <20813.57273.945749.854552@a1i15.kph.uni-mainz.de> Organization: Gentoo X-Mailer: Claws Mail 3.9.0 (GTK+ 2.24.17; x86_64-pc-linux-gnu) 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 Content-Type: multipart/signed; micalg=PGP-SHA512; boundary="Sig_/E3GtJHcl1lLLHMHFtnGfh=_"; protocol="application/pgp-signature" X-Archives-Salt: 04c2cd24-86aa-4184-b9ef-8bd6cba8a2fe X-Archives-Hash: b538d65ceb44ea15d0b341f228407c04 --Sig_/E3GtJHcl1lLLHMHFtnGfh=_ Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Sat, 23 Mar 2013 18:00:41 +0100 Ulrich Mueller wrote: > >>>>> On Sat, 23 Mar 2013, Micha=C5=82 G=C3=B3rny wrote: >=20 > > +multibuild_merge_root() { > > + [...] > > + if type -P lockf &>/dev/null; then > > + # On BSD, we have 'lockf' wrapper. > > + tar -C "${src}" -f - -c . \ > > + | lockf "${lockfile}" tar -x -f - -C "${dest}" > > + else > > + [...] > > + cp -a -l -n "${src}"/. "${dest}"/ >=20 > You assume that cp is GNU, if there's no lockf. Is it guaranteed that > this is true on all platforms? They're all just assumptions. If it breaks somewhere, I'll improve the function. --=20 Best regards, Micha=C5=82 G=C3=B3rny --Sig_/E3GtJHcl1lLLHMHFtnGfh=_ Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iQJ8BAEBCgBmBQJRTeZhXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ1RUJGMjBGOTk2RkIzQzIyQ0M2RkNBNDBC QUJGMUQ1RkY4QzgxMTBBAAoJELq/HV/4yBEKTFAQALIig0OusLpa023HD4l9iKtX uPrvkeJ8mvFToCvqgDFsIVt5PPfbomtHRqz2zTA1To6g0wqSq1XsBvv18/K16IFw mPiE4EEE9W9XW2UAScvt2mR2W8y2pzstN28hO3u4u5aa40jMS5XZkrYUsoslZMQf ru2v8mjarmv7Hj8IKFSGg2M52PnqcgkeM2aNYklU/86AK0vIcmo0udyGKUujLVSp ZmCM9rt7vMz9AUOxV9kdB6yRBVH2KImGNnWnAQ+0E2ntePzFhxXtvk/BMhpmUARy aTLvdflpW58QMO4RzjJVs6y+kWp3kh8G19TabyFVAKr2kfIA8hF/SIY05l2tJcuR awVcya/J26QvFy1roFE3mgZj+FeKYo8laxcVZdmnqAZGiG9Xv4MBErlLYnXyUKhc R6nz/wEe1ZxRqHkAnT3X9yP5pjQ8Xt85BbwOPnCiz9EHDf53Zgo7OiDJ2xHurGU2 dP/kTuGJfWZE7tjC6wT3DaD3kZAMvd+eqJCuG7Yu+1qsR6r7pAQ7g8HLBuG8aJsi 9wQU+qQ95Hnkh07pg/v1NcIw0a0gnd96bTANA0uYh016MZG4R8xuiE28iThnEV5w Y3+Lo5/R8n8HqvR7xTHwxbQD9FVJ3bPPP24pe+22aTjMVraGLI/65qSCO/XZRPx3 kXKOa2eRiT89a34TA7BG =Dmr6 -----END PGP SIGNATURE----- --Sig_/E3GtJHcl1lLLHMHFtnGfh=_--