Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 71017 - inkscape 0.40 is out
Summary: inkscape 0.40 is out
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-12 15:31 UTC by Rémi Cardona (RETIRED)
Modified: 2004-12-22 14:21 UTC (History)
5 users (show)

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


Attachments
inkscape-0.40.ebuild (inkscape-0.40.ebuild,1.14 KB, text/plain)
2004-11-29 11:37 UTC, Sudrien
Details
ebuild with necessary boehm-gc c++ flag check (inkscape-0.40.ebuild,1.57 KB, text/plain)
2004-12-02 15:30 UTC, Ziga Boehm
Details
Small patch to fix the deps of attachment 45176 (1.patch,392 bytes, patch)
2004-12-08 06:15 UTC, Thomas R. (TRauMa)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rémi Cardona (RETIRED) gentoo-dev 2004-11-12 15:31:40 UTC
inkscape 0.40 is out

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2004-11-13 17:02:05 UTC
note - QA Notice: USE Flag 'doc' not in IUSE for media-gfx/inkscape-0.39
Comment 2 Sudrien 2004-11-29 11:37:37 UTC
Created attachment 44944 [details]
inkscape-0.40.ebuild

boehm-gc needs to be built with the c++ flag - how to check?
Comment 3 Ziga Boehm 2004-12-01 23:20:56 UTC
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 
}
Comment 4 Ziga Boehm 2004-12-01 23:53:03 UTC
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
}
Comment 5 Ziga Boehm 2004-12-02 15:30:35 UTC
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.
Comment 6 Sudrien 2004-12-03 10:06:04 UTC
Additions work fine for me too. Thank you, Ziga. 
Comment 7 Rémi Cardona (RETIRED) gentoo-dev 2004-12-06 06:27:07 UTC
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 ...)
Comment 8 Sudrien 2004-12-07 07:11:57 UTC
Perhaps a pre-compile comment if boehm-gc is not installed?
Comment 9 Thomas R. (TRauMa) 2004-12-07 18:57:30 UTC
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
Comment 10 Alessandro Ronchi 2004-12-08 03:24:44 UTC
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.
Comment 11 Peter Cech 2004-12-08 05:25:04 UTC
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'
Comment 12 Thomas R. (TRauMa) 2004-12-08 06:13:42 UTC
@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.
Comment 13 Thomas R. (TRauMa) 2004-12-08 06:15:39 UTC
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).
Comment 14 Ziga Boehm 2004-12-09 06:25:06 UTC
i beleive there is another dependency, though not directly associated with inkscape - see http://bugs.gentoo.org/show_bug.cgi?id=73495
Comment 15 Hanno Böck gentoo-dev 2004-12-22 14:21:53 UTC
As 0.40 is already in the tree, I think this one can be closed.