[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Debian policy update (3.8.4.0)



(Please cc me on this thread, I'm not subscribed to debian-devel.)

Goswin wrote:
> Looks fine from here. How does your -dev package look? The .so link, .la
> and .pc files (if any) are specifically important.

The -dev package has no Multi-Arch field, which seems to be how the multiarch
spec on the Ubuntu wiki intends things to be done? As such, I'm still using
/usr/lib for the -dev part.

It'd be somewhat more complex to rearrange things for a multiarch -dev package,
but could be done; I assume the recommended way to do that would be to use
"./configure --libdir=/usr/lib/${DEB_HOST_GNU_TYPE}"?

libdbus is probably an interesting example if you want to do that because it
has one architecture-dependent header file, which it places in ${libdir}, and
keeps the rest of /usr/include architecture-independent.

For the actual change I made, please see pkg-utopia svn or this commit mail:
http://lists.alioth.debian.org/pipermail/pkg-utopia-commits/2010-January/003534.html

The -dev package currently contains:
> /.
> /usr
> /usr/share
> /usr/share/doc
> /usr/share/doc/libdbus-1-dev
> /usr/share/doc/libdbus-1-dev/AUTHORS [and other docs]
> /usr/lib
> /usr/lib/libdbus-1.a
> /usr/lib/pkgconfig
> /usr/lib/pkgconfig/dbus-1.pc
> /usr/lib/dbus-1.0
> /usr/lib/dbus-1.0/include
> /usr/lib/dbus-1.0/include/dbus
> /usr/lib/dbus-1.0/include/dbus/dbus-arch-deps.h
> /usr/include
> /usr/include/dbus-1.0
> /usr/include/dbus-1.0/dbus
> /usr/include/dbus-1.0/dbus/dbus-bus.h [and other headers]
> /usr/lib/libdbus-1.so

There's no .la file.

Development symlink:
> lrwxrwxrwx 1 root root 38 Jan 27 23:49 /usr/lib/libdbus-1.so -> /lib/i486-linux-gnu/libdbus-1.so.3.4.0

.pc file:
> prefix=/usr
> exec_prefix=${prefix}
> libdir=${exec_prefix}/lib
> includedir=${prefix}/include
> system_bus_default_address=unix:path=/var/run/dbus/system_bus_socket
> sysconfdir=/etc
> session_bus_services_dir=/usr/share/dbus-1/services
> daemondir=/usr/bin
> 
> Name: dbus
> Description: Free desktop message bus
> Version: 1.2.16
> Libs: -L${libdir} -ldbus-1 -lpthread -lrt 
> Cflags: -I${includedir}/dbus-1.0 -I${libdir}/dbus-1.0/include

I'd also be happy to multiarchify libgfshare (a small library using autotools
and debhelper 7) if that would make a useful example of how to do the simple
case; it's in collab-maint bzr, and you're welcome to commit there if that
would help. I'd also be happy to migrate it to collab-maint git (which
I've considered doing anyway) if that's easier for you to deal with.

Regards,
    Simon


Reply to: