NetBSD Problem Report #42855

From www@NetBSD.org  Sat Feb 20 20:53:23 2010
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 2EA1C63C47B
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 20 Feb 2010 20:53:23 +0000 (UTC)
Message-Id: <20100220205322.D7BC763C47A@www.NetBSD.org>
Date: Sat, 20 Feb 2010 20:53:22 +0000 (UTC)
From: demelier.david@gmail.com
Reply-To: demelier.david@gmail.com
To: gnats-bugs@NetBSD.org
Subject: devel/libgsf without gnome
X-Send-Pr-Version: www-1.0

>Number:         42855
>Category:       pkg
>Synopsis:       devel/libgsf without gnome
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    tonio
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Feb 20 20:55:00 +0000 2010
>Last-Modified:  Sat Feb 20 21:23:22 +0000 2010
>Originator:     Demelier David
>Release:        NetBSD-5
>Organization:
>Environment:
NetBSD Abricot.malikania.org 5.0_STABLE NetBSD 5.0_STABLE (Abricot 0.2) #1: Fri Feb 12 13:38:30 CET 2010  root@Abricot.malikania.org:/usr/obj/sys/arch/i386/compile/Abricot i386

>Description:
Because libgsf can also works without some gnome dependencies I made this little patch to remove some gnome dependencies.

As you can see, the ./configure script handles automatically if gconftool is not found, so the optional gconf dependency can be safely removed.

checking for gconftool-2... no
configure: WARNING: thumbnailer will not be built, unable to find gconftool-2



>How-To-Repeat:

>Fix:
--- Makefile.orig	2010-02-20 21:35:53.000000000 +0100
+++ Makefile	2010-02-20 21:42:20.000000000 +0100
@@ -25,14 +25,10 @@

 CONFIGURE_ARGS+=	--without-python

-# XXX workaround for missing substitution in configure
-MAKE_ENV+=	GCONF2_SCHEMAS_DIR=${GCONF_SCHEMAS_DIR}
-
-GCONF_SCHEMAS=	gsf-office-thumbnailer.schemas
+.include "options.mk"

 .include "../../archivers/bzip2/buildlink3.mk"
 .include "../../devel/glib2/buildlink3.mk"
 .include "../../devel/zlib/buildlink3.mk"
 .include "../../textproc/libxml2/buildlink3.mk"
-.include "../../devel/GConf/schemas.mk"
 .include "../../mk/bsd.pkg.mk"
--- PLIST.orig	2010-02-20 21:47:01.000000000 +0100
+++ PLIST	2010-02-20 21:46:55.000000000 +0100
@@ -1,6 +1,6 @@
 @comment $NetBSD: PLIST,v 1.28 2010/02/16 13:29:26 wiz Exp $
 bin/gsf
-bin/gsf-office-thumbnailer
+${PLIST.gnome}bin/gsf-office-thumbnailer
 bin/gsf-vba-dump
 include/libgsf-1/gsf/gsf-blob.h
 include/libgsf-1/gsf/gsf-clip-data.h
@@ -55,7 +55,7 @@
 man/man1/gsf-office-thumbnailer.1
 man/man1/gsf-vba-dump.1
 man/man1/gsf.1
-share/gconf/schemas/gsf-office-thumbnailer.schemas
+${PLIST.gnome}share/gconf/schemas/gsf-office-thumbnailer.schemas
 share/gtk-doc/html/gsf/GsfClipData.html
 share/gtk-doc/html/gsf/api.html
 share/gtk-doc/html/gsf/dependencies.html
--- /dev/null	2010-02-20 21:48:45.000000000 +0100
+++ options.mk	2010-02-20 21:42:03.000000000 +0100
@@ -0,0 +1,14 @@
+PKG_OPTIONS_VAR=	PKG_OPTIONS.libgsf
+PKG_SUPPORTED_OPTIONS=	gnome
+PKG_SUGGESTED_OPTIONS=	gnome
+
+.include "../../mk/bsd.options.mk"
+
+PLIST_VARS+= gnome
+
+.if !empty(PKG_OPTIONS:Mgnome)
+.include "../../devel/GConf/schemas.mk"
+GCONF_SCHEMAS=  gsf-office-thumbnailer.schemas
+MAKE_ENV+=  GCONF2_SCHEMAS_DIR=${GCONF_SCHEMAS_DIR}
+PLIST.gnome=	yes
+.endif

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->tonio
Responsible-Changed-By: tonio@NetBSD.org
Responsible-Changed-When: Sat, 20 Feb 2010 21:23:22 +0000
Responsible-Changed-Why:
I will handle it.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.