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 635D813800E for ; Sat, 1 Feb 2014 20:08:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CD863E0A98; Sat, 1 Feb 2014 20:08:36 +0000 (UTC) Received: from mail-ee0-f52.google.com (mail-ee0-f52.google.com [74.125.83.52]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 12130E0712 for ; Sat, 1 Feb 2014 20:08:35 +0000 (UTC) Received: by mail-ee0-f52.google.com with SMTP id e53so2867243eek.25 for ; Sat, 01 Feb 2014 12:08:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:user-agent:mime-version:content-type :content-transfer-encoding:message-id; bh=ye2b9x402E17q2Pm+gUo7jjx31z/CoefTpx0XlT4EC0=; b=wovhhbR71XDyK5p2SGfx5HPJUPS6gxffbc8WlA/RB2GGNqWbHd0hLcY/pea9jyD2kH jO+KZgkCLswMKD7nSucQoXE5Q0QkDB+WNiyWGr+yLI7savEVjUJwT4XNCMVuplOauEYK e/l97AJsAcHF3sl8Yvr5Ri9D8358LDHcjyXOo0u6tGzDy5PwgsMwRAp2QKTKv9y5yN43 jGPyNeJrTH67++Z4dNC9BE/9286qdd7fkB2kJsomlV2WW8FWiyIoq4uIG6Tdolnafggf E8nYA+wECZ9rW60FYmENgS55nyspwJ2cOx8Jpu5lbNwcAFGzOoYBTer3a38BWFL/3zdj OKvw== X-Received: by 10.14.87.195 with SMTP id y43mr32817703eee.32.1391285314584; Sat, 01 Feb 2014 12:08:34 -0800 (PST) Received: from afta-picea.localnet (host-94-251-141-202.dynamic.mm.pl. [94.251.141.202]) by mx.google.com with ESMTPSA id b41sm53456305eef.16.2014.02.01.12.08.32 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 01 Feb 2014 12:08:33 -0800 (PST) From: Arfrever Frehtes Taifersar Arahesis To: Gentoo Portage Development Subject: [gentoo-portage-dev] [RFC] Location of Portage bash API (outside of ebuilds) Date: Sat, 1 Feb 2014 21:08:11 +0100 User-Agent: KMail (GNU/Linux) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-portage-dev@lists.gentoo.org Reply-to: gentoo-portage-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2023460.ttPuqLb5Jd"; protocol="application/pgp-signature"; micalg=pgp-sha512 Content-Transfer-Encoding: 7bit Message-Id: <201402012108.11867.Arfrever.FTA@gmail.com> X-Archives-Salt: 2c2d2890-5b9b-4cbf-9c73-bca76628ae1b X-Archives-Hash: 4438ef6c12fa5c836c30956158183071 --nextPart2023460.ttPuqLb5Jd Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit bin/isolated-functions.sh contains at least 1 useful function, which could be exposed for external consumers (without __ prefix), but must have private name (with __ prefix) when bin/isolated-functions.sh is used in ebuild environment. Possible solutions: 1. Make /usr/lib/portage/bin/isolated-functions.sh magically define non-private variants of useful functions when run in non-ebuild environment. 2. Provide /usr/bin/portage.bash, which would source isolated-functions.sh (and maybe other files) and define non-private variants of useful functions. /usr/bin/portage.bash would be easier sourceable due to PATH. 3. Provide /usr/lib/portage.bash, which would source isolated-functions.sh (and maybe other files) and define non-private variants of useful functions. 4. Another location... (I would probably prefer solution #2.) -- Arfrever Frehtes Taifersar Arahesis --nextPart2023460.ttPuqLb5Jd Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAABCgAGBQJS7VQrAAoJEO3sXuhCyn4c0yEQAOE5mhqmdc1zjhXSNqadFnvd embphjosP5ypTQZ60rbm+H2OXZSBxc1ECe9wXnDOxeQhzkSpns0dXKUkLiPntTGs ITLJ1+h6+5JiuPHLqya4YtsDccSmNU97w501IWlgyRBkNv126NyT+1y1ZPKKiH2g lC8tquRO/DWv4wk7+jhB0/+eDQy9P6U+AYpWsGcgqbDCwa9ZJ6oLlAYO3FFgq5pI BJSb2pTWZ+GmGf6Kq8ku3LMjSGS7paClMrxc4anh1qnk0UdEiM4NVPUtnN+qG7ge +niuvFh0WOGVoeHlaeBTIQUpacoX4TSLRU8XM9LLr1pTLME+zJNFcl0AMBBy1OzF 0QJr3PL4WPUrqFSXMYyhp42WKTPGVrF9vcpl/vWGOeT+IE7JzWI28kuJ9ySmJDWO veioi+k3H4zdC4g94MtOg8rzbMZjtWqm/zIqJn0IpbUjgBW4uotNe3bh/TWRJXNf qNC/U6Kybfilra0W3u1CSQYbeNswgEkIwyR/FYHZ3H+zeo9zY6+jtyZkexpj1iVu nFnf1qwY0R1/KElkBKctlZ7822vOxkeLYcOXWXiqslxV8UWQgX2N9oKlvHdina52 KPTLrvOI9H2PUNPOPGdj58ANjFdzuJkNa0Ogj9ClTU2M0hx5EaPCB1U1JW5Zc6i3 286d7UUSTdBfSoAade/C =y9zC -----END PGP SIGNATURE----- --nextPart2023460.ttPuqLb5Jd--