This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug runtime/5705] Need more descriptive error messages on non-root systemtap invocation
- From: "dsmith at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 4 Feb 2008 15:06:18 -0000
- Subject: [Bug runtime/5705] Need more descriptive error messages on non-root systemtap invocation
- References: <20080201083922.5705.ananth@in.ibm.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From dsmith at redhat dot com 2008-02-04 15:06 -------
(In reply to comment #2)
> Looks good.
> If one can find in e.g. the fedora packaging guidelines
> information to the effect of creating new groups during
> .rpm installation, we can plop such code into a new
> -runtime RPM %post piece.
The fedora packaging guidelines for creating users and groups is located here:
<http://fedoraproject.org/wiki/Packaging/UsersAndGroups?highlight=%28Packaging%29>
The systemtap spec file already follows the latest fedora packaging guidelines
and creates the groups at install time. This functionality was added on
2007-08-14. It is done in the %pre section, like this:
%pre
getent group stapdev >/dev/null || groupadd -r stapdev
getent group stapusr >/dev/null || groupadd -r stapusr
exit 0
However, after thinking about it. This needs to be done for the
systemtap-runtime rpm, not the main systemtap rpm. So, the %pre section has
been moved to the systemtap-runtime rpm.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=5705
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.