Re: swi-prolog: FTBFS: No rule to make target `install'. Stop.
tag 644593 patch
thanks
Hi,
> Your package failed to build on the kfreebsd-* buildds:
>
>> for f in random.pl unix.pl socket.pl cgi.pl memfile.pl filesex.pl mime.pl crypt.pl time.pl rlimit.pl streampool.pl streaminfo.pl process.pl prolog_server.pl sha.pl uri.pl; do \
>> /usr/bin/install -c -m 644 /build/buildd-swi-prolog_5.10.4-2-kfreebsd-amd64-MGIxRd/swi-prolog-5.10.4/src/../packages/clib/$f /build/buildd-swi-prolog_5.10.4-2-kfreebsd-amd64-MGIxRd/swi-prolog-5.10.4/debian/swi-prolog-nox/usr/lib/swi-prolog/library; \
>> done
>> /build/buildd-swi-prolog_5.10.4-2-kfreebsd-amd64-MGIxRd/swi-prolog-5.10.4/src/swipl -f none -g make -t halt
>> make[1]: Leaving directory `/build/buildd-swi-prolog_5.10.4-2-kfreebsd-amd64-MGIxRd/swi-prolog-5.10.4/packages/clib'
>> make[1]: *** make[1]: Entering directory `/build/buildd-swi-prolog_5.10.4-2-kfreebsd-amd64-MGIxRd/swi-prolog-5.10.4/packages/jpl'
>> No rule to make target `install'. Stop.
>> make[1]: Leaving directory `/build/buildd-swi-prolog_5.10.4-2-kfreebsd-amd64-MGIxRd/swi-prolog-5.10.4/packages/jpl'
>> make: *** [install] Error 2
>
> Full build log at
> https://buildd.debian.org/status/fetch.php?pkg=swi-prolog&arch=kfreebsd-i386&ver=5.10.4-2&stamp=1316344686
>
This problem has occurred also the other architecture (armhf,
popwerpcspe, s390x and sh4).
This is caused by that _JNI_LIBDIRS is not correctly set up by configure.
In the case of SH4, a problem is solved with the attached patch.
I am pleased if it becomes helpful.
Best regards,
Nobuhiro
--
Nobuhiro Iwamatsu
iwamatsu at {nigauri.org / debian.org}
GPG ID: 40AD1FA6
--- a/debian/control 2011-08-25 06:27:50.000000000 +0900
+++ b/debian/control 2011-11-02 13:41:03.000000000 +0900
@@ -2,7 +2,7 @@
Section: interpreters
Priority: optional
Maintainer: Chris Lamb <lamby@debian.org>
-Build-Depends: debhelper (>= 5), autoconf, autotools-dev, libncurses5-dev, libreadline-dev, libgmp-dev, libjpeg-dev, libx11-dev, libxpm-dev, libxt-dev, x11proto-core-dev, chrpath, unixodbc-dev, openjdk-6-jdk [alpha amd64 armel i386 ia64 mips mipsel powerpc s390 sparc], libxft-dev, libxext-dev, libice-dev, libxinerama-dev
+Build-Depends: debhelper (>= 5), autoconf, autotools-dev, libncurses5-dev, libreadline-dev, libgmp-dev, libjpeg-dev, libx11-dev, libxpm-dev, libxt-dev, x11proto-core-dev, chrpath, unixodbc-dev, openjdk-6-jdk [alpha amd64 armel i386 ia64 mips mipsel powerpc s390 sh4 sparc], libxft-dev, libxext-dev, libice-dev, libxinerama-dev
Standards-Version: 3.9.2
Vcs-Git: git://github.com/lamby/pkg-swi-prolog.git
Vcs-Browser: https://github.com/lamby/pkg-swi-prolog
@@ -74,7 +74,7 @@
gained popularity most with Prolog.
Package: swi-prolog-java
-Architecture: alpha amd64 armel i386 ia64 mips mipsel powerpc s390 sparc
+Architecture: alpha amd64 armel i386 ia64 mips mipsel powerpc s390 sh4 sparc
Depends: ${shlibs:Depends}, swi-prolog-nox (= ${binary:Version}), ${misc:Depends}, openjdk-6-jre-headless | java2-runtime
Description: Bidirectional interface between SWI-Prolog and Java
SWI-Prolog is a fast and powerful ISO/Edinburgh-style Prolog compiler with a
diff --git a/packages/jpl/configure b/packages/jpl/configure
index 8a39068..5024970 100755
--- a/packages/jpl/configure
+++ b/packages/jpl/configure
@@ -5322,6 +5322,16 @@ case "$host_cpu" in
_JNI_LIBDIRS=""
esac
;;
+ sh4)
+ case "$host_os" in
+ linux*)
+ _JNI_LIBDIRS="lib/sh"
+ _JNI_LIBSUBDIRS="server"
+ ;;
+ *)
+ _JNI_LIBDIRS=""
+ esac
+ ;;
*)
# Fallback option should work on all architectures except
# amd64 and powerpc which are special cased above.
diff --git a/packages/jpl/ac/ac_jni_include_dirs.m4 b/packages/jpl/ac/ac_jni_include_dirs.m4
index f663f9a..8e5b7f6 100644
--- a/packages/jpl/ac/ac_jni_include_dirs.m4
+++ b/packages/jpl/ac/ac_jni_include_dirs.m4
@@ -78,6 +78,16 @@ case "$host_cpu" in
_JNI_LIBDIRS=""
esac
;;
+ sh4)
+ case "$host_os" in
+ linux*)
+ _JNI_LIBDIRS="lib/sh"
+ _JNI_LIBSUBDIRS="server"
+ ;;
+ *)
+ _JNI_LIBDIRS=""
+ esac
+ ;;
*)
# Fallback option should work on all architectures except
# amd64 and powerpc which are special cased above.
Reply to: