Gentoo Archives: gentoo-dev

From: Duncan <1i5t5.duncan@×××.net>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Re: User defined license groups
Date: Tue, 01 Feb 2011 11:14:36
Message-Id: pan.2011.02.01.11.13.09@cox.net
In Reply to: [gentoo-dev] User defined license groups by Zeerak Mustafa Waseem
1 Zeerak Mustafa Waseem posted on Tue, 01 Feb 2011 10:35:33 +0100 as
2 excerpted:
3
4 > I ran with ACCEPT_LICENSE="*" for a while and a few days ago I decided to
5 > look into the licenses the programs I'm using need and read up on them,
6 > then add them manually.
7 > I then remembered the license groups and proceeded to specify my own
8 > license group in /usr/portage/profiles/license_groups, first emerge -uDN
9 > @world worked great, all downgrades from license masking were dropped.
10 > But then I sync'ed my tree, and now my own group is gone.
11 >
12 > So I was wondering if there is another place to specify license groups?
13
14 Just a gentle hint. This list is for development discussion. Your
15 question would have been more appropriate on the general user list, or
16 even on the portage-specific devel list, where at least it wouldn't have
17 bothered all these devs, most of which work on packages other than
18 portage, and who I'm sure we'd both rather have spending their time fixing
19 bugs or doing package bumps than reading what could quickly become an
20 overwhelming number of questions here, if such user questions weren't
21 steered elsewhere. =:^(
22
23 But you've asked it here now, so might as well answer it while I'm
24 steering you elsewhere for next time. =:^)
25
26 One possibility, assuming you're using standard rsync for your portage
27 tree (not the webrsync or similar options) is to assign something like:
28
29 PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from='/etc/portage/rsync.exclude'"
30
31 then read the rsync(1) manpage and add something appropriate to the named
32 file (maybe start with /profiles/license_groups/yourfilename, but really,
33 see the manpage, as there's a reason that doesn't start with
34 /usr/portage). See the make.conf(5) manpage for the description of the
35 PORTAGE_RSYNC_EXTRA_OPTIONS setting.
36
37 Here, I have several non-default files and subdirs in PORTDIR (including
38 my layman managed overlays, in the perfectly logical to me
39 $PORTDIR/layman/ ), that I keep from being synced using that method. That
40 works just fine for my purposes, so I expect it will work for yours as
41 well. =:^)
42
43 More directly, the portage(5) manpage says that any files found in /etc/
44 portage/profile/ should override files found in the tree profiles, where
45 necessary. I'd expect it to work for license_groups just as I know it
46 works for other files, and believe it would be a bug if it didn't.
47 However, if for whatever reason it does /not/ work, I know the
48 rsync.exclude functionality works as I depend on it every time I sync. =:^)
49
50 --
51 Duncan - List replies preferred. No HTML msgs.
52 "Every nonfree program has a lord, a master --
53 and if you use the program, he is your master." Richard Stallman