[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository has been archived by the owner on Nov 25, 2022. It is now read-only.

Creating a debian package #299

Closed
micah opened this issue Sep 23, 2018 · 4 comments
Closed

Creating a debian package #299

micah opened this issue Sep 23, 2018 · 4 comments
Labels

Comments

@micah
Copy link
micah commented Sep 23, 2018

Holger mentioned that it would be good to make a debian package of the libdeltachat library. I'm a Debian Developer, and can do this, but I do not have very much knowledge of shared libraries and the policies in Debian around them. The idea is to put a .deb up somewhere that can be linked to from the web pages to help people install py (and possibly js) bindings without running in to dependency issues or weird /usr/local/* stuff.

This should ideally be plugged into a CI to build this on every commit, but perhaps this would be too much of a bleeding edge package to provide people, so in the meantime, to provide something to get started, I built a package off of the latest tag (0.20.0).

I have a few questions:

Typically a shared library has an ABI version number as part of its SONAME. I noticed that there was none for libdeltachat, do you plan on setting one, or can I use zero to begin with.

Debian library packages are typically named lib[libraryname][SONAME-version-number]" so we would create libdeltachat[SONAME] and then the development files/header files would be created in a different package called libdeltachat[SONAME]-dev. Holger mentioned that only deltachat.h needs to be installed for the development libraries, as the other .h files are 'private'.


I noticed that 'git' is needed to build, but I didn't figure out why exactly, I think it had to do with the embedded netpgp. Do you happen to know?

Regarding the bundled libraries... How can I tell mason to build without them, and which of them are specifically modified in the bundled version, different from the upstream version?

I've attached to this issue the built .deb files from the 0.20.0 tag. These are by no means complete, but they provide a the shared library and the .h file. More work should be done to make them better.

libdeltachat-deb.tar.gz

@hpk42
Copy link
Contributor
hpk42 commented Sep 23, 2018

great ... quickly tried dpkg -i libdeltachat-core_0.20.0-1_amd64.deb but it fails ...

dpkg: dependency problems prevent configuration of libdeltachat-core:
 libdeltachat-core depends on libssl1.1 (>= 1.1.0); however:
  Package libssl1.1 is not installed.

as to "SONAME" i think "-core" is fine. and following the tag versions as well, i think. Right now we'd be at some post 0.20.0 dev version i guess.

could you maybe check your current deb package build into a deb/ subdir of this repository?

@micah
Copy link
Author
micah commented Sep 23, 2018 via email

@hpk42
Copy link
Contributor
hpk42 commented Sep 23, 2018 via email

@hpk42 hpk42 added the build label Oct 1, 2018
@r10s
Copy link
Member
r10s commented Feb 22, 2019

i think this is done :)

https://tracker.debian.org/pkg/deltachat-core

thanks everyone who pushed this forward :)

@r10s r10s closed this as completed Feb 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants