Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 252903 - app-portage/gentoolkit should recongnize the restrict attribure in the maintainer field
Summary: app-portage/gentoolkit should recongnize the restrict attribure in the mainta...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 237964
  Show dependency tree
 
Reported: 2008-12-29 01:00 UTC by Jeremy Olexa (darkside) (RETIRED)
Modified: 2010-02-19 15:19 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-12-29 01:00:38 UTC
Hello,
It would be nice if epkginfo recognized the restrict attribute in metadata.xml.

An example of how it is not exactly desired is below:

%% epkginfo gcc
Package: sys-devel/gcc
Herd: toolchain
Maintainer: anant@gentoo.org
Location: /usr/portage/sys-devel/gcc

%% cat /usr/portage/sys-devel/gcc/metadata.xml 
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>toolchain</herd>
<maintainer restrict="the D language addon">
 <email>anant@gentoo.org</email>
</maintainer>

Thanks for looking =)
Comment 1 Douglas Anderson 2008-12-29 03:49:48 UTC
It's already implemented ;) It'll hopefully be in the next major release of gentoolkit as `equery meta'

dja@vault trunk $ ./equery.py meta gcc
 * sys-devel/gcc 
Herd:        toolchain
Maintainer:  (for the D language addon)
             anant@gentoo.org
Upstream:    None specified
Description: None specified

[...]
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-12-29 04:05:58 UTC
(In reply to comment #1)
> It's already implemented ;) It'll hopefully be in the next major release of
> gentoolkit as `equery meta'
> 
> dja@vault trunk $ ./equery.py meta gcc
>  * sys-devel/gcc 
> Herd:        toolchain
> Maintainer:  (for the D language addon)
>              anant@gentoo.org
> Upstream:    None specified
> Description: None specified
> 
> [...]
> 

Oh cool. How does it handle net-p2p/rtorrent. In my case, I don't want to be on bugs unless it involves the init scripts.
%% cat /usr/portage/net-p2p/rtorrent/metadata.xml
<maintainer>
        <email>darkside@gentoo.org</email>
        <description>Only CC on bugs regarding the init script.</description>
</maintainer>

I guess I could edit the metadata to have a restrict attribute too..
Comment 3 Douglas Anderson 2008-12-29 04:34:45 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > It's already implemented ;) It'll hopefully be in the next major release of
> > gentoolkit as `equery meta'
> > 
> > dja@vault trunk $ ./equery.py meta gcc
> >  * sys-devel/gcc 
> > Herd:        toolchain
> > Maintainer:  (for the D language addon)
> >              anant@gentoo.org
> > Upstream:    None specified
> > Description: None specified
> > 
> > [...]
> > 
> 
> Oh cool. How does it handle net-p2p/rtorrent. In my case, I don't want to be on
> bugs unless it involves the init scripts.
> %% cat /usr/portage/net-p2p/rtorrent/metadata.xml
> <maintainer>
>         <email>darkside@gentoo.org</email>
>         <description>Only CC on bugs regarding the init script.</description>
> </maintainer>
> 
> I guess I could edit the metadata to have a restrict attribute too..
> 

Does this look OK?

dja@vault trunk $ ./equery.py meta rtorrent
 * net-p2p/rtorrent 
Herd:        no-herd
Maintainer:  loki_val@gentoo.org
             Peter Alfredsen
             I've changed too much to avoid adding myself

             drizzt@gentoo.org
             Timothy Redaelli
             Secondary Maintainer

             darkside@gentoo.org
             Only CC on bugs regarding the init script.
Upstream:    None specified
Description: Console BitTorrent client using ncurses based on libtorrent
             written in C++.
USE flags:   daemon
             Uses app-misc/screen to daemonize this application"  
Comment 4 Douglas Anderson 2008-12-29 04:37:58 UTC
> USE flags:   daemon
>              Uses app-misc/screen to daemonize this application"  

That extra quotation mark at the end is in the metadata file :)

Comment 5 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-12-31 03:48:30 UTC
yah, that is great. I'll let you decide how to handle this bug, resolve if you want.
Comment 6 Paul Varner (RETIRED) gentoo-dev 2010-01-07 20:01:24 UTC
This is not working in gentoolkit-0.3.0_rc8

# cd /usr/portage; fgrep "maintainer restrict" */*/metadata.xml
net-firewall/iptables/metadata.xml:<maintainer restrict="imq and l7filter extensions">
...

# equery meta --maintainer iptables
 * net-firewall/iptables [portage]
pva@gentoo.org
# equery meta iptables
 * net-firewall/iptables [portage]
Herd:        base-system (base-system@gentoo.org)
Maintainer:  pva@gentoo.org
Upstream:    None specified
Location:    /usr/portage/net-firewall/iptables
Keywords:    1.4.3.2:0: alpha amd64 arm hppa ia64 m68k ppc ppc64 s390 sh sparc x86
Keywords:    1.4.5:0:
Keywords:    1.4.6:0: ~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86
# equery meta --xml iptables
 * net-firewall/iptables [portage]
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>base-system</herd>
<maintainer restrict="imq and l7filter extensions">
        <email>pva@gentoo.org</email>
</maintainer>
<longdescription>
  iptables is the userspace command line program used to set up, maintain, and
  inspect the tables of IPv4 packet filter rules in the Linux kernel. It's a
  part of packet filtering framework which allows the stateless and stateful
  packet filtering, all kinds of network address and port translation, and is a
  flexible and extensible infrastructure with multiple layers of API's for 3rd
  party extensions. The iptables package also includes ip6tables. ip6tables is
  used for configuring the IPv6 packet filter.

  Note that some extensions (e.g. imq and l7filter) are not included into
  official kernel sources so you have to patch the sources before installation.
</longdescription>
</pkgmetadata>
Comment 7 Douglas Anderson 2010-01-17 07:16:02 UTC
(In reply to comment #6)
> This is not working in gentoolkit-0.3.0_rc8

Fixed in genscripts repo r148. Please merge.
Comment 8 Paul Varner (RETIRED) gentoo-dev 2010-02-19 15:19:13 UTC
Released in gentoolkit-0.3.0_rc9