Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 175414 - configure fails for autotrace-0.31.1-r2
Summary: configure fails for autotrace-0.31.1-r2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
: 203560 (view as bug list)
Depends on: 175679
Blocks:
  Show dependency tree
 
Reported: 2007-04-21 06:00 UTC by Juergen Rose
Modified: 2008-06-09 07:57 UTC (History)
8 users (show)

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


Attachments
autotrace-0.31.1-r2.ebuild correction for AM_PATH_PSTOEDIT (autotrace-0.31.1-r2.diff,433 bytes, patch)
2007-04-23 10:11 UTC, Honza Macháček
Details | Diff
pstoedit-3.44.ebuild modification to correct pstoedit.m4 (pstoedit-3.44-r1.diff,376 bytes, patch)
2007-04-23 10:12 UTC, Honza Macháček
Details | Diff
pstoedit-3.44-m4.patch to correct pstoedit.m4 (pstoedit-3.44-m4.patch,655 bytes, patch)
2007-04-23 10:14 UTC, Honza Macháček
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Rose 2007-04-21 06:00:23 UTC
Emerging autotrace, configure fails with:
 * Running autoconf ...                                                                                                                                                                                                               [ !! ]

 * Failed Running autoconf !
 * 
 * Include in your bugreport the contents of:
 * 
 *   /var/tmp/portage/media-gfx/autotrace-0.31.1-r2/temp/autoconf-6556.out


!!! ERROR: media-gfx/autotrace-0.31.1-r2 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_unpack
  ebuild.sh, line 751:   Called qa_call 'src_unpack'
  ebuild.sh, line 44:   Called src_unpack
  autotrace-0.31.1-r2.ebuild, line 29:   Called eautoreconf
  autotools.eclass, line 95:   Called eautoconf
  autotools.eclass, line 165:   Called autotools_run_tool 'autoconf'
  autotools.eclass, line 218:   Called die

In /var/tmp/portage/media-gfx/autotrace-0.31.1-r2/temp/autoconf-6556.out I find

***** autoconf *****

configure.in:288: error: possibly undefined macro: AM_PATH_PSTOEDIT
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.


Reproducible: Always




It was tested on two systems, the first was a amd system with the following software state the second a p4 system with a similar state

root@cheetah:/root(89)# emerge --info
Portage 2.1.2.4 (default-linux/x86/2006.1, gcc-4.1.2, glibc-2.5-r1, 2.6.20.2 i686)
=================================================================
System uname: 2.6.20.2 i686 AMD Athlon(tm) XP 1800+
Gentoo Base System release 1.12.10
Timestamp of tree: Fri, 20 Apr 2007 18:00:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [disabled]
dev-java/java-config: 1.3.7, 2.0.31-r7
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.20-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc
/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ rsync://ftp.fi.muni.cz/pub/linux/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo rsync://gd.tuwien.ac.a
t/opsys/linux/gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo http://gentoo.oregonstate.edu"
LINGUAS="de fr"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/science /usr/local/portage /usr/local/portage/xeffects/trunk /usr/local/portage/xeffects/experimental /usr/local/sci"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X Xaw3d a52 aac acl acpi aiglx alsa amrr ao aotuv apache2 asf atlas auctex audacious audiofile automount beagle berkdb bitmap-fonts blas bonobo boo bzip2 cairo cdda cddb cdf cdio cdparanoia cdr cgi chm cli corba crac
klib crypt cups curl daap dbus devmap dga divx dlloader dmi dri dv dvb dvd dvdr dvi dxr3 dynagraph effects elf emacs emboss encode epiphany esd evo evolution exif expat fam fame ffmpeg fftw firefox fits flac fltk foomaticdb fortran fpx 
galago gdal gdbm geos gif gimp gimpprint ginac glade glitz gml gmp gnome gnuplot gnutls gphoto2 gpm graphviz grass gs gsl gsm gstreamer gtk guile hal hardened hddtemp hdf hdf5 hlapi iconv icq id3 imagemagick innodb ipv6 isdnlog jabber j
big john jp2 jpeg jpeg2k kexi ladspa lame lapack latex lcms ldap libg++ libgda libsamplerate lirc lm_sensors lua lzo lzw mad math matroska matrox midi mmx mmxext mng mod mono motif mozdevelop mozilla mozsvg mozxmlterm mp3 mp4live mpeg m
peg2 mplayer musicbrainz mysql mysqli nautilus ncurses netcdf network nfs nls nntp nptl nptlonly ntfs numarray numeric ocaml octave odbc ogdi ogg ole opengl pam pcre pdf perl plotutils plugin png posix postgres ppds pppd proj python qhu
ll quicktime readline real reflection reiserfs rhythmbox rle rrdcgi rrdtool samba sdl session slang slp sndfile snmp sox speex spell spl sqlite sse sse2 ssl subtitles svg t1lib tcltk tcpd tetex theora thunderbird tidy tiff tk truetype t
ruetype-fonts type1-fonts unicode userlocales v4l2 vorbis win32codecs wmf x86 xattr xemacs xext xine xml xml2 xmlreader xmlrpc xorg xpm xv xvid xvmc zlib zvbi" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsn
oop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216
 lcdm001 mtxorb ncurses text" LINGUAS="de fr" LIRC_DEVICES="hauppauge" USERLAND="GNU" VIDEO_CARDS="mga vesa fbdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Honza Macháček 2007-04-23 10:11:02 UTC
Created attachment 117064 [details, diff]
autotrace-0.31.1-r2.ebuild correction for AM_PATH_PSTOEDIT

The problem emerges when autotrace is emerged with USE="pdf". Configuration then needs AM_PATH_PSTOEDIT macro, but /usr/share/aclocal/pstoedit.m4 fails to define it. In fact, the definition is there, but in the course of its developement from 3.42 to 3.44 version it lost its header somehow. The autotrace ebuild tries to correct this, but wrong way -- it is not an autotrace problem, it is a pstoedit problem. So the attempt to correct the problem in the autotrace ebuild is to be removed (it does not work anyway) and the ebuild for pstoedit is to incorporate the necessary correction -- not to speak of correcting the pstoedit.m4 file upstream.
Comment 2 Honza Macháček 2007-04-23 10:12:28 UTC
Created attachment 117065 [details, diff]
pstoedit-3.44.ebuild modification to correct pstoedit.m4

This is how to modify the media-gfx/pstoedit-3.44 ebuild.
Comment 3 Honza Macháček 2007-04-23 10:14:08 UTC
Created attachment 117066 [details, diff]
pstoedit-3.44-m4.patch to correct pstoedit.m4

And this is the patch to pstoedit used by its modified ebuild.
Comment 4 Patrizio Bassi 2007-05-04 21:06:21 UTC
seems ok, can u apply to portage?
Comment 5 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2007-06-08 17:05:04 UTC
For me, the patch gets around the config error, but doesn't seem to solve the actual problem, one of which being autotrace wants an /old/ pstoedit.

*** Checking pstoedit existence TWICE(if needed) ***
*** This is the 1st check                        ***
checking for pstoedit-config... no
checking for PSTOEDIT - version >= 3.32.1... no
*** The pstoedit-config script installed by PSTOEDIT could not be found
*** If PSTOEDIT was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the PSTOEDIT_CONFIG environment variable to the
*** full path to pstoedit-config.
*** The 1st check is failed.                     ***
*** This is the 2nd check                        ***
checking for pstoedit-config... (cached) no
checking for PSTOEDIT - version >= 3.32.0... no
*** The pstoedit-config script installed by PSTOEDIT could not be found
*** If PSTOEDIT was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the PSTOEDIT_CONFIG environment variable to the
*** full path to pstoedit-config.
*** The 2nd check is failed.                     ***
configure: WARNING:
*** Cannot find libpstoedit. ***
*** Output functions using libpstoedit are disabled ***
configure: creating ./config.status
config.status: creating Makefile
config.status: creating autotrace-config
config.status: creating autotrace.pc
config.status: creating autotrace.spec
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing default commands
Configuration:
        imagemagick output support:     yes
        libpng output support:          yes
        swf output support by ming:     yes
        pstoedit output support:        no


Isn't "PSTOEDIT" output support the whole point of this fix anyway?
Comment 6 Patrizio Bassi 2007-09-30 20:06:02 UTC
>>> Unpacking autotrace-0.31.1.tar.gz to /mnt/Dati/Gentoo/tmp/portage/media-gfx/autotrace-0.31.1-r2/work
 * Applying autotrace-0.31.1-m4.patch ...                                                                                                                      [ ok ]
 * Applying autotrace-0.31.1-libs.patch ...                                                                                                                    [ ok ]
 * Applying autotrace-imagemagick.patch ...                                                                                                                    [ ok ]
 * Running eautoreconf in '/mnt/Dati/Gentoo/tmp/portage/media-gfx/autotrace-0.31.1-r2/work/autotrace-0.31.1' ...
 * Running aclocal ...                                                                                                                                         [ ok ]
 * Running libtoolize --copy --force --automake ...                                                                                                            [ ok ]
 * Running aclocal ...                                                                                                                                         [ ok ]
 * Running autoconf ...                                                                                                                                        [ !! ]

 * Failed Running autoconf !
 *
 * Include in your bugreport the contents of:
 *
 *   /mnt/Dati/Gentoo/tmp/portage/media-gfx/autotrace-0.31.1-r2/temp/autoconf-10585.out

 *
 * ERROR: media-gfx/autotrace-0.31.1-r2 failed.
 * Call stack:
 *                    ebuild.sh, line 1684:  Called dyn_unpack
 *                    ebuild.sh, line  798:  Called qa_call 'src_unpack'
 *                    ebuild.sh, line   44:  Called src_unpack
 *   autotrace-0.31.1-r2.ebuild, line   29:  Called eautoreconf
 *             autotools.eclass, line   96:  Called eautoconf
 *             autotools.eclass, line  166:  Called autotools_run_tool 'autoconf'
 *             autotools.eclass, line  219:  Called die
still fails...


 * The specific snippet of code:
 *              die "Failed Running $1 !"
 *  The die message:
 *   Failed Running autoconf !
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/mnt/Dati/Gentoo/tmp/portage/media-gfx/autotrace-0.31.1-r2/temp/build.log'.
 *

 * Messages for package media-gfx/autotrace-0.31.1-r2:
Comment 7 Patrizio Bassi 2007-10-14 16:02:18 UTC
any news on this issue?
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2007-12-28 13:54:10 UTC
*** Bug 203560 has been marked as a duplicate of this bug. ***
Comment 9 Luca Barbato gentoo-dev 2007-12-28 14:49:30 UTC
is this project still alive?
Comment 10 johnny 2008-05-15 18:27:03 UTC
(In reply to comment #9)
> is this project still alive?
> 

inkscape still uses it afaict
Comment 11 Andrija Prčić 2008-05-15 20:19:31 UTC
(In reply to comment #10)
> inkscape still uses it afaict

Inkscape can use autotrace if it is installed (according to the wiki), but doesn't depend on it at all. Autotrace gave me better results in some cases but, in my experience, potrace also does a good job most of the time.

To quote from http://wiki.inkscape.org/wiki/index.php/Tools#Vectorize.2Ftrace

"Potrace is now embedded into Inkscape. You don't need to run it separately."

I don't have autotrace nor potrace installed at the moment, and I can trace bitmaps in inkscape.

I have inkscape-0.46-r2 emerged.
Comment 12 Peter Alfredsen (RETIRED) gentoo-dev 2008-06-09 07:57:32 UTC
Fixed this one. Hope you don't mind.

+*autotrace-0.31.1-r3 (09 Jun 2008)
+
+  09 Jun 2008; Peter Alfredsen <loki_val@gentoo.org>
+  -files/autotrace-0.31.1-libs.patch,
+  +files/autotrace-0.31.1-swf-output.patch, metadata.xml,
+  -autotrace-0.31.1-r2.ebuild, +autotrace-0.31.1-r3.ebuild:
+  Added debian patches, fixed bugs 192474, 175414 and 122035. Added fonts
+  herd and myself to metadata.
+