public inbox for gentoo-portage-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-portage-dev] [PATCH] LocationsManager: enable user package.bashrc
@ 2014-10-24 23:22 Zac Medico
  2014-11-02 17:19 ` Brian Dolbec
  0 siblings, 1 reply; 4+ messages in thread
From: Zac Medico @ 2014-10-24 23:22 UTC (permalink / raw
  To: gentoo-portage-dev

In /etc/portage/profile, we already have support for using directories
in the place of regular config files (portage1_directories = True). So,
go ahead and enable package.bashrc there too.

We could also support /etc/portage/package.bashrc, but that would be
more complicated since /etc/portage/bashrc is the long-standing location
of the user's bashrc which applies to all packages, and package.bashrc
would instead expect /etc/portage/bashrc to be a directory containing
per-package bashrc files. So for now, we only support package.bashrc
inside /etc/portage/profile.
---
 pym/portage/package/ebuild/_config/LocationsManager.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pym/portage/package/ebuild/_config/LocationsManager.py b/pym/portage/package/ebuild/_config/LocationsManager.py
index 8bf321c..6280a42 100644
--- a/pym/portage/package/ebuild/_config/LocationsManager.py
+++ b/pym/portage/package/ebuild/_config/LocationsManager.py
@@ -132,7 +132,8 @@ class LocationsManager(object):
 				self.user_profile_dir = custom_prof
 				self.profiles.append(custom_prof)
 				self.profiles_complex.append(
-					_profile_node(custom_prof, True, True, ()))
+					_profile_node(custom_prof, True, True,
+					('profile-bashrcs',)))
 			del custom_prof
 
 		self.profiles = tuple(self.profiles)
-- 
2.0.4


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

* Re: [gentoo-portage-dev] [PATCH] LocationsManager: enable user package.bashrc
  2014-10-24 23:22 [gentoo-portage-dev] [PATCH] LocationsManager: enable user package.bashrc Zac Medico
@ 2014-11-02 17:19 ` Brian Dolbec
  2014-11-02 17:27   ` Zac Medico
  0 siblings, 1 reply; 4+ messages in thread
From: Brian Dolbec @ 2014-11-02 17:19 UTC (permalink / raw
  To: gentoo-portage-dev

On Fri, 24 Oct 2014 16:22:15 -0700
Zac Medico <zmedico@gentoo.org> wrote:

> In /etc/portage/profile, we already have support for using directories
> in the place of regular config files (portage1_directories = True).
> So, go ahead and enable package.bashrc there too.
> 
> We could also support /etc/portage/package.bashrc, but that would be
> more complicated since /etc/portage/bashrc is the long-standing
> location of the user's bashrc which applies to all packages, and
> package.bashrc would instead expect /etc/portage/bashrc to be a
> directory containing per-package bashrc files. So for now, we only
> support package.bashrc inside /etc/portage/profile.
> ---
>  pym/portage/package/ebuild/_config/LocationsManager.py | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/pym/portage/package/ebuild/_config/LocationsManager.py
> b/pym/portage/package/ebuild/_config/LocationsManager.py index
> 8bf321c..6280a42 100644 ---
> a/pym/portage/package/ebuild/_config/LocationsManager.py +++
> b/pym/portage/package/ebuild/_config/LocationsManager.py @@ -132,7
> +132,8 @@ class LocationsManager(object): self.user_profile_dir =
> custom_prof self.profiles.append(custom_prof)
>  				self.profiles_complex.append(
> -					_profile_node(custom_prof,
> True, True, ()))
> +					_profile_node(custom_prof,
> True, True,
> +					('profile-bashrcs',)))
>  			del custom_prof
>  
>  		self.profiles = tuple(self.profiles)


I'm a little confused.  Is this a fix for Bertrands bashrc patches
already applied?  Or is it unrelated?
-- 
Brian Dolbec <dolsen>



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

* Re: [gentoo-portage-dev] [PATCH] LocationsManager: enable user package.bashrc
  2014-11-02 17:19 ` Brian Dolbec
@ 2014-11-02 17:27   ` Zac Medico
  2014-11-02 17:33     ` Brian Dolbec
  0 siblings, 1 reply; 4+ messages in thread
From: Zac Medico @ 2014-11-02 17:27 UTC (permalink / raw
  To: gentoo-portage-dev

On 11/02/2014 09:19 AM, Brian Dolbec wrote:
> 
> I'm a little confused.  Is this a fix for Bertrands bashrc patches
> already applied?  Or is it unrelated?

It's a feature enhancement to add support for package.bashrc in
/etc/portage/profile. Since /etc/portage/profile is not part of a
repository, there's no associated layout.conf. So, there's no way to
enable the profile-env profile-formats setting in /etc/portage/profile,
except by hardcoding it as shown.
-- 
Thanks,
Zac


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

* Re: [gentoo-portage-dev] [PATCH] LocationsManager: enable user package.bashrc
  2014-11-02 17:27   ` Zac Medico
@ 2014-11-02 17:33     ` Brian Dolbec
  0 siblings, 0 replies; 4+ messages in thread
From: Brian Dolbec @ 2014-11-02 17:33 UTC (permalink / raw
  To: gentoo-portage-dev

On Sun, 02 Nov 2014 09:27:07 -0800
Zac Medico <zmedico@gentoo.org> wrote:

> On 11/02/2014 09:19 AM, Brian Dolbec wrote:
> > 
> > I'm a little confused.  Is this a fix for Bertrands bashrc patches
> > already applied?  Or is it unrelated?
> 
> It's a feature enhancement to add support for package.bashrc in
> /etc/portage/profile. Since /etc/portage/profile is not part of a
> repository, there's no associated layout.conf. So, there's no way to
> enable the profile-env profile-formats setting
> in /etc/portage/profile, except by hardcoding it as shown.

OK, works for me... merge away.

-- 
Brian Dolbec <dolsen>



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

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

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-24 23:22 [gentoo-portage-dev] [PATCH] LocationsManager: enable user package.bashrc Zac Medico
2014-11-02 17:19 ` Brian Dolbec
2014-11-02 17:27   ` Zac Medico
2014-11-02 17:33     ` Brian Dolbec

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