This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug releng/21435] New: convenience groupadd for the make install target


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]