I've been working on packaging apache-poi. I've got a
package that builds
on my machine, but haven't had much luck in koji or in mock. Errors go
from:
compile-ooxml-xsds:
[mkdir] Created dir:
/builddir/build/BUILD/poi-3.7-beta2/build/ooxml-xsds [unzip] Expanding:
/builddir/build/BUILD/poi-3.7-beta2/ooxml-lib/OfficeOpenXML-XMLSchema.zip
into /builddir/build/BUILD/poi-3.7-beta2/build/ooxml-xsds
[xmlbean] Time to build schema type system: 3.041 seconds
[xmlbean] Time to generate code: 5.721 seconds
[xmlbean] Compiling 4382 source files to
/tmp/xbean4112314889053275956.d/classes
[xmlbean]
[xmlbean]
[xmlbean] The system is out of resources.
[xmlbean] Consult the following stack trace for details.
[xmlbean] java.lang.OutOfMemoryError: Java heap space
to:
compile-ooxml-lite:
[java] Collecting unit tests from
/builddir/build/BUILD/poi-3.7-beta2/build/ooxml-test-classes
[java] .........................................
[java] WARNING: DateFormatTests.xlsx: Flag AllColors = "false" [not
"true"] [java] WARNING: DateFormatTests.xlsx: Flag Categories =
"Debug"
[not ""] [java] .........................................
[java] .........................................
[java] .........................................
[java] .E.E.......................................
[java] .........................................
[java] .........................................
[java] .........................................
[java] .........................................
[java] .........................................
[java] .........................................
[java] .........................................
[java] ................................
[java] Time: 19.38
[java] There were 2 errors:
[java] 1)
testAutoSizeColumn(org.apache.poi.xssf.usermodel.TestXSSFSheet)java.lang.Er
ror: Probable fatal error:No fonts found.
to:
[junit] Running org.apache.poi.hssf.usermodel.TestBugs
[junit] Warning, header block comes after data blocks in POIFS block
listing [junit] Warning, incorrectly terminated empty data blocks in POIFS
block listing (should end at -2, ended at 0)
[junit] Warning - ExtRst was has wrong magic marker, expecting 1 but
found 12 - ignoring
[junit] ExtRst was supposed to be 12 bytes long, but seems to actually
be 14 [junit] Tests run: 100, Failures: 0, Errors: 1, Time elapsed: 1.667
sec BUILD FAILED
I've put the src.rpm here:
http://www.cora.nwra.com/~orion/fedora/apache-poi-3.7-0.2.beta2.fc13.src.rp
m
If anyone would care to take a look I would appreciate it. I'm not sure I
can spend anymore time on this.
Hi Orion,
Can you try adding BuildRequires: liberation-sans-fonts and retrying the
build. It worked for me see
. Though there were
a few OOMs before the successful build. But these OOMs are not happening
everytime so I have no idea why are they happening.
Regards,
Alex