About files being downloaded during build of icedtea6-1.8

Paulo César Pereira de Andrade pcpa at mandriva.com.br
Tue Apr 13 15:26:12 PDT 2010


Matthias Klose wrote:
> On 13.04.2010 21:05, Paulo César Pereira de Andrade wrote:
>>    Hi,
>>
>>    I am working on updating Mandriva java-1.6.0-openjdk package, but
>> I am seeing this:
>>
>> /usr/bin/sha256sum: drops/jdk6-jaxp-2009_10_13.zip: No such file or
>> directory
>> drops/jdk6-jaxp-2009_10_13.zip: FAILED open or read
[...]

> yes, as you do with the openjdk-6 tarball. best things is to do the
> configure
> step followed by make download to collect all the needed tarballs/zips.

  I added it to sources

# wget
https://jaxp.dev.java.net/files/documents/913/147329/jdk6-jaxp-2009_10_13.zip
Source9:	jdk6-jaxp-2009_10_13.zip

# wget
http://kenai.com/projects/jdk6-drops/downloads/download/jdk6-jaxws-2009_10_27.zip
Source10:	jdk6-jaxws-2009_10_27.zip

# wget http://kenai.com/downloads/jdk6-drops/jdk6-jaf-2009_10_27.zip
Source11:	jdk6-jaf-2009_10_27.zip


 And in %setup I do:

mkdir -p drops; cp -f %{SOURCE9} %{SOURCE10} %{SOURCE11} drops


  But need to do, before make, in %build:

perl -pi -e "s|^(drops\.dir=).*|\$1`pwd`/drops|;"
openjdk/jaxp/build.properties

or it will want to donwload it again...

>>    BTW, Mandriva package is based on fedora one, and I see that
>> visualvm was not update from 111 to 122, and also, I am getting some
>> weird errors, that "almost" work if adding ANT_OPTIONS="-lib
>> /usr/share/java/ant" to the make command line, otherwise it will not
>> find
>> the
>> ant-apache-regexp.jar.
>
> 122 is based on netbeans-6.8, and there's no simple source drop yet from
> which
> to build visualvm (contacted a developer and will followup). I never build
> visualvm from the icedtea sources, but build as a separate source package.

  I am having some trouble trying to figure out why I get this:

-%<-BUILD FAILED
/home/pcpa/rpm/BUILD/icedtea6-1.8/openjdk/jaxp/build-defs.xml:66: Problem:
failed to create task or type replaceregexp
Cause: the class org.apache.tools.ant.taskdefs.optional.ReplaceRegExp was
not found.
        This looks like one of Ant's optional components.
Action: Check that the appropriate optional JAR exists in
        -/usr/share/ant/lib
        -/home/pcpa/.ant/lib
        -a directory added on the command line with the -lib argument

Do not panic, this is a common problem.
The commonest cause is a missing JAR.

This is not a bug; it is a configuration problem
-%<-

  I got past the same error in langtools by either setting ANT_OPTIONS
or CLASSPATH to "tell" about /usr/share/java/ant, where *apache*regex*jar
are, but my openjdk build knowledge is nil.. (I only started working
a bit on it to correct some issues with an applet, and I think I am
now the openjdk package maintainer :-)

>    Matthias

Thanks,
Paulo




More information about the distro-pkg-dev mailing list