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 813220 - eog %pre script fails
Summary: eog %pre script fails
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: eog
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: rc
: ---
Assignee: Richard Hughes
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-04-17 09:21 UTC by Matěj Cepl
Modified: 2014-06-13 12:18 UTC (History)
2 users (show)

Fixed In Version: 3.6.2-1.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-13 12:18:21 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


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