Bug 813220

Summary: eog %pre script fails
Product: Red Hat Enterprise Linux 7 Reporter: Matěj Cepl <mcepl>
Component: eogAssignee: Richard Hughes <rhughes>
Status: CLOSED CURRENTRELEASE QA Contact: Desktop QE <desktop-qa-list>
Severity: high Docs Contact:
Priority: unspecified    
Version: 7.0CC: mclasen, vbenes
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 3.6.2-1.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-13 12:18:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Matěj Cepl 2012-04-17 09:21:32 UTC
Description of problem:

wycliff:tmp# LANG=C yum upgrade eog
Loaded plugins: product-id, refresh-packagekit, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
Resolving Dependencies
--> Running transaction check
---> Package eog.x86_64 0:3.2.1-2.el7 will be updated
---> Package eog.x86_64 0:3.3.92-1.el7 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================
 Package       Arch             Version                 Repository       Size
==============================================================================
Updating:
 eog           x86_64           3.3.92-1.el7            df-ws           2.6 M

Transaction Summary
==============================================================================
Upgrade  1 Package

Total download size: 2.6 M
Is this ok [y/N]: y
Downloading Packages:
eog-3.3.92-1.el7.x86_64.rpm                            | 2.6 MB     00:33     
Running Transaction Check
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Error in PREIN scriptlet in rpm package eog-3.3.92-1.el7.x86_64
/var/tmp/rpm-tmp.9763qo: line 1: fg: no job control
error: %pre(eog-3.3.92-1.el7.x86_64) scriptlet failed, exit status 1
Installed products updated.
  Verifying  : eog-3.3.92-1.el7.x86_64                                    1/2 
eog-3.2.1-2.el7.x86_64 was supposed to be removed but is not!
  Verifying  : eog-3.2.1-2.el7.x86_64                                     2/2 

Failed:
  eog.x86_64 0:3.2.1-2.el7              eog.x86_64 0:3.3.92-1.el7             

Complete!
--------------------------------------------------------------------------
When looking at the scripts:

wycliff:tmp# rpm -qp --scripts eog-3.3.92-1.el7.x86_64.rpm 
preinstall scriptlet (using /bin/sh):
%gconf_schema_obsolete eog
postinstall scriptlet (using /bin/sh):
update-desktop-database -q
touch /usr/share/icons/hicolor >&/dev/null || :
postuninstall scriptlet (using /bin/sh):
update-desktop-database -q
if [ $1 -eq 0 ]; then
  touch --no-create /usr/share/icons/hicolor >&/dev/null || :
  gtk-update-icon-cache /usr/share/icons/hicolor >&/dev/null || :
  glib-compile-schemas /usr/share/glib-2.0/schemas
fi
posttrans scriptlet (using /bin/sh):
gtk-update-icon-cache /usr/share/icons/hicolor >&/dev/null || :
glib-compile-schemas /usr/share/glib-2.0/schemas
wycliff:tmp# 

it seems to me obvious, that >& is wrong. I guess you meant 2>/dev/null, right?

Version-Release number of selected component (if applicable):
eog-3.3.92-1.el7

How reproducible:
100%

Comment 4 Matthias Clasen 2013-01-02 17:57:42 UTC
>& is fine, as far as I can see.
But the %pre script does not exist anymore, so the issue is most likely moot.

Comment 5 Vladimir Benes 2013-01-14 11:24:51 UTC
no issues any more in version 3.6.2-1.el7
-> VERIFIED

Comment 6 Ludek Smid 2014-06-13 12:18:21 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.