Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 137138 Details for
Bug 199788
GLEP56: metadata DTD updates for USE flag descriptions & validate metadata.xml at commit
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
With minor formatting fixes
hb-guide-metadata.xml.patch (text/plain), 12.40 KB, created by
Xavier Neys (RETIRED)
on 2007-11-27 17:34:33 UTC
(
hide
)
Description:
With minor formatting fixes
Filename:
MIME Type:
Creator:
Xavier Neys (RETIRED)
Created:
2007-11-27 17:34:33 UTC
Size:
12.40 KB
patch
obsolete
>Index: hb-guide-metadata.xml >=================================================================== >RCS file: /var/cvsroot/gentoo/xml/htdocs/proj/en/devrel/handbook/hb-guide-metadata.xml,v >retrieving revision 1.9 >diff -u -u -r1.9 hb-guide-metadata.xml >--- hb-guide-metadata.xml 31 Jul 2007 18:00:22 -0000 1.9 >+++ hb-guide-metadata.xml 27 Nov 2007 17:33:01 -0000 >@@ -10,8 +10,8 @@ > --> > > <sections> >-<version>1.0.4</version> >-<date>2007-07-31</date> >+<version>1.0.5</version> >+<date>2007-11-27</date> > > <section> > <title>Why the need for metadata.xml?</title> >@@ -19,14 +19,14 @@ > <body> > > <p> >-The <c>metadata.xml</c> file has as its purpose to give extra information about >-ebuilds. The <c>metadata.xml</c> file should exist in every package directory. >-A skel file can be found as <c>skel.metadata.xml</c> in the portage tree. >+The <path>metadata.xml</path> file has as its purpose to give extra information about >+ebuilds. The <path>metadata.xml</path> file should exist in every package directory. >+A skel file can be found as <path>skel.metadata.xml</path> in the root of the portage tree. > </p> > > <note> >-Please run <c>xmllint --valid metadata.xml</c> before committing a >-<c>metadata.xml</c> file. We hope to add support for <c>metadata.xml</c> to >+Please run <c>xmllint --valid --noout metadata.xml</c> before committing a >+<path>metadata.xml</path> file. We hope to add support for <path>metadata.xml</path> to > repoman soon. > </note> > >@@ -40,7 +40,7 @@ > <body> > > <p> >-A <c>metadata.xml</c> file can contain a number of tags: >+A <path>metadata.xml</path> file can contain a number of tags: > </p> > > <table> >@@ -53,10 +53,10 @@ > <brite><pkgmetadata></brite> > </ti> > <ti> >- This is the root element of the metadata.xml file for packages. It has >- no attributes. Its required subtag is: <brite><herd></brite>. >- Furthermore, the following subtags are allowed: <brite><email></brite> >- for a general herd email address, <brite><maintainer></brite>, and >+ This is the root element of the <path>metadata.xml</path> file for packages. It has >+ no attributes. Its required subtag is: <brite><herd></brite>. >+ Furthermore, the following subtags are allowed: <brite><email></brite> >+ for a general herd email address, <brite><maintainer></brite>, and > <brite><longdescription></brite>. > </ti> > </tr> >@@ -65,10 +65,10 @@ > <brite><catmetadata></brite> > </ti> > <ti> >- This is the root element of the metadata.xml file for categories as per >- <uri link="/proj/en/glep/glep-0034.html">GLEP 34</uri>. It has >- no attributes. It contains a number of >- <brite><longdescription></brite> tags, each for a different >+ This is the root element of the <path>metadata.xml</path> file for categories as per >+ <uri link="/proj/en/glep/glep-0034.html">GLEP 34</uri>. It has >+ no attributes. It contains a number of >+ <brite><longdescription></brite> tags, each for a different > language. > </ti> > </tr> >@@ -78,7 +78,7 @@ > </ti> > <ti> > There must at least be one herd subtag. The contents of this tag must be >- the name of a herd as specified in the <uri >+ the name of a herd as specified in the <uri > link="http://sources.gentoo.org/viewcvs.py/*checkout*/gentoo/xml/htdocs/proj/en/metastructure/herds/herds.xml?content-type=text/plain&rev=HEAD">herds.xml</uri> > file or the "no-herd" herd. It must occur at least once. > </ti> >@@ -88,9 +88,9 @@ > <brite><maintainer></brite> > </ti> > <ti> >- Besides being member of a herd, a package can also be maintained directly. >- The maintainers of a package can be specified with the >- <brite><maintainer></brite> tag. This tag has one required subtag: >+ Besides being member of a herd, a package can also be maintained directly. >+ The maintainers of a package can be specified with the >+ <brite><maintainer></brite> tag. This tag has one required subtag: > <brite><email></brite>. It has two optional subtags: > <brite><name></brite>, and <brite><description></brite>. > </ti> >@@ -110,16 +110,42 @@ > <tr> > <ti><brite><description></brite></ti> > <ti> >- The description tag contains a description of the maintainership, or for >- example a remark that someone interested can take over the maintainership. >+ The description tag contains a description of the maintainership, or for >+ example a remark that someone interested can take over the maintainership. > It is optional. > </ti> > </tr> > <tr> > <ti><brite><longdescription></brite></ti> > <ti> >- This tag contains a description of the package. This is to augment the >- DESCRIPTION field in the ebuilds themselves. >+ This tag contains a description of the package. This is to augment the >+ DESCRIPTION field in the ebuilds themselves. This tag has one optional >+ subtag: <brite><pkg></brite>. >+ </ti> >+</tr> >+<tr> >+ <ti><brite><use></brite></ti> >+ <ti> >+ This tag contains descriptions of <uri >+ link="/doc/en/handbook/handbook-x86.xml?part=2&chap=2">USE flags</uri>. >+ This tag is optional and, if specified, has one required subtag: >+ <brite><flag></brite>. >+ </ti> >+</tr> >+<tr> >+ <ti><brite><flag></brite></ti> >+ <ti> >+ This tag contains a description of how the named USE flag affects this >+ package. It is required if the <brite><use></brite> tag is specified. >+ It also requires the USE flag to be named in the <c>name</c> attribute. >+ This tag has one optional subtag: <brite><pkg></brite>. >+ </ti> >+</tr> >+<tr> >+ <ti><brite><pkg></brite></ti> >+ <ti> >+ This tag contains a package name in the format of category/package. For >+ example, <c><pkg>sys-apps/hal</pkg></c>. > </ti> > </tr> > </table> >@@ -138,7 +164,8 @@ > <tr> > <ti>lang</ti> > <ti> >- <brite><description></brite>, <brite><longdescription></brite> >+ <brite><description></brite>, <brite><longdescription></brite>, >+ <brite><use></brite> > </ti> > <ti> > In every case where a description is required, there must be at >@@ -152,21 +179,34 @@ > <tr> > <ti>restrict</ti> > <ti> >- <brite><herd></brite>, <brite><maintainer></brite>, >- <brite><longdescription></brite> >+ <brite><herd></brite>, <brite><maintainer></brite>, >+ <brite><longdescription></brite>, <brite><flag></brite> > </ti> > <ti> >- The restrict attribute allows to restrict the application of certain tags >- to certain versions of a package. When this attribute is used, a tag >- without this attribute must also exist. That tag without the restrict >- attribute will serve as the default. The format of the restrict attribute >- is that of the DEPEND flag, except that "<" and >+ The restrict attribute allows to restrict the application of certain tags >+ to certain versions of a package. When this attribute is used, a tag >+ without this attribute must also exist. That tag without the restrict >+ attribute will serve as the default. The format of the restrict attribute >+ is that of the DEPEND flag, except that "<" and > ">" need to be specified by &lt; and &gt;.<br /> > <br /> >- For example in the db package >- <c>restrict="&gt;=sys-libs/db-3.2.9-r5"</c> >- on the maintainer tag shows that I'm currently maintaining all versions >- bigger then 3.2.9-r5. >+ For example in the <c>sys-libs/db</c> package, >+ <c>restrict=">=sys-libs/db-3.2.9-r5"</c> on the >+ <brite><maintainer></brite> tag shows that I'm currently maintaining >+ all versions greater than <c>3.2.9-r5</c>. >+ </ti> >+</tr> >+<tr> >+ <ti>name</ti> >+ <ti> >+ <brite><name></brite> >+ </ti> >+ <ti> >+ This attribute is required on the <brite><flag></brite> tag. It >+ simply contains the USE flag. >+ <br /><br /> >+ For example in the sys-apps/hal package, <c><flag name='acpi'>Enables >+ ACPI (longer description in the actual file)</flag></c> > </ti> > </tr> > </table> >@@ -182,7 +222,7 @@ > <body> > > <p> >-In this first example we provide you with the <path>metadata.xml</path> for >+In this first example we provide you with the <path>metadata.xml</path> for > OpenOffice of which the ebuilds are completely managed by a herd called > <c>openoffice</c>: > </p> >@@ -222,12 +262,13 @@ > </pre> > > <p> >-If you want to add (or remove) yourself from a herd, edit <path>herds.xml</path> >-located in <path>[gentoo]/xml/htdocs/proj/en/metastructure/herds</path> in Gentoo's CVS repository. Make sure you >-know the e-mail alias the herd listens to (for instance the "sound" herd has >-<mail link="sound@gentoo.org">sound@gentoo.org</mail>) and add yourself to the >-alias (by editing <path>/var/mail/alias/misc/<alias name></path> on >-dev.gentoo.org). >+If you want to add (or remove) yourself from a herd, edit >+<path>herds.xml</path> located in >+<path>[gentoo]/xml/htdocs/proj/en/metastructure/herds</path> in Gentoo's CVS >+repository. Make sure you know the e-mail alias the herd listens to (for >+instance the "sound" herd has <mail>sound@gentoo.org</mail>) and add yourself >+to the alias (by editing <path>/var/mail/alias/misc/<alias name></path> >+on dev.gentoo.org). > </p> > > </body> >@@ -237,9 +278,9 @@ > <body> > > <p> >-As second example we view the <path>metadata.xml</path> of <c>mirrorselect</c>. >-This ebuild is maintained by the <c>tools-portage</c> herd, but has a separate >-maintainer. >+For the second example, we view the <path>metadata.xml</path> of >+<c>app-portage/mirrorselect</c>. This ebuild is maintained by the >+<c>tools-portage</c> herd, but has a separate maintainer. > </p> > > <pre caption="Herd & individually maintained package"> >@@ -260,5 +301,62 @@ > > </body> > </subsection> >+<subsection> >+<title>Third Example</title> >+<body> >+ >+<p> >+For the third example, we will describe the <path>metadata.xml</path> of >+<c>sys-apps/hal</c>. This ebuild is maintained by the <c>gentopia</c> herd >+and contains USE flag descriptions. >+</p> >+ >+<pre caption="USE flag descriptions"> >+<?xml version="1.0" encoding="UTF-8"?> >+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> >+<pkgmetadata> >+<herd>gentopia</herd> >+<maintainer> >+ <email>cardoe@gentoo.org</email> >+</maintainer> >+<maintainer> >+ <email>steev@gentoo.org</email> >+</maintainer> >+<maintainer> >+ <email>compnerd@gentoo.org</email> >+</maintainer> >+<use> >+ <flag name='acpi'>Enables HAL to attempt to read from /proc/acpi/event, if >+ unavailable, HAL will read events from <pkg>sys-power/acpid</pkg>. If >+ you need multiple acpi readers, ensure acpid is in your default >+ runlevel (rc-update add acpid default) along with HAL. This will also >+ enable HAL to read Toshiba and IBM acpi events which do not get sent >+ via /proc/acpi/event</flag> >+ <flag name='crypt'>Allows HAL to mount volumes that are encrypted using >+ LUKS. <pkg>sys-fs/cryptsetup-luks</pkg> which has recently been renamed >+ to <pkg>sys-fs/cryptsetup</pkg> allows you to create such encrypted >+ volumes. HAL will be able to handle volumes that are removable or >+ fixed.</flag> >+ <flag name='dell'>Builds an installs the Dell addon, which reads data from >+ the Dell SM BIOS via <pkg>sys-libs/libsmbios</pkg>. It will read your >+ service tag information and your hardware backlight data as well as >+ allow you to modify the backlight settings on a Dell laptop.</flag> >+ <flag name='disk-partition'>Allows HAL to use libparted from >+ <pkg>sys-apps/parted</pkg> to read raw partition data from your disks >+ and process that data. Future versions of HAL (possibly 0.5.11 and >+ higher) will allow you to create, modify, delete and format partitions >+ from a GUI interface agnostic of your desktop environment.</flag> >+ <flag name='doc'>Generates documentation that describes HAL's fdi >+ format.</flag> >+ <flag name='pcmcia'>Allows HAL to process PCMCIA/CardBus slot data which >+ includes inserts and removals and act on these events.</flag> >+ <flag name='selinux'>Installs SELinux policies and links HAL to the SELinux >+ libraries.</flag> >+</use> >+</pkgmetadata> >+</pre> >+ >+</body> >+</subsection> > </section> > </sections>
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 Raw
Actions:
View
Attachments on
bug 199788
:
136492
|
137127
|
137138
|
160085
|
160087
|
160144
|
160145
|
160377
|
160458
|
160472
|
160476