Github messages for voidlinux
 help / color / mirror / Atom feed
From: daniel-eys <daniel-eys@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] libsignal-protocol-c: change to shared library
Date: Wed, 26 Aug 2020 19:07:05 +0200	[thread overview]
Message-ID: <20200826170705.fkqwc2c9UPGp5WqjWxwhBbXqEmIiof-fE1x1N1QDS4I@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-24197@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 466 bytes --]

There is an updated pull request by daniel-eys against master on the void-packages repository

https://github.com/daniel-eys/void-packages libsignal-protocol-c
https://github.com/void-linux/void-packages/pull/24197

libsignal-protocol-c: change to shared library
So things using `libsignal-protocol-c` (`profanity` and `dino`) link dynamically instead of statically.
@teldra

A patch file from https://github.com/void-linux/void-packages/pull/24197.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libsignal-protocol-c-24197.patch --]
[-- Type: text/x-diff, Size: 5002 bytes --]

From 1c07508491cd82ec7fa7561f3cad2821063f5483 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Daniel=20Ey=C3=9Fer?= <daniel.eysser@gmail.com>
Date: Mon, 10 Aug 2020 13:42:29 +0200
Subject: [PATCH 1/3] libsignal-protocol-c: change to shared library

---
 common/shlibs                         |  1 +
 srcpkgs/libsignal-protocol-c-devel    |  1 +
 srcpkgs/libsignal-protocol-c/template | 14 ++++++++++++--
 3 files changed, 14 insertions(+), 2 deletions(-)
 create mode 120000 srcpkgs/libsignal-protocol-c-devel

diff --git a/common/shlibs b/common/shlibs
index b28d158df83..c3fe522d724 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3981,3 +3981,4 @@ libaml.so.0 aml-0.1.0_1
 libneatvnc.so.0 neatvnc-0.2.0_1
 libtdjson.so.1.6.0 libtd-1.6.0_1
 libJudy.so.1 judy-1.0.5_1
+libsignal-protocol-c.so.2 libsignal-protocol-c-2.3.3_2
diff --git a/srcpkgs/libsignal-protocol-c-devel b/srcpkgs/libsignal-protocol-c-devel
new file mode 120000
index 00000000000..7f64c9cf85b
--- /dev/null
+++ b/srcpkgs/libsignal-protocol-c-devel
@@ -0,0 +1 @@
+libsignal-protocol-c
\ No newline at end of file
diff --git a/srcpkgs/libsignal-protocol-c/template b/srcpkgs/libsignal-protocol-c/template
index 2f60b284e44..9fa03bf6054 100644
--- a/srcpkgs/libsignal-protocol-c/template
+++ b/srcpkgs/libsignal-protocol-c/template
@@ -1,9 +1,9 @@
 # Template file for 'libsignal-protocol-c'
 pkgname=libsignal-protocol-c
 version=2.3.3
-revision=1
+revision=2
 build_style=cmake
-configure_args="-DCMAKE_POSITION_INDEPENDENT_CODE=ON"
+configure_args="-DBUILD_SHARED_LIBS=ON"
 makedepends="libressl-devel"
 checkdepends="pkg-config check-devel"
 short_desc="Signal Protocol C Library"
@@ -16,3 +16,13 @@ checksum=c22e7690546e24d46210ca92dd808f17c3102e1344cd2f9a370136a96d22319d
 if [ "${XBPS_CHECK_PKGS}" ]; then
 	configure_args+=" -DBUILD_TESTING=1"
 fi
+
+libsignal-protocol-c-devel_package() {
+	short_desc+=" - development files"
+	depends="${sourcepkg}>=${version}_${revision}"
+	pkg_install() {
+		vmove usr/include
+		vmove usr/lib/pkgconfig
+		vmove "usr/lib/*.so"
+	}
+}

From 45f9b5fee918e0bc3946a776c07212ce190c45a6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Daniel=20Ey=C3=9Fer?= <daniel.eysser@gmail.com>
Date: Mon, 10 Aug 2020 14:13:42 +0200
Subject: [PATCH 2/3] profanity: rebuild against shared libsignal-protocol-c

---
 srcpkgs/profanity/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/profanity/template b/srcpkgs/profanity/template
index 76a846005b9..ff808ba106e 100644
--- a/srcpkgs/profanity/template
+++ b/srcpkgs/profanity/template
@@ -1,7 +1,7 @@
 # Template file for 'profanity'
 pkgname=profanity
 version=0.9.5
-revision=1
+revision=2
 build_style=gnu-configure
 configure_args="$(vopt_enable notify notifications) $(vopt_enable otr)
  $(vopt_enable pgp) $(vopt_enable python python-plugins) $(vopt_enable plugins)
@@ -12,7 +12,7 @@ makedepends="libcurl-devel libglib-devel libstrophe-devel readline-devel sqlite-
  $(vopt_if notify libnotify-devel) $(vopt_if otr 'libotr-devel libgcrypt-devel')
  $(vopt_if pgp gpgme-devel) $(vopt_if python python3-devel) $(vopt_if gtk gtk+-devel)
  $(vopt_if xscreensaver libXScrnSaver-devel)
- $(vopt_if omemo 'libsignal-protocol-c libgcrypt-devel')"
+ $(vopt_if omemo 'libsignal-protocol-c-devel libgcrypt-devel')"
 checkdepends="cmocka-devel"
 short_desc="Console based XMPP client"
 maintainer="Anthony Iliopoulos <ailiop@altatus.com>"

From 7eb4f366beb57c1118a96576f9f61a4deb574b53 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Daniel=20Ey=C3=9Fer?= <daniel.eysser@gmail.com>
Date: Mon, 10 Aug 2020 14:15:21 +0200
Subject: [PATCH 3/3] dino: rebuild against shared libsignal-protocol-c, enable
 tests

---
 srcpkgs/dino/template | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/dino/template b/srcpkgs/dino/template
index 77a5b823dc3..cbc02fa3d5c 100644
--- a/srcpkgs/dino/template
+++ b/srcpkgs/dino/template
@@ -1,14 +1,14 @@
 # Template file for 'dino'
 pkgname=dino
 version=0.1.0
-revision=3
+revision=4
 build_style=cmake
 configure_args="-GNinja -DDINO_PLUGIN_ENABLED_notification-sound=ON"
 make_cmd=ninja
 hostmakedepends="cmake ninja gettext unzip pkg-config vala glib-devel"
 makedepends="glib-devel qrencode-devel gtk+3-devel gpgme-devel
  libgee08-devel libgcrypt-devel libsoup-devel
- libsignal-protocol-c sqlite-devel libcanberra-devel"
+ libsignal-protocol-c-devel sqlite-devel libcanberra-devel"
 short_desc='Modern XMPP ("Jabber") Chat Client using GTK+/Vala'
 maintainer="Anjandev Momi <anjan@momi.ca>"
 license="GPL-3.0-or-later"
@@ -16,6 +16,15 @@ homepage="https://github.com/dino/dino"
 distfiles="https://github.com/dino/dino/archive/v${version}.tar.gz"
 checksum="202b7db322d85389b0bebc3c38976e7f7beaceddd1fc46b8123e50c6c7c07b8d"
 
+if [ "${XBPS_CHECK_PKGS}" ]; then
+	configure_args+=" -DBUILD_TESTS=ON"
+fi
+
+do_check() {
+	build/xmpp-vala-test
+	build/signal-protocol-vala-test
+}
+
 post_install() {
 	rm -rf ${DESTDIR}/usr/include
 	rm -rf ${DESTDIR}/usr/lib/*.so

  parent reply	other threads:[~2020-08-26 17:07 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-10 13:37 [PR PATCH] " daniel-eys
2020-08-10 13:42 ` [PR REVIEW] " ericonr
2020-08-10 13:51 ` daniel-eys
2020-08-26 16:19 ` Piraty
2020-08-26 17:07 ` daniel-eys [this message]
2020-08-26 17:11 ` daniel-eys
2020-08-30 17:44 ` [PR PATCH] [Merged]: " Piraty

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200826170705.fkqwc2c9UPGp5WqjWxwhBbXqEmIiof-fE1x1N1QDS4I@z \
    --to=daniel-eys@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).