Subject: pkg/24339: pkgsrc/www/epiphany needs fix for mkdir(2) trailing slash
To: None <>
From: None <>
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
>Release:        NetBSD 1.6.1_STABLE
System: NetBSD 1.6.1_STABLE NetBSD 1.6.1_STABLE (GENERIC) #0: Tue Aug 12 02:52:57 PDT 2003 i386
Architecture: i386
Machine: i386
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/.

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

Try to run it on system with mkdir(2) that doesn't like trailing slash.
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

I am send-PRing this so it won't be forgotten.