Broken %post scriptlets in recent java packages

Enrico Scholz enrico.scholz at informatik.tu-chemnitz.de
Wed Dec 8 02:05:54 UTC 2004


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.

Missing backward-compatibility will not be a problem on FC so it could
be used there.



Enrico




More information about the devel mailing list