[bug][java-1.7.0-openjdk] Config property files missing in RPM
Jiri Vanek
jvanek at redhat.com
Tue Jul 22 09:30:47 UTC 2014
On 07/18/2014 07:15 AM, Jacob Wisor wrote:
> Hello!
>
> Recently, I have been forced to downgrade the latest version of the java-1.7.0-openjdk package. I
> have noticed that some touched property files configuring the JRE are deleted when uninstalling or
> downgrading. This is rather inconvenient for admins.
> Following files should be included with the %config directive into the %files section of the RPM
> spec file.
>
> jre/lib/calendars.properties
> jre/lib/logging.properties
> jre/lib/images/cursors/cursors.properties
> jre/lib/content-types.properties
> jre/lib/management/jmxremote.access
> jre/lib/management/management.properties
> jre/lib/flavormap.properties
> jre/lib/net.properties
> jre/lib/psfont.properties.ja
> jre/lib/psfontj2d.properties
> jre/lib/tz.properties
> jre/lib/swing.properties
> jre/lib/sound.properties
>
> The jre/lib/swing.properties file is a %ghost file. There may be other %ghost files which are
Unluckily life is not as easy as config/ghost in this case;(
> %config files too, so please check.
>
> It my be of use to let some of the files above link to their system wide counterparts in /etc/java.
>
> Jacob
>
Oh dear oh dear.
If you look into spec file:
http://pkgs.fedoraproject.org/cgit/java-1.7.0-openjdk.git/tree/java-1.7.0-openjdk.spec?h=f20#n961
You can see, that the java RPMS are copying those files during update.
Lasttime I have teste dit, it was working fine both update and downgrade. But As you are mntioning
also callendars and logging, then somethig have to go wrong.
ANyway I should add above files tho the list of copied files
Also I should add check for rpmnew/rpmsave files in cleanup.
J.
More information about the distro-pkg-dev
mailing list