Bug 52469

Summary: %post/pre scriptlets should use the `if [ $1..' logic
Product: [Retired] Red Hat Raw Hide Reporter: Enrico Scholz <rh-bugzilla>
Component: wineAssignee: Bernhard Rosenkraenzer <bero>
Status: CLOSED RAWHIDE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 1.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-03-05 17:25:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Enrico Scholz 2001-08-24 01:12:20 UTC
The %post/%pre scriptlets of wine-20010822-1 are executed without doing the
usual `if [ $1 ...' tests:

| $ rpm -q --scripts wine
| preinstall scriptlet (through /bin/sh):
| /usr/sbin/groupadd -r wine &>/dev/null || :
| ...
| postuninstall scriptlet (through /bin/sh):
| perl -pi -e "s,^/usr/lib/wine$,,g" /etc/ld.so.conf
| /sbin/ldconfig
| /usr/sbin/groupdel wine &>/dev/null || :


When doing an upgrade, the `groupadd' of the %preinstall will be annuled by
the `groupdel' of the %postuninstall immediately.

Comment 1 Enrico Scholz 2002-02-22 23:52:44 UTC
Still in wine-20020221-1


Comment 2 Enrico Scholz 2002-02-22 23:57:55 UTC
Increased severity because %postuninstall removes paths from /etc/ld.so.conf and
wine does not work after an upgrade therefore:

| $ wine
| wine: error while loading shared libraries: libntdll.so: cannot open shared
object file: No such file or directory


Comment 3 Enrico Scholz 2002-03-05 17:25:14 UTC
Still in wine-20020226-1


Comment 4 Bernhard Rosenkraenzer 2002-03-27 14:04:41 UTC
This was fixed some time ago.