Gentoo Archives: gentoo-portage-dev

From: Arfrever Frehtes Taifersar Arahesis <arfrever.fta@×××××.com>
To: Gentoo Portage Development <gentoo-portage-dev@l.g.o>
Subject: [gentoo-portage-dev] [RFC] Location of Portage bash API (outside of ebuilds)
Date: Sat, 01 Feb 2014 20:08:37
Message-Id: 201402012108.11867.Arfrever.FTA@gmail.com
1 bin/isolated-functions.sh contains at least 1 useful function, which could be exposed for external consumers
2 (without __ prefix), but must have private name (with __ prefix) when bin/isolated-functions.sh is used in
3 ebuild environment.
4
5 Possible solutions:
6 1. Make /usr/lib/portage/bin/isolated-functions.sh magically define non-private variants of useful functions
7 when run in non-ebuild environment.
8 2. Provide /usr/bin/portage.bash, which would source isolated-functions.sh (and maybe other files) and define
9 non-private variants of useful functions. /usr/bin/portage.bash would be easier sourceable due to PATH.
10 3. Provide /usr/lib/portage.bash, which would source isolated-functions.sh (and maybe other files) and define
11 non-private variants of useful functions.
12 4. Another location...
13
14 (I would probably prefer solution #2.)
15
16 --
17 Arfrever Frehtes Taifersar Arahesis

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies