# ChangeLog for net-misc/asterisk
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/ChangeLog,v 1.83 2005/09/11 15:58:34 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/ChangeLog,v 1.84 2005/09/13 18:31:20 stkn Exp $
+
+ 13 Sep 2005; Stefan Knoblich <stkn@gentoo.org>
+ +files/1.0.0/asterisk-1.0.8-ptr64fix.diff, asterisk-1.0.5-r2.ebuild,
+ asterisk-1.0.6-r1.ebuild, asterisk-1.0.7-r1.ebuild, asterisk-1.0.8.ebuild,
+ asterisk-1.0.9.ebuild, asterisk-1.0.9-r1.ebuild:
+ Fix segfault on amd64 caused by wrong data-type in pointer arithmetic
+ (#105762), thanks to Joseph for reporting this.
11 Sep 2005; Aron Griffis <agriffis@gentoo.org>
asterisk-1.2.0_beta1.ebuild:
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-1.0.5-r2.ebuild,v 1.8 2005/09/07 23:35:53 stkn Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-1.0.5-r2.ebuild,v 1.9 2005/09/13 18:31:21 stkn Exp $
inherit eutils perl-module
# security fix (www.portcullis-security.com/advisory/advisory-05-013.txt)
epatch ${FILESDIR}/1.0.0/${PN}-1.0.7-manager-cli-segv.patch
+
+ # fix segfault on amd64 and possibly other 64bit systems (#105762)
+ epatch ${FILESDIR}/1.0.0/${PN}-1.0.8-ptr64fix.diff
}
src_compile() {
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-1.0.6-r1.ebuild,v 1.10 2005/09/07 23:35:53 stkn Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-1.0.6-r1.ebuild,v 1.11 2005/09/13 18:31:21 stkn Exp $
inherit eutils perl-module
# security fix (www.portcullis-security.com/advisory/advisory-05-013.txt)
epatch ${FILESDIR}/1.0.0/${PN}-1.0.7-manager-cli-segv.patch
+
+ # fix segfault on amd64 and possibly other 64bit systems (#105762)
+ epatch ${FILESDIR}/1.0.0/${PN}-1.0.8-ptr64fix.diff
}
src_compile() {
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-1.0.7-r1.ebuild,v 1.18 2005/09/07 23:35:53 stkn Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-1.0.7-r1.ebuild,v 1.19 2005/09/13 18:31:21 stkn Exp $
inherit eutils perl-module
# security fix (www.portcullis-security.com/advisory/advisory-05-013.txt)
epatch ${FILESDIR}/1.0.0/${P}-manager-cli-segv.patch
+
+ # fix segfault on amd64 and possibly other 64bit systems (#105762)
+ epatch ${FILESDIR}/1.0.0/${PN}-1.0.8-ptr64fix.diff
}
src_compile() {
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-1.0.8.ebuild,v 1.14 2005/09/07 23:35:53 stkn Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-1.0.8.ebuild,v 1.15 2005/09/13 18:31:21 stkn Exp $
inherit eutils perl-module
# fix callerid matching bug in dialplan
epatch ${FILESDIR}/1.0.0/${P}-callerid.patch
+
+ # fix segfault on amd64 and possibly other 64bit systems (#105762)
+ epatch ${FILESDIR}/1.0.0/${PN}-1.0.8-ptr64fix.diff
}
src_compile() {
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-1.0.9-r1.ebuild,v 1.3 2005/09/07 23:35:53 stkn Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-1.0.9-r1.ebuild,v 1.4 2005/09/13 18:31:21 stkn Exp $
inherit eutils perl-module
# to support supplementary groups for the asterisk
# user (start-stop-daemons --chguid breaks realtime priority support)
epatch ${FILESDIR}/1.0.0/${PN}-1.0.8-initgroups.diff
+
+ # fix segfault on amd64 and possibly other 64bit systems (#105762)
+ epatch ${FILESDIR}/1.0.0/${PN}-1.0.8-ptr64fix.diff
}
src_compile() {
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-1.0.9.ebuild,v 1.5 2005/09/07 23:35:53 stkn Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-1.0.9.ebuild,v 1.6 2005/09/13 18:31:21 stkn Exp $
inherit eutils perl-module
# to support supplementary groups for the asterisk
# user (start-stop-daemons --chguid breaks realtime priority support)
epatch ${FILESDIR}/1.0.0/${PN}-1.0.8-initgroups.diff
+
+ # fix segfault on amd64 and possibly other 64bit systems (#105762)
+ epatch ${FILESDIR}/1.0.0/${PN}-1.0.8-ptr64fix.diff
}
src_compile() {
--- /dev/null
+--- asterisk-1.0.8/utils.c.orig 2005-09-13 20:14:28.000000000 +0000
++++ asterisk-1.0.8/utils.c 2005-09-13 20:14:52.000000000 +0000
+@@ -399,7 +399,7 @@
+ offset = strstr(upper(haystack, u1, u1len), upper(needle, u2, u2len));
+ if (offset) {
+ /* Return the offset into the original string */
+- return ((char *)((unsigned int)haystack + (unsigned int)(offset - u1)));
++ return ((char *)((unsigned long)haystack + (unsigned long)(offset - u1)));
+ } else {
+ return NULL;
+ }