Bug 727790

Summary: rpmlint should warn about using shellscript in %pretrans phase
Product: [openSUSE] openSUSE Tumbleweed Reporter: Pavol Rusnak <prusnak>
Component: BasesystemAssignee: Dirk Mueller <dmueller>
Status: RESOLVED WONTFIX QA Contact: E-mail List <qa-bugs>
Severity: Enhancement    
Priority: P3 - Medium CC: lnussel
Version: 13.1 Beta 1   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Pavol Rusnak 2011-11-02 14:06:47 UTC
rpmlint should warn (or maybe error?) about using shellscript in %pretrans phase. The reason is that when the package and bash are installed in the same transaction the %pretrans script of the package fails. This is the problem that was hit recently by Studio guys while installing mysql package. I also talked with Panu (upstream rpm maintainer) and he claims there is no way to express something like "Requires(pretrans): bash" and even if there was it does not make much sense. Thus I think we should introduce this warning/error and provide a link to documentation how to rewrite bash pretrans script into a lua one. (probably inspired by http://www.rpm.org/wiki/PackagerDocs/RpmLua#AvailableLuaextensionsinRPM)
Comment 1 Tomáš Chvátal 2018-04-13 17:17:32 UTC
This is automated batch bugzilla cleanup.

The openSUSE Tumbleweed changed its development model at the end of
year 2014. [1]
Which means that most of the older bugs are reported against completely
different product than the current release of openSUSE Tumbleweed.

There is very high probability that this bug is no-longer relevant at all.
As a result we are closing this bug.

If you can reproduce this bug against a current Tumbleweed installation of
openSUSE, or you can still observe it under openSUSE Leap 15.0, please
feel free to reopen this bug.

Thank you for reporting this bug and we are sorry it was not resolved
under the old product.

[1] https://en.opensuse.org/Portal:Tumbleweed