retitle 493992 jcc FTBFS on everything except amd64 due to wrong paths.
thanks

Reading the build log carefully this doesn't look like a missing dependency error to me (openjdk-6-jdk which depends on openjdk-6-jre which depends on openjdk-6-jre-headless which provides the libjvm.so is indeed included in the build-dependencies and installed by the autobuilder). Rather it seems that the paths are wrong causing the package to FTBFS everywhere except amd64

g++ -pthread -shared -g -O2 -g -Wall -O2 
/build/buildd/jcc-1.9/./build/temp.linux-sparc-2.4/jcc/sources/jcc.o 
/build/buildd/jcc-1.9/./build/temp.linux-sparc-2.4/jcc/sources/JCCEnv.o -o 
/build/buildd/jcc-1.9/./build/lib.linux-sparc-2.4/libjcc.so 
-L/usr/lib/jvm/java-6-openjdk/jre/lib/amd64 
-L/usr/lib/jvm/java-6-openjdk/jre/lib/amd64/server 
-Wl,-rpath=/usr/lib/jvm/java-6-openjdk/jre/lib/amd64:/usr/lib/jvm/java-6-openjdk/jre/lib/amd64/server
 -ljava -Wl,-S


Notice the repeated occourance of amd64 in that line.

A patch fixing the issue is attatched.

BTW the version currently in testing is in contrib, uses the propietry sun jdk and builds on all architectures that suns jdk is availible on.
diff -ur jcc-1.9/debian/rules jcc-1.9.new/debian/rules
--- jcc-1.9/debian/rules	2008-08-06 21:14:38.000000000 +0000
+++ jcc-1.9.new/debian/rules	2008-08-06 21:17:05.000000000 +0000
@@ -1,5 +1,16 @@
 #!/usr/bin/make -f
 
+DEB_BUILD_ARCH_CPU ?=$(shell dpkg-architecture -qDEB_BUILD_ARCH_CPU)
+
+#deb_build_arch_cpu gives correct path on most architectures but powerpc needs special casing
+JAVAARCH :=$(DEB_BUILD_ARCH_CPU)
+
+ifeq ($(DEB_BUILD_ARCH_CPU),powerpc)
+  JAVAARCH :=powerpc
+endif
+
+export JCC_LFLAGS :=-L/usr/lib/jvm/java-6-openjdk/jre/lib/$(JAVAARCH)::-L/usr/lib/jvm/java-6-openjdk/jre/lib/$(JAVAARCH)/server::-Wl,-rpath=/usr/lib/jvm/java-6-openjdk/jre/lib/$(JAVAARCH):/usr/lib/jvm/java-6-openjdk/jre/lib/$(JAVAARCH)/server::-ljava
+
 include /usr/share/cdbs/1/rules/debhelper.mk
 DEB_PYTHON_SYSTEM = pysupport
 include /usr/share/cdbs/1/class/python-distutils.mk
diff -ur jcc-1.9/setup.py jcc-1.9.new/setup.py
--- jcc-1.9/setup.py	2008-08-06 21:14:38.000000000 +0000
+++ jcc-1.9.new/setup.py	2008-08-06 20:48:57.000000000 +0000
@@ -40,7 +40,7 @@
 #
 # Instead of editing the entries below, you may also override these
 # dictionaries with JCC_INCLUDES, JCC_CFLAGS and JCC_LFLAGS environment
-# variables using os.pathsep as value separator.
+# variables using os.pathsep twice as value separator.
 
 INCLUDES = {
     'darwin': ['/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers'],
@@ -75,6 +75,7 @@
 def main():
 
     _jcc_argsep = os.environ.get('JCC_ARGSEP', os.pathsep)
+    _jcc_argsep += _jcc_argsep #use a double path seperator to allow specifying an rpath with a colon in it
 
     if 'JCC_INCLUDES' in os.environ:
         _includes = os.environ['JCC_INCLUDES'].split(_jcc_argsep)

Reply via email to