Skip to content

Rebuild cronolog with CHECK_ALL_PREFIX_DIRS #608

Merged
merged 4 commits into from
Feb 8, 2018
Merged

Conversation

donald
Copy link
Collaborator

@donald donald commented Feb 8, 2018

Rebuild with -DCHECK_ALL_PREFIX_DIRS so that logfile directories are recreated as needed.

The cronolog.org website seems to be dead. The project seems to have
moved to https://github.com/fordmason/cronolog but it is rather
unmaintained there also.

Use commit 8ea64c08afe54878ef3ce8489f9b1f6592515e59 ("added version 1.6.2
from 2001-05-04") for version 1.6.2.

Version 1.6.3 from 83f9e99d6bd5cb8f5cc06723f4d79d1265582340 ("added version
1.6.3 from 2004-02-07") does not seem to be functional:

    scratch/local/bee-buczek/cronolog/cronolog-1.6.3-0/source/configure --prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/libexec --sysconfdir=/etc --sharedstatedir=/var --localstatedir=/var --libdir=/usr/lib --includedir=/usr/include --datadir=/usr/share --infodir=/usr/share/info --mandir=/usr/share/man --exec-prefix=/usr
    configure: error: cannot find sources (bootstrap) in /scratch/local/bee-buczek/cronolog/cronolog-1.6.3-0/source or ..
Without this option, cronolog creates all required directory components
for the logfile only once, but doesn't recreate them as needed when a
new logfile is created in the same directory path as before. The
directory is "known to exist".

However, if the directory is removed by a third party, like a stupid
system administrator, cronolog just terminates when trying to open the
next logfile.

Add -DCHECK_ALL_PREFIX_DIRS to change that behaviour. With
CHECK_ALL_PREFIX_DIRS, all directories are created as needed whenever a
new logfile is created.
@pmenzel pmenzel changed the title Rebuild cronolog Rebuild cronolog with CHECK_ALL_PREFIX_DIRS Feb 8, 2018
@pmenzel pmenzel merged commit b771e0d into master Feb 8, 2018
@donald donald deleted the rebuild-cronolog branch February 14, 2018 15:05
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants