Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 20967 - portage bug: imagemagick-5.5.6-r1 ebuild doesn't respect use flags and econf options
Summary: portage bug: imagemagick-5.5.6-r1 ebuild doesn't respect use flags and econf ...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High major
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-13 17:36 UTC by Matt Taylor
Modified: 2011-10-30 22:19 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Taylor 2003-05-13 17:36:54 UTC
emerge imagemagick

...

ImageMagick is configured as follows. Please verify that this
configuration matches your expectations.

Host system type : i686-pc-linux-gnu

Option            Configure option              Configured value
-----------------------------------------------------------------
Shared libraries  --enable-shared=yes           yes
Static libraries  --enable-static=yes           yes
GNU ld            --with-gnu-ld=yes             yes
LZW support       --enable-lzw=no               no
Quantum depth     --with-quantum-depth=16       16

Delegate Configuration:
BZLIB             --with-bzlib=yes              yes
DPS               --with-dps=yes                no (failed tests)
FlashPIX          --with-fpx=yes                no
FreeType 2.0      --with-ttf=yes                yes
Ghostscript       None                          /usr/bin/gs
Ghostscript fonts --with-gs-font-dir=default    /usr/share/ghostscript/fonts/
Ghostscript lib   --with-gslib=yes              no
JBIG              --with-jbig=yes               yes
JPEG v1           --with-jpeg=yes               yes
JPEG v2           --with-jp2=yes                no
LCMS              --with-lcms=yes               yes
Magick++          --with-magick-plus-plus=yes   yes
PERL              --with-perl=yes               /usr/bin/perl
PNG               --with-png=yes                yes
TIFF              --with-tiff=yes               yes
Windows fonts     --with-windows-font-dir=      none
WMF               --with-wmf=yes                no
X11               --with-x=                     yes
XML               --with-xml=yes                yes
ZLIB              --with-zlib=yes               yes

X11 Configuration:
  X_CFLAGS     = -I/usr/X11R6/include
  X_PRE_LIBS   = -lSM -lICE
  X_LIBS       = -L/usr/X11R6/lib
  X_EXTRA_LIBS = 

Options used to compile and link:
  CC       = gcc
  CFLAGS   = -march=i686 -O3 -pipe -Wall
  CPPFLAGS = -I/usr/include/freetype2 -D_FILE_OFFSET_BITS=64 -D_REENTRANT
-I/usr/X11R6/include -I/usr/include/libxml2
  CXX      = g++
  CXXFLAGS = -march=i686 -O3 -pipe
  LDFLAGS  = -L/usr/X11R6/lib -L/usr/lib -L/usr/lib
  LIBS     = -ljbig -llcms -ltiff -lfreetype -ljpeg -lpng -lXext -lSM -lICE
-lX11 -lbz2 -lxml2 -lz -lpthread -lm

/usr/sbin/ebuild.sh: line 69: --enable-lzw: command not found
Making all in coders
make[1]: Entering directory
`/var/tmp/portage/imagemagick-5.5.6-r1/work/ImageMagick-5.5.6/coders'

...

notice 'LCMS              --with-lcms=yes               yes' and 
'LZW support       --enable-lzw=no               no'

I don't have lcms in my use settings and the ebuild explicity enables lzw
support.  Also the ebuild.sh error at the end shows something is wrong.  Looking
at the ebuild I see this:

	econf \
		--enable-shared \
		#--enable-static \
		--enable-lzw \
		--with-fpx \
		--with-jbig \
		--without-hdf \
		--with-threads \
		--with-bzlib \
		${myconf}

It looks like econf is choaking on the commented line in the middle, and not
parsing all the options after it.  If I remove the commented line I see the
proper output from configure and no ebuild.sh error.

I put this as a portage bug cuz econf isn't parsing properly.  It can be worked
around by just removing any comments in a econf line.

Reproducible: Always
Steps to Reproduce:
1. emerge imagemagick

Actual Results:  
configured with the wrong settings with no respect for use flags and a ebuild.sh
error.

Expected Results:  
used use flags and no error.

$ emerge info
Portage 2.0.47-r10 (default-1.0, gcc-2.95.3, glibc-2.2.5-r8)
=================================================================
System uname: 2.4.19-gentoo-r10e i686 AMD Athlon(tm) processor
GENTOO_MIRRORS="http://linux.oit.umass.edu/gentoo/gentoo
ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo/ http://gentoo.oregonstate.edu
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/mnt/linuxback/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY="/home/liverbugg/portage"
USE="x86 oss 3dnow apm avi crypt cups jpeg libg++ mikmod mmx mpeg ncurses pdflib
quicktime spell truetype xml2 xmms xv alsa berkdb bonobo cdr directfb esd gdbm
ggi gif gnome gnome-libs gpm gtk gtkhtml guile imlib libwww motif mozilla mysql
nls oggvorbis opengl pam perl png python readline sdl slang snmp ssl svga tcltk
tcpd tiff X -kde -qt -arts -java dvd encode gtk2"
COMPILER=""
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=i686 -O3 -pipe"
CXXFLAGS="-march=i686 -O3 -pipe"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache digest userpriv usersandbox"
Comment 1 Bret Towe 2003-05-24 17:59:38 UTC
i dont think this is a econf bug but rather just how bash works
it would prob continue onto the next line if the \ wasnt commented out also ;)
Comment 2 Matt Taylor 2003-05-26 01:56:57 UTC
I tested this and configure choaks.  I put a '\' at the begining of line 66.

configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type:  #--enable-static
configuring ImageMagick 5.5.6
checking build system type... Invalid configuration `#--enable-static': machine `#--enable' not recognized
configure: error: /bin/sh ./config.sub  #--enable-static failed

!!! ERROR: media-gfx/imagemagick-5.5.6-r1 failed.
!!! Function econf, Line 303, Exitcode 1
!!! econf failed


I also upgraded to portage-2.0.48 and this problem still exists.
Comment 3 Bret Towe 2003-06-08 16:47:58 UTC
yeah it will continue to exist
removing the commented line is only fix for now
moving would be good also
Comment 4 Graham Forest 2003-06-08 16:55:41 UTC
I'll handle this as soon as my system finishes updating, it's no biggie (I've just been inactive for a while due to a move)
Comment 5 Graham Forest 2003-06-28 01:11:57 UTC
So long, and thanks for all the fish
Comment 6 Nick Hadaway 2003-07-15 23:27:45 UTC
This problem appears to be fixed in the latest stable and unstable ebuilds. 5.5.6-r1 and 5.5.7