RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 994457 - Build procps --with-systemd
Summary: Build procps --with-systemd
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: procps-ng
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Jaromír Cápík
QA Contact: BaseOS QE - Apps
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-07 10:36 UTC by Lukáš Nykrýn
Modified: 2016-02-01 01:58 UTC (History)
1 user (show)

Fixed In Version: procps-ng-3.3.8-11.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-08-08 19:11:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Lukáš Nykrýn 2013-08-07 10:36:13 UTC
Description of problem:
Procps-ng are able to obtain various information about processes through logind, but this feature is not enabled in rhel7.

Version-Release number of selected component (if applicable):
procps-ng-3.3.8


Actual results:
ps -A -o pid,unit
error: unknown user-defined format specifier "unit"

Expected results:
-bash-4.2# ps -A -o pid,unit
  PID UNIT
    1 -
   11 systemd-journald.service
   20 systemd-logind.service
   21 dbus.service
   24 session-67.scope
   26 session-67.scope
   62 session-67.scope


Patch:

diff --git a/procps-ng.spec b/procps-ng.spec
index 6214fe1..f3278aa 100644
--- a/procps-ng.spec
+++ b/procps-ng.spec
@@ -20,12 +20,14 @@ Patch5: procps-ng-3.3.8-RH-man-page-check.patch
 
 Requires(post): /sbin/ldconfig
 Requires(postun): /sbin/ldconfig
+Requires: systemd-libs
 
 BuildRequires: ncurses-devel
 BuildRequires: libtool
 BuildRequires: autoconf
 BuildRequires: automake
 BuildRequires: gettext-devel
+BuildRequires: systemd-devel
 
 %if %{tests_enabled}
 BuildRequires: dejagnu
@@ -100,7 +102,8 @@ autoreconf --verbose --force --install
             --disable-rpath \
             --enable-watch8bit \
             --enable-skill \
-            --enable-sigwinch
+            --enable-sigwinch \
+            --with-systemd
 
 
 make CFLAGS="%{optflags}"

Comment 2 Jaromír Cápík 2013-08-07 12:27:30 UTC
Ahoj Lukáši.

I'm gonna enable the feature in Fedora as well.
Thanks for the reminder.

Regards,
Jaromir.

Comment 3 Lukáš Nykrýn 2013-08-08 12:28:52 UTC
procps-ng-3.3.8-12.el7 works fine. Thanks!

Comment 4 Jaromír Cápík 2013-08-08 19:11:29 UTC
Thanks .... closing.


Note You need to log in before you can comment on or make changes to this bug.