Wed, 29 Aug 2012 21:07:12 +0200
Back out libexec substitution now longer correct, remove manpages correspoding
to not installed binaries, and most importantly avoid linking to
cats_dummy which serves no other purpose than to sabotage runtime
operations of all binaries calling db_init_database(3) with a fatal
error message 'Please replace this dummy libbaccats library with a
proper one.' Disabling libtool use resolves this problem in the build
configuration (probably in src/cats/Makefile.in.)
1 Index: lib/buildreq.c
2 --- lib/buildreq.c.orig 2005-07-21 01:01:07.000000000 -0700
3 +++ lib/buildreq.c 2008-02-23 16:33:08.000000000 -0800
4 @@ -89,10 +89,14 @@
5 }
7 rewind(sf);
8 - if (fscanf(sf, "%d", &seq_nbr) != 1) {
9 + /* comment the following block out to work around some broken */
10 + /* libc distros which return 0 on successful fscanf(3) calls, */
11 + /* and use the simple replacement follwing the block instead. */
12 + /*if (fscanf(sf, "%d", &seq_nbr) != 1) {
13 rc_log(LOG_ERR,"rc_get_seqnbr: fscanf failure: %s", seqfile);
14 seq_nbr = rc_guess_seqnbr();
15 - }
16 + }*/
17 + fscanf(sf, "%d", &seq_nbr);
19 rewind(sf);
20 ftruncate(fileno(sf),0);