public inbox for gentoo-portage-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-portage-dev] [RFC] Location of Portage bash API (outside of ebuilds)
@ 2014-02-01 20:08 Arfrever Frehtes Taifersar Arahesis
  2014-02-02  1:52 ` Alec Warner
  2014-02-05  8:08 ` Mike Frysinger
  0 siblings, 2 replies; 6+ messages in thread
From: Arfrever Frehtes Taifersar Arahesis @ 2014-02-01 20:08 UTC (permalink / raw
  To: Gentoo Portage Development

[-- Attachment #1: Type: Text/Plain, Size: 880 bytes --]

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

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-02-17  8:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-01 20:08 [gentoo-portage-dev] [RFC] Location of Portage bash API (outside of ebuilds) Arfrever Frehtes Taifersar Arahesis
2014-02-02  1:52 ` Alec Warner
2014-02-05  8:08 ` Mike Frysinger
2014-02-05 19:57   ` Arfrever Frehtes Taifersar Arahesis
2014-02-06  2:21     ` [gentoo-portage-dev] " Ryan Hill
2014-02-17  8:03     ` [gentoo-portage-dev] " Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox