I am regularly asked where to file bugs for various pieces of
the OS - even before we had two bug trackers, the mapping of
software to bugster categories was non-obvious for many components,
and even today, many engineers end up having to find the source
code for a component, then checking the scm history to lookup
previous commits to see where they were filed.

For end-users, it's much harder, and we often get completely junk
categories picked by users filing bugs in bugs.opensolaris.org and
defect.opensolaris.org as a result.

I know JDS already has this data in their spec files, and SFW in
their metadata files - exporting from there to pkg manifests should
make it easier for bug reports to get from users to developers &
maintainers - the package manager gui could even offer links to
open the web browser with the right links to search & file bugs.
(Though for that it would either need a database of bug trackers,
 or an additional field such as info.defect_tracker.type=bugzilla
 to know how to form the proper URL's.)

I propose we define these attributes (to be added to 
doc/tags-and-attributes.txt):

   info.defect_tracker.url
        URL of a defect tracking system for this package

   info.defect_tracker.category
        One or more categorization tuples for the listed
        defect tracking system for the software in this package.
        May be as specific or generic as needed to incorporate
        the software in this package.

   info.upstream_defect_tracker.url
        URL of a defect tracking system for the upstream
        software incorporated in this package.

   info.upstream_defect_tracker.category
        One or more categorization tuples for the listed
        upstream defect tracking system for the software.

Examples would be:

pkg:/package/pkg
   set name=info.defect_tracker.url \
        value=https://defect.opensolaris.org/
   set name=info.defect_tracker.category \
        value=Development/pkg

pkg:/package/pkg/package-manager
   set name=info.defect_tracker.url \
        value=https://defect.opensolaris.org/
   set name=info.defect_tracker.category \
        value=Development/pkg/gui

pkg:/system/kernel
   set name=info.defect_tracker.url \
        value=http://bugs.opensolaris.org/
   set name=info.defect_tracker.category \
        value=solaris/kernel value=solaris/driver

pkg:/SUNWcs
   set name=info.defect_tracker.url \
        value=http://bugs.opensolaris.org/
   set name=info.defect_tracker.category \
        value=solaris/utility
   file usr/has/bin/sh info.defect_tracker.category=solaris/shell/bourne
   file usr/bin/csh info.defect_tracker.category=solaris/shell/cshell
   file usr/bin/ksh93 info.defect_tracker.category=solaris/shell/korn93

pkg:/x11/server/xorg
   set name=info.defect_tracker.url \
        value=http://bugs.opensolaris.org/
   set name=info.defect_tracker.category \
        value=solaris/xserver/xorg-server
   set name=info.upstream_defect_tracker.url \
        value=https://bugs.freedesktop.org/
   set name=info.upstream_defect_tracker.category \
        value=xorg/Server/general value=xorg/DDX/xorg

pkg:/developer/gnome/gettext
   set name=info.defect_tracker.url \
        value=http://defect.opensolaris.org/
   set name=info.defect_tracker.category \
        value=development/gnome/libraries
   set name=info.keyword value=pkg-config \
        info.upstream_defect_tracker.url=https://bugs.freedesktop.org/ \
        info.upstream_defect_tracker.category=pkg-config
   set name=info.keyword value=intltool \
        info.upstream_defect_tracker.url=https://bugs.launchpad.net/intltool
   set name=info.keyword value=gnome-common \
        info.upstream_defect_tracker.url=https://bugzilla.gnome.org/ \
info.upstream_defect_tracker.category="classification=Other;product=gnome-common"


-- 
        -Alan Coopersmith-        [email protected]
         Oracle Solaris Platform Engineering: X Window System

_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to