Mailinglist Archive: opensuse-packaging (174 mails)

< Previous Next >
Re: [opensuse-packaging] /var/adm/update-scripts mechanism changed?
On Sat, Nov 23, 2013 at 12:30:06AM +0800, Marguerite Su wrote:
Currently I'm (re-)working on steam package in games:tools repository,
which is a wrapper, using /var/adm/update-scripts mechanism to fill
contents downloaded online into directories pre-created in %install
section of specfile.

And I found something interesting:

In 13.1, the scripts is executed _before_ %install section.

Which means, if you don't create the directories again in your script,
it will fail. AKA, the `touch` way has gone.

Verify here:
https://build.opensuse.org/package/show/home:MargueriteSu:branches:games:tools/steam

Install the package in your 13.1, if you see "failed
/usr/share/doc/packages/steam/steam_* (no such file or directory)",
congrats!

It indicates it's executed _before_ %install section, after a while
(unpacking steam_1.0.0.44.tar.gz and copy), you'll see your %install
section is processed. And if you `rpm -qf /usr/bin/steam`, it doesn't
belong to any package.

Well, it's not packaged, so why should 'rpm -qf /usr/bin/steam'
return anything?

There's somthing wrong with your spec file:

$ rpm -qpl steam-1.0.0.44-4.1.i586.rpm
/usr/bin/*
/usr/lib/steam
/usr/lib/steam/*
/usr/share/applications/steam.desktop
/usr/share/doc/packages/steam
/usr/share/doc/packages/steam/*
/usr/share/icons/hicolor/16x16/apps/steam.png
/usr/share/icons/hicolor/24x24/apps/steam.png
/usr/share/icons/hicolor/256x256/apps/steam.png
/usr/share/icons/hicolor/32x32/apps/steam.png
/usr/share/icons/hicolor/48x48/apps/steam.png
/usr/share/man/man6/steam.*.gz
/usr/share/pixmaps/steam.png
/usr/share/pixmaps/steam_tray_mono.png
/var/adm/update-messages/steam-1.0.0.44-4.1-1
/var/adm/update-scripts/steam-1.0.0.44-4.1-fetch-steam.sh.txt

I don't think you really want those '*' files.

Cheers,
Michael.

--
Michael Schroeder mls@xxxxxxx
SUSE LINUX Products GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg
main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-packaging+owner@xxxxxxxxxxxx

< Previous Next >
References