Mailinglist Archive: opensuse-bugs (6759 mails)

< Previous Next >
[Bug 727706] mysql-community-server and mariadb requires shell in RPM %pretrans

https://bugzilla.novell.com/show_bug.cgi?id=727706

https://bugzilla.novell.com/show_bug.cgi?id=727706#c3


--- Comment #3 from Balazs Kutil <bkutil@xxxxxxxx> 2011-11-02 13:07:57 UTC ---
I agree with you. I don't think that %pretrans are a problem in itself, but
using /bin/sh in it is:

"Internal Lua is the only thing that can reliably run in %pretrans. On initial
system installation, there's absolutely nothing in the environment where
%pretrans scriptlets execute. This is a condition you cannot even detect with
any other means: testing for existence of a file or directory would otherwise
require a shell, which is not there."

Maybe adding some RPM lint check for %pretrans in bash & displaying warning in
the OBS would be nice.

--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >
References