Subject: pkg/36252: kdenetwork3/kcmsambaconf tries to access a hard coded path outside of $PREFIX
To: None <email@example.com, firstname.lastname@example.org,>
From: None <email@example.com>
Date: 05/01/2007 08:50:00
>Synopsis: kdenetwork3/kcmsambaconf tries to access a hard coded path outside of $PREFIX
>Arrival-Date: Tue May 01 08:50:00 +0000 2007
>Originator: Jason Boyer
NetBSD janus.local 3.1 NetBSD 3.1 (GENERIC.MPACPI) #0: Tue Oct 31 04:47:22 UTC 2006 firstname.lastname@example.org:/home/builds/ab/netbsd-3-1-RELEASE/i386/200610302053Z-obj/home/builds/ab/netbsd-3-1-RELEASE/src/sys/arch/i386/compile/GENERIC.MPACPI i386
in the files kdenetwork-3.5.6/filesharing/advanced/kcm_sambaconf/kcmsambaconf.cpp and kdenetwork-3.5.6/filesharing/simple/filesharing.cpp there's a hard coded reference to "/etc/security/fileshare.conf" which can't exist on NetBSD because of the file /etc/security (in addition to the fact that it would be bad practice being outside of $PREFIX or $PKGSYSCONFDIR
Install kdenetwork3, try to accomplish anything in KDE Control Center/Internet & Network/Samba, watch it forget as soon as you close it and return.
Quick and dirty: make the files reference "@PKGSYSCONFDIR@/security/fileshare.conf" with a quick patch
The "right" way: it should honor the sysconfdir set in the Makefile. A bug should be filed upstream in case they have a different plan for it.