libcddb-1.3.2

Introduction to libcddb

The libcddb is a library that implements the different protocols (CDDBP, HTTP, SMTP) to access data on a CDDB server.

This package is known to build and work properly using an LFS 12.4 platform.

Package Information

  • Download (HTTP): https://downloads.sourceforge.net/libcddb/libcddb-1.3.2.tar.bz2

  • Download SHA256 Sum: 35ce0ee1741ea38def304ddfe84a958901413aa829698357f0bee5bb8f0a223b

  • Download MD5 sum: 8bb4a6f542197e8e9648ae597cd6bc8a

  • Download size: 1,867.1 KB

  • Estimated disk space required: 3,159.9 KB

  • Estimated build time: less than 0.5 SBU

Installation of libcddb

By default this package accesses freedb.org, which is already closed. Modify the default to use gnudb.gnudb.org instead, and fix two stale test data files:

sed -e '/DEFAULT_SERVER/s/freedb.org/gnudb.gnudb.org/' \
    -e '/DEFAULT_PORT/s/888/&0/' -i include/cddb/cddb_ni.h
sed '/^Genre:/s/Trip-Hop/Electronic/' -i tests/testdata/920ef00b.txt
sed '/DISCID/i# Revision: 42'         -i tests/testcache/misc/12340000

Fix a problem building with gcc-14 and later:

sed -i 's/size_t l;/socklen_t l;/' lib/cddb_net.c

Prepare libcddb by running the following commands:

./configure --prefix=/usr --disable-static
make

The test suite needs the Internet connection. One test fails due to missing test server. To test the results, issue:

make check -k 

Now Install the package, as the root user:

make install

Contents

Installed Programs: cddb_query
Installed Library: libcddb.so
Installed Directories: /usr/include/cddb

Short Descriptions

cddb_query

provides a user interface to a CDDB server