[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#928794: marked as done (iipimage FTCBFS: abuses AC_CHECK_FILE)



Your message dated Tue, 1 Oct 2019 09:35:29 +0200
with message-id <[🔎] CA+7wUsycBiurrG+9WZrOC+ApO02oVQ6z_+Ezr7vM8T-3LYUPyg@mail.gmail.com>
and subject line Re: Bug#928794: iipimage FTCBFS: abuses AC_CHECK_FILE
has caused the Debian Bug report #928794,
regarding iipimage FTCBFS: abuses AC_CHECK_FILE
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
928794: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=928794
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: iipimage
Version: 1.0-3
Tags: patch upstream
User: helmutg@debian.org
Usertags: rebootstrap

iipimage fails to cross build from source, because it abuses
AC_CHECK_FILE. The macro is meant to check for files on the host system,
but it uses it to find development components on the build system.
Please use a simple "test -f" for the latter. The attached patch fixes
that and makes iipimage cross buildable. Please consider applying it.

Helmut
--- iipimage-1.0.orig/configure.ac
+++ iipimage-1.0/configure.ac
@@ -214,7 +214,7 @@
    kakadu_path=$withval)
 
 
-AC_CHECK_FILE( $kakadu_path/managed/all_includes/jpx.h,
+AS_IF([test -f "$kakadu_path/managed/all_includes/jpx.h"],
 	AC_MSG_RESULT([configure: Found Kakadu sources. Will compile JPEG2000 support]); KAKADU=true,
 	AC_MSG_RESULT([configure: No Kakadu JPEG2000 Sources Found]); KAKADU=false
 )
@@ -228,7 +228,7 @@
 	LIBS="$LIBS $kakadu_path/apps/make/jpx.o $kakadu_path/apps/make/jp2.o $kakadu_path/apps/make/kdu_stripe_decompressor.o -L$kakadu_path/apps/make -l$kakadu_lib_name -lpthread"
 
 	# Check for SSSE3 support in Kakadu
-	AC_CHECK_FILE( $kakadu_path/apps/make/ssse3_stripe_transfer.o,
+	AS_IF([test -f "$kakadu_path/apps/make/ssse3_stripe_transfer.o"],
 		KDU_SSSE3=true
 	)
 	if test "x${KDU_SSSE3}" = xtrue; then
@@ -236,7 +236,7 @@
 	fi
 
 	# Check for AVX2 support in Kakadu
-	AC_CHECK_FILE( $kakadu_path/apps/make/avx2_stripe_transfer.o,
+	AS_IF([test -f "$kakadu_path/apps/make/avx2_stripe_transfer.o"],
 		AC_MSG_RESULT([configure: Kakadu is >= v7.5.]);
 		KDU_75=true,
 		AC_MSG_RESULT([configure: Kakadu is < v7.5])

--- End Message ---
--- Begin Message ---
fixed 928794 1.1-2
thanks

Should be fixed in latest upstream.

--- End Message ---

Reply to: