:: [Dng] Question about properly split…
Forside
Slet denne besked
Besvar denne besked
Skribent: Isaac Dunham
Dato:  
Til: dng
Emne: [Dng] Question about properly splitting packages
Hello,
I've got a question about how to split a library package so it works well
with multiarch.
The source package in question is libsysdev.
When properly configured, it installs roughly the following files:
/usr/lib/*/libsysdev.so.0.0         (and symlinks)
/usr/lib/*/libsysdev.a
/usr/lib/*/pkgconfig/libsysdev.pc
/usr/bin/devinfo
/usr/include/sysdev/libsysdev.h        (this is not per-arch)
/usr/share/doc/libsysdev/README
/usr/share/doc/libsysdev/LICENSE
/usr/share/man/man1/devinfo.1
/usr/share/man/man3/libsysdev.3


I'm guessing that it should be split so there are 5 packages (2 arch=all,
3 arch=any):
arch=any:
libsysdev        depends: libsysdev-common
    (*.so.*)
libsysdev-dev        depends: libsysdev, libsysdev-common-dev
    (*.pc, *.a, *.so ->*.so.*)
libsysdev-tools        depends: libsysdev
    (/usr/bin, /usr/share/man/man1)
arch=all:
libsysdev-common
    (/usr/share/doc)
libsysdev-common-dev
    (/usr/include, /usr/share/man/man3)


In theory, this allows libsysdev-dev:i386 and libsysdev-dev:amd64 to be
installed in parallel.
Is this the proper way of splitting it?

Thanks,
Isaac Dunham