inkscape 0.40 is out Reproducible: Always Steps to Reproduce: 1. 2. 3.
note - QA Notice: USE Flag 'doc' not in IUSE for media-gfx/inkscape-0.39
Created attachment 44944 [details] inkscape-0.40.ebuild boehm-gc needs to be built with the c++ flag - how to check?
from another boehm... ;-) i found this in forum (http://forums.gentoo.org/viewtopic.php?t=253489): If you look in porthole-0.3.1 and porthole-0.4.1 ebuilds you will see an example of checking for a package has been compiled with a certain use flag. Code: pkg_setup() { local gnome_flag="" for pygtk_install in /var/db/pkg/dev-python/pygtk*; do if grep 2 ${pygtk_install}/SLOT > /dev/null; then for flag in `cat ${pygtk_install}/USE`; do if [ ${flag} == gnome ]; then gnome_flag="found" fi done fi done if [ -z "${gnome_flag}" ]; then echo eerror "pygtk was not merged with the gnome" eerror "USE flag. Porthole requires pygtk be" eerror "built with this flag for libglade support." die "pygtk missing gnome support" fi }
maybe sometnihg like this? pkg_setup() { local boehm-gc_flag="" for boehm-gc_install in /var/db/pkg/dev-libs/boehm-gc*; do for flag in `cat ${boehm-gc_install}/USE`; do if [ ${flag} == c++ ]; then boehm-gc_flag="found" fi done done if [ -z "${boehm-gc_flag}" ]; then echo eerror "boehm-gc was not merged with the c++" eerror "USE flag. Inkscape requires boehm-gc be" eerror "built with this flag set." die "boehm-gc missing c++ support" fi }
Created attachment 45176 [details] ebuild with necessary boehm-gc c++ flag check it seems one can not use dashes in local variables names. i attached the corrected version of the ebuild, which works as expected on my machine.
Additions work fine for me too. Thank you, Ziga.
works for me too. I had to emerge bohem-gc twice. The first time because it wasn't installed on my computer at all ... and the second time because of the c++ flag. Isn't there a way to make it handle the flag any better ? (I remember that this flag issue is still quite debated on buzilla and the forums ...)
Perhaps a pre-compile comment if boehm-gc is not installed?
Seems like DEPS aren't quite right... Portage DID compile gtkmm, but 2.2. checking for gtk+-2.0 >= 2.4.0 libxml-2.0 >= 2-2.4.24 sigc++-2.0 >= 2.0.3 gtkmm-2.4 ... Package gtkmm-2.4 was not found in the pkg-config search path. Perhaps you should add the directory containing `gtkmm-2.4.pc' to the PKG_CONFIG_PATH environment variable No package 'gtkmm-2.4' found configure: error: Library requirements (gtk+-2.0 >= 2.4.0 libxml-2.0 >= 2-2.4.24 sigc++-2.0 >= 2.0.3 gtkmm-2.4 ) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them. !!! ERROR: media-gfx/inkscape-0.40 failed. * dev-cpp/gtkmm : [ ] 1.2.9-r2 (1.2) OVERLAY [ ] 2.2.8 (2) OVERLAY [ ] 2.2.10 (2) OVERLAY [ ] 2.2.11 (2) OVERLAY [ I] 2.2.12 (2) OVERLAY [M~ ] 2.4.1 (2.4) OVERLAY [M~ ] 2.4.3 (2.4) OVERLAY [M~ ] 2.4.5 (2.4) OVERLAY
Emerge fails with: checking for XML::Parser... configure: error: XML::Parser perl module is required for intltool !!! ERROR: media-gfx/inkscape-0.40 failed. !!! Function econf, Line 447, Exitcode 1 !!! econf failed !!! If you need support, post the topmost build error, NOT this status message.
Test phase fails with linking error: make[2]: Entering directory `/var/tmp/portage/inkscape-0.40/work/inkscape-0.40/src' if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/freetype2 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/freetype2/config -DPOTRACE=\"potrace\" -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/gtkmm-2.4 -I/usr/lib/gtkmm-2.4/include -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/gdkmm-2.4 -I/usr/lib/gdkmm-2.4/include -I/usr/include/pangomm-1.4 -I/usr/include/atkmm-1.6 -Wall -W -Wpointer-arith -Wcast-align -Wsign-compare -Woverloaded-virtual -Wswitch -Wno-unused-parameter -O2 -march=pentium3 -fomit-frame-pointer -funroll-loops -fprefetch-loop-arrays -falign-functions=64 -pipe -MT extract-uri-test.o -MD -MP -MF ".deps/extract-uri-test.Tpo" -c -o extract-uri-test.o extract-uri-test.cpp; \ then mv -f ".deps/extract-uri-test.Tpo" ".deps/extract-uri-test.Po"; else rm -f ".deps/extract-uri-test.Tpo"; exit 1; fi /bin/sh ../libtool --mode=link g++ -Wall -W -Wpointer-arith -Wcast-align -Wsign-compare -Woverloaded-virtual -Wswitch -Wno-unused-parameter -O2 -march=pentium3 -fomit-frame-pointer -funroll-loops -fprefetch-loop-arrays -falign-functions=64 -pipe -o extract-uri-test extract-uri-test.o libinkpre.a -lglib-2.0 -lgc g++ -Wall -W -Wpointer-arith -Wcast-align -Wsign-compare -Woverloaded-virtual -Wswitch -Wno-unused-parameter -O2 -march=pentium3 -fomit-frame-pointer -funroll-loops -fprefetch-loop-arrays -falign-functions=64 -pipe -o extract-uri-test extract-uri-test.o libinkpre.a /usr/lib/libglib-2.0.so /usr/lib/libgc.so /usr/lib/libgc.so: undefined reference to `dlopen'
@Alessandro: That's strange, XML::Parser already is a dependency. Would you mind posting a "etcat -v XML-Parser"? @Peter: Perhaps it's better to file a bug with upstream and tell them they have to include libdl on some plattforms where it's not included in libc for their "make test", I don't think gentoo devs intend to do much about failed test ATM.
Created attachment 45531 [details, diff] Small patch to fix the deps of attachment 45176 [details] This is just a bit more specific about the gtkmm version we need (2.4).
i beleive there is another dependency, though not directly associated with inkscape - see http://bugs.gentoo.org/show_bug.cgi?id=73495
As 0.40 is already in the tree, I think this one can be closed.