Stefan Schlee | 3 Oct 2009 22:34
Picon
Favicon

Re: Build Debian bin pkg from Ubunt scr pkg

Hallo!

My last posting is so terse that it nearly qualifies to be wrong.  Sorry for that, I will be verbose again
(thanks for your patience ;)

When I freshly install the "refdb" package, either the first time or after a purge of the package the server
exits prematurely after the installation is completed.  So far I was right.  But this statement/answer is
not relevant for Markus, to whom's posting I have replied, because the server code apparently works as he
writes (only checking for the presence of a db-driver) and the reason why the server exits is a packaging issue.

Torsten Bronger writes:

> I thought it fails on Stefan's system because it doesn't find
> libdbd-sqlite3.  This was the reason why I suggested to swap
> libdbd-sqlite3 and libdbd-sqlite in the "Depends:" and "Recommends":
> fields of the package.  Which libdbd's must be installed for a
> refdbd which doesn't find any configuration files?

Only having installed a package "libdbd-sqlite" instead of "libdbd-sqlite3" was one of the reasons why
the server could not start when I first tried to install the package.  But installing "libdbd-sqlite3"
only solved the problem partially - the server still did not start.  The reason for this was that the
"refdbd"-server does not find an "/etc/refdb/refdbdrc" file, because the "/etc/refdb" only contains
"*.example" files until I _manually_ run the "refdbd-init" script.

And now for the somewhat intricate part of the story.  As Torsten writes:

> For me, it works, probably because my system has everything
> installed anyway.

Although it did not work for me, this still may be true for Torsten, because:
(Continue reading)

Markus Hoenicka | 3 Oct 2009 23:08
Picon

Re: Build Debian bin pkg from Ubunt scr pkg

Stefan Schlee writes:
 > Only having installed a package "libdbd-sqlite" instead of "libdbd-sqlite3" was one of the reasons why
the server could not start when I first tried to install the package.  But installing "libdbd-sqlite3"
only solved the problem partially - the server still did not start.  The reason for this was that the
"refdbd"-server does not find an "/etc/refdb/refdbdrc" file, because the "/etc/refdb" only contains
"*.example" files until I _manually_ run the "refdbd-init" script.
 > 

The configuration file is necessary only if the built-in defaults of
refdbd do not work on the target system. As mentioned in a previous
mail, refdbd tries to load the mysql driver by default for historical
reasons. This is likely the reason why refdbd bails out in the absence
of a configuration file if only sqlite or sqlite3 are available. As
most packaging systems assume sqlite or sqlite3 as the (cheapest)
default driver, I'll change refdbd to load the sqlite3 driver by
default. This will likely allow the server to start during package
installation.

regards,
Markus

--

-- 
Markus Hoenicka
http://www.mhoenicka.de
AQ score 38

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
(Continue reading)


Gmane