Bug 39680 - Imagemagick port has configure error
Summary: Imagemagick port has configure error
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-06-23 01:00 UTC by Stephen Montgomery-Smith
Modified: 2002-06-24 16:17 UTC (History)
0 users

See Also:


Attachments
file.diff (503 bytes, patch)
2002-06-23 01:00 UTC, Stephen Montgomery-Smith
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stephen Montgomery-Smith 2002-06-23 01:00:09 UTC
If you do make in /usr/ports/graphics/Imagemagick you get an error with the
configure stage.

Fix: kluware@kluware.de discovered that the build works if bash is installed.  So
the suggested fix is as follows.  It certainly works, although I have no idea
why.  But just for the record, in case this is the right fix, I am submitting
it as a PR, so that it is applied (because if you read ports@freebsd.org you
will see a lot of people complaining about this).
Comment 1 Oliver Lehmann 2002-06-23 03:57:05 UTC
On Sat, 22 Jun 2002 18:56:14 -0500 (CDT)
Stephen Montgomery-Smith <stephen@math.missouri.edu> wrote:

> kluware@kluware.de discovered that the build works if bash is installed.

Adding bash as a dependency to get the port compile, isn't a good idea
imho. I don't have bash, and i don't see a reason to install it only to
run configure ImageMagick. So please take the following patch instead of
the bash dependency. The patch was tested on 4-stable.




diff -ruN ImageMagick.old/Makefile
/usr/ports/graphics/ImageMagick/Makefile
--- ImageMagick.old/Makefile	Sun Jun 23 04:12:18 2002
+++ /usr/ports/graphics/ImageMagick/Makefile	Sun Jun 23 04:42:15 2002
@@ -51,7 +51,7 @@
 USE_LIBTOOL=	yes
 LIBTOOLFLAGS=	# none
 CONFIGURE_TARGET=	--build=${ARCH}-portbld-freebsd${OSREL}
-CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
+CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include/freetype2 ${CPPFLAGS}"
LDFLAGS="${LDFLAGS}"
 CONFIGURE_ARGS=	--enable-shared --with-perl=${PERL5} \
 		--without-gslib --without-hdf --without-jp2
 INSTALLS_SHLIB=	yes
diff -ruN ImageMagick.old/files/patch-configure
/usr/ports/graphics/ImageMagick/files/patch-configure
--- ImageMagick.old/files/patch-configure	Sun Jun 23 04:12:18 2002
+++ /usr/ports/graphics/ImageMagick/files/patch-configure	Sun Jun 23 04:12:24 2002
@@ -1,10 +1,21 @@
---- configure.orig	Sat Apr  6 04:06:38 2002
-+++ configure	Fri May  3 04:10:56 2002
-@@ -14424,6 +14424,7 @@
+--- configure.orig	Sun Jun 23 04:06:36 2002
++++ configure	Sun Jun 23 04:11:55 2002
+@@ -157,7 +157,7 @@
+ 
+ 
+ 
+-tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
++#tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
+ 
+ if expr a : '\(a\)' >/dev/null 2>&1; then
+   as_expr=expr
+@@ -14688,7 +14688,8 @@
+ # Configure libtool
  
  # This can be used to rebuild libtool when needed
- LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
-+$ac_aux_dir/ltconfig $LIBTOOL_DEPS
+-LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
++LIBTOOL_DEPS=" /usr/local/share/libtool/ltmain.sh"
++/usr/local/share/libtool/ltconfig $LIBTOOL_DEPS
  
  # Always use our own libtool.
  LIBTOOL='$(SHELL) $(top_builddir)/libtool'
diff -ruN ImageMagick.old/files/patch-ltdl::configure
/usr/ports/graphics/ImageMagick/files/patch-ltdl::configure
--- ImageMagick.old/files/patch-ltdl::configure	Thu Jan  1 01:00:00 1970
+++ /usr/ports/graphics/ImageMagick/files/patch-ltdl::configure	Sun Jun 23 04:16:05 2002
@@ -0,0 +1,11 @@
+--- ltdl/configure.orig	Sun Jun 23 04:15:26 2002
++++ ltdl/configure	Sun Jun 23 04:15:32 2002
+@@ -159,7 +159,7 @@
+ 
+ 
+ 
+-tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
++#tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
+ 
+ if expr a : '\(a\)' >/dev/null 2>&1; then
+   as_expr=expr




-- 
:======>   Oliver Lehmann   <======:     clear perl code  is better than
:====>  lehmann@ans-netz.de   <====:      unclear awk code; but NOTHING
:===>   http://www.pofo.de/    <===:    comes close to  unclear perl code
:=>   http://wishlist.pofo.de/   <=:     (taken from  comp.lang.awk FAQ)
Comment 2 Oliver Lehmann 2002-06-23 03:58:32 UTC
and now the same w/o linebreaks *sigh*


diff -ruN ImageMagick.old/Makefile /usr/ports/graphics/ImageMagick/Makefile
--- ImageMagick.old/Makefile	Sun Jun 23 04:12:18 2002
+++ /usr/ports/graphics/ImageMagick/Makefile	Sun Jun 23 04:42:15 2002
@@ -51,7 +51,7 @@
 USE_LIBTOOL=	yes
 LIBTOOLFLAGS=	# none
 CONFIGURE_TARGET=	--build=${ARCH}-portbld-freebsd${OSREL}
-CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
+CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include/freetype2 ${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
 CONFIGURE_ARGS=	--enable-shared --with-perl=${PERL5} \
 		--without-gslib --without-hdf --without-jp2
 INSTALLS_SHLIB=	yes
diff -ruN ImageMagick.old/files/patch-configure /usr/ports/graphics/ImageMagick/files/patch-configure
--- ImageMagick.old/files/patch-configure	Sun Jun 23 04:12:18 2002
+++ /usr/ports/graphics/ImageMagick/files/patch-configure	Sun Jun 23 04:12:24 2002
@@ -1,10 +1,21 @@
---- configure.orig	Sat Apr  6 04:06:38 2002
-+++ configure	Fri May  3 04:10:56 2002
-@@ -14424,6 +14424,7 @@
+--- configure.orig	Sun Jun 23 04:06:36 2002
++++ configure	Sun Jun 23 04:11:55 2002
+@@ -157,7 +157,7 @@
+ 
+ 
+ 
+-tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
++#tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
+ 
+ if expr a : '\(a\)' >/dev/null 2>&1; then
+   as_expr=expr
+@@ -14688,7 +14688,8 @@
+ # Configure libtool
  
  # This can be used to rebuild libtool when needed
- LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
-+$ac_aux_dir/ltconfig $LIBTOOL_DEPS
+-LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
++LIBTOOL_DEPS=" /usr/local/share/libtool/ltmain.sh"
++/usr/local/share/libtool/ltconfig $LIBTOOL_DEPS
  
  # Always use our own libtool.
  LIBTOOL='$(SHELL) $(top_builddir)/libtool'
diff -ruN ImageMagick.old/files/patch-ltdl::configure /usr/ports/graphics/ImageMagick/files/patch-ltdl::configure
--- ImageMagick.old/files/patch-ltdl::configure	Thu Jan  1 01:00:00 1970
+++ /usr/ports/graphics/ImageMagick/files/patch-ltdl::configure	Sun Jun 23 04:16:05 2002
@@ -0,0 +1,11 @@
+--- ltdl/configure.orig	Sun Jun 23 04:15:26 2002
++++ ltdl/configure	Sun Jun 23 04:15:32 2002
+@@ -159,7 +159,7 @@
+ 
+ 
+ 
+-tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
++#tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
+ 
+ if expr a : '\(a\)' >/dev/null 2>&1; then
+   as_expr=expr

-- 
:======>   Oliver Lehmann   <======:     clear perl code  is better than
:====>  lehmann@ans-netz.de   <====:      unclear awk code; but NOTHING
:===>   http://www.pofo.de/    <===:    comes close to  unclear perl code
:=>   http://wishlist.pofo.de/   <=:     (taken from  comp.lang.awk FAQ)
Comment 3 Mario Sergio Fujikawa Ferreira freebsd_committer freebsd_triage 2002-06-24 16:17:25 UTC
State Changed
From-To: open->closed

Fix committed, thanks!