Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 206463 - net-misc/asterisk-1.2.21-r1 not compatible with speex-1.2-beta3
Summary: net-misc/asterisk-1.2.21-r1 not compatible with speex-1.2-beta3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: voip herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
: 223633 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-01-17 20:33 UTC by john read
Modified: 2009-05-05 22:13 UTC (History)
3 users (show)

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


Attachments
Patch adding -lspeexdsp for speex-1.2 (asterisk-1.2.27-speex.patch,542 bytes, patch)
2009-02-26 06:34 UTC, Mounir Lamouri (volkmar) (RETIRED)
Details | Diff
Patch including previous fix in 1.2.27-r1 ebuild (asterisk-1.2.27-r1.ebuild.patch,1.63 KB, patch)
2009-02-26 06:35 UTC, Mounir Lamouri (volkmar) (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description john read 2008-01-17 20:33:16 UTC
asterisk-1.2.21-r1 will crash at start when loading codec-speex when speex-1.2-beta3 is installed. rebuilding both does not help. Error disappears when downgrading speex
Comment 1 Raimonds Cicans 2008-01-25 20:16:39 UTC
Bug description in Digium's bugzilla:
http://bugs.digium.com/view.php?id=11693&nbn=4

Workaround:

LIBSPEEX="-lspeexdsp" emerge -v asterisk
Comment 2 Mounir Lamouri (volkmar) (RETIRED) gentoo-dev 2009-02-26 06:34:06 UTC
Created attachment 183225 [details, diff]
Patch adding -lspeexdsp for speex-1.2

Patch for asterisk-1.2.27
Comment 3 Mounir Lamouri (volkmar) (RETIRED) gentoo-dev 2009-02-26 06:35:33 UTC
Created attachment 183226 [details, diff]
Patch including previous fix in 1.2.27-r1 ebuild

In bug #215681, i have included a patch for a -r1 ebuild. For simplicity, here is a patch including also a fix for this bug. Should make it easier.
Comment 4 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-02-26 13:58:30 UTC
*** Bug 223633 has been marked as a duplicate of this bug. ***
Comment 5 Jesse Adelman 2009-03-10 02:35:00 UTC
Just got bit by this... Thanks.
Comment 6 Tony Vroon (RETIRED) gentoo-dev 2009-03-11 17:46:59 UTC
Thank you gentlemen, your contribution to Gentoo Linux is highly appreciated.
+*asterisk-1.2.31.1 (11 Mar 2009)
+
+  11 Mar 2009; <chainsaw@gentoo.org>
+  +files/1.2.0/asterisk-1.2.31.1-bri-fixups.diff,
+  +files/1.2.0/asterisk-1.2.31.1-comma-is-not-pipe.diff,
+  +files/1.2.0/asterisk-1.2.31.1-svn89254.diff, +asterisk-1.2.31.1.ebuild:
+  Version bump, for security bugs #250748 and #254304. Took a 1.4 build fix
+  that is relevant to 1.2, Digium bug #11238. Wrote patch to fix up typo in
+  open call, a comma is not a pipe sign. Used EAPI 2 for USE-based
+  dependencies instead of calling die. Patch from Mounir Lamouri adding
+  -lspeexdsp closes bug #206463 filed by John Read.
Comment 7 yahya 2009-05-05 22:13:54 UTC
(In reply to comment #6)
> Thank you gentlemen, your contribution to Gentoo Linux is highly appreciated.
> +*asterisk-1.2.31.1 (11 Mar 2009)
> +
> +  11 Mar 2009; <chainsaw@gentoo.org>
> +  +files/1.2.0/asterisk-1.2.31.1-bri-fixups.diff,
> +  +files/1.2.0/asterisk-1.2.31.1-comma-is-not-pipe.diff,
> +  +files/1.2.0/asterisk-1.2.31.1-svn89254.diff, +asterisk-1.2.31.1.ebuild:
> +  Version bump, for security bugs #250748 and #254304. Took a 1.4 build fix
> +  that is relevant to 1.2, Digium bug #11238. Wrote patch to fix up typo in
> +  open call, a comma is not a pipe sign. Used EAPI 2 for USE-based
> +  dependencies instead of calling die. Patch from Mounir Lamouri adding
> +  -lspeexdsp closes bug #206463 filed by John Read.
> 

in line 196 of asterisk-1.2.32.ebuild:
if use speex && has_version ">=media-libs/speex-1.2"; then

the test `has_version ">=media-libs/speex-1.2" fails for speex-1.2_beta3_p2, so the following sed command to add -lspeexdsp is not executed

and in line 318 of asterisk-1.2.32.ebuild:
  rm -f "${D}"usr/$(get_libdir)/asterisk/modules/codec_speex.so || die "BROKEN"

after the `has_version` bug above is fixed there is no need to delete the codec_speex.so module.