/[gentoo]/xml/htdocs/proj/en/glep/glep-0023.txt
Gentoo

Diff of /xml/htdocs/proj/en/glep/glep-0023.txt

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.3 Revision 1.4
1GLEP: 23 1GLEP: 23
2Title: Portage handling of ACCEPT_LICENSE 2Title: Portage handling of ACCEPT_LICENSE
3Version: $Revision: 1.3 $ 3Version: $Revision: 1.4 $
4Last-Modified: $Date: 2004/10/26 00:21:28 $ 4Last-Modified: $Date: 2006/11/18 07:27:47 $
5Author: Jason Stubbs <jstubbs@gentoo.org>, 5Author: Jason Stubbs <jstubbs@gentoo.org>, Marius Mauch <genone@gentoo.org>
6Status: Accepted 6Status: Accepted
7Type: Standards Track 7Type: Standards Track
8Content-Type: text/x-rst 8Content-Type: text/x-rst
9Created: 9-Mar-2004 9Created: 9-Mar-2004
10Post-History: 8-Mar-2004 10-Mar-2004 25-Oct-2004 10Post-History: 8-Mar-2004 10-Mar-2004 25-Oct-2004 18-Nov-2006
11 11
12 12
13Abstract 13Abstract
14======== 14========
15 15
20 20
21Status Update 21Status Update
22============= 22=============
23 23
24Repoman has been updated to check for the LICENSE syntax. 24Repoman has been updated to check for the LICENSE syntax.
25 25A development portage branch with support for ACCEPT_LICENSE
26and license groups exists.
26 27
27Motivation 28Motivation
28========== 29==========
29 30
30Many users wish to regulate the software they install with regards to 31Many users wish to regulate the software they install with regards to
79``FSF-APPROVED``, ``OSI-APPROVED`` and ``NON-INTERACTIVE``. 80``FSF-APPROVED``, ``OSI-APPROVED`` and ``NON-INTERACTIVE``.
80``NON-INTERACTIVE`` licenses are those that don't require interactive 81``NON-INTERACTIVE`` licenses are those that don't require interactive
81acceptance for to be considered legally binding. This is the current 82acceptance for to be considered legally binding. This is the current
82behaviour of portage. 83behaviour of portage.
83 84
85These groups are defined in a new file ``license_groups`` in
86the ``profiles`` subdirectory of the tree (or overlays).
87The format of this file is
88
89::
90
91 <groupname> <license1> <license2> ... <licenseN>
92
93Also any line starting with # is ignored and may be used for comments.
94License groups may not contain negated elements, so a group
95
96::
97
98 mygroup foo -bar -bla
99
100is illegal.
101
84 102
85ACCEPT_LICENSE 103ACCEPT_LICENSE
86-------------- 104--------------
87 105
88This GLEP proposes that a user be able to explicitly accept or decline 106This GLEP proposes that a user be able to explicitly accept or decline
100 118
101:: 119::
102 120
103 ACCEPT_LICENSE="-* @FSF-APPROVED" 121 ACCEPT_LICENSE="-* @FSF-APPROVED"
104 122
123License groups may be negated with the result that all elements of that group
124are also negated.
105 125
106Emerge Behaviour 126Portage Behaviour
107---------------- 127-----------------
108 128
109At a minimum, emerge must handle unaccepted licenses the same way that 129Unaccepted licenses will be treated like any other masked package, that is
110it handles blockers. That is, with the --pretend flag the 130emerge will display a message listing any license that has to be accepted
111not-yet-accepted license should be listed in the output. Without the 131before the package can be merged with a pointer to the exact license text.
112--pretend flag, emerge should stop before any software is installed.
113 132
114This GLEP proposes that, unlike blockers, dependencies for software 133Past versions of this document proposed to handle license-masked packages
115should be checked regardless of license acceptance. Doing so will allow 134like blockers, but this would be inconsistent with other visibility
116the user to review all necessary licenses before initiating an actual 135filters as well as the current blocker system (as a blocker affects two
117emerge. 136packages) and be more complicated to implement.
118
119It is also proposed that the --ask option will display an unaccepted
120license and ask for acceptance, but not update any configuration files
121at this stage. Finally, the --verbose option should also list the
122licenses accepted for each package.
123
124 137
125Rationale 138Rationale
126========= 139=========
127 140
128An implementation of this proposal should make it easy for users wishing 141An implementation of this proposal should make it easy for users wishing
130 143
131 144
132Reference Implementation 145Reference Implementation
133======================== 146========================
134 147
135TODO 148Available in portage svn repository under main/branches/license-masking
136 149
137 150
138Backwards Compatibility 151Backwards Compatibility
139======================= 152=======================
140 153
141There should be no change to the user experience without the user 154There should be no change to the user experience without the user
142explicitly choosing to do so. This mandates that the 155explicitly choosing to do so. This mandates that the
143configuration variable be named ``ACCEPT_LICENSE`` as some users may 156configuration variable be named ``ACCEPT_LICENSE`` as some users may
144already have it set due to ebuilds using ``eutil.eclass``'s 157already have it set due to ebuilds using ``eutil.eclass``'s
145implementation. It also mandates that the default ``ACCEPT_LICENSE`` be 158implementation. It also mandates that the default ``ACCEPT_LICENSE`` be
146set to ``@NON-INTERACTIVE``. 159set to ``@NON-INTERACTIVE`` in the main gentoo repository as there will
147 160be no internal default in portage.
148 161
149References 162References
150========== 163==========
151 164
152.. [1] Gentoo Linux Bug 17367 165.. [1] Gentoo Linux Bug 17367

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.20