sharing code between packages

Sebastian Ramacher sramacher at debian.org
Wed May 21 12:28:12 UTC 2014


Hi

On 2014-05-21 13:34:41, "IOhannes m zmölnig (Debian/GNU)" wrote:
> now i'm wondering what's the best way to bring both the application and
> the library into Debian.
> the main obstacle is obviously the code copy.

I think the best option would be to get both upstream's to merge the
projects. ;)

> i see two options:
> - do as if there was no code-copy, and simply package the library
> 
> - somehow use the application source package to build the library:
> 
> -- e.g. patch (as in /debian/patches/) the application package to
> include the library-wrapper (that's a total of 15 .c/.h-files) and make
> the application source package provide also a libified version; use the
> library package to build the various non-C language bindings
> 
> -- OR somehow import the application source package when building the
> library package and use the application code rather than it's copy. (i'm
> sure there are some ways to do so, e.g. using multiple upstream
> tarballs; but i don't know yet how)

But anyway, multiple upstream tarballs are an option. They are not that
difficult. Just be careful with naming the additional tarballs. If need
help to get started with multiple tarballs, just let me know

And if you want to look at an example: I'm using them for zathura.
Upstream provides separate tarballs for the application and one for each
plugin. In the zathura source package, I combine them using 3.0's
multiple upstream tarball support.

The only problem I had was git-buildpackage and pristine-tar. I haven't
found a way to import multiple upstream tarballs with git-import-orig.
(This might be fixed already. I haven't looked into that in more detail
since implementing this in zathura two years ago. If you find a way,
please let me know.)

Another option would be to provide a pureaudio-source binary package
from pureaudio. You could Build-Depend on it in the library package.
There are some packages in the archive that provide -source packages:
gdb, gcc, etc.

Cheers
-- 
Sebastian Ramacher
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-multimedia-maintainers/attachments/20140521/7e0aab6a/attachment.sig>


More information about the pkg-multimedia-maintainers mailing list