Subject: pkg/24339: pkgsrc/www/epiphany needs fix for mkdir(2) trailing slash
To: None <gnats-bugs@gnats.netbsd.org>
From: None <reed@reedmedia.net>
List: netbsd-bugs
Date: 02/06/2004 18:01:23
>Number:         24339
>Category:       pkg
>Synopsis:       pkgsrc/www/epiphany needs fix for mkdir(2) trailing slash
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Feb 07 02:02:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 1.6.1_STABLE
>Organization:
http://bsd.reedmedia.net/
>Environment:
	
	
System: NetBSD rainier.reedmedia.net 1.6.1_STABLE NetBSD 1.6.1_STABLE (GENERIC) #0: Tue Aug 12 02:52:57 PDT 2003 reed@rainier.reedmedia.net:/usr/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
Running epiphany will not start. It gives a GNOME application error:
Application "epiphany-bin" (process 16772) has crashed due
to a fatal error
(Abort trap)

The error at console says:

** ERROR **: Couldn't mkdir /home/reed/.gnome2/epiphany/favicon_cache/.
aborting...

The problem doesn't exist for newer NetBSD -current.

>How-To-Repeat:
Try to run it on system with mkdir(2) that doesn't like trailing slash.
>Fix:
Workaround is to manually create that directory.

Maybe a fix would be to put in epiphany shell script:
  mkdir -p ~/.gnome2/epiphany/favicon_cache

The real fix would be to fix g_build_filename() so it does the right thing.

jmmv@ said similar problems were in libgnome: "I fixed those by
adding a wrapper around mkdir(2)." Or another fix is a wrapper for
mkdir(2).

I am send-PRing this so it won't be forgotten.
>Release-Note:
>Audit-Trail:
>Unformatted: