summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2022-04-24 16:15:18 +0200
committerUlrich Müller <ulm@gentoo.org>2022-04-24 16:15:18 +0200
commiteeccabd865285e40d30bd153319c00089b7e2795 (patch)
tree3ac8cfcaf9dfd7900ffa680d4a11083ccb9adfc5 /ebuild-format.html
parentRebuild / update (diff)
downloadpolicy-guide-eeccabd865285e40d30bd153319c00089b7e2795.tar.gz
policy-guide-eeccabd865285e40d30bd153319c00089b7e2795.tar.bz2
policy-guide-eeccabd865285e40d30bd153319c00089b7e2795.zip
Rebuild
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'ebuild-format.html')
-rw-r--r--ebuild-format.html24
1 files changed, 23 insertions, 1 deletions
diff --git a/ebuild-format.html b/ebuild-format.html
index 8e0c924..4f21adc 100644
--- a/ebuild-format.html
+++ b/ebuild-format.html
@@ -255,6 +255,27 @@ when working with large number of ebuilds. The tool has only limited
ability to process and modify ebuilds, and therefore developers must
make sure that it works correctly on their ebuilds.</p>
</section>
+<section id="pg0106">
+<span id="license-must-not-contain-variables"></span><span id="index-5"></span><h2>LICENSE must not contain variables<a class="headerlink" href="#pg0106" title="Permalink to this headline">¶</a></h2>
+<dl class="field-list simple">
+<dt class="field-odd">PG</dt>
+<dd class="field-odd"><p>0106</p>
+</dd>
+<dt class="field-even">Source</dt>
+<dd class="field-even"><p>QA</p>
+</dd>
+<dt class="field-odd">Reported</dt>
+<dd class="field-odd"><p>no</p>
+</dd>
+</dl>
+<p>The <code class="docutils literal notranslate"><span class="pre">LICENSE</span></code> variable in an ebuild must specify all the license names
+verbatim, without referring to any variables. The only exception is
+(implicit or explicit) use of <code class="docutils literal notranslate"><span class="pre">LICENSE</span></code> itself, i.e. appending is
+allowed.</p>
+<p><em>Rationale</em>: since license names do not contain dynamic parts (such as
+package versions), using variables there has little advantage. On the
+other hand, variables reduce the usefulness of plain tools such as grep.</p>
+</section>
</section>
@@ -311,6 +332,7 @@ make sure that it works correctly on their ebuilds.</p>
<li class="toctree-l2"><a class="reference internal" href="#pg0103">HOMEPAGE must not contain variables</a></li>
<li class="toctree-l2"><a class="reference internal" href="#pg0104">SRC_URI must not refer to HOMEPAGE</a></li>
<li class="toctree-l2"><a class="reference internal" href="#pg0105">KEYWORDS must be defined on a single line</a></li>
+<li class="toctree-l2"><a class="reference internal" href="#pg0106">LICENSE must not contain variables</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="filesystem.html">File system layout</a></li>
@@ -339,7 +361,7 @@ make sure that it works correctly on their ebuilds.</p>
<h3 class="footerhead">Gentoo Policy Guide </h3>
<div class="row">
<div class="col-xs-12 col-md-4">
- <span class="kk-group-header">Powered by</span><br><span><a href="http://sphinx-doc.org/">Sphinx 4.1.2</a> &amp; <a href="https://github.com/mmagorsc/tyrian_sphinx_theme">Tyrian Theme 0.0.7</a></span>
+ <span class="kk-group-header">Powered by</span><br><span><a href="http://sphinx-doc.org/">Sphinx 4.5.0</a> &amp; <a href="https://github.com/mmagorsc/tyrian_sphinx_theme">Tyrian Theme 0.0.7</a></span>
</div>
<div class="col-xs-12 col-md-4">
</div>