Bug 228582 - irc/ircd-hybrid - klinefile and friends.
Summary: irc/ircd-hybrid - klinefile and friends.
Status: In Progress
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Diane Bruce
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-29 02:41 UTC by Bunny Evans
Modified: 2019-08-14 11:34 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (db)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bunny Evans 2018-05-29 02:41:59 UTC
/var/log/ircd.log contains an infinite number of these:

[2018-05-29T11:28:02+0900] Cannot create temporary database file /var/lib/kline.db.new
[2018-05-29T11:28:02+0900] Cannot create temporary database file /var/lib/dline.db.new
[2018-05-29T11:28:02+0900] Cannot create temporary database file /var/lib/xline.db.new
[2018-05-29T11:28:02+0900] Cannot create temporary database file /var/lib/resv.db.new

This is caused by the Makefile containing: --localstatedir=/var
and the resulting configure being:

  $ ./configure --disable-assert --disable-halfops --enable-openssl=/usr --sysconfdir=/usr/local/etc/ircd-hybrid --datarootdir=/usr/local/share/ircd-hybrid-8.2.22 --localstatedir=/var --prefix=/usr/local --mandir=/usr/local/man --disable-silent-rules --infodir=/usr/local/info/ --build=amd64-portbld-freebsd11.1


These 4 files are not configured in the config file for reasons unknown, but handed over on the command line:


I think the solution is to modify the start up script to deal with this, but I am puzzled why a port in /usr/local is doing anything in /var, let along /var/lib ...

I do not know the official freebsd way to fix this ^^;
Comment 1 Diane Bruce freebsd_committer 2018-06-04 14:21:22 UTC
Well, that's silly. I'll look at it. Should be very simple fix.
Comment 2 Diane Bruce freebsd_committer 2018-06-04 15:15:33 UTC
ok looking at this further, I think the best way to handle this is to place the hybrid state files under var/hybrid/ with the ownership changed to match that of the hybrid owner. kline.conf would then be in /usr/local/var/hybrid/kline.conf
etc.
Comment 3 Bunny Evans 2018-06-30 13:37:45 UTC
That seems to have stopped the errors.
Comment 4 Walter Schwarzenfeld freebsd_triage 2019-03-02 04:10:30 UTC
See Comment3. Can we close here?
Comment 5 Bunny Evans 2019-03-02 09:01:36 UTC
(In reply to w.schwarzenfeld from comment #4)

Assuming the patch was put in the release, yes.
Comment 6 Walter Schwarzenfeld freebsd_triage 2019-08-14 11:34:46 UTC
ping!