Stefan Schlee | 24 Sep 2009 18:24
Picon
Favicon

Build Debian bin pkg from Ubunt scr pkg

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 concerning pointers, data types etc.)

After I had manually satisfied the package requirements according to the "Depends:" clause, I issued a
"dpkg -i refdb_<..>.deb".  Alas the installation 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 trace.  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 --chuid refdb --exec
/usr/sbin/refdbd -- -L /var/log/refdb/refdbd.log -P /var/run/refdb/refdbd.pid
(Continue reading)

Torsten Bronger | 24 Sep 2009 21:08
X-Face
Picon
Picon
Picon
Picon
Favicon
Gravatar

Re: Build Debian bin pkg from Ubunt scr pkg

Hallöchen!

Stefan Schlee writes:

> [...]
>
> I looked for available packages with "libdbi" in their name and got the
> following listing:
>
> $> aptitude search libdbi                        
>
> p libdbi-doc - DB Independent Abstraction Layer for C -- documentation
> [...]
> p libdbix-xmlmessage-perl - perl module for exchanging XML messages between DBI
> data sources
>
>
> Which of these packages is missing from my installation?

Du you use the latest version on
<https://launchpad.net/~bronger/+ppa-packages>?  I switched to the
SVN version three weeks ago.  It contains

    Depends: ${shlibs:Depends}, ${misc:Depends}, adduser, lsb-base (>= 3.0-6),
     openjade, docbook-dsssl, docbook-xml, jadetex, texlive-base-bin, fop,
     libbtparse0, libtext-iconv-perl, libmarc-record-perl, libxml-parser-perl,
     libcgi-pm-perl, coreutils, libreadline5, libxml2-utils, xml-core, libncurses5,
     libdbi0, libdbd-sqlite, libexpat1
    Recommends: mysql-server (>= 3.23) | postgresql (>= 7.1) | libsqlite0 (>= 2.8) |
     libsqlite3-0 (>= 3), libdbd-mysql | libdbd-pgsql | libdbd-sqlite3
(Continue reading)

Markus Hoenicka | 25 Sep 2009 09:03
Picon

Re: Build Debian bin pkg from Ubunt scr pkg

Quoting Torsten Bronger <bronger <at> physik.rwth-aachen.de>:

> libdbd-sqlite is always installed, however in your case, this was
> not enough.  Does anybody have an idea why is this?  Doesn't RefDB
> start in Sqlite mode?
>
> We could add *all* libdbd's to the dependencies.
>

I think it is a good idea to stick to sqlite in the first place, as  
this allows for the smallest possible installation. According to  
Stefan's refdbd log "sqlite" is available but this does not seem to be  
the driver which is requested in refdbdrc. Stefan, could you please  
post the contents of /etc/refdb/refdbdrc? Does Debian distinguish  
between sqlite and sqlite3? The latter would be a better default btw.

regards,
Markus

--

-- 
Markus Hoenicka
markus.hoenicka <at> cats.de
(Spam-protected email: replace the quadrupeds with "mhoenicka")
http://www.mhoenicka.de

------------------------------------------------------------------------------
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;
(Continue reading)


Gmane