Prev: Firefox 3.6 for FreeBSD
Next: /usr/ports/x11-toolkits/qt33: /usr/bin/ld: warning: libjpeg.so.10, needed by /usr/local/lib/libqt-mt.so, not found(try using -rpath or -rpath-link)
From: Spil Oss on 5 Feb 2010 09:36 Hi, Just built net/samba34 (only ACL, AIO, FAM, SYSLOG and POPT enabled) and created a package samba34-3.4.5.tbz in my build jail. Installed the package in a different jail and couldn't start samba. First error was the pid-files related to /var/run/samba34 not existing Second error "initialise_wins: failed to open wins.tdb. Error was No such file or directory" Solved by tempory disabling wins support in smb.conf. After fixing third error I re-enabled it and it lives in /var/lib/samba as well Third error "write_browse_list: Can't open file /var/lib/samba/browse.dat" 1. /var/run/samba34 was not created by the package (was created in the build jail) 2. /var/lib/samba was not created smbd -b | grep DIR revealed all directories that must exist when starting samba Upgrading info is a bit meager, no UPGRADING file and the doc contains only a reference to the smbpasswd deprecation. Kind regards, Spil. _______________________________________________ freebsd-ports(a)freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"
From: Spil Oss on 5 Feb 2010 09:42 On Fri, Feb 5, 2010 at 3:36 PM, Spil Oss <spil.oss(a)googlemail.com> wrote: > Hi, > > Just built net/samba34 (only ACL, AIO, FAM, SYSLOG and POPT enabled) > and created a package samba34-3.4.5.tbz in my build jail. > > Installed the package in a different jail and couldn't start samba. > > First error was the pid-files related to /var/run/samba34 not existing > > Second error > "initialise_wins: failed to open wins.tdb. Error was No such file or directory" > Solved by tempory disabling wins support in smb.conf. After fixing > third error I re-enabled it and it lives in /var/lib/samba as well > > Third error > "write_browse_list: Can't open file /var/lib/samba/browse.dat" > > 1. /var/run/samba34 was not created by the package (was created in the > build jail) > 2. /var/lib/samba was not created > > smbd -b | grep DIR revealed all directories that must exist when starting samba > > Upgrading info is a bit meager, no UPGRADING file and the doc contains > only a reference to the smbpasswd deprecation. > > > Kind regards, > > Spil. > Checked some more, and it seems that STATEDIR and CACHEDIR are new build variables as I haven't found these in the 3.3.9 build. These two variables were /var/lib/samba by default causing my error. Changelog contains the following changes --with-statedir=DIR Where to put persistent state files --with-cachedir=DIR Where to put temporary cache files Guess these should point to /var/db/samba34 rather than /var/lib/samba Just let me know if I need to file a PR Kind regards, Spil. _______________________________________________ freebsd-ports(a)freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"
From: "Timur I. Bakeyev" on 6 Feb 2010 10:17 Hi, Spil! On Fri, Feb 05, 2010 at 03:42:04PM +0100, Spil Oss wrote: > On Fri, Feb 5, 2010 at 3:36 PM, Spil Oss <spil.oss(a)googlemail.com> wrote: > > > > First error was the pid-files related to /var/run/samba34 not existing > > > > Second error > > "initialise_wins: failed to open wins.tdb. Error was No such file or directory" > > Solved by tempory disabling wins support in smb.conf. After fixing > > third error I re-enabled it and it lives in /var/lib/samba as well > > > > Third error > > "write_browse_list: Can't open file /var/lib/samba/browse.dat" > > > > 1. /var/run/samba34 was not created by the package (was created in the > > build jail) > > 2. /var/lib/samba was not created > > Changelog contains the following changes > --with-statedir=DIR Where to put persistent state files > --with-cachedir=DIR Where to put temporary cache files > > Guess these should point to /var/db/samba34 rather than /var/lib/samba > > Just let me know if I need to file a PR PR's are always better than just random mail to the ML, as they get assigned to maitainer. Can you, please, summarize your findings and send them in the PR? With regards, Timur. _______________________________________________ freebsd-ports(a)freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"
From: "Timur I. Bakeyev" on 6 Feb 2010 12:16
Hi! It looks like the problem was created by the --with-fhs flag, which reset cachedir and statedir do it's default values. With the flag removed those directories are the same as the lockdir. Not sure, why rundir wasn't created by the package - this is done by pkg-install script and should work both form port and package. With regards, Timur. On Fri, Feb 5, 2010 at 3:36 PM, Spil Oss <spil.oss(a)googlemail.com> wrote: > Hi, > > Just built net/samba34 (only ACL, AIO, FAM, SYSLOG and POPT enabled) > and created a package samba34-3.4.5.tbz in my build jail. > > Installed the package in a different jail and couldn't start samba. > > First error was the pid-files related to /var/run/samba34 not existing > > Second error > "initialise_wins: failed to open wins.tdb. Error was No such file or directory" > Solved by tempory disabling wins support in smb.conf. After fixing > third error I re-enabled it and it lives in /var/lib/samba as well > > Third error > "write_browse_list: Can't open file /var/lib/samba/browse.dat" > > 1. /var/run/samba34 was not created by the package (was created in the > build jail) > 2. /var/lib/samba was not created > > smbd -b | grep DIR revealed all directories that must exist when starting samba > > Upgrading info is a bit meager, no UPGRADING file and the doc contains > only a reference to the smbpasswd deprecation. > > > Kind regards, > > Spil. > _______________________________________________ > freebsd-ports(a)freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org" > _______________________________________________ freebsd-ports(a)freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org" |