public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] User defined license groups
@ 2011-02-01  9:35 Zeerak Mustafa Waseem
  2011-02-01 10:05 ` Zac Medico
  2011-02-01 11:13 ` [gentoo-dev] " Duncan
  0 siblings, 2 replies; 5+ messages in thread
From: Zeerak Mustafa Waseem @ 2011-02-01  9:35 UTC (permalink / raw
  To: gentoo-dev

Hey guys,

I ran with ACCEPT_LICENSE="*" for a while and a few days ago I decided to look into the licenses the programs I'm using need and read up on them, then add them manually.
I then remembered the license groups and proceeded to specify my own license group in /usr/portage/profiles/license_groups, first emerge -uDN @world worked great, all downgrades from license masking were dropped. But then I sync'ed my tree, and now my own group is gone.

So I was wondering if there is another place to specify license groups? If not, would I go to the bugzilla and file a bug for a feature request or is there another way to go about it?

-- 
Best Regards

Zeerak Waseem



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

* Re: [gentoo-dev] User defined license groups
  2011-02-01  9:35 [gentoo-dev] User defined license groups Zeerak Mustafa Waseem
@ 2011-02-01 10:05 ` Zac Medico
  2011-02-01 10:27   ` Michał Górny
  2011-02-01 11:13 ` [gentoo-dev] " Duncan
  1 sibling, 1 reply; 5+ messages in thread
From: Zac Medico @ 2011-02-01 10:05 UTC (permalink / raw
  To: gentoo-dev

On 02/01/2011 01:35 AM, Zeerak Mustafa Waseem wrote:
> Hey guys,
> 
> I ran with ACCEPT_LICENSE="*" for a while and a few days ago I decided to look into the licenses the programs I'm using need and read up on them, then add them manually.
> I then remembered the license groups and proceeded to specify my own license group in /usr/portage/profiles/license_groups, first emerge -uDN @world worked great, all downgrades from license masking were dropped. But then I sync'ed my tree, and now my own group is gone.
> 
> So I was wondering if there is another place to specify license groups? If not, would I go to the bugzilla and file a bug for a feature request or is there another way to go about it?

It's possible to add license groups via an overlay, which means that you
can set PORTDIR_OVERLAY="${MY_OVERLAY}" in /etc/make.conf, and then
define your license groups in ${MY_OVERLAY}/profiles/license_groups.

You can go ahead and file a bug at bugs.gentoo.org if you'd like to have
support added for /etc/portage/license_groups.
-- 
Thanks,
Zac



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

* Re: [gentoo-dev] User defined license groups
  2011-02-01 10:05 ` Zac Medico
@ 2011-02-01 10:27   ` Michał Górny
  2011-02-01 16:26     ` Zac Medico
  0 siblings, 1 reply; 5+ messages in thread
From: Michał Górny @ 2011-02-01 10:27 UTC (permalink / raw
  To: gentoo-dev; +Cc: zmedico

[-- Attachment #1: Type: text/plain, Size: 1282 bytes --]

On Tue, 01 Feb 2011 02:05:49 -0800
Zac Medico <zmedico@gentoo.org> wrote:

> On 02/01/2011 01:35 AM, Zeerak Mustafa Waseem wrote:
> > Hey guys,
> > 
> > I ran with ACCEPT_LICENSE="*" for a while and a few days ago I
> > decided to look into the licenses the programs I'm using need and
> > read up on them, then add them manually. I then remembered the
> > license groups and proceeded to specify my own license group
> > in /usr/portage/profiles/license_groups, first emerge -uDN @world
> > worked great, all downgrades from license masking were dropped. But
> > then I sync'ed my tree, and now my own group is gone.
> > 
> > So I was wondering if there is another place to specify license
> > groups? If not, would I go to the bugzilla and file a bug for a
> > feature request or is there another way to go about it?
> 
> It's possible to add license groups via an overlay, which means that
> you can set PORTDIR_OVERLAY="${MY_OVERLAY}" in /etc/make.conf, and
> then define your license groups in
> ${MY_OVERLAY}/profiles/license_groups.
> 
> You can go ahead and file a bug at bugs.gentoo.org if you'd like to
> have support added for /etc/portage/license_groups.

How about /etc/portage/profile? Won't that work?

-- 
Best regards,
Michał Górny

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

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

* [gentoo-dev] Re: User defined license groups
  2011-02-01  9:35 [gentoo-dev] User defined license groups Zeerak Mustafa Waseem
  2011-02-01 10:05 ` Zac Medico
@ 2011-02-01 11:13 ` Duncan
  1 sibling, 0 replies; 5+ messages in thread
From: Duncan @ 2011-02-01 11:13 UTC (permalink / raw
  To: gentoo-dev

Zeerak Mustafa Waseem posted on Tue, 01 Feb 2011 10:35:33 +0100 as
excerpted:

> I ran with ACCEPT_LICENSE="*" for a while and a few days ago I decided to
> look into the licenses the programs I'm using need and read up on them,
> then add them manually.
> I then remembered the license groups and proceeded to specify my own
> license group in /usr/portage/profiles/license_groups, first emerge -uDN
> @world worked great, all downgrades from license masking were dropped.
> But then I sync'ed my tree, and now my own group is gone.
> 
> So I was wondering if there is another place to specify license groups? 

Just a gentle hint.  This list is for development discussion.  Your 
question would have been more appropriate on the general user list, or 
even on the portage-specific devel list, where at least it wouldn't have 
bothered all these devs, most of which work on packages other than 
portage, and who I'm sure we'd both rather have spending their time fixing 
bugs or doing package bumps than reading what could quickly become an 
overwhelming number of questions here, if such user questions weren't 
steered elsewhere. =:^(

But you've asked it here now, so might as well answer it while I'm 
steering you elsewhere for next time.  =:^)

One possibility, assuming you're using standard rsync for your portage 
tree (not the webrsync or similar options) is to assign something like:

PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from='/etc/portage/rsync.exclude'"

then read the rsync(1) manpage and add something appropriate to the named 
file (maybe start with /profiles/license_groups/yourfilename, but really, 
see the manpage, as there's a reason that doesn't start with 
/usr/portage).  See the make.conf(5) manpage for the description of the 
PORTAGE_RSYNC_EXTRA_OPTIONS setting.

Here, I have several non-default files and subdirs in PORTDIR (including 
my layman managed overlays, in the perfectly logical to me 
$PORTDIR/layman/ ), that I keep from being synced using that method.  That 
works just fine for my purposes, so I expect it will work for yours as 
well. =:^)

More directly, the portage(5) manpage says that any files found in /etc/
portage/profile/ should override files found in the tree profiles, where 
necessary.  I'd expect it to work for license_groups just as I know it 
works for other files, and believe it would be a bug if it didn't.  
However, if for whatever reason it does /not/ work, I know the 
rsync.exclude functionality works as I depend on it every time I sync. =:^)

-- 
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman




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

* Re: [gentoo-dev] User defined license groups
  2011-02-01 10:27   ` Michał Górny
@ 2011-02-01 16:26     ` Zac Medico
  0 siblings, 0 replies; 5+ messages in thread
From: Zac Medico @ 2011-02-01 16:26 UTC (permalink / raw
  To: gentoo-dev

On 02/01/2011 02:27 AM, Michał Górny wrote:
> On Tue, 01 Feb 2011 02:05:49 -0800
> Zac Medico <zmedico@gentoo.org> wrote:
> 
>> On 02/01/2011 01:35 AM, Zeerak Mustafa Waseem wrote:
>>> Hey guys,
>>>
>>> I ran with ACCEPT_LICENSE="*" for a while and a few days ago I
>>> decided to look into the licenses the programs I'm using need and
>>> read up on them, then add them manually. I then remembered the
>>> license groups and proceeded to specify my own license group
>>> in /usr/portage/profiles/license_groups, first emerge -uDN @world
>>> worked great, all downgrades from license masking were dropped. But
>>> then I sync'ed my tree, and now my own group is gone.
>>>
>>> So I was wondering if there is another place to specify license
>>> groups? If not, would I go to the bugzilla and file a bug for a
>>> feature request or is there another way to go about it?
>>
>> It's possible to add license groups via an overlay, which means that
>> you can set PORTDIR_OVERLAY="${MY_OVERLAY}" in /etc/make.conf, and
>> then define your license groups in
>> ${MY_OVERLAY}/profiles/license_groups.
>>
>> You can go ahead and file a bug at bugs.gentoo.org if you'd like to
>> have support added for /etc/portage/license_groups.
> 
> How about /etc/portage/profile? Won't that work?

No, because profiles/license_groups is somewhat of a misnomer since the
profiles/ directory contains profiles but it is not actual a part of any
profile.

Anyway, it turns out that /etc/portage/license_groups is already
supported, so I've added it to the man page:

http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=731549e94963d808ea49c408167cd85947e20b1d
-- 
Thanks,
Zac



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

end of thread, other threads:[~2011-02-01 16:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-01  9:35 [gentoo-dev] User defined license groups Zeerak Mustafa Waseem
2011-02-01 10:05 ` Zac Medico
2011-02-01 10:27   ` Michał Górny
2011-02-01 16:26     ` Zac Medico
2011-02-01 11:13 ` [gentoo-dev] " Duncan

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