Re: [opensuse-packaging] ... testing for pre/postinstall scripts that break patchrpms

2007-11-05 Thread Michael Schroeder
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 .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   [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[opensuse-packaging] [Info] libsmbios changes

2007-11-05 Thread Danny Kukawka
Hi,

JFYI: I have submitted a new libsmbios version (v0.13.12) to Factory. With 
this version all binaries of the package (from libsmbios-bin, 
libsmbios-unsupported-bin and libsmbiosxml-bin) are moved from /usr/bin 
to /usr/sbin. 

Please adapt your packages if they depend on one of these packages. I prepared 
HAL already to work also with this version.

Danny
-- 
Danny Kukawka
[EMAIL PROTECTED]
Mobile Devices
SUSE LINUX a Novell Business
Maxfeldstr. 5, D-90409 Nuernberg, Germany
SUSE LINUX Products GmbH, Nuernberg; GF: Markus Rex, HRB 16746 (AG Nuernberg)
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [opensuse-packaging] RPM dependencies vs. post-install scripts

2007-11-05 Thread Cristian Rodriguez
Lukas Ocilka escribió:

> Any other (e.g., better) ideas ;)?
> 

I got some more ;)

Index: PostCheck.py
===
--- PostCheck.py.orig   2007-08-12 20:18:40.0 +0200
+++ PostCheck.py2007-11-05 09:25:02.0 +0100
@@ -48,6 +48,9 @@ prereq_assoc = (
 #['chkconfig', ('chkconfig', '/sbin/chkconfig')],
 ['chkfontpath', ('chkfontpath', '/usr/sbin/chkfontpath')],
 ['rpm-helper', ('rpm-helper',)],
+['pear',('php5-pear','/usr/bin/pear')],
+
['update-alternatives',('update-alternatives','/usr/sbin/update-alternatives')],
+['a2enmod',('apache2','/usr/sbin/a2enmod')],
 )

 for p in prereq_assoc:


also, useradd and groupadd (pwdutils) are very common in the %pre section.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-- 
"Two things are infinite: the universe and human stupidity; and I'm not
sure about the universe." --Albert Einstein

Cristian Rodríguez R, Core Services
SUSE LINUX Products GmbH
Research & Development
http://www.opensuse.org/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]