Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 195838 Details for
Bug 275551
[PATCH] devmanual: EAPI=4 documentation (and also other EAPI specific cleanups)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
devmanual-eapi3-v00.patch
devmanual-eapi3-v00.patch (text/plain), 64.89 KB, created by
Markus Meier
on 2009-06-26 21:57:05 UTC
(
hide
)
Description:
devmanual-eapi3-v00.patch
Filename:
MIME Type:
Creator:
Markus Meier
Created:
2009-06-26 21:57:05 UTC
Size:
64.89 KB
patch
obsolete
> eapi/text.xml | 263 ++++++++++++++++++ > functions/diagram.svg | 387 ++++++++++++++++++++++----- > functions/pkg_info/index.html | 87 ++++++ > functions/pkg_info/text.xml | 67 ++++ > functions/pkg_pretend/index.html | 109 +++++++ > functions/pkg_pretend/text.xml | 89 ++++++ > functions/src_compile/configuring/text.xml | 82 ----- > functions/src_compile/text.xml | 36 ++ > functions/src_configure/configuring/text.xml | 16 - > functions/src_configure/index.html | 100 ++++++ > functions/src_configure/text.xml | 83 +++++ > functions/src_prepare/autopackage/text.xml | 2 > functions/src_prepare/epatch/text.xml | 16 - > functions/src_prepare/index.html | 96 ++++++ > functions/src_prepare/text.xml | 76 +++++ > functions/src_unpack/autopackage/text.xml | 42 -- > functions/src_unpack/epatch/text.xml | 148 ---------- > functions/src_unpack/text.xml | 8 > functions/text.xml | 9 > 19 files changed, 1344 insertions(+), 372 deletions(-) >Index: ebuild-writing/functions/text.xml >=================================================================== >--- ebuild-writing/functions/text.xml (revision 149) >+++ ebuild-writing/functions/text.xml (working copy) >@@ -6,10 +6,13 @@ > <body> > <p> > When installing packages from source, the function call order is <c>pkg_setup</c>, >-<c>src_unpack</c>, <c>src_compile</c>, <c>src_test</c> (optional, <c>FEATURES="test"</c>), >+<c>src_unpack</c>, <c>src_prepare</c>, <c>src_configure</c>, <c>src_compile</c>, >+<c>src_test</c> (optional, <c>FEATURES="test"</c>), > <c>src_install</c>, <c>pkg_preinst</c>, <c>pkg_postinst</c>. When installing packages > from a binary, the function call order is <c>pkg_setup</c>, <c>pkg_preinst</c>, > <c>pkg_postinst</c>. >+As some phases haven't been introduced from the beginning, you can have a look at >+<uri link="::ebuild-writing/eapi"/> for an overview, what have been introduced in which EAPI. > </p> > > <figure short="How the ebuild functions are processed" link="diagram.png"/> >@@ -43,9 +46,12 @@ > </section> > </chapter> > >+<include href="pkg_pretend/"/> > <include href="pkg_nofetch/"/> > <include href="pkg_setup/"/> > <include href="src_unpack/"/> >+<include href="src_prepare/"/> >+<include href="src_configure/"/> > <include href="src_compile/"/> > <include href="src_test/"/> > <include href="src_install/"/> >@@ -54,4 +60,5 @@ > <include href="pkg_prerm/"/> > <include href="pkg_postrm/"/> > <include href="pkg_config/"/> >+<include href="pkg_info/"/> > </guide> >Index: ebuild-writing/functions/src_configure/text.xml >=================================================================== >--- ebuild-writing/functions/src_configure/text.xml (revision 0) >+++ ebuild-writing/functions/src_configure/text.xml (revision 0) >@@ -0,0 +1,83 @@ >+<?xml version="1.0"?> >+<guide self="ebuild-writing/functions/src_configure/"> >+<chapter> >+<title>src_configure</title> >+ >+<body> >+<table> >+ <tr> >+ <th>Function</th> >+ <ti><c>src_configure</c></ti> >+ </tr> >+ <tr> >+ <th>Purpose</th> >+ <ti>Configure the package.</ti> >+ </tr> >+ <tr> >+ <th>Sandbox</th> >+ <ti>Enabled</ti> >+ </tr> >+ <tr> >+ <th>Privilege</th> >+ <ti>user</ti> >+ </tr> >+ <tr> >+ <th>Called for</th> >+ <ti>ebuild</ti> >+ </tr> >+ <tr> >+ <th>EAPI</th> >+ <ti>2</ti> >+ </tr> >+</table> >+</body> >+ >+<section> >+<title>Default <c>src_configure</c></title> >+<body> >+<codesample lang="ebuild"> >+src_configure() { >+ if [[ -x ${ECONF_SOURCE:-.}/configure ]] ; then >+ econf >+ fi >+} >+</codesample> >+</body> >+</section> >+ >+<section> >+<title>Sample <c>src_configure</c></title> >+<body> >+<codesample lang="ebuild"> >+src_configure() { >+ use sparc && filter-flags -fomit-frame-pointer >+ append-ldflags -Wl,-z,now >+ >+ econf \ >+ $(use_enable ssl ) \ >+ $(use_enable perl perlinterp ) >+} >+</codesample> >+</body> >+</section> >+ >+<section> >+<title><c>src_configure</c> Processes</title> >+<body> >+<p> >+The following subsections cover different topics which often occur when writing >+<c>src_configure</c> functions. >+</p> >+ >+<contentsTree/> >+</body> >+</section> >+ >+</chapter> >+ >+<include href="configuring/"/> >+<!--<include href="build-environment/"/> >+<include href="building/"/> >+<include href="distutils/"/> >+<include href="no-build-system/"/>--> >+</guide> >Index: ebuild-writing/functions/src_configure/index.html >=================================================================== >--- ebuild-writing/functions/src_configure/index.html (revision 0) >+++ ebuild-writing/functions/src_configure/index.html (revision 0) >@@ -0,0 +1,100 @@ >+<?xml version="1.0"?> >+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> >+<html xmlns="http://www.w3.org/1999/xhtml" lang="en-GB" xml:lang="en-GB"> >+ <head> >+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> >+ <title>Gentoo Development Guide: src_configure</title> >+ <link rel="stylesheet" href="../../../devmanual.css" type="text/css" /> >+ </head> >+ <body> >+ <div class="main"> >+ <h1>Gentoo Development Guide</h1> >+ <div class="navtop" style="text-align: center;"> >+ <table style="border-top: 1px dashed #330066; margin-left: auto; margin-right: auto; width: 100%;"> >+ <col width="33%" /> >+ <col width="34%" /> >+ <col width="33%" /> >+ <tr> >+ <td style="text-align: center; border-right: 1px dashed #330066;">â <a href="../src_prepare/autopackage/index.html">Autopackage</a></td> >+ <td style="text-align: center;">â <a href="../index.html">Ebuild Functions</a> â</td> >+ <td style="text-align: center; border-left: 1px dashed #330066;"><a href="configuring/index.html">Configuring a Package</a> â</td> >+ </tr> >+ </table> >+ </div> >+ <div class="document"> >+<h1>src_configure</h1> >+<table> >+ <tr> >+ <td class="devbook"><b>Function</b></td> >+ <td class="devbook"><code class="docutils literal"><span class="pre">src_configure</span></code></td> >+ </tr> >+ <tr> >+ <td class="devbook"><b>Purpose</b></td> >+ <td class="devbook">Configure the package.</td> >+ </tr> >+ <tr> >+ <td class="devbook"><b>Sandbox</b></td> >+ <td class="devbook">Enabled</td> >+ </tr> >+ <tr> >+ <td class="devbook"><b>Privilege</b></td> >+ <td class="devbook">user</td> >+ </tr> >+ <tr> >+ <td class="devbook"><b>Called for</b></td> >+ <td class="devbook">ebuild</td> >+ </tr> >+ <tr> >+ <td class="devbook"><b>EAPI</b></td> >+ <td class="devbook">2</td> >+ </tr> >+</table> >+<div class="section"><h2><a name="default-src_configure" id="default-src_configure">Default <code class="docutils literal"><span class="pre">src_configure</span></code></a></h2> >+<pre><span class="Constant"><span class="Special">src_configure()</span> <span class="PreProc">{</span> >+ <span class="Statement">if</span> <span class="Statement">[[</span> -x <span class="Identifier">${ECONF_SOURCE:-.}</span>/configure <span class="Statement">]]</span> <span class="Statement">;</span> <span class="Statement">then</span> >+ <span class="Statement">econf</span> >+ <span class="Statement">fi</span> >+<span class="PreProc">}</span> >+</span></pre> >+</div><div class="section"><h2><a name="sample-src_configure" id="sample-src_configure">Sample <code class="docutils literal"><span class="pre">src_configure</span></code></a></h2> >+<pre><span class="Constant"><span class="Special">src_configure()</span> <span class="PreProc">{</span> >+ <span class="Statement">use</span> sparc <span class="Statement">&&</span> <span class="Statement">filter-flags</span> -fomit-frame-pointer >+ <span class="Statement">append-ldflags</span> -Wl,-z,now >+ >+ <span class="Statement">econf</span> <span class="PreProc">\</span> >+ <span class="PreProc">$(</span><span class="Statement">use_enable</span> ssl <span class="PreProc">)</span> <span class="PreProc">\</span> >+ <span class="PreProc">$(</span><span class="Statement">use_enable</span> perl perlinterp <span class="PreProc">)</span> >+<span class="PreProc">}</span> >+</span></pre> >+</div><div class="section"><h2><a name="src_configure-processes" id="src_configure-processes"><code class="docutils literal"><span class="pre">src_configure</span></code> Processes</a></h2> >+<p> >+The following subsections cover different topics which often occur when writing >+<code class="docutils literal"><span class="pre">src_configure</span></code> functions. >+</p> >+ >+<ul><li><a class="reference" href="configuring/index.html">Configuring a Package</a></li></ul> >+</div> >+ >+ >+ >+</div> >+ <div class="navbottom" style="text-align: center;"> >+ <table style="border-top: 1px dashed #330066; margin-left: auto; margin-right: auto; width: 100%;"> >+ <col width="33%" /> >+ <col width="34%" /> >+ <col width="33%" /> >+ <tr> >+ <td style="text-align: center; border-right: 1px dashed #330066;">â <a href="../src_prepare/autopackage/index.html">Autopackage</a></td> >+ <td style="text-align: center;">â <a href="../index.html">Ebuild Functions</a> â</td> >+ <td style="text-align: center; border-left: 1px dashed #330066;"><a href="configuring/index.html">Configuring a Package</a> â</td> >+ </tr> >+ </table> >+ </div> >+ </div> >+ <div class="footer"> >+ <p><a href="http://validator.w3.org/check/referer"><img src="/icons/icon_mini-xhtml.png" alt="Valid XHTML 1.0" /></a><a href="http://jigsaw.w3.org/css-validator/check/referer"><img src="/icons/icon_mini-css.png" alt="Valid CSS" /></a><a href="http://www.gentoo.org/"><img src="/icons/icon_mini-gentoo.png" alt="Powered by Gentoo" /></a><a href="http://creativecommons.org/licenses/by-sa/2.0/"><img src="/icons/icon_mini-creativecommons.png" alt="Creative Commons License" /></a><img src="/icons/icon_mini-xml.png" alt="XML Powered!" /><br /><br /> >+ The text of this document is distributed under the <a href="http://creativecommons.org/licenses/by-sa/2.0/">Creative Commons Attribution-ShareAlike 2.0 License</a>. >+ </p> >+ </div> >+ </body> >+</html> >Index: ebuild-writing/functions/src_configure/configuring/text.xml >=================================================================== >--- ebuild-writing/functions/src_configure/configuring/text.xml (revision 149) >+++ ebuild-writing/functions/src_configure/configuring/text.xml (working copy) >@@ -1,5 +1,5 @@ > <?xml version="1.0"?> >-<guide self="ebuild-writing/functions/src_compile/configuring/"> >+<guide self="ebuild-writing/functions/src_configure/configuring/"> > <chapter> > <title>Configuring a Package</title> > >@@ -29,23 +29,19 @@ > </p> > > <codesample lang="ebuild"> >-src_compile() { >+src_configure() { > # We have optional perl, python and ruby support > econf \ > $(use_enable perl ) \ > $(use_enable python ) \ > $(use_enable ruby ) >- >- # ... > } > >-src_compile() { >+src_configure() { > # Our package optional IPv6 support which uses --with rather than > # --enable / --disable > > econf $(use_with ipv6 ) >- >- # ... > } > </codesample> > >@@ -57,17 +53,15 @@ > </p> > > <codesample lang="ebuild"> >-src_compile() { >+src_configure() { > # Our package has optional perl, python and ruby support > econf \ > $(use_enable perl perlinterp ) \ > $(use_enable python pythoninterp ) \ > $(use_enable ruby rubyinterp ) >- >- # ... > } > >-src_compile() { >+src_coonfigure() { > econf $(use_with X x11 ) > } > </codesample> >Index: ebuild-writing/functions/src_unpack/text.xml >=================================================================== >--- ebuild-writing/functions/src_unpack/text.xml (revision 149) >+++ ebuild-writing/functions/src_unpack/text.xml (working copy) >@@ -11,7 +11,7 @@ > </tr> > <tr> > <th>Purpose</th> >- <ti>Extract source packages and do any necessary patching or fixes.</ti> >+ <ti>Extract source packages and do any necessary patching or fixes.<important>within EAPI=2, the patching/modifying parts of <c>src_unpack</c> have been splitted out to a new phase called <c>src_prepare</c>. see <uri link="::ebuild-writing/functions/src_prepare"/></important></ti> > </tr> > <tr> > <th>Sandbox</th> >@@ -42,7 +42,7 @@ > </section> > > <section> >-<title>Sample <c>src_unpack</c></title> >+<title>Sample <c>src_unpack</c> for EAPI=0,1</title> > <body> > <codesample lang="ebuild"> > src_unpack() { >@@ -89,12 +89,12 @@ > > </chapter> > >-<include href="epatch/"/> >+<!--<include href="epatch/"/>--> > <include href="cvs-sources/"/> > <include href="svn-sources/"/> > <include href="tla-sources/"/> > <include href="rpm-sources/"/> > <include href="deb-sources/"/> >-<include href="autopackage/"/> >+<!--<include href="autopackage/"/>--> > <include href="other-formats/"/> > </guide> >Index: ebuild-writing/functions/src_unpack/autopackage/text.xml >=================================================================== >--- ebuild-writing/functions/src_unpack/autopackage/text.xml (revision 149) >+++ ebuild-writing/functions/src_unpack/autopackage/text.xml (working copy) >@@ -1,42 +0,0 @@ >-<?xml version="1.0"?> >-<guide self="ebuild-writing/functions/src_unpack/autopackage/"> >-<chapter> >-<title>Autopackage</title> >- >-<body> >-<p> >-If a package is only supplied in autopackage format, you must not add >-it to the tree. If a package is supplied in autopackage format and >-some other sane standard format (for example a source tarball), use >-the other format only. >-</p> >- >-<p> >-Autopackage packages are totally unsuitable for Gentoo systems for a >-large number of reasons: >-</p> >- >-<ul> >- <li> >- To even unpack the package, you must run arbitrary code supplied by an untrusted source. >- </li> >- <li>They install directly to the live filesystem.</li> >- <li>Their intrinsic dependency resolver is broken.</li> >- <li>They do not support the filesystem layout used by Gentoo.</li> >- <li>They do not support configuration protection.</li> >- <li>They can clobber arbitrary files on uninstall.</li> >- <li>The linking mechanism used is insufficiently flexible.</li> >- <li> >- The entire format is completely unportable and highly tied to x86 >- Linux systems. >- </li> >-</ul> >- >-<p> >-Upstream are aware of these issues and have no desire to fix them <d/> >-indeed, they pass off some of their most broken behaviour as >-'features'. >-</p> >-</body> >-</chapter> >-</guide> >Index: ebuild-writing/functions/src_unpack/epatch/text.xml >=================================================================== >--- ebuild-writing/functions/src_unpack/epatch/text.xml (revision 149) >+++ ebuild-writing/functions/src_unpack/epatch/text.xml (working copy) >@@ -1,148 +0,0 @@ >-<?xml version="1.0"?> >-<guide self="ebuild-writing/functions/src_unpack/epatch/"> >-<chapter> >-<title>Patching with epatch</title> >- >-<body> >-<p> >-The canonical way of applying patches in ebuilds is to >-use <c>epatch</c> (from <c>eutils.eclass</c>, which you must make sure >-to import!) inside <c>src_unpack</c>. This function automatically >-handles <c>-p</c> levels, <c>gunzip</c> and so on as necessary. >-</p> >- >-<p> >-Note that distributing modified tarballs rather than a vanilla tarball >-and patches is <e>highly</e> discouraged. >-</p> >-</body> >- >-<section> >-<title>Basic <c>epatch</c></title> >-<body> >- >-<p> >-In its simplest form, <c>epatch</c> takes a single filename and >-applies that patch. It will automatically <c>die</c> if the apply >-fails. The following is taken from <c>app-misc/detox</c>: >-</p> >- >-<codesample lang="ebuild"> >-src_unpack() { >- unpack ${A} >- cd "${S}" >- epatch "${FILESDIR}/${P}-destdir.patch" >- epatch "${FILESDIR}/${P}-parallel_build.patch" >-} >-</codesample> >- >-<p> >-For larger patches, using <c>mirror://gentoo/</c> rather >-than <c>files/</c> is more appropriate. In these situations, it is >-usually best to <c>bzip2</c> the patch in question (as opposed to >-<c>files/</c> patches, which must not be compressed). For example, >-from <c>app-admin/showconsole</c>: >-</p> >- >-<codesample lang="ebuild"> >-src_unpack() { >- unpack ${P}.tar.bz2 >- cd "${S}" >- epatch "${DISTDIR}/${P}-suse-update.patch.bz2" >- epatch "${FILESDIR}/${PV}-no-TIOCGDEV.patch" >-} >-</codesample> >- >-<p> >-Remember to add the patch to <c>SRC_URI</c>. >-</p> >-</body> >- >-<subsection> >-<title>CVS Keyword Lines and Patches</title> >-<body> >-<p> >-If your patch includes any changes to CVS <c>$Id: $</c> >-(or <c>$Header: $</c>, or <c>$Date: $</c>) lines, it cannot be >-distributed under <c>files/</c>, since CVS will clobber the patch when >-you commit. In these situations, either remove this hunk of the patch >-manually, or mirror the file. >-</p> >-</body> >-</subsection> >- >-</section> >- >-<section> >-<title>Multiple Patches with <c>epatch</c></title> >-<body> >- >-<p> >-epatch can also apply multiple patches (which can be selectively based >-upon arch) from a single directory. This can be useful if upstream >-have releases that need more patches. >-</p> >- >-<p> >-A simple example: >-</p> >- >-<codesample lang="ebuild"> >-src_unpack() { >- unpack ${A} >- cd "${S}" >- EPATCH_SOURCE="${WORKDIR}/patches" EPATCH_SUFFIX="patch" \ >- EPATCH_FORCE="yes" epatch >-} >-</codesample> >- >-<p> >-Here, one of the <c>SRC_URI</c> components is a tarball containing >-many patches with file extension <c>.patch</c>. >-</p> >- >-<p> >-Variables which may be defined include: >-</p> >- >-<table> >- <tr> >- <th>Variable</th> >- <th>Purpose</th> >- </tr> >- <tr> >- <ti><c>EPATCH_SOURCE</c></ti> >- <ti>Specifies the directory in which epatch looks for patches.</ti> >- </tr> >- <tr> >- <ti><c>EPATCH_SUFFIX</c></ti> >- <ti>File extension for patches.</ti> >- </tr> >- <tr> >- <ti><c>EPATCH_OPTS</c></ti> >- <ti>Default options to <c>patch</c>.</ti> >- </tr> >- <tr> >- <ti><c>EPATCH_EXCLUDE</c></ti> >- <ti>List of patches to exclude.</ti> >- </tr> >- <tr> >- <ti><c>EPATCH_FORCE</c></ti> >- <ti> >- Force epatch to apply patches even if they do not follow the >- canonical naming form (set to <c>yes</c>). >- </ti> >- </tr> >-</table> >- >-<p> >-Bulk patches should be named in the form >-<c>??_${ARCH}_foo.${EPATCH_SUFFIX}</c>. If they are >-not, <c>EPATCH_FORCE="yes"</c> must be set. To apply a patch on <c>all</c> >-archs, use all for the <c>${ARCH}</c> part. >-</p> >- >-</body> >-</section> >-</chapter> >-</guide> >Index: ebuild-writing/functions/pkg_info/text.xml >=================================================================== >--- ebuild-writing/functions/pkg_info/text.xml (revision 0) >+++ ebuild-writing/functions/pkg_info/text.xml (revision 0) >@@ -0,0 +1,67 @@ >+<?xml version="1.0"?> >+<guide self="ebuild-writing/functions/pkg_info/"> >+<chapter> >+<title>pkg_info</title> >+ >+<body> >+<table> >+ <tr> >+ <th>Function</th> >+ <ti><c>pkg_info</c></ti> >+ </tr> >+ <tr> >+ <th>Purpose</th> >+ <ti>display information about a package</ti> >+ </tr> >+ <tr> >+ <th>Sandbox</th> >+ <ti>?</ti> >+ </tr> >+ <tr> >+ <th>Privilege</th> >+ <ti>root</ti> >+ </tr> >+ <tr> >+ <th>Called for</th> >+ <ti>ebuild</ti> >+ </tr> >+</table> >+</body> >+ >+<section> >+<title>Default <c>pkg_info</c></title> >+<body> >+<codesample lang="ebuild"> >+pkg_info() >+{ >+ return >+} >+</codesample> >+</body> >+</section> >+ >+<section> >+<title>Sample <c>pkg_info</c></title> >+<body> >+<codesample lang="ebuild"> >+pkg_info() { >+ "${ROOT}"/usr/bin/mythfrontend --version >+} >+</codesample> >+</body> >+</section> >+ >+<section> >+<title>Notes on <c>pkg_info</c></title> >+<body> >+<p> >+this phase will be called when a package manager displays >+information about a package. >+within EAPI=3, this phase can also be called for non-installed >+packages. >+</p> >+</body> >+</section> >+ >+</chapter> >+</guide> >Index: ebuild-writing/functions/pkg_info/index.html >=================================================================== >--- ebuild-writing/functions/pkg_info/index.html (revision 0) >+++ ebuild-writing/functions/pkg_info/index.html (revision 0) >@@ -0,0 +1,87 @@ >+<?xml version="1.0"?> >+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> >+<html xmlns="http://www.w3.org/1999/xhtml" lang="en-GB" xml:lang="en-GB"> >+ <head> >+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> >+ <title>Gentoo Development Guide: pkg_info</title> >+ <link rel="stylesheet" href="../../../devmanual.css" type="text/css" /> >+ </head> >+ <body> >+ <div class="main"> >+ <h1>Gentoo Development Guide</h1> >+ <div class="navtop" style="text-align: center;"> >+ <table style="border-top: 1px dashed #330066; margin-left: auto; margin-right: auto; width: 100%;"> >+ <col width="33%" /> >+ <col width="34%" /> >+ <col width="33%" /> >+ <tr> >+ <td style="text-align: center; border-right: 1px dashed #330066;">â <a href="../pkg_config/index.html">pkg_config</a></td> >+ <td style="text-align: center;">â <a href="../index.html">Ebuild Functions</a> â</td> >+ <td style="text-align: center; border-left: 1px dashed #330066;"><a href="../../../ebuild-writing/misc-files/index.html">Miscellaneous Files</a> â</td> >+ </tr> >+ </table> >+ </div> >+ <div class="document"> >+<h1>pkg_info</h1> >+<table> >+ <tr> >+ <td class="devbook"><b>Function</b></td> >+ <td class="devbook"><code class="docutils literal"><span class="pre">pkg_info</span></code></td> >+ </tr> >+ <tr> >+ <td class="devbook"><b>Purpose</b></td> >+ <td class="devbook">display information about a package</td> >+ </tr> >+ <tr> >+ <td class="devbook"><b>Sandbox</b></td> >+ <td class="devbook">?</td> >+ </tr> >+ <tr> >+ <td class="devbook"><b>Privilege</b></td> >+ <td class="devbook">root</td> >+ </tr> >+ <tr> >+ <td class="devbook"><b>Called for</b></td> >+ <td class="devbook">ebuild</td> >+ </tr> >+</table> >+<div class="section"><h2><a name="default-pkg_info" id="default-pkg_info">Default <code class="docutils literal"><span class="pre">pkg_info</span></code></a></h2> >+<pre><span class="Constant"><span class="Special">pkg_info()</span> >+<span class="PreProc">{</span> >+ <span class="Statement">return</span> >+<span class="PreProc">}</span> >+</span></pre> >+</div><div class="section"><h2><a name="sample-pkg_info" id="sample-pkg_info">Sample <code class="docutils literal"><span class="pre">pkg_info</span></code></a></h2> >+<pre><span class="Constant"><span class="Special">pkg_info()</span> <span class="PreProc">{</span> >+ <span class="Statement">"</span><span class="Identifier">${ROOT}</span><span class="Statement">"</span>/usr/bin/mythfrontend <span class="PreProc">--</span><span class="Comment">version</span> >+<span class="PreProc">}</span> >+</span></pre> >+</div><div class="section"><h2><a name="notes-on-pkg_info" id="notes-on-pkg_info">Notes on <code class="docutils literal"><span class="pre">pkg_info</span></code></a></h2> >+<p> >+this phase will be called when a package manager displays >+information about a package. >+within EAPI=3, this phase can also be called for non-installed >+packages. >+</p> >+</div> >+</div> >+ <div class="navbottom" style="text-align: center;"> >+ <table style="border-top: 1px dashed #330066; margin-left: auto; margin-right: auto; width: 100%;"> >+ <col width="33%" /> >+ <col width="34%" /> >+ <col width="33%" /> >+ <tr> >+ <td style="text-align: center; border-right: 1px dashed #330066;">â <a href="../pkg_config/index.html">pkg_config</a></td> >+ <td style="text-align: center;">â <a href="../index.html">Ebuild Functions</a> â</td> >+ <td style="text-align: center; border-left: 1px dashed #330066;"><a href="../../../ebuild-writing/misc-files/index.html">Miscellaneous Files</a> â</td> >+ </tr> >+ </table> >+ </div> >+ </div> >+ <div class="footer"> >+ <p><a href="http://validator.w3.org/check/referer"><img src="/icons/icon_mini-xhtml.png" alt="Valid XHTML 1.0" /></a><a href="http://jigsaw.w3.org/css-validator/check/referer"><img src="/icons/icon_mini-css.png" alt="Valid CSS" /></a><a href="http://www.gentoo.org/"><img src="/icons/icon_mini-gentoo.png" alt="Powered by Gentoo" /></a><a href="http://creativecommons.org/licenses/by-sa/2.0/"><img src="/icons/icon_mini-creativecommons.png" alt="Creative Commons License" /></a><img src="/icons/icon_mini-xml.png" alt="XML Powered!" /><br /><br /> >+ The text of this document is distributed under the <a href="http://creativecommons.org/licenses/by-sa/2.0/">Creative Commons Attribution-ShareAlike 2.0 License</a>. >+ </p> >+ </div> >+ </body> >+</html> >Index: ebuild-writing/functions/src_compile/text.xml >=================================================================== >--- ebuild-writing/functions/src_compile/text.xml (revision 149) >+++ ebuild-writing/functions/src_compile/text.xml (working copy) >@@ -11,7 +11,7 @@ > </tr> > <tr> > <th>Purpose</th> >- <ti>Configure and build the package.</ti> >+ <ti>Configure and build the package.<important>the configure parts of <c>src_compile</c> have been splitted out in EAPI=2 to <c>src_configure</c>. see <uri link="::ebuild-writing/functions/src_configure"/></important></ti> > </tr> > <tr> > <th>Sandbox</th> >@@ -31,6 +31,9 @@ > <section> > <title>Default <c>src_compile</c></title> > <body> >+<subsection> >+<title>with EAPI=0,1</title> >+<body> > <codesample lang="ebuild"> > src_compile() { > if [ -x ./configure ]; then >@@ -42,11 +45,28 @@ > } > </codesample> > </body> >+</subsection> >+<subsection> >+<title>with EAPI=2</title> >+<body> >+<codesample lang="ebuild"> >+src_compile() { >+ if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then >+ emake || die "emake failed" >+ fi >+} >+</codesample> >+</body> >+</subsection> >+</body> > </section> > > <section> > <title>Sample <c>src_compile</c></title> > <body> >+<subsection> >+<title>with EAPI=0</title> >+<body> > <codesample lang="ebuild"> > src_compile() { > use sparc && filter-flags -fomit-frame-pointer >@@ -60,6 +80,18 @@ > } > </codesample> > </body> >+</subsection> >+<subsection> >+<title>with EAPI=2</title> >+<body> >+<p> >+porting the above example to EAPI=2, you won't need to define an extra >+<c>src_compile</c>, as it only calls <c>emake</c> (which is the default >+<c>src_compile</c> function). >+</p> >+</body> >+</subsection> >+</body> > </section> > > <section> >@@ -77,7 +109,7 @@ > </chapter> > > <include href="build-environment/"/> >-<include href="configuring/"/> >+<!--<include href="configuring/"/>--> > <include href="building/"/> > <include href="distutils/"/> > <include href="no-build-system/"/> >Index: ebuild-writing/functions/src_compile/configuring/text.xml >=================================================================== >--- ebuild-writing/functions/src_compile/configuring/text.xml (revision 149) >+++ ebuild-writing/functions/src_compile/configuring/text.xml (working copy) >@@ -1,82 +0,0 @@ >-<?xml version="1.0"?> >-<guide self="ebuild-writing/functions/src_compile/configuring/"> >-<chapter> >-<title>Configuring a Package</title> >- >-<body> >-<p> >-Many packages come with an autoconf-generated <c>./configure</c> >-script for checking the build environment and configuring optional >-support for libraries. The <c>econf</c> function should be used where >-possible <d/> this will provide correct build and path specifications for >-a Gentoo environment. >-</p> >- >-<p> >-Often the configure script will try to automatically enable support >-for optional components based upon installed packages. This >-must <b>not</b> be allowed to happen. For example, if a user has Perl >-installed but has <c>USE="-perl"</c>, packages with <e>optional</e> >-Perl support must not link against Perl. This automatic detection can >-usually be overridden using <c>--enable-</c> and <c>--disable</c> >-or <c>--with-</c> and <c>--without-</c> switches (but note that these >-don't always work <d/> make sure these are tested properly!). >-</p> >- >-<p> >-The <c>use_enable</c> and <c>use_with</c> utility functions should, >-where appropriate, be used to generate these switches. >-</p> >- >-<codesample lang="ebuild"> >-src_compile() { >- # We have optional perl, python and ruby support >- econf \ >- $(use_enable perl ) \ >- $(use_enable python ) \ >- $(use_enable ruby ) >- >- # ... >-} >- >-src_compile() { >- # Our package optional IPv6 support which uses --with rather than >- # --enable / --disable >- >- econf $(use_with ipv6 ) >- >- # ... >-} >-</codesample> >- >-<p> >-Sometimes the package's choice of name for the option will not exactly >-match the name or case of the <c>USE</c> flag. This is very often the >-case with the <c>X</c> flag. For these situations, there are two >-argument forms: >-</p> >- >-<codesample lang="ebuild"> >-src_compile() { >- # Our package has optional perl, python and ruby support >- econf \ >- $(use_enable perl perlinterp ) \ >- $(use_enable python pythoninterp ) \ >- $(use_enable ruby rubyinterp ) >- >- # ... >-} >- >-src_compile() { >- econf $(use_with X x11 ) >-} >-</codesample> >- >-<p> >-To check for an unset <c>USE</c> flag, the <c>use_enable !flag</c> >-form can be used. >-</p> >-</body> >- >-</chapter> >-</guide> >Index: ebuild-writing/functions/diagram.svg >=================================================================== >--- ebuild-writing/functions/diagram.svg (revision 149) >+++ ebuild-writing/functions/diagram.svg (working copy) >@@ -1,71 +1,318 @@ >-<?xml version="1.0" standalone="no"?> >-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" >- "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> >-<svg viewBox="0 100 830 80" width="830" height="80" xmlns="http://www.w3.org/2000/svg" version="1.1"> >- <desc>Ebuild Function Order</desc> >- <rect x="-10" y="-10" width="1000" height="1000" fill="#eeeeee" id="background" /> >- >- <rect x="10" y="110" width="80" height="30" >- fill="#ccccff" stroke="black" stroke-width="2" /> >- <text style="text-anchor: middle;" x="50" y="130">pkg_setup</text> >- >- <line x1="90" y1="125" x2="130" y2="125" stroke-width="2" stroke="black" /> >- <line x1="130" y1="125" x2="122" y2="120" stroke-width="2" stroke="black" /> >- <line x1="130" y1="125" x2="122" y2="130" stroke-width="2" stroke="black" /> >- >- <rect x="130" y="110" width="80" height="30" >- fill="#ffffff" stroke="black" stroke-width="2" /> >- <text style="text-anchor: middle;" x="170" y="130">src_unpack</text> >- >- <line x1="210" y1="125" x2="250" y2="125" stroke-width="2" stroke="black" /> >- <line x1="250" y1="125" x2="242" y2="120" stroke-width="2" stroke="black" /> >- <line x1="250" y1="125" x2="242" y2="130" stroke-width="2" stroke="black" /> >- >- <rect x="250" y="110" width="80" height="30" >- fill="#ffffff" stroke="black" stroke-width="2" /> >- <text style="text-anchor: middle;" x="290" y="130">src_compile</text> >- >- <line x1="330" y1="125" x2="370" y2="125" stroke-width="2" stroke="black" /> >- <line x1="370" y1="125" x2="362" y2="120" stroke-width="2" stroke="black" /> >- <line x1="370" y1="125" x2="362" y2="130" stroke-width="2" stroke="black" /> >- >- <path d="M 330 125 Q 350 125 350 137 Q 350 150 370 150 >- L 450 150 Q 470 150 470 137 Q 470 125 490 125" >- stroke-width="2" stroke="black" fill="none" /> >- >- <rect x="370" y="110" width="80" height="30" >- fill="#ccffcc" stroke="black" stroke-width="2" /> >- <text style="text-anchor: middle;" x="410" y="130">src_test</text> >- >- <line x1="450" y1="125" x2="490" y2="125" stroke-width="2" stroke="black" /> >- <line x1="490" y1="125" x2="482" y2="120" stroke-width="2" stroke="black" /> >- <line x1="490" y1="125" x2="482" y2="130" stroke-width="2" stroke="black" /> >- >- <rect x="490" y="110" width="80" height="30" >- fill="#ffffff" stroke="black" stroke-width="2" /> >- <text style="text-anchor: middle;" x="530" y="130">src_install</text> >- >- <line x1="570" y1="125" x2="610" y2="125" stroke-width="2" stroke="black" /> >- <line x1="610" y1="125" x2="602" y2="120" stroke-width="2" stroke="black" /> >- <line x1="610" y1="125" x2="602" y2="130" stroke-width="2" stroke="black" /> >- >- <rect x="610" y="110" width="80" height="30" >- fill="#ccccff" stroke="black" stroke-width="2" /> >- <text style="text-anchor: middle;" x="650" y="130">pkg_preinst</text> >- >- <line x1="690" y1="125" x2="730" y2="125" stroke-width="2" stroke="black" /> >- <line x1="730" y1="125" x2="722" y2="120" stroke-width="2" stroke="black" /> >- <line x1="730" y1="125" x2="722" y2="130" stroke-width="2" stroke="black" /> >- >- <rect x="730" y="110" width="80" height="30" >- fill="#ccccff" stroke="black" stroke-width="2" /> >- <text style="text-anchor: middle;" x="770" y="130">pkg_postinst</text> >- >- <path d="M 90 125 Q 110 125 110 142 Q 110 160 130 160 >- L 570 160 Q 590 160 590 142 Q 590 125 610 125" >- stroke-width="2" stroke="black" fill="none" /> >- >+<?xml version="1.0" encoding="UTF-8" standalone="no"?> >+<!-- Created with Inkscape (http://www.inkscape.org/) --> >+<svg >+ xmlns:svg="http://www.w3.org/2000/svg" >+ xmlns="http://www.w3.org/2000/svg" >+ version="1.0" >+ width="1100" >+ height="80" >+ viewBox="0 100 830 80" >+ id="svg2503"> >+ <defs >+ id="defs2577" /> >+ <desc >+ id="desc2505">Ebuild Function Order</desc> >+ <rect >+ width="1100" >+ height="1000" >+ x="-135" >+ y="-10" >+ id="background" >+ style="fill:#eeeeee" /> >+ <line >+ style="stroke:#000000;stroke-width:2.19613099" >+ id="line2593" >+ y2="125" >+ x2="372.11496" >+ y1="125" >+ x1="323.88504" /> >+ <rect >+ width="80" >+ height="30" >+ x="-115" >+ y="110" >+ id="rect2508" >+ style="fill:#ccccff;stroke:#000000;stroke-width:2" /> >+ <text >+ x="-75.000008" >+ y="130" >+ id="text2510" >+ style="text-anchor:middle">pkg_setup</text> >+ <g >+ transform="translate(-125,0)" >+ id="g2599"> >+ <line >+ id="line2512" >+ y2="125" >+ x2="130" >+ y1="125" >+ x1="90" >+ style="stroke:#000000;stroke-width:2" /> >+ <line >+ id="line2514" >+ y2="120" >+ x2="122" >+ y1="125" >+ x1="130" >+ style="stroke:#000000;stroke-width:2" /> >+ <line >+ id="line2516" >+ y2="130" >+ x2="122" >+ y1="125" >+ x1="130" >+ style="stroke:#000000;stroke-width:2" /> >+ </g> >+ <rect >+ width="80" >+ height="30" >+ x="4.9999924" >+ y="110" >+ id="rect2518" >+ style="fill:#ffffff;stroke:#000000;stroke-width:2" /> >+ <text >+ x="44.999992" >+ y="130" >+ id="text2520" >+ style="text-anchor:middle">src_unpack</text> >+ <line >+ x1="373" >+ y1="125" >+ x2="365" >+ y2="120" >+ id="line2524" >+ style="stroke:#000000;stroke-width:2" /> >+ <line >+ x1="373" >+ y1="125" >+ x2="365" >+ y2="130" >+ id="line2526" >+ style="stroke:#000000;stroke-width:2" /> >+ <rect >+ width="80" >+ height="30" >+ x="373" >+ y="110" >+ id="rect2528" >+ style="fill:#ffffff;stroke:#000000;stroke-width:2" /> >+ <text >+ x="413" >+ y="130" >+ id="text2530" >+ style="text-anchor:middle">src_compile</text> >+ <line >+ x1="453" >+ y1="125" >+ x2="493" >+ y2="125" >+ id="line2532" >+ style="stroke:#000000;stroke-width:2" /> >+ <line >+ x1="493" >+ y1="125" >+ x2="485" >+ y2="120" >+ id="line2534" >+ style="stroke:#000000;stroke-width:2" /> >+ <line >+ x1="493" >+ y1="125" >+ x2="485" >+ y2="130" >+ id="line2536" >+ style="stroke:#000000;stroke-width:2" /> >+ <path >+ d="M 453,125 C 466.33333,125 473,129 473,137 C 473,145.66667 479.66667,150 493,150 L 573,150 C 586.33333,150 593,145.66667 593,137 C 593,129 599.66667,125 613,125" >+ id="path2538" >+ style="fill:none;stroke:#000000;stroke-width:2" /> >+ <rect >+ width="80" >+ height="30" >+ x="493" >+ y="110" >+ id="rect2540" >+ style="fill:#ccffcc;stroke:#000000;stroke-width:2" /> >+ <text >+ x="532.99994" >+ y="130" >+ id="text2542" >+ style="text-anchor:middle">src_test</text> >+ <line >+ x1="572.99994" >+ y1="125" >+ x2="612.99994" >+ y2="125" >+ id="line2544" >+ style="stroke:#000000;stroke-width:2" /> >+ <line >+ x1="612.99994" >+ y1="125" >+ x2="604.99994" >+ y2="120" >+ id="line2546" >+ style="stroke:#000000;stroke-width:2" /> >+ <line >+ x1="612.99994" >+ y1="125" >+ x2="604.99994" >+ y2="130" >+ id="line2548" >+ style="stroke:#000000;stroke-width:2" /> >+ <rect >+ width="80" >+ height="30" >+ x="612.99994" >+ y="110" >+ id="rect2550" >+ style="fill:#ffffff;stroke:#000000;stroke-width:2" /> >+ <text >+ x="652.99994" >+ y="130" >+ id="text2552" >+ style="text-anchor:middle">src_install</text> >+ <line >+ x1="692.99994" >+ y1="125" >+ x2="732.99994" >+ y2="125" >+ id="line2554" >+ style="stroke:#000000;stroke-width:2" /> >+ <line >+ x1="732.99994" >+ y1="125" >+ x2="724.99994" >+ y2="120" >+ id="line2556" >+ style="stroke:#000000;stroke-width:2" /> >+ <line >+ x1="732.99994" >+ y1="125" >+ x2="724.99994" >+ y2="130" >+ id="line2558" >+ style="stroke:#000000;stroke-width:2" /> >+ <rect >+ width="80" >+ height="30" >+ x="732.99994" >+ y="110" >+ id="rect2560" >+ style="fill:#ccccff;stroke:#000000;stroke-width:2" /> >+ <text >+ x="772.99994" >+ y="130" >+ id="text2562" >+ style="text-anchor:middle">pkg_preinst</text> >+ <line >+ x1="812.99994" >+ y1="125" >+ x2="852.99994" >+ y2="125" >+ id="line2564" >+ style="stroke:#000000;stroke-width:2" /> >+ <line >+ x1="852.99994" >+ y1="125" >+ x2="844.99994" >+ y2="120" >+ id="line2566" >+ style="stroke:#000000;stroke-width:2" /> >+ <line >+ x1="852.99994" >+ y1="125" >+ x2="844.99994" >+ y2="130" >+ id="line2568" >+ style="stroke:#000000;stroke-width:2" /> >+ <rect >+ width="80" >+ height="30" >+ x="852.99994" >+ y="110" >+ id="rect2570" >+ style="fill:#ccccff;stroke:#000000;stroke-width:2" /> >+ <text >+ x="892.99994" >+ y="130" >+ id="text2572" >+ style="text-anchor:middle">pkg_postinst</text> >+ <path >+ d="M -34.79404,125.20597 C -15.171638,125.20597 -5.3604277,130.80594 -5.3604277,142.00588 C -5.3604277,153.86465 4.4507723,159.79403 24.073182,159.79403 L 671.61258,159.79403 C 691.23498,159.79403 701.04619,153.86465 701.04619,142.00588 C 701.04619,130.80594 710.85739,125.20597 730.4798,125.20597" >+ id="path2574" >+ style="fill:none;stroke:#000000;stroke-width:2.41193652" /> >+ <rect >+ width="80" >+ height="30" >+ x="245" >+ y="110" >+ id="rect2583" >+ style="fill:#ffffff;stroke:#000000;stroke-width:2" /> >+ <text >+ x="286.13922" >+ y="129.99992" >+ id="text2585" >+ style="text-anchor:middle">src_configure</text> >+ <rect >+ width="80" >+ height="30" >+ x="125" >+ y="110" >+ id="rect2587" >+ style="fill:#ffffff;stroke:#000000;stroke-width:2" /> >+ <text >+ x="167.51736" >+ y="129.99992" >+ id="text2589" >+ style="text-anchor:middle">src_prepare</text> >+ <g >+ transform="translate(-5.0000077,0)" >+ id="g2604"> >+ <line >+ x1="90" >+ y1="125" >+ x2="130" >+ y2="125" >+ id="line2606" >+ style="stroke:#000000;stroke-width:2" /> >+ <line >+ x1="130" >+ y1="125" >+ x2="122" >+ y2="120" >+ id="line2608" >+ style="stroke:#000000;stroke-width:2" /> >+ <line >+ x1="130" >+ y1="125" >+ x2="122" >+ y2="130" >+ id="line2610" >+ style="stroke:#000000;stroke-width:2" /> >+ </g> >+ <g >+ transform="translate(115,0)" >+ id="g2612"> >+ <line >+ style="stroke:#000000;stroke-width:2" >+ id="line2614" >+ y2="125" >+ x2="130" >+ y1="125" >+ x1="90" /> >+ <line >+ style="stroke:#000000;stroke-width:2" >+ id="line2616" >+ y2="120" >+ x2="122" >+ y1="125" >+ x1="130" /> >+ <line >+ style="stroke:#000000;stroke-width:2" >+ id="line2618" >+ y2="130" >+ x2="122" >+ y1="125" >+ x1="130" /> >+ </g> > </svg> >- >-<!-- vim: set ft=xml sw=4 sts=4 et : --> >- >Index: ebuild-writing/functions/pkg_pretend/text.xml >=================================================================== >--- ebuild-writing/functions/pkg_pretend/text.xml (revision 0) >+++ ebuild-writing/functions/pkg_pretend/text.xml (revision 0) >@@ -0,0 +1,89 @@ >+<?xml version="1.0"?> >+<guide self="ebuild-writing/functions/pkg_pretend/"> >+<chapter> >+<title>pkg_pretend</title> >+ >+<body> >+<table> >+ <tr> >+ <th>Function</th> >+ <ti><c>pkg_pretend</c></ti> >+ </tr> >+ <tr> >+ <th>Purpose</th> >+ <ti>run sanity checks for a package during dependency calculation time</ti> >+ </tr> >+ <tr> >+ <th>Sandbox</th> >+ <ti>?</ti> >+ </tr> >+ <tr> >+ <th>Privilege</th> >+ <ti>root</ti> >+ </tr> >+ <tr> >+ <th>Called for</th> >+ <ti>ebuild</ti> >+ </tr> >+ <tr> >+ <th>EAPI</th> >+ <ti>3</ti> >+ </tr> >+</table> >+</body> >+ >+<section> >+<title>Default <c>pkg_pretend</c></title> >+<body> >+<codesample lang="ebuild"> >+pkg_pretend() >+{ >+ return >+} >+</codesample> >+</body> >+</section> >+ >+<section> >+<title>Sample <c>pkg_pretend</c></title> >+<body> >+<codesample lang="ebuild"> >+pkg_pretend() { >+ if use kernel_linux ; then >+ if [[ -e "${ROOT}"/usr/src/linux/.config ]] ; then >+ if kernel_is lt 2 6 30 ; then >+ CONFIG_CHECK="FUSE_FS" >+ FUSE_FS_ERROR="this is an unrealistic testcase..." >+ check_extra_config >+ fi >+ fi >+ fi >+} >+</codesample> >+</body> >+</section> >+ >+<section> >+<title>Notes on <c>pkg_pretend</c></title> >+<body> >+<p> >+the <c>pkg_pretend</c> phase can be used to do sanity checks >+before the main phase function sequence is run (meaning this phase is >+executed after the package manager has calculated the dependencies >+and before installing them). >+This phase typically checks for a kernel configuration and may >+<c>eerror</c> and <c>die</c> when needed. >+<important> >+ There is no guarantee that the ebuild's dependencies are installed >+ when this phase is called. >+</important> >+<important> >+ As <c>pkg_pretend</c> is not called in the main phase function >+ sequence, environment saving is not guaranteed. >+</important> >+</p> >+</body> >+</section> >+ >+</chapter> >+</guide> >Index: ebuild-writing/functions/pkg_pretend/index.html >=================================================================== >--- ebuild-writing/functions/pkg_pretend/index.html (revision 0) >+++ ebuild-writing/functions/pkg_pretend/index.html (revision 0) >@@ -0,0 +1,109 @@ >+<?xml version="1.0"?> >+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> >+<html xmlns="http://www.w3.org/1999/xhtml" lang="en-GB" xml:lang="en-GB"> >+ <head> >+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> >+ <title>Gentoo Development Guide: pkg_pretend</title> >+ <link rel="stylesheet" href="../../../devmanual.css" type="text/css" /> >+ </head> >+ <body> >+ <div class="main"> >+ <h1>Gentoo Development Guide</h1> >+ <div class="navtop" style="text-align: center;"> >+ <table style="border-top: 1px dashed #330066; margin-left: auto; margin-right: auto; width: 100%;"> >+ <col width="33%" /> >+ <col width="34%" /> >+ <col width="33%" /> >+ <tr> >+ <td style="text-align: center; border-right: 1px dashed #330066;">â <a href="../index.html">Ebuild Functions</a></td> >+ <td style="text-align: center;">â <a href="../index.html">Ebuild Functions</a> â</td> >+ <td style="text-align: center; border-left: 1px dashed #330066;"><a href="../../../ebuild-writing/functions/pkg_nofetch/index.html">pkg_nofetch</a> â</td> >+ </tr> >+ </table> >+ </div> >+ <div class="document"> >+<h1>pkg_pretend</h1> >+<table> >+ <tr> >+ <td class="devbook"><b>Function</b></td> >+ <td class="devbook"><code class="docutils literal"><span class="pre">pkg_pretend</span></code></td> >+ </tr> >+ <tr> >+ <td class="devbook"><b>Purpose</b></td> >+ <td class="devbook">run sanity checks for a package during dependency calculation time</td> >+ </tr> >+ <tr> >+ <td class="devbook"><b>Sandbox</b></td> >+ <td class="devbook">?</td> >+ </tr> >+ <tr> >+ <td class="devbook"><b>Privilege</b></td> >+ <td class="devbook">root</td> >+ </tr> >+ <tr> >+ <td class="devbook"><b>Called for</b></td> >+ <td class="devbook">ebuild</td> >+ </tr> >+ <tr> >+ <td class="devbook"><b>EAPI</b></td> >+ <td class="devbook">3</td> >+ </tr> >+</table> >+<div class="section"><h2><a name="default-pkg_pretend" id="default-pkg_pretend">Default <code class="docutils literal"><span class="pre">pkg_pretend</span></code></a></h2> >+<pre><span class="Constant"><span class="Special">pkg_pretend()</span> >+<span class="PreProc">{</span> >+ <span class="Statement">return</span> >+<span class="PreProc">}</span> >+</span></pre> >+</div><div class="section"><h2><a name="sample-pkg_pretend" id="sample-pkg_pretend">Sample <code class="docutils literal"><span class="pre">pkg_pretend</span></code></a></h2> >+<pre><span class="Constant"><span class="Special">pkg_pretend()</span> <span class="PreProc">{</span> >+ <span class="Statement">if</span> <span class="Statement">use</span> kernel_linux <span class="Statement">;</span> <span class="Statement">then</span> >+ <span class="Statement">if</span> <span class="Statement">[[</span> -e <span class="Statement">"</span><span class="Identifier">${ROOT}</span><span class="Statement">"</span>/usr/src/linux/.config <span class="Statement">]]</span> <span class="Statement">;</span> <span class="Statement">then</span> >+ <span class="Statement">if</span> kernel_is lt 2 6 30 <span class="Statement">;</span> <span class="Statement">then</span> >+ <span class="Identifier">CONFIG_CHECK</span><span class="Constant">=</span><span class="Statement">"</span>FUSE_FS<span class="Statement">"</span> >+ <span class="Identifier">FUSE_FS_ERROR</span><span class="Constant">=</span><span class="Statement">"</span>this is an unrealistic testcase...<span class="Statement">"</span> >+ check_extra_config >+ <span class="Statement">fi</span> >+ <span class="Statement">fi</span> >+ <span class="Statement">fi</span> >+<span class="PreProc">}</span> >+</span></pre> >+</div><div class="section"><h2><a name="notes-on-pkg_pretend" id="notes-on-pkg_pretend">Notes on <code class="docutils literal"><span class="pre">pkg_pretend</span></code></a></h2> >+<p> >+the <code class="docutils literal"><span class="pre">pkg_pretend</span></code> phase can be used to do sanity checks >+before the main phase function sequence is run (meaning this phase is >+executed after the package manager has calculated the dependencies >+and before installing them). >+This phase typically checks for a kernel configuration and may >+<code class="docutils literal"><span class="pre">eerror</span></code> and <code class="docutils literal"><span class="pre">die</span></code> when needed. >+<div class="important"><p class="first admonition-title">Important</p><p class="last"> >+ There is no guarantee that the ebuild's dependencies are installed >+ when this phase is called. >+</p></div> >+<div class="important"><p class="first admonition-title">Important</p><p class="last"> >+ As <code class="docutils literal"><span class="pre">pkg_pretend</span></code> is not called in the main phase function >+ sequence, environment saving is not guaranteed. >+</p></div> >+</p> >+</div> >+</div> >+ <div class="navbottom" style="text-align: center;"> >+ <table style="border-top: 1px dashed #330066; margin-left: auto; margin-right: auto; width: 100%;"> >+ <col width="33%" /> >+ <col width="34%" /> >+ <col width="33%" /> >+ <tr> >+ <td style="text-align: center; border-right: 1px dashed #330066;">â <a href="../index.html">Ebuild Functions</a></td> >+ <td style="text-align: center;">â <a href="../index.html">Ebuild Functions</a> â</td> >+ <td style="text-align: center; border-left: 1px dashed #330066;"><a href="../../../ebuild-writing/functions/pkg_nofetch/index.html">pkg_nofetch</a> â</td> >+ </tr> >+ </table> >+ </div> >+ </div> >+ <div class="footer"> >+ <p><a href="http://validator.w3.org/check/referer"><img src="/icons/icon_mini-xhtml.png" alt="Valid XHTML 1.0" /></a><a href="http://jigsaw.w3.org/css-validator/check/referer"><img src="/icons/icon_mini-css.png" alt="Valid CSS" /></a><a href="http://www.gentoo.org/"><img src="/icons/icon_mini-gentoo.png" alt="Powered by Gentoo" /></a><a href="http://creativecommons.org/licenses/by-sa/2.0/"><img src="/icons/icon_mini-creativecommons.png" alt="Creative Commons License" /></a><img src="/icons/icon_mini-xml.png" alt="XML Powered!" /><br /><br /> >+ The text of this document is distributed under the <a href="http://creativecommons.org/licenses/by-sa/2.0/">Creative Commons Attribution-ShareAlike 2.0 License</a>. >+ </p> >+ </div> >+ </body> >+</html> >Index: ebuild-writing/functions/src_prepare/text.xml >=================================================================== >--- ebuild-writing/functions/src_prepare/text.xml (revision 0) >+++ ebuild-writing/functions/src_prepare/text.xml (revision 0) >@@ -0,0 +1,76 @@ >+<?xml version="1.0"?> >+<guide self="ebuild-writing/functions/src_prepare/"> >+<chapter> >+<title>src_prepare</title> >+ >+<body> >+<table> >+ <tr> >+ <th>Function</th> >+ <ti><c>src_prepare</c></ti> >+ </tr> >+ <tr> >+ <th>Purpose</th> >+ <ti>patch and fix unpacked source files.</ti> >+ </tr> >+ <tr> >+ <th>Sandbox</th> >+ <ti>Enabled</ti> >+ </tr> >+ <tr> >+ <th>Privilege</th> >+ <ti>user</ti> >+ </tr> >+ <tr> >+ <th>Called for</th> >+ <ti>ebuild</ti> >+ </tr> >+ <tr> >+ <th>EAPI</th> >+ <ti>2</ti> >+ </tr> >+</table> >+</body> >+ >+<section> >+<title>Default <c>src_prepare</c></title> >+<body> >+<codesample lang="ebuild"> >+src_prepare() { >+ return >+} >+</codesample> >+</body> >+</section> >+ >+<section> >+<title>Sample <c>src_prepare</c></title> >+<body> >+<codesample lang="ebuild"> >+src_prepare() { >+ epatch "${FILESDIR}/${PV}/${P}-fix-bogosity.patch" >+ use pam && epatch "${FILESDIR}/${PV}/${P}-pam.patch" >+ >+ sed -i -e 's/"ispell"/"aspell"/' src/defaults.h || die "Sed failed!" >+} >+</codesample> >+</body> >+</section> >+ >+<section> >+<title><c>src_prepare</c> Actions</title> >+<body> >+<p> >+The following subsections cover different topics which often occur when writing >+<c>src_prepare</c> functions. >+</p> >+ >+<contentsTree/> >+</body> >+</section> >+ >+</chapter> >+ >+<include href="epatch/"/> >+<include href="autopackage/"/> >+</guide> >Index: ebuild-writing/functions/src_prepare/epatch/text.xml >=================================================================== >--- ebuild-writing/functions/src_prepare/epatch/text.xml (revision 149) >+++ ebuild-writing/functions/src_prepare/epatch/text.xml (working copy) >@@ -1,5 +1,5 @@ > <?xml version="1.0"?> >-<guide self="ebuild-writing/functions/src_unpack/epatch/"> >+<guide self="ebuild-writing/functions/src_prepare/epatch/"> > <chapter> > <title>Patching with epatch</title> > >@@ -7,7 +7,7 @@ > <p> > The canonical way of applying patches in ebuilds is to > use <c>epatch</c> (from <c>eutils.eclass</c>, which you must make sure >-to import!) inside <c>src_unpack</c>. This function automatically >+to import!) inside <c>src_prepare</c>. This function automatically > handles <c>-p</c> levels, <c>gunzip</c> and so on as necessary. > </p> > >@@ -28,9 +28,7 @@ > </p> > > <codesample lang="ebuild"> >-src_unpack() { >- unpack ${A} >- cd "${S}" >+src_prepare() { > epatch "${FILESDIR}/${P}-destdir.patch" > epatch "${FILESDIR}/${P}-parallel_build.patch" > } >@@ -45,9 +43,7 @@ > </p> > > <codesample lang="ebuild"> >-src_unpack() { >- unpack ${P}.tar.bz2 >- cd "${S}" >+src_prepare() { > epatch "${DISTDIR}/${P}-suse-update.patch.bz2" > epatch "${FILESDIR}/${PV}-no-TIOCGDEV.patch" > } >@@ -88,9 +84,7 @@ > </p> > > <codesample lang="ebuild"> >-src_unpack() { >- unpack ${A} >- cd "${S}" >+src_prepare() { > EPATCH_SOURCE="${WORKDIR}/patches" EPATCH_SUFFIX="patch" \ > EPATCH_FORCE="yes" epatch > } >Index: ebuild-writing/functions/src_prepare/autopackage/text.xml >=================================================================== >--- ebuild-writing/functions/src_prepare/autopackage/text.xml (revision 149) >+++ ebuild-writing/functions/src_prepare/autopackage/text.xml (working copy) >@@ -1,5 +1,5 @@ > <?xml version="1.0"?> >-<guide self="ebuild-writing/functions/src_unpack/autopackage/"> >+<guide self="ebuild-writing/functions/src_prepare/autopackage/"> > <chapter> > <title>Autopackage</title> > >Index: ebuild-writing/functions/src_prepare/index.html >=================================================================== >--- ebuild-writing/functions/src_prepare/index.html (revision 0) >+++ ebuild-writing/functions/src_prepare/index.html (revision 0) >@@ -0,0 +1,96 @@ >+<?xml version="1.0"?> >+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> >+<html xmlns="http://www.w3.org/1999/xhtml" lang="en-GB" xml:lang="en-GB"> >+ <head> >+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> >+ <title>Gentoo Development Guide: src_prepare</title> >+ <link rel="stylesheet" href="../../../devmanual.css" type="text/css" /> >+ </head> >+ <body> >+ <div class="main"> >+ <h1>Gentoo Development Guide</h1> >+ <div class="navtop" style="text-align: center;"> >+ <table style="border-top: 1px dashed #330066; margin-left: auto; margin-right: auto; width: 100%;"> >+ <col width="33%" /> >+ <col width="34%" /> >+ <col width="33%" /> >+ <tr> >+ <td style="text-align: center; border-right: 1px dashed #330066;">â <a href="../src_unpack/other-formats/index.html">Other Archive Formats</a></td> >+ <td style="text-align: center;">â <a href="../index.html">Ebuild Functions</a> â</td> >+ <td style="text-align: center; border-left: 1px dashed #330066;"><a href="epatch/index.html">Patching with epatch</a> â</td> >+ </tr> >+ </table> >+ </div> >+ <div class="document"> >+<h1>src_prepare</h1> >+<table> >+ <tr> >+ <td class="devbook"><b>Function</b></td> >+ <td class="devbook"><code class="docutils literal"><span class="pre">src_prepare</span></code></td> >+ </tr> >+ <tr> >+ <td class="devbook"><b>Purpose</b></td> >+ <td class="devbook">patch and fix unpacked source files.</td> >+ </tr> >+ <tr> >+ <td class="devbook"><b>Sandbox</b></td> >+ <td class="devbook">Enabled</td> >+ </tr> >+ <tr> >+ <td class="devbook"><b>Privilege</b></td> >+ <td class="devbook">user</td> >+ </tr> >+ <tr> >+ <td class="devbook"><b>Called for</b></td> >+ <td class="devbook">ebuild</td> >+ </tr> >+ <tr> >+ <td class="devbook"><b>EAPI</b></td> >+ <td class="devbook">2</td> >+ </tr> >+</table> >+<div class="section"><h2><a name="default-src_prepare" id="default-src_prepare">Default <code class="docutils literal"><span class="pre">src_prepare</span></code></a></h2> >+<pre><span class="Constant"><span class="Special">src_prepare()</span> <span class="PreProc">{</span> >+ <span class="Statement">return</span> >+<span class="PreProc">}</span> >+</span></pre> >+</div><div class="section"><h2><a name="sample-src_prepare" id="sample-src_prepare">Sample <code class="docutils literal"><span class="pre">src_prepare</span></code></a></h2> >+<pre><span class="Constant"><span class="Special">src_prepare()</span> <span class="PreProc">{</span> >+ <span class="Statement">epatch</span> <span class="Statement">"</span><span class="Identifier">${FILESDIR}</span>/<span class="Identifier">${PV}</span>/<span class="Identifier">${P}</span>-fix-bogosity.patch<span class="Statement">"</span> >+ <span class="Statement">use</span> pam <span class="Statement">&&</span> <span class="Statement">epatch</span> <span class="Statement">"</span><span class="Identifier">${FILESDIR}</span>/<span class="Identifier">${PV}</span>/<span class="Identifier">${P}</span>-pam.patch<span class="Statement">"</span> >+ >+ <span class="Statement">sed</span> -i -e 's/<span class="Statement">"</span>ispell<span class="Statement">"</span>/<span class="Statement">"</span>aspell<span class="Statement">"</span>/' src/defaults.h <span class="Statement">||</span> <span class="Statement">die</span> <span class="Statement">"</span>Sed failed!<span class="Statement">"</span> >+<span class="PreProc">}</span> >+</span></pre> >+</div><div class="section"><h2><a name="src_prepare-actions" id="src_prepare-actions"><code class="docutils literal"><span class="pre">src_prepare</span></code> Actions</a></h2> >+<p> >+The following subsections cover different topics which often occur when writing >+<code class="docutils literal"><span class="pre">src_prepare</span></code> functions. >+</p> >+ >+<ul><li><a class="reference" href="epatch/index.html">Patching with epatch</a></li><li><a class="reference" href="autopackage/index.html">Autopackage</a></li></ul> >+</div> >+ >+ >+ >+</div> >+ <div class="navbottom" style="text-align: center;"> >+ <table style="border-top: 1px dashed #330066; margin-left: auto; margin-right: auto; width: 100%;"> >+ <col width="33%" /> >+ <col width="34%" /> >+ <col width="33%" /> >+ <tr> >+ <td style="text-align: center; border-right: 1px dashed #330066;">â <a href="../src_unpack/other-formats/index.html">Other Archive Formats</a></td> >+ <td style="text-align: center;">â <a href="../index.html">Ebuild Functions</a> â</td> >+ <td style="text-align: center; border-left: 1px dashed #330066;"><a href="epatch/index.html">Patching with epatch</a> â</td> >+ </tr> >+ </table> >+ </div> >+ </div> >+ <div class="footer"> >+ <p><a href="http://validator.w3.org/check/referer"><img src="/icons/icon_mini-xhtml.png" alt="Valid XHTML 1.0" /></a><a href="http://jigsaw.w3.org/css-validator/check/referer"><img src="/icons/icon_mini-css.png" alt="Valid CSS" /></a><a href="http://www.gentoo.org/"><img src="/icons/icon_mini-gentoo.png" alt="Powered by Gentoo" /></a><a href="http://creativecommons.org/licenses/by-sa/2.0/"><img src="/icons/icon_mini-creativecommons.png" alt="Creative Commons License" /></a><img src="/icons/icon_mini-xml.png" alt="XML Powered!" /><br /><br /> >+ The text of this document is distributed under the <a href="http://creativecommons.org/licenses/by-sa/2.0/">Creative Commons Attribution-ShareAlike 2.0 License</a>. >+ </p> >+ </div> >+ </body> >+</html> >Index: ebuild-writing/eapi/text.xml >=================================================================== >--- ebuild-writing/eapi/text.xml (revision 149) >+++ ebuild-writing/eapi/text.xml (working copy) >@@ -301,7 +301,270 @@ > </body> > </section> > >+<section> >+<title>EAPI="3"</title> >+<body> > >+<subsection> >+<title>Helpers</title> >+<body> >+<ul> >+ <li> >+ <p><b>utilities die on their own, unless the nonfatal command is used</b></p> >+ <p> >+ <!-- TODO link auf fuunction-reference --> >+ ebuild functions all die on their own in EAPI=3. In case that this >+ non-zero exit status is expected, you may call <c>nonfatal function >+ [arg,...]</c>. >+ </p> >+ <p>Example:</p> >+ <codesample lang="ebuild"> >+EAPI=1 >+... >+src_install() { >+ emake DESTDIR="${D}" install || die "make install failed" >+ dodoc ChangeLog README >+} >+ </codesample> >+ <codesample lang="ebuild"> >+EAPI=3 >+... >+src_install() { >+ emake DESTDIR="${D}" install >+ nonfatal dodoc ChangeLog README >+} >+ </codesample> >+ </li> >+ <li> >+ <p><b>recursive dodoc</b></p> >+ <p> >+ <c>dodoc</c> supports <c>-r</c> as the first argument, which leads >+ <c>dodoc</c> to install the specified documentation directory >+ recursively into the docdir. >+ </p> >+ <p>Example:</p> >+ <codesample lang="ebuild"> >+src_install() { >+ default >+ dodoc ChangeLog >+ dodoc -r doc/ >+} >+ </codesample> >+ </li> >+ <li> >+ <p><b>doins symlink supports</b></p> >+ <p> >+ withing EAPI=3, <c>doins</c> supports to install symlinks as symlinks >+ when installing recursively. For older EAPIs, the symlink behaviour >+ is undefined. >+ </p> >+ </li> >+ <li> >+ <p><b>dosed and dohard are banned</b></p> >+ <p> >+ <c>dosed</c> and <c>dohard</c> commands are banned in this EAPI. >+ </p> >+ </li> >+ <li> >+ <p><b>unpack supports .xz and .tar.xz</b></p> >+ <p> >+ The <c>unpack</c> command supports xz-archives and xz-compressed tar >+ files. Please note that the ebuilds must ensure that >+ <c>app-arch/xz-utils</c> are installed. >+ </p> >+ </li> >+ <li> >+ <p><b>econf adds --disable-dependency-tracking</b></p> >+ <p> >+ Withing EAPI=3, <c>econf</c> adds >+ <c>--disable-dependency-tracking</c> to the default configure >+ options. >+ </p> >+ </li> >+ <li> >+ <p><b>controllable compression via docompress</b></p> >+ <p> >+ to compress files in the destination-folder <c>${D}</c>, the >+ <c>docompress</c> command may be used (in <c>src_install</c>, after >+ the target files are in <c>${D}</c>). >+ to control which items should be compressed and which shouldn't >+ be compressed, you may include and exclude directories. the default >+ inclusion list contains >+ <ul> >+ <li><c>/usr/share/doc</c></li> >+ <li><c>/usr/share/info</c></li> >+ <li><c>/usr/share/man</c></li> >+ </ul> >+ the default exclusion list contains >+ <ul> >+ <li><c>/usr/share/doc/${PF}/html</c></li> >+ </ul> >+ when a directory is in- or excluded, all files and directories in the >+ given directories shall be added to the corresponding list. if a >+ file is in- or excluded, the file shall be added to the corresponding >+ list (exclusion is stronger than inclusion - if a file is in both >+ lists, the inclusion will be ignored). if a non-existing file or >+ directory is given, it will be ignored. >+ if the first argument of <c>docompress</c> is <c>-x</c>, the item >+ specified will be added to the exclusion list, otherwise it will be >+ added to the inclusion list. >+ </p> >+ </li> >+</ul> > </body> >+</subsection> >+ >+<subsection> >+<title>Metadata</title> >+<body> >+<ul> >+ <li> >+ <p><b>slot operator dependencies</b></p> >+ <p> >+ an operator slot dependency contains of a colon followed by einer a >+ '<c>*</c>' or '<c>=</c>': >+ <ul> >+ <li><c>*</c> means that any slot of the given package is >+ acceptable. additional for runtime-dependencies is that the >+ current package will not break, when the given package is replaced >+ by a different slot.</li> >+ <li><c>=</c> means that any slot of the given package is >+ acceptable. but unlike above (<c>*</c>), for runtime-dependencies >+ it will break if the slot of the given package and the current >+ package do not match.</li> >+ </ul> >+ </p> >+ </li> >+ <li> >+ <p><b>use dependencies default</b></p> >+ <p> >+ additional to the use-deps specified in EAPI=2, a <c>(+)</c> or >+ <c>(-)</c> may be added to the use-dep to define a default-value in >+ case the use-flag does not exist in the given packge. the <c>(+)</c> >+ means that this use-flag is assumed to be enabled, the <c>(-)</c> the >+ opposite. >+ example: >+ <codesample lang="ebuild"> >+DEPEND=" >+ >=dev-libs/boost-1.32[boost(+)] >+ sys-devel/gcc[openmp(-)]" >+ </codesample> >+ </p> >+ </li> >+</ul> >+</body> >+</subsection> >+ >+<subsection> >+<title>Phases</title> >+<body> >+<ul> >+ <li> >+ <p><b>new pkg_pretend phase</b></p> >+ <p> >+ the new <c>pkg_pretend</c> phase can be used to do sanity checks >+ before the main phase function sequence is run (meaning this phase is >+ executed after the package manager has calculated the dependencies >+ and before installing them). >+ This phase typically checks for a kernel configuration and may >+ <c>eerror</c> and <c>die</c> when needed. >+ <important> >+ There is no guarantee that the ebuild's dependencies are installed >+ when this phase is called. >+ </important> >+ <important> >+ As <c>pkg_pretend</c> is not called in the main phase function >+ sequence, environment saving is not guaranteed. >+ </important> >+ </p> >+ <p>Example:</p> >+ <codesample lang="ebuild"> >+# Copyright 1999-2009 Gentoo Foundation >+# Distributed under the terms of the GNU General Public License v2 >+# $Header: $ >+ >+EAPI="3" >+inherit linux-info >+... >+ >+pkg_pretend() { >+ if use kernel_linux ; then >+ if [[ -e "${ROOT}"/usr/src/linux/.config ]] ; then >+ if kernel_is lt 2 6 30 ; then >+ CONFIG_CHECK="FUSE_FS" >+ FUSE_FS_ERROR="this is an unrealistic testcase..." >+ check_extra_config >+ fi >+ fi >+ fi >+} >+ </codesample> >+ </li> >+ <li> >+ <p><b>default src_install is no longer a non-op</b></p> >+ <p> >+ the default implementation of <c>src_install</c> is no longer a >+ non-op in EAPI=3: >+ </p> >+ <codesample lang="ebuild"> >+src_install() { >+ if [[ -f Makefile ]] || [[ -f GNUmakefile]] || [[ -f makefile ]] ; then >+ emake DESTDIR="${D}" install >+ fi >+ >+ if ! declare -p DOCS >/dev/null 2>&1 ; then >+ local d >+ for d in README* ChangeLog AUTHORS NEWS TODO CHANGES THANKS BUGS \ >+ FAQ CREDITS CHANGELOG ; do >+ [[ -s "${d}" ]] && dodoc "${d}" >+ done >+ # TODO: wrong "declare -a" command... >+ elif declare -p DOCS | grep -q `^declare -a` ; then >+ dodoc "${DOCS[@]}" >+ else >+ dodoc ${DOCS} >+ fi >+} >+ </codesample> >+ </li> >+ <li> >+ <p><b>pkg_info for non-installed packages</b></p> >+ <p> >+ the <c>pkg_info</c> function may also be called by the >+ package-manager for non-installed packages. >+ the ebuild writers should note, that dependencies may not be >+ available. >+ </p> >+ </li> >+</ul> >+</body> >+</subsection> >+ >+<subsection> >+<title>Variables</title> >+<body> >+<ul> >+ <li> >+ <p><b>AA and KV variables are gone</b></p> >+ <p> >+ the <c>${AA}</c> and <c>${KV}</c> variables are no longer set in >+ EAPI=3. >+ </p> >+ </li> >+ <li> >+ <p><b>no more RDEPEND="${DEPEND}"</b></p> >+ <p> >+ when <c>RDEPEND</c> is unset, there will no longer be an automatic >+ assignement of <c>RDEPEND="${DEPEND}"</c>. >+ </p> >+ </li> >+</ul> >+</body> >+</subsection> >+ >+</body> >+</section> >+ >+</body> > </chapter> > </guide>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 275551
: 195838