Le mercredi 25 août 2010, à 13:22 +0200, Ludwig Nussel a écrit :
Vincent Untz wrote:
I'm considering patching rpmlint to add errors when those macros are not used. See the attached patch, which I haven't tested yet.
I'm a bit worried that adding tons of checks like this will be expensive in the long term. On the other hand, missing those calls is really bad since it will result in non-working packages or even crashing applications.
There are more expensive tests than those anyways so don't worry. The rpmlint package already carries way too much patches though. If your tests are SUSE specific anyways it would probably make sense to have it in a separate file here: http://gitorious.org/opensuse/rpmlint-checks
Ah, thanks, didn't know about that. Will look at it.
If the macros are suse specific I wonder how other distros solve the problem?
I just looked at ibus in Fedora, and they directly call the binaries in %post/%postun. We considered doing that, but decided that the macros are easier (avoid errors, and makes it really simple to change things later on if needed). Vincent -- Les gens heureux ne sont pas pressés. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org