Package: nexus Version: 4.2.1-svn1614-1 Severity: important Tags: patch Nexus fails to build on an arch that has gcj working but not openjdk, like armhf:
The reason is the sed expression in the configure, I found that adding a second expression to test makes the package work on armhf as well (patch attached). Please consider accepting the patch. Regards Konstantinos
diff -ruN nexus-4.2.1-svn1614/debian/rules nexus-4.2.1-svn1614.gcj//debian/rules --- nexus-4.2.1-svn1614/debian/rules 2011-07-25 10:06:25.000000000 +0000 +++ nexus-4.2.1-svn1614.gcj//debian/rules 2011-08-01 10:38:19.770525121 +0000 @@ -35,7 +35,7 @@ cp -f /usr/share/misc/config.guess config.guess endif ## -D_FILE_OFFSET_BITS=64 for large file support (will be default in next version) - ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="-D_FILE_OFFSET_BITS=64 $(CFLAGS)" LDFLAGS="-Wl,-z,defs" --with-java-home=`readlink /etc/alternatives/javac | sed s,/bin/javac,,` --with-python=/usr + ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="-D_FILE_OFFSET_BITS=64 $(CFLAGS)" LDFLAGS="-Wl,-z,defs" --with-java-home=`readlink /etc/alternatives/javac | sed -e s,/bin/javac,, -e s,/bin/gcj-wrapper-4.6,,` --with-python=/usr sed < libtool > libtool-2 -e 's/^hardcode_libdir_flag_spec.*$$/hardcode_libdir_flag_spec=" -D__LIBTOOL_IS_A_FOOL__ "/' -e '/^archive_cmds="/s/"$$/ \\$$deplibs"/' mv libtool-2 libtool chmod 755 libtool