Date: Wed, 12 Aug 2009 22:52:46 -0500 (CDT) From: Stephen Montgomery-Smith <stephen@missouri.edu> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/137712: ImageMagick does not build with FreeBSD 7.2 Message-ID: <200908130352.n7D3qkEs022437@cauchy.math.missouri.edu> Resent-Message-ID: <200908130400.n7D40GRg008308@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 137712 >Category: ports >Synopsis: ImageMagick does not build with FreeBSD 7.2 >Confidential: no >Severity: critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Thu Aug 13 04:00:16 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Stephen Montgomery-Smith >Release: FreeBSD 7.2-STABLE i386 >Organization: >Environment: System: FreeBSD cauchy 7.2-STABLE FreeBSD 7.2-STABLE #0: Wed Jul 29 15:00:29 CDT 2009 stephen@cauchy:/usr/obj/usr/src/sys/GENERIC i386 >Description: The port ImageMagick-6.5.4.10 does not build on FreeBSD 7.2, because it uses the function carg, which is only available on FreeBSD 8. If you look at /usr/src/lib/msun/src/s_carg.c you will see that carg(z) is a drop in replacement for atan2(cimag(z), creal(z)). Thus the proposed fix may as well be implemented on FreeBSD 8 as well as FreeBSD 7.2. >How-To-Repeat: >Fix: Put a patch into files which effects the following patch: --- magick/fourier-orig.c 2009-08-12 21:39:18.000000000 -0500 +++ magick/fourier.c 2009-08-12 21:40:13.000000000 -0500 @@ -515,7 +515,7 @@ for (x=0L; x < (long) fourier_info->center; x++) { magnitude[i]=cabs(fourier[i]); - phase[i]=carg(fourier[i]); + phase[i]=atan2(cimag(fourier[i]),creal(fourier[i])); i++; } else >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200908130352.n7D3qkEs022437>