[af7e83]: README_PACKAGERS Maximize Restore History

Download this file

README_PACKAGERS    29 lines (22 with data), 1.2 kB

Building an RPM for OProfile

When building an RPM for OProfile, please follow the RPM packaging guidelines
described in:

Requirement for building a binary RPM package

OProfile requires the special user account "oprofile" to exist for purposes
of processing samples from JIT'ed code (e.g., Java applications).  The build
process is implemented to warn during 'configure' step and to fail and exit
during 'make install' step if the special user account does not exist.

When defining the spec file for the OProfile RPM, you should add the automatic
creation of the special "oprofile" user account.  Please refer to the URL
below for an example of how this can be done:

For example, the following commands would add the necessary user account:

   getent group oprofile >/dev/null || groupadd -r oprofile
   getent passwd oprofile >/dev/null || \
   useradd -r -g oprofile -d /home/oprofile -s /sbin/nologin \
       -c "Special user account to be used by OProfile" oprofile
   exit 0