Cristian Morales Vega wrote:
From http://files.opensuse.org/opensuse/en/5/57/FOSDEM_building.pdf it seems was added to avoid conditional parts in the spec file. Not sure if there is a video of the presentation with more details... anyway I'm totally unable to understand talked english. But, if that was the objective, it would have made more sense to make %info_del a wrapper to whatever the distro already does.
Except for the info page suffix (bz2 vs gz) the Fedora way albeit inconvenient should just work everywhere as it doesn't use extra macros.
Ok. I don't really know exactly what install-info does, I though it was only saying "new file available".
It maintains the entries in /usr/share/info/dir
Something off-topic... openSUSE has a cron job to run mandb from time to time. I disabled it since when run the system was slowed by the high hard driver usage of mandb. ...I have never seen any difference, what exactly mandb does? The manual page of mandb is a little vague.
It creates an index for use by whatis(1). I also already wondered if a similar system as install-info could be used for that purpose. The install-info mechnism was introduced to replace a cron job that indexed all info pages and created the dir file in the past. So gettings rid of that mandb cron job is overdue.
%preun -n %{name} if [ $1 -eq 0 ] ; then %info_del %{name}.info fi
The check should be made by %info_del itself so the packager doesn't have to care. Since arguments to %preun and %postun are the same it doesn't matter where you call it.
But it should be there in the opensuse macro? Isn't 100% safe, it is? That test can make upgrades faster but If the updated package hasn't the info page available anymore then install-info --delete will never be called for than info page.
Ah, well, that's true. Fedora will fail in this regard then. OTOH I'm not sure whether that situation actually happens in practice. cu Ludwig -- (o_ Ludwig Nussel //\ V_/_ http://www.suse.de/ SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg) -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org