[opensuse-packaging] ... testing for pre/postinstall scripts that break patchrpms
Autobuild fails my package with the following error: ... testing for pre/postinstall scripts that break patchrpms postinstall script of <package>.rpm failed Can someone tell me what this might mean? That doesn't mean that the %post fails during a normal installation, right? But instead, some inspection of the script determined that it's not compatible with patchrpms? Any pointers on tracking down the problem? Thanks. --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Thu, 1 Nov 2007, Bart Whiteley wrote:
Autobuild fails my package with the following error: ... testing for pre/postinstall scripts that break patchrpms postinstall script of <package>.rpm failed
Can someone tell me what this might mean? That doesn't mean that the %post fails during a normal installation, right? But instead, some inspection of the script determined that it's not compatible with patchrpms?
Any pointers on tracking down the problem?
most likely these issues are about packages that try to modify their own files in the postinstall script, especially if these files were not marked as %config. -- with kind regards (mit freundlichem Grinsen), Ruediger Oertel (ro@novell.com,ro@suse.de,bugfinder@t-online.de) ---------------------------------------------------------------------- Linux Fatou 2.6.23.1-6-default #1 SMP 2007/10/19 20:37:48 UTC x86_64 Key fingerprint = 17DC 6553 86A7 384B 53C5 CA5C 3CE4 F2E7 23F2 B417 SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
On Thu, Nov 01, 2007 at 04:30:21AM -0600, Bart Whiteley wrote:
Autobuild fails my package with the following error: ... testing for pre/postinstall scripts that break patchrpms postinstall script of <package>.rpm failed
Can someone tell me what this might mean? That doesn't mean that the %post fails during a normal installation, right? But instead, some inspection of the script determined that it's not compatible with patchrpms?
Any pointers on tracking down the problem?
The patchrpm check runs the scripts with the '-e' shell option to make them abort when a command fails. This is done to catch syntax errors in the scriptlets. Thus, commands that might fail need an extra " || true". Also, constructs like foo && bar are bad (the scripts aborts when foo fails), use if foo ; then bar ; fi instead. Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (3)
-
Bart Whiteley
-
Michael Schroeder
-
Ruediger Oertel