Re: Build Debian bin pkg from Ubunt scr pkg

Torsten Bronger <[email protected]> Sat, 26 Sep 2009 14:20:08 +0200
Newsgroups gmane.text.refdb.general
Organization Phoenix Foundation
Message-ID <[email protected]>
Hall=F6chen!

Markus Hoenicka writes:

> Quoting Stefan Schlee <[email protected]>:
>
> [...]
>
>>  - In addition to that I had to incorporate a symbolic link into
>> the /etc/refdb that pointed to the appropriate configuration file
>> for this case: "ln -s refdbdrc.sqlite3.example refdbdrc".
>
> I don't know how Torsten handles these issues, but to end up with
> a working RefDB installation some post-install setup is
> mandatory. I guess that most if not all of this setup stuff could
> be handled by the package installation procedure. Please have a
> look at the refdb-init script [...]

There are already post-installation scripts, however, they don't
cover this.  So far, I only have been able to provide an
unconfigured RefDB.  See the README file in the debian/ directory
<http://bazaar.launchpad.net/~bronger/%2Bjunk/package-refdb-svn/annotate/he=
ad%3A/debian/README.Debian>.
I quote:

    After having installed RefDB, there is no configuration file.
    So RefDB works in SQLite mode.  I haven't tested yet whether
    this actually works.  For example, I don't know which file RefDB
    tries to write in this status.  Maybe it's a file in /usr/local,
    which will probably fail.

    [...]

    refdb-init is a problem.  I behaves slightly different from the
    original one because refdbd runs with the "refdb" user.
    Additionally, because we don't have refdbctrl, it calls
    /etc/init.d/refdb instead.  It must be tested more thoroughly.

If it is possible, I suggest to rely on refdb-init instead of
providing a pre-installed configuration file.  A working refdb-init
would be very helpful.  Maybe it works already, but I don't know.

Theoretically, the features of refdb-init can be realised
interactively in the post-installation script although I dislike
programs prompting me after I installed them (so far, only *very*
few programs make use of this possibility on Ubuntu).

My idea was to have refdbd at least running, even if in a precarious
mode of operation.  The problem is that Debian's packaging tool
wants to start refdbd after the installation and if this fails, the
whole installation is marked to have failed.  It's okay if refdbd
doesn't do anything but emitting error messages if connected, but it
must run.

This is the reason why I included libdbd-sqlite in the depenencies.
I thought that without configuration file, refdbd would look for
Sqlite2 bindings only.


By the way, there are also other things to sort out.  For example,
generating the excellent RefDB documentation was a nightmare.  To my
surprise, dtdparse is not available on Ubuntu.  Then, FOP simply
crashs.  I suspect a bug in the current FOP version, so we have to
wait for the next one and hope for the best.  And finally, I think
the Makefile connects to the Internet for the stylesheets (is this
correct?), however, this is blocked on Launchpad's servers.

Therefore, I excluded the documentation from the binary package for
now.

Tsch=F6,
Torsten.

-- =

Torsten Bronger, aquisgrana, europa vetus
                   Jabber ID: [email protected]
                                  or http://bronger-jmp.appspot.com


---------------------------------------------------------------------------=
---
Come build with us! The BlackBerry&reg; 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 =

ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf