This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug releng/21435] New: convenience groupadd for the make install target
- From: "mcermak at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Wed, 26 Apr 2017 11:23:04 +0000
- Subject: [Bug releng/21435] New: convenience groupadd for the make install target
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=21435
Bug ID: 21435
Summary: convenience groupadd for the make install target
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: releng
Assignee: systemtap at sourceware dot org
Reporter: mcermak at redhat dot com
Target Milestone: ---
Created attachment 10022
--> https://sourceware.org/bugzilla/attachment.cgi?id=10022&action=edit
possible patch
When stap gets built and installed from source on a freshly provisioned system,
where the 'stapusr' group doesn't exist, the installation fails:
=======
$ sudo make install
[ ... ]
make[3]: Entering directory '/root/build/stapbpf'
make[4]: Entering directory '/root/build/stapbpf'
/usr/bin/mkdir -p '/usr/local/bin'
/usr/bin/install -c stapbpf '/usr/local/bin'
make install-exec-hook
make[5]: Entering directory '/root/build/stapbpf'
if [ `id -u` -eq 0 ]; then \
getent group stapusr >/dev/null \
&& chgrp stapusr "/usr/local/bin/stapbpf" \
&& chmod 04110 "/usr/local/bin/stapbpf"; \
fi
Makefile:757: recipe for target 'install-exec-hook' failed
make[5]: *** [install-exec-hook] Error 2
make[5]: Leaving directory '/root/build/stapbpf'
Makefile:692: recipe for target 'install-exec-am' failed
make[4]: *** [install-exec-am] Error 2
make[4]: Leaving directory '/root/build/stapbpf'
Makefile:636: recipe for target 'install-am' failed
make[3]: *** [install-am] Error 2
make[3]: Leaving directory '/root/build/stapbpf'
Makefile:630: recipe for target 'install' failed
make[2]: *** [install] Error 2
make[2]: Leaving directory '/root/build/stapbpf'
Makefile:1966: recipe for target 'install-recursive' failed
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory '/root/build'
Makefile:2207: recipe for target 'install' failed
make: *** [install] Error 2
$
=======
Attached patch mimics the behavior of systemtap.spec, and makes this use case
convenient.
--
You are receiving this mail because:
You are the assignee for the bug.