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

Re: How to package a cdylib package



Am 01.02.24 um 05:40 schrieb Loren M. Lang:
Hello,

I am working on packaging my first Rust-based Debian package. It will be
a cdylib type crate for another package written in C. It also depends on
at least one lib crate that is not yet packaged for Debian.

I'm going through the Wiki guide to create an appropriate Debian package
from the debcargo-conf repo scripts. My first question is if this is
just for lib-type crates or should it also be used for cdylib? Second,
are there some good template packages I can look at to provide a
reference for making a cdylib package?

Hi Loren,

thanks for reaching out. Is the cdylib published on crates.io ? if so, you can package and maintain it within the Rust team (our workflow is tailored around crates.io; we haven't decided yet how to support other upstreams than crates.io).

For an example on how to do the actual packaging, check out the rust-rav1e source package. It builds a cdylib. We actually discussed this at the last team meet, I will write a wiki page about that once I get around to it.

If the cdylib is not on crates.io this will be a bit more involved; if that's the case it would need its separate repository and a custom d/rules tweak. Feel free to ask here or on the #debian-rust irc on oftc if you got any more questions.


best,

-- 
Matthias Geiger <werdahias>
Debian Maintainer
"Freiheit ist immer Freiheit des anders Denkenden" -- Rosa Luxemburg

Attachment: OpenPGP_0x18BD106B3B6C5475.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


Reply to: