Andrew Haley wrote:
Orion Poplawski wrote:
-rw-r--r-- 1 root root 54M 2008-09-08 13:39
./java-1.6.0-openjdk-1.6.0.0/jre/lib/rt.jar
-rw-r--r-- 1 root root 24M 2008-10-21 15:40
./java-1.6.0-sun-1.6.0.10/jre/lib/rt.jar
Why so much bigger?
I'd open them up and diff the trees.
Andrew.
I think it's compression level. Here are the uncompressed sizes:
167480 rt-sun
171788 rt-openjdk
[root@cynosure rt-sun]# dus
16 META-INF
48 sunw
7060 org
22396 java
30156 javax
38972 sun
68824 com
[root@cynosure rt-openjdk]# dus
16 META-INF
48 sunw
1336 net
7148 org
23576 java
31792 javax
39652 sun
68212 com
If I repack rt-openjdk: zip -r rt-openjdk.zip rt-openjdk
27M 2008-11-21 11:55 rt-openjdk.zip
So, we're packing jars with minimal compression? No,
/usr/lib/rpm/redhat/brp-java-repack-jars uses zip -9 and
java-1.6.0-openjdk turns off __jar_repack.
So, something in the openjdk build does it...
Looks like it's built with:
if ! test -d /builddir/build/BUILD/icedtea6-1.4/bootstrap/jdk1.6.0 ; \
then \
/usr/lib/jvm/java-openjdk/bin/jar cf
bootstrap/jdk1.7.0/jre/lib/rt-closed.jar -C lib/rt com -C lib/rt java \
-C lib/rt javax -C lib/rt netscape -C lib/rt net -C lib/rt sun ; \
else \
/builddir/build/BUILD/icedtea6-1.4/bootstrap/jdk1.6.0/bin/jar cf
bootstrap/jdk1.7.0/jre/lib/rt-closed.jar -C lib/rt com -C lib/rt java \
-C lib/rt javax -C lib/rt netscape -C lib/rt net -C lib/rt sun ; \
fi
So, does the "jar" command use compression?
--
Orion Poplawski
Technical Manager 303-415-9701 x222
NWRA/CoRA Division FAX: 303-415-9702
3380 Mitchell Lane orion@xxxxxxxxxxxxx
Boulder, CO 80301 http://www.cora.nwra.com
--
fedora-devel-java-list mailing list
fedora-devel-java-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-java-list