Build Debian bin pkg from Ubunt scr pkg

Stefan Schlee <[email protected]> Thu, 24 Sep 2009 09:24:51 -0700 (PDT)
Newsgroups gmane.text.refdb.general
Message-ID <[email protected]>
Hallo!

I am trying to build a Debian Lenny package from the Ubuntu
package sources provided by Torsten Bronger.

I am a Debian packaging neophyte but after some struggling I
managed to get something named refdb_<..>.deb.  The only issue
that I encountered was that I had to use the "libltdl3-dev"
instead of the "libltdl7-dev" as proposed in the "Build-Depends:"
clause, because the "libltdl7-dev" is not available in the Debian
Lenny distribution.

Still the build process worked out fine (although I got a lot of warnings c=
oncerning pointers, data types etc.)

After I had manually satisfied the package requirements according to the "D=
epends:" clause, I issued a "dpkg -i refdb_<..>.deb".  Alas the installatio=
n process terminated with an error:

...
invoke-rc.d: initscript refdb, action "start" failed.
dpkg: error processing refdb (--install):
 subprocess post-installation script returned error exit status 1
...

This made me include a "set -x" in the "/etc/init.d/refdb" file to get a tr=
ace.  The output of the trace was as follows:


+ start_server
+ '[' '!' -d /var/run/refdb ']'
+ '[' -z refdb ']'
+ start-stop-daemon --start --quiet --pidfile /var/run/refdb/refdbd.pid --c=
huid refdb --exec /usr/sbin/refdbd -- -L /var/log/refdb/refdbd.log -P /var/=
run/refdb/refdbd.pid
+ errcode=3D0
+ return 0

+ '[' -n '' ']'
+ running
+ '[' '!' -f /var/run/refdb/refdbd.pid ']'
++ cat /var/run/refdb/refdbd.pid
+ pid=3D21573
+ running_pid 21573 /usr/sbin/refdbd
+ pid=3D21573
+ name=3D/usr/sbin/refdbd
+ '[' -z 21573 ']'
+ '[' '!' -d /proc/21573 ']'
+ return 1


Obviously the refdb server started but terminated prematurely, so I looked =
into the "/var/log/refdb/refdbd.log" and found the following message:

6:pid=3D21573:Thu Sep 24 17:41:19 2009:Available libdbi database drivers:
6:pid=3D21573:Thu Sep 24 17:41:19 2009:sqlite
3:pid=3D21573:Thu Sep 24 17:41:19 2009:Requested libdbi driver is not prese=
nt

I looked for available packages with "libdbi" in their name and got the fol=
lowing listing:

$> aptitude search libdbi                        =


p   libdbi-doc                        - DB Independent Abstraction Layer fo=
r C  -- documentation
p   libdbi-perl                       - Das Perl5-Datenbank-Interface von T=
im Bunce
p   libdbi-ruby                       - Datenbank-unabh=E4ngige Schnittstel=
le f=FCr Ruby
p   libdbi-ruby1.8                    - Datenbankunabh=E4ngige Schnittstell=
e f=FCr Ruby 1.8
i A libdbi0                           - Database Independent Abstraction La=
yer for C
i   libdbi0-dev                       - DB Independent Abstraction Layer fo=
r C  -- development files
p   libdbicx-testdatabase-perl        - Create a temporary database from a =
DBIx::Class::Schema
p   libdbix-abstract-perl             - DBI-SQL-Abstraktion
p   libdbix-class-datetime-epoch-perl - Automatic inflation/deflation of ep=
och-based DateTime objects ...
p   libdbix-class-htmlwidget-perl     - Like FromForm but with DBIx::Class =
and HTML::Widget
p   libdbix-class-perl                - Extensible and flexible object <-> =
relational mapper
p   libdbix-class-schema-loader-perl  - Dynamic definition of a DBIx::Class=
::Schema
p   libdbix-contextualfetch-perl      - Add context aware fetches to DBI
p   libdbix-datasource-perl           - Datenbankunabh=E4ngige 'create'- un=
d 'drop'-Funktionen
p   libdbix-dbschema-perl             - Database-independent schema objects
p   libdbix-easy-perl                 - Easy to Use DBI Interface
p   libdbix-fulltextsearch-perl       - Indexing documents with MySQL as st=
orage
p   libdbix-password-perl             - Perl module for creating a global p=
assword file for DB passwords
p   libdbix-profile-perl              - DBI-ABfrage-Messungen
p   libdbix-recordset-perl            - Perl-Erweiterung f=FCr DBI-Satzmeng=
en
p   libdbix-searchbuilder-perl        - Encapsulate SQL queries and rows in=
 simple perl objects
p   libdbix-sequence-perl             - ein einfacher SQL92-ID-Erzeuger
p   libdbix-xml-rdb-perl              - perl module for creating XML from a=
 DBI datasource
p   libdbix-xmlmessage-perl           - perl module for exchanging XML mess=
ages between DBI data sources   =



Which of these packages is missing from my installation?

Kind regards

Stefan

PS: Although required the "autoconf" package is not mentioned in the "Build=
-Depends:". clause.  Explicitly listing may only be necessary in a Debian c=
ontext, because this package may be automatically installed by other packag=
es in the Ubuntu case - I don't know, but you (Torsten) may want to check t=
his.



      =


---------------------------------------------------------------------------=
---
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