pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/44178: misc/openoffice2 missing graphics/gdk-pixbuf2-xlib dependency (NetBSD 5) (possible fix)



>Number:         44178
>Category:       pkg
>Synopsis:       misc/openoffice2 missing graphics/gdk-pixbuf2-xlib dependency 
>(NetBSD 5) (possible fix)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 01 06:35:00 +0000 2010
>Originator:     Robert Elz
>Release:        NetBSD 5.0   (pkgsrc current 2010-12-01)
>Organization:
        Prince of Songkla University
>Environment:
System: NetBSD jade.coe.psu.ac.th 5.1 NetBSD 5.1 (JADE-1.12-20101117) #5: Wed 
Nov 17 05:30:55 ICT 2010 
kre%jade.coe.psu.ac.th@localhost:/usr/obj/5.1/kernels/i386/JADE i386
Architecture: i386
Machine: i386
>Description:
        misc/openoffice2 configure script checks for the presence
        of gdk-pixbuf-xlib, but nothing in the dependency list
        causes that one to get installed, so configure fails.

>How-To-Repeat:
        I use pkg_comp with NetBSD 5.0 release sets installed, and
        libkver to simulate a fairly pure NetBSD 5.0 release environment.
        I doubt that any of that is relevant to this problem, except that
        I start each package build with an empty sandbox (just the release
        sets and the essential pkgsrc packages (like digest, x11-links,
        pkg_install ...) installed, after that, everything needed must
        be explicitly loaded as a dependency of something.

        In that environment (and after recent gnome/gtk updates) attempting
        to build miscopenoffice2 results in ...

[ much stuff...]

checking which polygon clipping code to use... internal
checking which VCLplugs shall be built... gtk
checking whether to enable GNOME VFS support... no
checking for gtk+-2.0 >= 2.4 gdk-pixbuf-xlib-2.0 >= 2.2 ... configure: error: 
requirements to build the gtk-plugin not met. Use --disable-gtk or install the 
missing packages
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/misc/openoffice2
*** Error code 1

Stop.

        And pkg_info shows that while graphics/gdk-pixbuf2 is installed,
        graphics/gdk-pixbuf2-xlib is not.

        I'm guessing that that once was added as a dependency of
        something else, but whatever that something else was, no
        lomger needs it, so it was dropped (which then wouldn't be
        noticed in a "normal" build environment where just about
        everything is installed all the time).

>Fix:
        Applying the following patch allows the openoffice2 build to
        commence (at least) - unless some other error occurs soon, it
        will be a long time (10-12 hrs?) before I know whether or not
        this actually completely fixes the problem (and the build succeeds).

        Note; I am not asserting that this is the correct fix (possibly
        some other dependent package needs to be altered instead),
        this (trivial) patch is just to show what seems to be working
        for me, so far anyway.

        If we were to operate under the assumption that packages should
        explicitly mention everything they use themselves, then there
        are probably a bunch more includes needed (eg: I see nothing
        that explicitly includes gtk2 yet openoffice2 clearly expects
        to use that one - it gets included anyway, but should it be
        explicit here?).

Index: Makefile
===================================================================
RCS file: /cvsroot/NetBSD/pkgsrc/misc/openoffice2/Makefile,v
retrieving revision 1.81
diff -u -r1.81 Makefile
--- Makefile    15 Nov 2010 22:58:00 -0000      1.81
+++ Makefile    1 Dec 2010 06:02:03 -0000
@@ -190,6 +190,7 @@
 .include "../../graphics/MesaLib/buildlink3.mk"
 .include "../../graphics/cairo/buildlink3.mk"
 .include "../../graphics/freetype2/buildlink3.mk"
+.include "../../graphics/gdk-pixbuf2-xlib/buildlink3.mk"
 .include "../../graphics/hicolor-icon-theme/buildlink3.mk"
 .include "../../graphics/jpeg/buildlink3.mk"
 .include "../../lang/python/application.mk"



Home | Main Index | Thread Index | Old Index