Subject: pkg/18275: scrollkeeper-update in devel/anjuta and x11/controlcenter dumps core during the installation
To: None <gnats-bugs@gnats.netbsd.org>
From: Ryo HAYASAKA <ryoh@jaist.ac.jp>
List: netbsd-bugs
Date: 09/12/2002 23:44:07
>Number:         18275
>Category:       pkg
>Synopsis:       scrollkeeper-update in devel/anjuta and x11/controlcenter dumps core during the installation
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 12 07:45:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Ryo HAYASAKA
>Release:        NetBSD 1.6H
>Organization:
Japan Advanced Institute of Science and Technology (JAIST)
>Environment:
	
	
System: NetBSD bonnie.jaist.ac.jp 1.6H NetBSD 1.6H (BONNIE) #301: Tue Sep 10 20:59:14 JST 2002 ryoh@bonnie.jaist.ac.jp:/usr/src/sys/arch/i386/compile/BONNIE i386
Architecture: i386
Machine: i386
>Description:
Because of the uncorrect database path, scrollkeeper-update in
devel/anjuta and x11/controlcenter during the installation dumps core
with Segmentation fault.

For anjuta,

$ make install
...
scrollkeeper-update -p /usr/pkg/var/gnome/scrollkeeper 
Segmentation fault - core dumped
Segmentation fault - core dumped
Segmentation fault - core dumped
(many times)
	
>How-To-Repeat:
# make install
	
>Fix:
I think there are two ways to fix the problem.  The first one is to
change omf-install/Makefile.in as the following diffs.  It seems that
this is the same as gnome-core's approach.  The second one is to
change "LOCALSTATEDIR = ${X11PREFIX}/var/gnome" to "LOCALSTATEDIR =
${X11PREFIX}/var/lib" in Makefile.  I am not sure which one is correct
or better.

For devel/anjuta:

--- omf-install/Makefile.in.orig        Fri Feb 15 04:31:26 2002
+++ omf-install/Makefile.in     Thu Sep 12 21:21:27 2002
@@ -162,7 +162,7 @@
 l = @l@
 
 omf_dest_dir = $(datadir)/omf/anjuta
-scrollkeeper_localstate_dir = $(localstatedir)/scrollkeeper
+scrollkeeper_localstate_dir = `$(SCROLLKEEPER_CONFIG) --pkglocalstatedir`
 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
 CONFIG_HEADER = ../config.h
 CONFIG_CLEAN_FILES = 

For x11/controlcenter:

--- omf-install/Makefile.in.orig        Thu Sep 12 20:18:26 2002
+++ omf-install/Makefile.in     Thu Sep 12 20:22:35 2002
@@ -168,7 +168,7 @@
 l = @l@
 
 omf_dest_dir = $(datadir)/omf/control-center
-scrollkeeper_localstate_dir = $(localstatedir)/scrollkeeper
+scrollkeeper_localstate_dir = `scrollkeeper-config --pkglocalstatedir`
 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
 CONFIG_HEADER = ../config.h
 CONFIG_CLEAN_FILES = 
	
>Release-Note:
>Audit-Trail:
>Unformatted: