Bug#591109: libfreemarker-java: FTBFS: cannot find symbol PyJavaInstance

Torsten Werner twerner at debian.org
Tue Aug 3 19:23:01 UTC 2010


reassign 591109 jython
affects 591109 + libfreemarker-java
thanks

Hi Nicolas,

you have changed the jython package in a way which does not follow the
Debian Java Policy. The package ships a tree of class files instead of
a jar file as in Lenny. I haven't even found any information about the
change in the changelog file. Please ship a jar file in
/usr/share/java/. BTW, you even ship Windows *.exe files. Please
remove them.

Cheers,
Torsten

On Sun, Aug 1, 2010 at 12:41 AM, Lucas Nussbaum
<lucas at lucas-nussbaum.net> wrote:
> Source: libfreemarker-java
> Version: 2.3.16-2
> Severity: serious
> Tags: squeeze sid
> User: debian-qa at lists.debian.org
> Usertags: qa-ftbfs-20100731 qa-ftbfs
> Justification: FTBFS on amd64
>
> Hi,
>
> During a rebuild of all packages in sid, your package failed to build on
> amd64.
>
> Relevant part:
>>  /usr/bin/fakeroot debian/rules clean
>> test -x debian/rules
>> dh_testroot
>> dh_clean
>> cd . && /usr/lib/jvm/default-java/bin/java -classpath /usr/share/ant/lib/ant.jar:/usr/share/ant/lib/ant-launcher.jar:/usr/share/java/ant-nodeps.jar:/usr/share/java/dom4j.jar:/usr/share/java/servlet-api-2.5.jar:/usr/share/java/el-api-2.1.jar:/usr/share/java/jsp-api-2.1.jar:/usr/share/java/jaxen.jar:/usr/share/java/jdom1.jar:/usr/share/java/js.jar:/usr/share/java/junit.jar:/usr/share/java/jython.jar:/usr/share/java/log4j-1.2.jar:/usr/share/java/excalibur-logkit.jar:/usr/share/java/xercesImpl.jar:/usr/share/java/xalan2.jar:/usr/share/java/commons-jxpath.jar:/usr/share/java/ant-junit.jar:/usr/lib/jvm/default-java/lib/tools.jar  -Dant.home=/usr/share/ant org.apache.tools.ant.Main -Dcompile.debug=true -Dcompile.optimize=true    -propertyfile /build/user-libfreemarker-java_2.3.16-2-amd64-7imBFI/libfreemarker-java-2.3.16/debian/ant.properties clean
>> Buildfile: /build/user-libfreemarker-java_2.3.16-2-amd64-7imBFI/libfreemarker-java-2.3.16/build.xml
>>
>> clean:
>>    [delete] Deleting: /build/user-libfreemarker-java_2.3.16-2-amd64-7imBFI/libfreemarker-java-2.3.16/src/freemarker/core/FMParser.java
>>    [delete] Deleting: /build/user-libfreemarker-java_2.3.16-2-amd64-7imBFI/libfreemarker-java-2.3.16/src/freemarker/core/FMParserConstants.java
>>    [delete] Deleting: /build/user-libfreemarker-java_2.3.16-2-amd64-7imBFI/libfreemarker-java-2.3.16/src/freemarker/core/FMParserTokenManager.java
>>    [delete] Deleting: /build/user-libfreemarker-java_2.3.16-2-amd64-7imBFI/libfreemarker-java-2.3.16/src/freemarker/core/SimpleCharStream.java
>>    [delete] Deleting: /build/user-libfreemarker-java_2.3.16-2-amd64-7imBFI/libfreemarker-java-2.3.16/src/freemarker/core/Token.java
>>    [delete] Deleting: /build/user-libfreemarker-java_2.3.16-2-amd64-7imBFI/libfreemarker-java-2.3.16/src/freemarker/core/TokenMgrError.java
>>
>> fetchlibs:
>>
>> BUILD SUCCESSFUL
>> Total time: 0 seconds
>> rm -f debian/stamp-ant-build
>> rm -f debian/stamp-ant-check
>>  dpkg-source -b libfreemarker-java-2.3.16
>> dpkg-source: info: using source format `3.0 (quilt)'
>> dpkg-source: info: building libfreemarker-java using existing ./libfreemarker-java_2.3.16.orig.tar.gz
>> dpkg-source: warning: ignoring deletion of file src/freemarker/core/Token.java
>> dpkg-source: warning: ignoring deletion of file src/freemarker/core/FMParser.java
>> dpkg-source: warning: ignoring deletion of file src/freemarker/core/SimpleCharStream.java
>> dpkg-source: warning: ignoring deletion of file src/freemarker/core/FMParserConstants.java
>> dpkg-source: warning: ignoring deletion of file src/freemarker/core/TokenMgrError.java
>> dpkg-source: warning: ignoring deletion of file src/freemarker/core/FMParserTokenManager.java
>> dpkg-source: info: building libfreemarker-java in libfreemarker-java_2.3.16-2.debian.tar.gz
>> dpkg-source: info: building libfreemarker-java in libfreemarker-java_2.3.16-2.dsc
>>  debian/rules build
>> test -x debian/rules
>> mkdir -p "."
>> cd . && /usr/lib/jvm/default-java/bin/java -classpath /usr/share/ant/lib/ant.jar:/usr/share/ant/lib/ant-launcher.jar:/usr/share/java/ant-nodeps.jar:/usr/share/java/dom4j.jar:/usr/share/java/servlet-api-2.5.jar:/usr/share/java/el-api-2.1.jar:/usr/share/java/jsp-api-2.1.jar:/usr/share/java/jaxen.jar:/usr/share/java/jdom1.jar:/usr/share/java/js.jar:/usr/share/java/junit.jar:/usr/share/java/jython.jar:/usr/share/java/log4j-1.2.jar:/usr/share/java/excalibur-logkit.jar:/usr/share/java/xercesImpl.jar:/usr/share/java/xalan2.jar:/usr/share/java/commons-jxpath.jar:/usr/share/java/ant-junit.jar:/usr/lib/jvm/default-java/lib/tools.jar  -Dant.home=/usr/share/ant org.apache.tools.ant.Main -Dcompile.debug=true -Dcompile.optimize=true    -propertyfile /build/user-libfreemarker-java_2.3.16-2-amd64-7imBFI/libfreemarker-java-2.3.16/debian/ant.properties javacc jar javadoc
>> Buildfile: /build/user-libfreemarker-java_2.3.16-2-amd64-7imBFI/libfreemarker-java-2.3.16/build.xml
>>
>> javacc:
>>      [copy] Copying 1 file to /build/user-libfreemarker-java_2.3.16-2-amd64-7imBFI/libfreemarker-java-2.3.16/build/javacc/freemarker/core
>> [javacc:generate] Java Compiler Compiler Version 5.0 (Parser Generator)
>> [javacc:generate] (type "javacc" with no arguments for help)
>> [javacc:generate] Reading from file /build/user-libfreemarker-java_2.3.16-2-amd64-7imBFI/libfreemarker-java-2.3.16/src/freemarker/core/FMParser.jj . . .
>> [javacc:generate] Warning: Line 57, Column 4: Bad option name "LEXER_CLASS".  Option setting will be ignored.
>> [javacc:generate] Warning: Line 58, Column 4: Bad option name "CONSTANTS_CLASS".  Option setting will be ignored.
>> [javacc:generate] Note: UNICODE_INPUT option is specified. Please make sure you create the parser/lexer using a Reader with the correct character encoding.
>> [javacc:generate] File "TokenMgrError.java" does not exist.  Will create one.
>> [javacc:generate] File "Token.java" does not exist.  Will create one.
>> [javacc:generate] File "SimpleCharStream.java" does not exist.  Will create one.
>> [javacc:generate] Parser generated with 0 errors and 2 warnings.
>>
>> init:
>>
>> fetchlibs:
>>
>> prepare:
>>
>> javacc:
>>
>> compile:
>>     [mkdir] Created dir: /build/user-libfreemarker-java_2.3.16-2-amd64-7imBFI/libfreemarker-java-2.3.16/build/classes
>>     [javac] /build/user-libfreemarker-java_2.3.16-2-amd64-7imBFI/libfreemarker-java-2.3.16/build.xml:504: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
>>     [javac] Compiling 253 source files to /build/user-libfreemarker-java_2.3.16-2-amd64-7imBFI/libfreemarker-java-2.3.16/build/classes
>>     [javac] /build/user-libfreemarker-java_2.3.16-2-amd64-7imBFI/libfreemarker-java-2.3.16/src/freemarker/template/LocalizedString.java:16: warning: unmappable character for encoding ASCII
>>     [javac]  *               return "s?";
>>     [javac]                           ^
>>     [javac] /build/user-libfreemarker-java_2.3.16-2-amd64-7imBFI/libfreemarker-java-2.3.16/src/freemarker/ext/jython/JythonModelCache.java:13: cannot find symbol
>>     [javac] symbol  : class PyJavaInstance
>>     [javac] location: package org.python.core
>>     [javac] import org.python.core.PyJavaInstance;
>>     [javac]                       ^
>>     [javac] /build/user-libfreemarker-java_2.3.16-2-amd64-7imBFI/libfreemarker-java-2.3.16/src/freemarker/ext/jython/JythonModelCache.java:40: cannot find symbol
>>     [javac] symbol  : class PyJavaInstance
>>     [javac] location: class freemarker.ext.jython.JythonModelCache
>>     [javac]         if(obj instanceof PyJavaInstance) {
>>     [javac]                           ^
>>     [javac] /build/user-libfreemarker-java_2.3.16-2-amd64-7imBFI/libfreemarker-java-2.3.16/src/freemarker/ext/jython/JythonModelCache.java:41: cannot find symbol
>>     [javac] symbol  : class PyJavaInstance
>>     [javac] location: class freemarker.ext.jython.JythonModelCache
>>     [javac]             Object jobj = ((PyJavaInstance)obj).__tojava__(java.lang.Object.class);
>>     [javac]                             ^
>>     [javac] /build/user-libfreemarker-java_2.3.16-2-amd64-7imBFI/libfreemarker-java-2.3.16/src/freemarker/ext/jython/JythonHashModel.java:140: cannot find symbol
>>     [javac] symbol  : method getFullName()
>>     [javac] location: class org.python.core.PyType
>>     [javac]         throw new TemplateModelException("'?keys' is not supported as there is no 'keys' nor 'keySet' attribute on an instance of " + object.getType().getFullName());
>>     [javac]                                                                                                                                                       ^
>>     [javac] /build/user-libfreemarker-java_2.3.16-2-amd64-7imBFI/libfreemarker-java-2.3.16/src/freemarker/ext/jython/JythonHashModel.java:160: cannot find symbol
>>     [javac] symbol  : method getFullName()
>>     [javac] location: class org.python.core.PyType
>>     [javac]         throw new TemplateModelException("'?values' is not supported as there is no 'values' attribute on an instance of " + object.getType().getFullName());
>>     [javac]                                                                                                                                              ^
>>     [javac] Note: Some input files use or override a deprecated API.
>>     [javac] Note: Recompile with -Xlint:deprecation for details.
>>     [javac] 5 errors
>>     [javac] 1 warning
>>
>> BUILD FAILED
>> /build/user-libfreemarker-java_2.3.16-2-amd64-7imBFI/libfreemarker-java-2.3.16/build.xml:504: Compile failed; see the compiler error output for details.
>>
>> Total time: 3 seconds
>> make: *** [debian/stamp-ant-build] Error 1
>
> The full build log is available from:
>   http://people.debian.org/~lucas/logs/2010/07/31/libfreemarker-java_2.3.16-2_lsid64.buildlog
>
> A list of current common problems and possible solutions is available at
> http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
>
> About the archive rebuild: The rebuild was done on about 50 AMD64 nodes
> of the Grid'5000 platform, using a clean chroot.  Internet was not
> accessible from the build systems.
>
> --
> | Lucas Nussbaum
> | lucas at lucas-nussbaum.net   http://www.lucas-nussbaum.net/ |
> | jabber: lucas at nussbaum.fr             GPG: 1024D/023B3F4F |
>
>
>
>





More information about the pkg-java-maintainers mailing list