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 507609 - %pre scriptlet fails for xguest
Summary: %pre scriptlet fails for xguest
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: xguest
Version: 6.0
Hardware: All
OS: Linux
high
high
Target Milestone: beta
: ---
Assignee: Daniel Walsh
QA Contact: Milos Malik
URL:
Whiteboard:
: 530528 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-06-23 13:26 UTC by Alexander Todorov
Modified: 2010-07-02 20:54 UTC (History)
9 users (show)

Fixed In Version: xguest-1.0.8-5
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-07-02 20:54:24 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
rpm -ivvvh -p xguest-1.0.8-3.el6.noarch.rpm (5.22 KB, text/plain)
2010-03-02 10:48 UTC, Jan Stodola
no flags Details

Description Alexander Todorov 2009-06-23 13:26:12 UTC
Description of problem:
Error(s): Installing xguest-1.0.7-3.fc11.noarch
/usr/sbin/semanage: No such file or directoryerror: 
%pre(xguest-1.0.7-3.fc11.noarch) scriptlet failed, exit status 1
error:   install: %pre scriptlet failed (2), skipping xguest-1.0.7-3.fc11


Version-Release number of selected component (if applicable):
xguest-1.0.7-3.fc11.noarch

How reproducible:


Steps to Reproduce:
1. @everything installation
2.
3.
  
Actual results:


Expected results:


Additional info:
No xguest component in Bugzilla so filing against distribution

Comment 2 Daniel Walsh 2009-06-24 11:44:39 UTC
Fixed in xguest-1.0.7-5.fc12

Comment 3 releng-rhel@redhat.com 2009-10-28 15:51:05 UTC
Fixed in 'xguest-1.0.7-5.fc12'. 'xguest-1.0.7-6.el6' included in compose 'RHEL6.0-20091027.3'.
Moving to ON_QA.

Comment 5 Daniel Walsh 2009-11-11 15:02:21 UTC
I am currently looking at xguest-1.0.7-7.fc12  

# grep pre.*policycoreutils xguest.spec
Requires(pre): policycoreutils-sandbox

rpm -q --requires xguest
/bin/sh  
/bin/sh  
/bin/sh  
config(xguest) = 1.0.7-7.fc12
gdm >= 1:2.20.0-15.fc8
pam >= 0.99.8.1-17
policycoreutils-sandbox  
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
sabayon-apply  
selinux-policy > 3.6.3-12
selinux-policy-base  
rpmlib(PayloadIsXz) <= 5.2-1


rpm -q --requires policycoreutils-sandbox
/bin/bash  
/bin/sh  
/bin/sh  
/sbin/chkconfig  
libc.so.6()(64bit)  
libc.so.6(GLIBC_2.2.5)(64bit)  
libc.so.6(GLIBC_2.3.4)(64bit)  
libc.so.6(GLIBC_2.4)(64bit)  
libcap-ng.so.0()(64bit)  
libselinux.so.1()(64bit)  
matchbox-window-manager  
policycoreutils-python = 2.0.74-16.fc12
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rtld(GNU_HASH)  
xorg-x11-server-Xephyr  
rpmlib(PayloadIsXz) <= 5.2-1

rpm -qf /usr/sbin/semanage
policycoreutils-python-2.0.74-16.fc12.x86_64

Comment 6 Alexander Todorov 2009-12-09 18:03:10 UTC
*** Bug 530528 has been marked as a duplicate of this bug. ***

Comment 7 releng-rhel@redhat.com 2009-12-16 21:50:11 UTC
Fixed in 'xguest-1.0.7-7.fc12'. 'xguest-1.0.8-1.el6' included in compose 'RHEL6.0-20091216.nightly'.
Moving to ON_QA.

Comment 8 Miroslav Vadkerti 2010-02-09 22:08:21 UTC
Still failing in %post sriptlet in compose RHEL6.0-20100209.1:

Red Hat Enterprise Linux release 6.0 Beta (Santiago)
xguest-1.0.8-1.el6.noarch

Installing: xguest-.0.8-1.el6.noarch                                                              14/14 
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name userdb
Non-fatal POSTIN scriptlet failure in rpm package xguest-1.0.8-1.el6.noarch
warning: %post(xguest-1.0.8-1.el6.noarch) scriptlet failed, exit status 1

Installed:
  xguest.noarch 0:1.0.8-1.el6                                    

Flipping to assigned

Comment 9 Daniel Walsh 2010-02-10 18:33:50 UTC
Fixed in xguest-1.0.8-3.rhel6

Comment 11 Jan Stodola 2010-03-02 10:48:18 UTC
Created attachment 397295 [details]
rpm -ivvvh -p xguest-1.0.8-3.el6.noarch.rpm

Moving back to ASSIGNED, I see this bug when testing @everything install using RHEL6.0-20100226.5 build (s390x arch) with xguest-1.0.8-3.el6.noarch.rpm and policycoreutils-python-2.0.78-11.el6.s390x.

install.log:
...
Installing SDL-devel-1.2.13-11.el6.s390x
Installing xguest-1.0.8-3.el6.noarch
/usr/sbin/semanage: No such file or directory
error: %pre(xguest-1.0.8-3.el6.noarch) scriptlet failed, exit status 1

Manual installation in chroot also failed, see attachment.

This is what I get when running semanage manually:
sh-4.1# which semanage 
/usr/sbin/semanage
sh-4.1# semanage user -a -S targeted -P xguest -R xguest_r xguest_u
sh-4.1# semanage boolean -m -S targeted -F /dev/stdin
/usr/sbin/semanage: No such file or directory

Comment 13 Daniel Walsh 2010-03-02 14:15:25 UTC
I am not sure why this is not working.

xguest(pre) requires polycoreutils-sandbox Which requires policycoreutils-python which includes semanage?

Bill do you have any idea?

Comment 14 Marian Ganisin 2010-03-02 14:54:26 UTC
File /dev/stdin doesn't exist (in installation environment), this seems to be the cause:

# semanage boolean -m -S targeted -F /dev/stdin
/usr/sbin/semanage: No such file or directory
# touch dummy-file
# semanage boolean -m -S targeted -F dummy-file
# semanage boolean -m -S targeted -F fake-file
/usr/sbin/semanage: No such file or directory
# ls /dev/stdin fake-file dummy-file
ls: cannot access /dev/stdin: No such file or directory
ls: cannot access fake-file: No such file or directory
dummy-file

Comment 15 Daniel Walsh 2010-03-02 15:24:17 UTC
Thanks, I was totally reading this wrong...

If I change this to /proc/self/0, will it work?  Does this file exist?

Comment 16 Daniel Walsh 2010-03-02 15:42:16 UTC
I guess the bug might be, why doesn't /dev/stdin exist?

Comment 17 Daniel Walsh 2010-03-02 15:49:52 UTC
Fixed in xguest-1.0.8-4.el6

Although this might be covering up a different bug.

Comment 18 Bill Nottingham 2010-03-02 18:02:48 UTC
/dev/stdin is created by the start_udev wrapper script; udev is started without the wrapper by the installer.

Comment 23 Miroslav Vadkerti 2010-03-10 13:44:06 UTC
This still fails in xguest-1.0.8-4.rhel6 (dependecy missed?):

xguest-1.0.8-4.el6.noarch.rpm                                                                         |  38 kB     00:00     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Error in PREIN scriptlet in rpm package xguest-1.0.8-4.el6.noarch
/usr/sbin/semanage: No such file or directory
error: %pre(xguest-1.0.8-4.el6.noarch) scriptlet failed, exit status 1
error:   install: %pre scriptlet failed (2), skipping xguest-1.0.8-4.el6

Failed:
  xguest.noarch 0:1.0.8-4.el6                                                                                                
Complete!

Comment 24 Miroslav Vadkerti 2010-03-10 13:46:39 UTC
semanage is a part of policycoreutils-python

Comment 25 Daniel Walsh 2010-03-10 15:08:27 UTC
semanage is putting out a bogus error message that leads you to think the semanage package is not installed.

It is complaining about /proc/self/0  Which should have been /proc/self/fd/0
Fixed in xguest-1.0.8-5.el6

Comment 29 releng-rhel@redhat.com 2010-07-02 20:54:24 UTC
Red Hat Enterprise Linux Beta 2 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.


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