Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 758194 - x11-plugins/lurch-0.6.8 needs libomemo update
Summary: x11-plugins/lurch-0.6.8 needs libomemo update
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sebastian Pipping
URL: https://github.com/gkdr/libomemo/issu...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2020-12-03 08:47 UTC by Alex Efros
Modified: 2020-12-03 18:41 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Efros 2020-12-03 08:47:58 UTC
It may make sense to update embedded libomemo to 0.7.0.
This will change IV size to 12 bytes for outgoing messages and fix incompatibility Monal.
See attached URL for more details.

I've fixed this in my overlay and tested a bit - looks working.
Here is patch for current ebuild:

--- a/lurch-0.6.8.ebuild	2020-03-28 01:39:44.000000000 +0200
+++ b/lurch-0.6.8.ebuild	2020-12-03 10:28:59.588124642 +0200
@@ -8,7 +8,8 @@
 
 DESCRIPTION="OMEMO encryption for libpurple (XEP-0384)"
 HOMEPAGE="https://github.com/gkdr/lurch"
-SRC_URI="https://github.com/gkdr/lurch/releases/download/v${PV}/lurch-${PV}-src.tar.gz -> ${P}.tar.gz"
+SRC_URI="https://github.com/gkdr/lurch/releases/download/v${PV}/lurch-${PV}-src.tar.gz -> ${P}.tar.gz
+https://github.com/gkdr/libomemo/archive/v0.7.0.tar.gz -> ${P}-libomemo-0.7.0.tar.gz"
 
 LICENSE="GPL-3"
 SLOT="0"
@@ -40,6 +41,13 @@
 CMAKE_USE_DIR="${S}"/lib/axc/lib/libsignal-protocol-c
 BUILD_DIR="${CMAKE_USE_DIR}"/build
 
+src_unpack() {
+	unpack "${P}.tar.gz"
+	cd "${S}/lib" || die
+	einfo "Updating libomemo to 0.7.0"
+	tar xf "${DISTDIR}/${P}-libomemo-0.7.0.tar.gz" -C libomemo --strip-components 1 || die "Failed to unpack ${P}-libomemo-0.7.0.tar.gz"
+}
+
 src_configure() {
 	local mycmakeargs=(
 		-DBUILD_SHARED_LIBS=OFF  # top-level Makefile expects .a file
Comment 1 Sebastian Pipping gentoo-dev 2020-12-03 18:41:38 UTC
Already fixed in 0.6.8-r1