Broken %post scriptlets in recent java packages

Nicolas Mailhot Nicolas.Mailhot at laPoste.net
Wed Dec 8 08:16:39 UTC 2004


Le mercredi 08 décembre 2004 à 03:05 +0100, Enrico Scholz a écrit :
> Nicolas.Mailhot at laPoste.net (Nicolas Mailhot) writes:
> 
> >> recent java-packages (ant*, xerces*, ...) have scriptlets like
> >> 
> >> | $ rpm -q --scripts servletapi5-javadoc
> >> | postinstall scriptlet (using /bin/sh):
> >> | rm -f /usr/share/javadoc/servletapi5
> >> | rm -f /usr/share/javadoc/jsp-api
> >> | ln -s servletapi5-5.0.18 /usr/share/javadoc/servletapi5
> >> | ln -s jsp-api-5.0.18 /usr/share/javadoc/jsp-api
> >> 
> >> 
> >> This is really bad code because it does not make sense in an rpm-world
> >> and causes problems in combination with the %_netsharedpath feature.
> > ...
> > If you're interested by the problem feel free to review specs and
> > propose solutions on jpackage-discuss at zarb.org.
> 
> I fear that my preferred solution (%macro magic) will conflict with
> policies of jpackage. The feature that every /etc/rpm/macros.* file will
> be read by rpm is relatively new and might not exist on all jpackage
> platforms.

Good excuse but... we've been depending on our own sets of macros
forever. So we already have a macro file + all the plumbing to get it
deployed on every platform we target;)

Regards,

-- 
Nicolas Mailhot
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Ceci est une partie de message num?riquement sign?e
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20041208/125a6b58/attachment.sig>


More information about the fedora-devel-list mailing list