Bug 726403

Summary: broken virt-manager %pre script in spec file
Product: Red Hat Enterprise Linux 6 Reporter: Eric Blake <eblake>
Component: virt-managerAssignee: Cole Robinson <crobinso>
Status: CLOSED DUPLICATE QA Contact: Virtualization Bugs <virt-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.2   
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-28 16:15:06 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Eric Blake 2011-07-28 13:58:52 UTC
Description of problem:
During yum upgrade, I saw:

Error in PREIN scriptlet in rpm package virt-manager-0.9.0-2.el6.x86_64
/var/tmp/rpm-tmp.Mi5HFC: line 1: fg: no job control
error: %pre(virt-manager-0.9.0-2.el6.x86_64) scriptlet failed, exit status 1
error:   install: %pre scriptlet failed (2), skipping virt-manager-0.9.0-2.el6

Version-Release number of selected component (if applicable):
virt-manager-0.9.0-2.el6

How reproducible:
100%

Steps to Reproduce:
1. yum upgrade
2.
3.
  
Actual results:
upgrade failed because %pre was trying to use job control from a non-interactive script without first using 'set -m' to enable job control.

Expected results:
pre-install script should not die, so that upgrade will actually work

Additional info:

Comment 2 Cole Robinson 2011-07-28 16:15:06 UTC

*** This bug has been marked as a duplicate of bug 726325 ***