tags 640319 +patch
thanks
Relevant part:
gcc version 4.6.1 (Debian 4.6.1-8)
configure:2513: $? = 0
configure:2520: x86_64-linux-gnu-gcc -V >&5
gcc-4.6.real: error: unrecognized option '-V'
gcc-4.6.real: fatal error: no i
umm this doesn't look at all relavent to the actual failure to me, just a
configure script feeling out the compiler
(not everything in a configure script that generates an error means the package
as a whole is failing)
The real failure appears to be
configure:11337: checking for the slang library and header files
configure:11478: result: no
configure:11489: error: unable to find the slang library and header file slang.h
And the cause seems to be the configure script being unable to handle multiarch
slang.
Passing in the correct lib and include paths from debian/rules makes the package
build (interestingly passing only the lib path DOES NOT work) unfortunately doing
so causes the configure script to add a rpath to the generated binaries.
The attatched patch makes debian/rules pass in the include and libary paths
and makes it strip the rpaths out of the built executables. It also adds
appropriate build-dependencies (multiarch slang, dpkg-dev that supports
multiarch variables and chrpath)
diff -ur jed-0.99.19/debian/control jed-0.99.19.new/debian/control
--- jed-0.99.19/debian/control 2011-12-23 02:14:37.000000000 +0000
+++ jed-0.99.19.new/debian/control 2011-12-23 02:13:31.000000000 +0000
@@ -9,7 +9,7 @@
Build-Depends: debhelper (>= 7), dpatch (>= 2.0.30),
libxft-dev, libgpm-dev [!hurd-i386 !kfreebsd-i386 !kfreebsd-amd64],
libxt-dev, pkg-config, hardening-wrapper, autotools-dev, slsh,
- libslang2-dev (>= 2.0.7-2)
+ libslang2-dev (>= 2.2.4-3), dpkg-dev (>= 1.16.0), chrpath
Homepage: http://www.jedsoft.org/jed/
Vcs-Git: git://git.debian.org/git/pkg-jed/jed.git
Vcs-Browser: http://git.debian.org/?p=pkg-jed/jed.git
diff -ur jed-0.99.19/debian/rules jed-0.99.19.new/debian/rules
--- jed-0.99.19/debian/rules 2011-12-23 02:14:37.000000000 +0000
+++ jed-0.99.19.new/debian/rules 2011-12-23 02:08:17.000000000 +0000
@@ -35,6 +35,12 @@
configure_flags += --disable-xft
endif
+DEB_HOST_MULTIARCH ?=$(shell dpgk-architecture -qDEB_HOST_MULTIARCH)
+
+#to successfully build with a multiarch slang we need to explicitly specify
+#include and library directories.
+configure_flags += --with-slanglib=/usr/lib/$(DEB_HOST_MULTIARCH) --with-slanginc=/usr/include
+
export DEB_BUILD_HARDENING=1
include /usr/share/dpatch/dpatch.make
@@ -81,6 +87,10 @@
$(MAKE) -C src runtests
endif
+ #unfortunately passing the multiarch dir for slang results in the
+ #upstream build system adding a rpath. Remove this with chrpath
+ chrpath -d src/objs/jed
+ chrpath -d src/objs/xjed
touch build-stamp
binary-indep: config.status