Skip site navigation (1)Skip section navigation (2)
Date:      7 Apr 2000 02:35:33 -0000
From:      lioux@uol.com.br
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/17838: graphics/ImageMagick patch to overcome Xarch.h issue with XFree86-4
Message-ID:  <20000407023533.72059.qmail@Fedaykin.here>

next in thread | raw e-mail | index | archive | help

>Number:         17838
>Category:       ports
>Synopsis:       graphics/ImageMagick patch to overcome Xarch.h issue with XFree86-4
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr  6 21:00:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Mario Sergio Fujikawa Ferreira
>Release:        FreeBSD 4.0-STABLE i386
>Organization:
>Environment:

FreeBSD Here.here 4.0-STABLE FreeBSD 4.0-STABLE #10: Thu Apr  6 01:01:00 EST 2000     lioux@Here.here:/usr/src/sys/compile/LIOUX  i386

>Description:

Patch to fix ImageMagick configure issue with XFree86-4. The configure script
just by detecting an elf.h header file was defining SVR4 which was breaking
Xarch.h from XFree86-4.

Fix: I patched configure.in and then told the port to use autoconf
to regenerate configure.

>How-To-Repeat:

Building ImageMagick with XFree86-4 on any FBSD with /usr/include/elf.h
should do it.

>Fix:

diff -ruN ./Makefile /tmp/ImageMagick/Makefile
--- ./Makefile	Thu Apr  6 23:15:41 2000
+++ /tmp/ImageMagick/Makefile	Thu Apr  6 23:30:13 2000
@@ -38,7 +38,7 @@
 MAN5=	quantize.5
 
 MAN3PREFIX=	${PREFIX}/lib/perl5/${PERL_VERSION}
-HAS_CONFIGURE=	YES
+USE_AUTOCONF=	YES
 CONFIGURE_ARGS= --prefix=${PREFIX} --enable-shared --with-perl=${PERL5} \
 		--enable-16bit-pixel
 .if defined(HAVE_UNISYS_LICENSE)
diff -ruN ./patches/patch-a /tmp/ImageMagick/patches/patch-a
--- ./patches/patch-a	Wed Dec 31 21:00:00 1969
+++ /tmp/ImageMagick/patches/patch-a	Thu Apr  6 23:13:23 2000
@@ -0,0 +1,11 @@
+--- configure.in.ORIG	Thu Apr  6 23:09:36 2000
++++ configure.in	Thu Apr  6 23:12:16 2000
+@@ -263,7 +263,7 @@
+ AC_HEADER_TIME
+ AC_HEADER_SYS_WAIT
+ AC_HEADER_DIRENT
+-AC_CHECK_HEADER(elf.h,AC_DEFINE(SVR4))
++#AC_CHECK_HEADER(elf.h,AC_DEFINE(SVR4))
+ AC_CHECK_HEADERS(sys/time.h sys/stat.h sys/types.h)
+ AC_CHECK_HEADERS(math.h string.h stdarg.h pwd.h malloc.h)
+ AC_CHECK_HEADERS(memory.h errno.h fcntl.h)

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000407023533.72059.qmail>