hasufell / prism-overlay

Overlay for apps related to secure communication, cryptography and anonymity
7 stars 1 forks source link

>=net-voip/linphone-3.8.0 masked #7

Open wavilen opened 9 years ago

wavilen commented 9 years ago

Hello!

# compiles, but crashes with double-free
>=net-voip/linphone-3.8.0
>=media-libs/mediastreamer-2.11.0
>=net-libs/ortp-0.24.0
>=net-libs/belle-sip-1.4.0

After some experiments and looking to ubuntu and archlinux builds I understand that need use libsrtp with 1.4.5 version, I solved it following way:

--- libsrtp-1.4.4_p20121108-r1.ebuild   2015-09-27 14:07:42.300378210 +0300
+++ libsrtp-9999.ebuild 2015-09-27 17:02:07.835832517 +0300
@@ -4,30 +4,34 @@

 EAPI="4"

-inherit base multilib
+inherit base multilib git-r3

 MY_PN="srtp"
 MY_P="${MY_PN}-${PV}"

 DESCRIPTION="Open-source implementation of the Secure Real-time Transport Protocol (SRTP)"
 HOMEPAGE="http://srtp.sourceforge.net/srtp.html"
-SRC_URI="https://dev.gentoo.org/~phajdan.jr/${MY_P}.tar.gz"
+#SRC_URI="https://dev.gentoo.org/~phajdan.jr/${MY_P}.tar.gz"
+EGIT_REPO_URI="git://git.linphone.org/srtp.git"
+EGIT_COMMIT="1c9bd90"

 LICENSE="BSD"
 SLOT="0"
 KEYWORDS="alpha amd64 ~arm ~hppa ia64 ppc ppc64 -sparc x86 ~x86-fbsd ~ppc-macos ~x64-macos ~x86-macos"
 IUSE="aesicm console debug doc static-libs syslog"
 PATCHES=(
-       "${FILESDIR}/${P}-shared.patch"
+#      "${FILESDIR}/${P}-shared.patch"
        "${FILESDIR}/${PN}-CVE-2013-2139.diff"
        )

-S=${WORKDIR}/${MY_PN}
+#S=${WORKDIR}/${MY_PN}
+S=${WORKDIR}/${P}

 src_configure() {
        # stdout: default error output for messages in debug
        # kernel-linux: breaks the build
        # gdoi: disabled by upstream and breaks the build
+       autoconf
        econf \
                --enable-stdout \
                --disable-kernel-linux \

May be I'm just not finding it but I also added to my local overlay libbzrtp-1.0.2.ebuild with very simple contents

# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5

MY_PN=${PN/lib/}
DESCRIPTION="bzrtp is an opensource implementation of ZRTP keys exchange protocol."
HOMEPAGE="https://github.com/BelledonneCommunications/bzrtp"
SRC_URI="http://download-mirror.savannah.gnu.org/releases/linphone/bzrtp/bzrtp-${PV}.tar.gz"

LICENSE=""
SLOT="0"
KEYWORDS="~amd64"
IUSE=""

DEPEND=""
RDEPEND="${DEPEND}"

S="${WORKDIR}/${MY_PN}-${PV}"

I hope these small notes help you fix dependency and unmask new version of linphone.

Kind Regards, wavilen

hasufell commented 9 years ago

I stopped using linphone, so I don't work on this actively anymore. If you can provide a proper pull-request, I will merge this however.

If you are looking for a linphone alternative, I have imported net-voip/blink into the tree.