Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 215038 - dev-python/pythonmagick-0.7 build fails w/ media-gfx/imagemagick-6.3.9.x
Summary: dev-python/pythonmagick-0.7 build fails w/ media-gfx/imagemagick-6.3.9.x
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 218344
  Show dependency tree
 
Reported: 2008-03-27 12:04 UTC by Helmut Jarausch
Modified: 2008-06-25 17:59 UTC (History)
1 user (show)

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


Attachments
pythonmagick build patch (pythonmagick_build.patch,339 bytes, patch)
2008-04-22 23:27 UTC, René 'Necoro' Neumann
Details | Diff
pythonmagick ebuild diff (pythonmagick-0.7.ebuild.diff,1.60 KB, patch)
2008-04-23 01:56 UTC, René 'Necoro' Neumann
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Helmut Jarausch 2008-03-27 12:04:09 UTC
Trying to build dev-python/pythonmagick-0.7  gives
pythonmagick_src/_DrawablePoint.cpp:7:31: error: Magick++/Drawable.h: No such file or directory
pythonmagick_src/_DrawablePoint.cpp:13:22: error: Magick++.h: No such file or directory
pythonmagick_src/_DrawableStrokeLineJoin.cpp:7:31: error: Magick++/Drawable.h: No such file or directory
pythonmagick_src/_DrawableStrokeLineJoin.cpp:13:22: error: Magick++.h: No such file or directory
pythonmagick_src/_PathMovetoAbs.cpp:7:31: error: Magick++/Drawable.h: No such file or directory
pythonmagick_src/_PathMovetoAbs.cpp:13:22: error: Magick++.h: No such file or directory
pythonmagick_src/_DrawablePoint.cpp:17: error: 'Magick' has not been declared
pythonmagick_src/_DrawablePoint.cpp:17: error: expected `{' before 'DrawablePoint'
pythonmagick_src/_DrawablePoint.cpp:17: error: function definition does not declare parameters
pythonmagick_src/_DrawablePoint.cpp: In function 'void Export_pyste_src_DrawablePoint()':
pythonmagick_src/_DrawablePoint.cpp:33: error: 'Magick' was not declared in this scope
pythonmagick_src/_DrawablePoint.cpp:33: error: template argument 1 is invalid
pythonmagick_src/_DrawablePoint.cpp:34: error: expected primary-expression before 'void'
pythonmagick_src/_DrawablePoint.cpp:34: error: expected `)' before 'void'
pythonmagick_src/_DrawableStrokeLineJoin.cpp:17: error: 'Magick' has not been declared
pythonmagick_src/_DrawableStrokeLineJoin.cpp:17: error: expected `{' before 'DrawableStrokeLineJoin'
pythonmagick_src/_DrawableStrokeLineJoin.cpp:17: error: function definition does not declare parameters
pythonmagick_src/_DrawableStrokeLineJoin.cpp: In function 'void Export_pyste_src_DrawableStrokeLineJoin()':
pythonmagick_src/_DrawableStrokeLineJoin.cpp:33: error: 'Magick' was not declared in this scope
pythonmagick_src/_DrawableStrokeLineJoin.cpp:33: error: template argument 1 is invalid
pythonmagick_src/_DrawableStrokeLineJoin.cpp:33: error: 'MagickLib' was not declared in this scope
pythonmagick_src/_DrawableStrokeLineJoin.cpp:33: error: template argument 1 is invalid
pythonmagick_src/_DrawableStrokeLineJoin.cpp:34: error: expected primary-expression before 'void'
pythonmagick_src/_DrawableStrokeLineJoin.cpp:34: error: expected `)' before 'void'
scons: *** [pythonmagick_src/_DrawableStrokeLineJoin.os] Error 1
scons: *** [pythonmagick_src/_DrawablePoint.os] Error 1
pythonmagick_src/_PathMovetoAbs.cpp:17: error: 'Magick' has not been declared
pythonmagick_src/_PathMovetoAbs.cpp:17: error: expected `{' before 'PathMovetoAbs'
pythonmagick_src/_PathMovetoAbs.cpp:17: error: function definition does not declare parameters
pythonmagick_src/_PathMovetoAbs.cpp: In function 'void Export_pyste_src_PathMovetoAbs()':
pythonmagick_src/_PathMovetoAbs.cpp:39: error: 'Magick' was not declared in this scope
pythonmagick_src/_PathMovetoAbs.cpp:39: error: template argument 1 is invalid
pythonmagick_src/_PathMovetoAbs.cpp:39: error: ISO C++ forbids declaration of 'type name' with no type
pythonmagick_src/_PathMovetoAbs.cpp:39: error: template argument 1 is invalid
pythonmagick_src/_PathMovetoAbs.cpp:40: error: ISO C++ forbids declaration of 'type name' with no type
pythonmagick_src/_PathMovetoAbs.cpp:40: error: template argument 1 is invalid
pythonmagick_src/_PathMovetoAbs.cpp:41: error: ISO C++ forbids declaration of 'type name' with no type
pythonmagick_src/_PathMovetoAbs.cpp:41: error: template argument 1 is invalid
scons: *** [pythonmagick_src/_PathMovetoAbs.os] Error 1
scons: building terminated because of errors.
 * 
 * ERROR: dev-python/pythonmagick-0.7 failed.


Reproducible: Always




emerge --info
Portage 2.1.4.4 (default-linux/x86/2007.0, gcc-4.2.3, glibc-2.7-r2, 2.6.24-gentoo-r2 i686)
=================================================================
System uname: 2.6.24-gentoo-r2 i686 Intel(R) Pentium(R) III CPU family 1266MHz
Timestamp of tree: Thu, 27 Mar 2008 07:16:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.5
dev-lang/python:     2.5.1-r5
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.20_alpha2-r1
sys-devel/autoconf:  2.13, 2.61-r1
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.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.24
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
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/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo "
LINGUAS="en de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.informatik.RWTH-Aachen.de/gentoo-portage"
USE="X acl berkdb bitmap-fonts cairo cdr cli cracklib crypt cups doc dri dvd fortran gcj gdbm gnome gpm gtk gtk2 iconv ipv6 isdnlog jpeg kde midi mudflap ncurses nls nptl nptlonly opengl openmp pam pcre pdf perl png pppd python qt readline reflection session spl sqlite sqlite3 ssl svg tcl tcpd tetex tiff tk truetype-fonts type1-fonts unicode x86 xorg xulrunner zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" USERLAND="GNU" VIDEO_CARDS="nv"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 René 'Necoro' Neumann 2008-04-22 23:27:03 UTC
Created attachment 150663 [details, diff]
pythonmagick build patch

Small patch fixing the problem: This adds a pkg-config call for the cflags of Magick++

Will test it now also for older imagemagicks but don't expect a problem.
Comment 2 René 'Necoro' Neumann 2008-04-23 01:56:25 UTC
Created attachment 150668 [details, diff]
pythonmagick ebuild diff

As it turned out, pythonmagick again switched build system and the scons thingy is outdated.

Thus I used the autohell tools provided - this builds well. But you have to filter --as-needed (I hate configure scripts not failing if a major library could not be found (here: boost::python)).

I also edited deps a little bit to fit the new requirements.
Comment 3 René 'Necoro' Neumann 2008-04-23 15:10:17 UTC
Tested with stable and with unstable imagemagick ... works here
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2008-06-03 03:12:46 UTC
ping!
Comment 5 Ali Polatel (RETIRED) gentoo-dev 2008-06-25 17:59:33 UTC
pythonmagick-0.7-r1 fixes this. Thanks for reporting, and thanks René for the patch.