@nkukard Would you consider adding me as a co-maintainer on this. I was the maintainer at some point until a period of extended travel where I wasn't around to bump it got it orphaned. I am the maintainer of pjproject (which this depends on) and I would now like to start hosting prebuild x86_64 packages for asterisk in my package repository. It would be nice to be able to bump this and fix issue without having to keep a fork around and possibly having miss-matches between the version in my repository and the AUR.
Search Criteria
Package Details: asterisk 22.0.0-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/asterisk.git (read-only, click to copy) |
---|---|
Package Base: | asterisk |
Description: | A complete PBX solution |
Upstream URL: | https://www.asterisk.org |
Keywords: | sip, telephony, voip |
Licenses: | GPL-2.0-only |
Submitter: | pressh |
Maintainer: | nkukard (alerque) |
Last Packager: | nkukard |
Votes: | 112 |
Popularity: | 0.060478 |
First Submitted: | 2008-01-27 13:42 (UTC) |
Last Updated: | 2024-10-18 07:11 (UTC) |
Dependencies (21)
- alsa-lib
- curl (curl-quiche-gitAUR, curl-http3-ngtcp2AUR, curl-gitAUR, curl-c-aresAUR)
- jansson (jansson-gitAUR)
- libedit
- libvorbis (libvorbis-aotuvAUR, libvorbis-aotuv-lancerAUR, libvorbis-gitAUR)
- libxml2 (libxml2-gitAUR, libxml2-2.9AUR)
- libxslt (libxslt-gitAUR)
- opus (opus-gitAUR)
- popt (popt-gitAUR)
- speex (speex-gitAUR)
- gsm (make)
- sqlite3 (sqlite) (make)
- dahdi (dahdi-linux-gitAUR, dahdi-linuxAUR) (optional)
- gsm (optional)
- libpriAUR (optional)
- libsrtp (libsrtp-gitAUR) (optional)
- libss7AUR (optional)
- lua51 (luajit-symlinksAUR) (optional)
- openr2 (openr2-gitAUR) (optional)
- postgresql (postgresql-12AUR, postgresql13AUR, postgresql-gitAUR, postgresql15-docsAUR, postgresql15AUR, postgresql17-docsAUR, postgresql17AUR) (optional)
- unixodbc (unixodbc-gitAUR) (optional)
Required by (8)
Sources (5)
Latest Comments
« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 11 12 .. 24 Next › Last »
alerque commented on 2020-02-22 05:44 (UTC)
nkukard commented on 2020-01-23 05:28 (UTC)
@isundil, can you perhaps post the error you're getting?
isundil commented on 2020-01-22 13:18 (UTC)
Hello,
There is a missing dependency reference to community/bcg729
GNUtoo commented on 2019-06-22 20:23 (UTC)
Hi,
Here's a patch:
0001-Fix-most-illegal-instructions-when-shipping-asterisk.patch:
From 0b8eb034c73e858af14db5b9b3dd28da9114bd6d Mon Sep 17 00:00:00 2001 From: Denis 'GNUtoo' Carikli GNUtoo@cyberdimension.org Date: Tue, 8 Jan 2019 16:00:50 +0100 Subject: [PATCH] Fix most illegal instructions when shipping asterisk.While this works in AUR, because users are building the PKGBUILD, distributions wanting to use this PKGBUILD as-is and ship packages produced with it will result in illegal instructions at runtime.
Without that fix, if you build this packages on a machine with a processor that supports avx (Advanced Vector Extensions), libpjsip.so.2 ended up with vpxor instructions that were also executed on machines with a processor that did not have such extension, which resulted in an illegal instruction at asterisk startup if the machine running it didn't have AVX.
Though for some reason, with this patch, building asterisk on a machine with avx still results in res_pjsip_send_to_voicemail.so having one vpxor instruction.
Hopefully even with that, asterisk can still start on machines that do not have AVX.
To fix most illegal instructions: - Native builds were disabled by using the ChangeLog documentation: "Those who need different -march= values, please, go for ./configure make menuselect.makeopts or make menuselect ./menuselect/menuselect --disable BUILD_NATIVE" - The build configuration was changed to use an external pjproject library. The AUR PKGBUILD for pjproject also had several fixes to prevent it from causing illegal instructions.
On x86_64 I verified that most asterisk ELF files did not have vpxor instructions anymore with: $ pacman -Q -l asterisk | \ awk '{print $2}' | xargs file | grep ELF | \ sed 's#:.*##' | xargs objdump -D | grep vpxor
Signed-off-by: Denis 'GNUtoo' Carikli GNUtoo@cyberdimension.org
PKGBUILD | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/PKGBUILD b/PKGBUILD index
d2fa84e
..037bdcd 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -3,10 +3,11 @@ # Contributor: Xavier Devlamynck magicrhesus@ouranos.be # Contributor: Alessio Biancalana dottorblaster@gmail.com # Contributor: Maik Broemme mbroemme@libmpq.org +# Contributor: Denis 'GNUtoo' Carikli GNUtoo@cyberdimension.orgpkgname=asterisk pkgver=16.4.0 -pkgrel=1 +pkgrel=2 pkgdesc="A complete PBX solution" arch=('i686' 'x86_64' 'aarch64' 'armv7h') backup=('etc/asterisk/acl.conf' @@ -120,7 +121,7 @@ backup=('etc/asterisk/acl.conf' 'etc/asterisk/xmpp.conf') url='http://www.asterisk.org' license=('GPL') -depends=('alsa-lib' 'speex' 'popt' 'libvorbis' 'curl' 'libxml2' 'jansson' 'libxslt' 'opus' 'libedit') +depends=('alsa-lib' 'speex' 'popt' 'libvorbis' 'curl' 'libxml2' 'jansson' 'libxslt' 'opus' 'libedit' 'pjproject') makedepends=('sqlite3' 'gsm') optdepends=('lua51' 'libsrtp' 'postgresql' 'unixodbc' 'libpri' 'libss7' 'openr2' 'iksemel' 'radiusclient-ng' 'dahdi') install=${pkgname}.install @@ -135,7 +136,9 @@ sha256sums=('d870711299089d0b1f01708534b0e139c4e83d828cbb79dfc90ec59774be83fa'
build() { cd ${pkgname}-${pkgver} - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --sbindir=/usr/bin + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --sbindir=/usr/bin --with-pjproject-bundled=no + make menuselect.makeopts + ./menuselect/menuselect --disable BUILD_NATIVE make }
-- 2.21.0
DragonX256 commented on 2019-03-31 13:42 (UTC)
@tigran pkgconf lies in base-devel group. You should have installed this group in order to build packages from AUR.
tigran commented on 2019-03-30 20:36 (UTC)
A weird error in build macros: it gives message demanding libedit, while really it needs pkgconf.
You get that "please install libedit development package" configure message, you install it, and still keep getting the same message each time you try to build *, and you get driven crazy.
Just installing pkgconf sets the things.
DragonX256 commented on 2019-02-20 13:22 (UTC)
@emersonjr @Thulinma I've tested 16.2.0 building in clean chroot. pjproject builts correct, and there's no dependency on uriparser for asterisk.
Thulinma commented on 2019-02-19 10:09 (UTC)
Hi! It looks like "uriparser" is an unlisted dependency.
emersonjr commented on 2019-01-31 15:22 (UTC) (edited on 2019-01-31 15:26 (UTC) by emersonjr)
Just insert the following command sed -i 's/,5,/,10,/g' third-party/Makefile.rules
into PKGBUILD above the ./configure ...
line, which succesfully corrects the problem.
The file should now be like below:
build() {
cd ${pkgname}-${pkgver}
sed -i 's/,5,/,10,/g' third-party/Makefile.rules
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --sbindir=/usr/bin
make
}
Please @DragonX256 do the amendments
emersonjr commented on 2019-01-30 16:38 (UTC)
It seems there's problem again with pjproject 2.8
checking for RAII support... checking for gcc -fnested-functions... no
checking for clang strsep/strcmp optimization... no
checking for embedded pjproject (may have to download)... configuring
[pjproject] Downloading https://raw.githubusercontent.com/asterisk/third-party/master/pjproject/2.8/pjproject-2.8.tar.bz2 to /tmp/pjproject-2.8.tar.bz2
[pjproject] Retrying download
[pjproject] Downloading https://raw.githubusercontent.com/asterisk/third-party/master/pjproject/2.8/pjproject-2.8.tar.bz2 to /tmp/pjproject-2.8.tar.bz2
make: *** [Makefile:90: /tmp/pjproject-2.8.tar.bz2] Error 4
make: *** Deleting file '/tmp/pjproject-2.8.tar.bz2'
failed
configure: Unable to configure third-party/pjproject
configure: error: Re-run the ./configure command with 'NOISY_BUILD=yes' appended to see error details.
==> ERRO: Uma falha ocorreu em build().
Abortando...
How can it be solved?
Pinned Comments
alerque commented on 2020-02-22 06:10 (UTC) (edited on 2020-02-22 06:34 (UTC) by alerque)
PSA: I've started hosting this and all its dependencies as prebuilt packages (x86_86 only) in my repository for those that want to install them using
pacman
without messing around with building from the AUR.