Bug 134312

Summary: Current gettext preun scriplet has unexpanded rpm macro
Product: [Fedora] Fedora Reporter: Matthias Saou <matthias>
Component: gettextAssignee: Leon Ho <llch>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideKeywords: EasyFix
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-10-01 17:43:21 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:
Bug Depends On:    
Bug Blocks: 123268    

Description Matthias Saou 2004-10-01 10:49:32 UTC
Description of problem:
The current gettext rpm has an unexpanded rpm macro in its %preun
scriplet. This produces an error message upon upgrade, even if $1 != 0.

Version-Release number of selected component (if applicable):
gettext-0.14.1-9

How reproducible:
Anways.

Steps to Reproduce:
1. Upgrade gettext.
  
Actual results:
/var/tmp/rpm-tmp.316: line 2: fg: no job control
error: %post(gettext-0.14.1-9) scriptlet failed, exit status 1

Expected results:
No output.

Additional info:
This is the problem :
preuninstall scriptlet (using /bin/sh):
if [ "$1" = 0 ]; then
    %_remove_install_info /usr/share/info/gettext.info.gz
fi
exit 0

Comment 1 Matthias Saou 2004-10-01 14:39:30 UTC
Same thing in the gettext-devel sub-package. After a quick look around
/usr/lib/rpm/ I still can't seem to find this macro anywhere... is
this just a copy/paste mistake from a Mandrake spec file or something?

Comment 2 Leon Ho 2004-10-01 17:43:21 UTC
Thanks for the report. Fixed on -10.