Bug 3027

Summary: shell in xorg-x11-drv-nvidia.spec %pretrans breaks kickstarts
Product: Fedora Reporter: Chris Smart <bugzilla>
Component: xorg-x11-drv-nvidiaAssignee: Nicolas Chauvet <kwizart>
Status: RESOLVED FIXED    
Severity: normal CC: s.adam
Priority: P5    
Version: 20   
Hardware: All   
OS: GNU/Linux   
namespace:

Description Chris Smart 2013-11-13 12:01:57 CET
The recent change to move nvidia-uninstall to %pretrans causes kickstarts to break because it uses shell.

Shell should not be used in %pretrans because it is run before there are any dependencies on the system and therefore nothing can satisfy /bin/sh.

See:
https://fedoraproject.org/wiki/Packaging:Guidelines?rd=Packaging/Guidelines#The_.25pretrans_scriptlet

This works as an upgrade because /bin/sh is already on the system but breaks any kickstart which is using RPMFusion repos with the error:

Error creating Live CD : Dependency check failed : (('xorg-x11-drv-nvidia', '1:331.20', '3.fc20'), ('/bin/sh', ''), 0, 0, None)

The fix is probably to re-write %pretrans in lua or move the shell back out of pretrans.
Comment 1 Nicolas Chauvet 2013-11-13 22:05:42 CET
Ok I'm fixing reverting to %pre
Thx for the report.