Bug 229583 - policycoreutils fail to install cleanly
policycoreutils fail to install cleanly
Status: CLOSED CURRENTRELEASE
Product: Fedora
Classification: Fedora
Component: policycoreutils (Show other bugs)
rawhide
All Linux
medium Severity medium
: ---
: ---
Assigned To: Daniel Walsh
Ben Levenson
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-02-21 16:44 EST by Michal Jaegermann
Modified: 2008-01-21 10:52 EST (History)
2 users (show)

See Also:
Fixed In Version: Current
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-01-21 10:52:13 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Michal Jaegermann 2007-02-21 16:44:16 EST
Description of problem:

This is a fragment of yum output from the last update:

  Updating  : policycoreutils              ####################### [12/93]
error: %post(policycoreutils-2.0.2-3.fc7.x86_64) scriptlet failed, exit status 1

This results in multiple policycoreutils packages left in
an installation with all associated headaches.

A check what is in this %post script reveals that 'sepolgen-ifgen'
runs into troubles:

# /usr/bin/sepolgen-ifgen
error parsing headers
could not find support macros (obj_perm_sets.spt)

This was on x86_64 installation if that is indeed relevant here.

Version-Release number of selected component (if applicable):
policycoreutils-2.0.2-3.fc7

How reproducible:
always
Comment 1 Daniel Walsh 2007-02-22 12:45:04 EST
Fixed in policycoreutils-2.0.3-2
Comment 2 Tom London 2007-08-26 14:22:49 EDT
Am getting this:

  Updating  : policycoreutils              ####################### [ 6/48] 
/var/tmp/rpm-tmp.23358: line 2: /usr/sbin/sepolgen-ifgen: No such file or directory
  Updating  : pam_ccreds

for the past few updates:
[root@localhost ~]# rpm -q policycoreutils
policycoreutils-2.0.25-3.fc8
[root@localhost ~]# 


Isn't sepolgen-ifgen in /usr/bin (not /usr/sbin)?

postinstall script refers to /usr/sbin/sepolgen-ifgen:
[root@localhost ~]# rpm -q --scripts policycoreutils
postinstall scriptlet (using /bin/sh):
/sbin/chkconfig --add restorecond
[ -f /usr/share/selinux/devel/include/build.conf ] && /usr/sbin/sepolgen-ifgen 
> /dev/null 
/usr/bin/sepolgen-ifgen  > /dev/null
exit 0
preuninstall scriptlet (using /bin/sh):
if [ $1 -eq 0 ]; then
   /sbin/service restorecond stop > /dev/null 2>&1
   /sbin/chkconfig --del restorecond
fi
postuninstall scriptlet (using /bin/sh):
if [ "$1" -ge "1" ]; then 
   [ -x /sbin/service ] && /sbin/service restorecond condrestart  > /dev/null
fi
[root@localhost ~]# 

Comment 3 Daniel Walsh 2007-08-27 09:24:53 EDT
Yes, it is now.

Fixed in policycoreutils-2.0.25-4.fc8

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