[Bug 727706] New: 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#c0 Summary: mysql-community-server and mariadb requires shell in RPM %pretrans Classification: openSUSE Product: openSUSE 12.1 Version: RC 1 Platform: PC OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: coolo@suse.com ReportedBy: bkutil@suse.com QAContact: qa@suse.de CC: visnov@suse.com, mhrusecky@suse.com, dmajda@suse.com Found By: --- Blocker: Yes Coolo, maintainer of the package is on vacation until post-release, could you please have a look at this or reassign it to someone, who'd take care of pushing this into 12.1 on time? Packages mysql-community-server, mariadb (and possibly others), require /bin/sh in RPM %pretrans script. However, when SUSE Studio installs a (completely resolved) list of packages in one transaction into empty root directory, there's nothing that would provide /bin/sh. IMHO, it seems unreasonable to assume there would be. In studio, mysql server is a required package in KDE template. This unfortunately means, that we're unable to fully support openSUSE 12.1 KDE until this issue is resolved. The 'official', or recommended way is to use LUA interpreter embedded in RPM in %pretrans scripts (see http://www.rpm.org/wiki/PackagerDocs/RpmLua). Fixed and tested mysql and mariadb SPECs with %pretrans rewritten to LUA are available from OBS home:bkutil:mysql_test project. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=727706 https://bugzilla.novell.com/show_bug.cgi?id=727706#c Stanislav Visnovsky <visnov@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P1 - Urgent CC| |mls@suse.com -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=727706 https://bugzilla.novell.com/show_bug.cgi?id=727706#c1 --- Comment #1 from Stephan Kulow <coolo@suse.com> 2011-11-02 11:28:36 CET --- submit them then? -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=727706 https://bugzilla.novell.com/show_bug.cgi?id=727706#c2 --- Comment #2 from Michael Schröder <mls@suse.com> 2011-11-02 12:16:55 UTC --- (pretrans? I guess all packages that use pretrans are buggy, I can't think of any reasonable use case) -- 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.
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@suse.com> 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.
https://bugzilla.novell.com/show_bug.cgi?id=727706 https://bugzilla.novell.com/show_bug.cgi?id=727706#c4 --- Comment #4 from Bernhard Wiedemann <bwiedemann@suse.com> 2011-11-03 14:00:27 CET --- This is an autogenerated message for OBS integration: This bug (727706) was mentioned in https://build.opensuse.org/request/show/90026 Factory / mysql-community-server https://build.opensuse.org/request/show/90028 Factory / mariadb -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=727706 https://bugzilla.novell.com/show_bug.cgi?id=727706#c5 Stephan Kulow <coolo@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #5 from Stephan Kulow <coolo@suse.com> 2011-11-07 10:39:20 CET --- submitted by bk -- 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.
participants (1)
-
bugzilla_noreply@novell.com