Commit graph

38 commits

Author SHA1 Message Date
Sebastian Kemper
6643627656 pjproject: sync patches with asterisk 20.5.2
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2023-12-29 09:01:10 +01:00
Andreas Gnau
2b3ae318e4 pjproject: Add PKG_CPE_ID
Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>
2023-08-30 18:36:14 +02:00
Sebastian Kemper
73526e5661 pjproject: bump to 2.13.1
1. add "/refs/tags" to PKG_SOURCE_URL, otherwise the downloaded file is
   broken now
2. bump minor version, includes security related fixes, see [1], [2] and
   [3]

[1] https://github.com/pjsip/pjproject/security/advisories/GHSA-9pfh-r8x4-w26w
[2] https://github.com/pjsip/pjproject/security/advisories/GHSA-cxwq-5g9x-x7fr
[3] https://github.com/pjsip/pjproject/security/advisories/GHSA-q9cp-8wcq-7pfr

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2023-07-08 10:42:16 +02:00
Sebastian Kemper
2e9e9b8386 pjproject: bump to 2.13
- bump to 2.13
- new option "--disable-libsrtp" now available so we can get rid of
  dependency on libsrtp2 (asterisk's SRTP support doesn't depend on pjproject)
- new option "--disable-upnp"
- 0007-execinfo.patch not required anymore, pjproject now checks for
  __GLIBC__
- sync patches with asterisk 20.3.0

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2023-06-07 23:49:01 +02:00
Sebastian Kemper
472f1ac7ac pjproject: backport security fixes from 2.13
Backports two security fixes (c4d3498 and 450baca) from pjproject 2.13.
Source: asterisk 20.0.1.

Also drop AUTORELEASE as OpenWrt project wants to get rid of it.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-12-02 18:11:54 +01:00
Sebastian Kemper
a572285886 pjproject: bump to 2.12.1
- add "--disable-android-mediacodec" to configure
- add EXCLUDE_APP=1 to "make" calls so some apps aren't built (speeds up
  the build a bit)
- drop "sed" call as no longer needed
- drop uclibc related patches
  (0002-uclibc-linker-unrecognized-options.patch and
  0003-non-gnu-pthreads.patch)
- update 0004-config_site.patch to sync up with Asterisk 18.14.0
- drop 0005-remove-hardcoded-lstdc++.patch as uclibcxx was removed from
  OpenWrt
- update 0006-fix-pkg_config-file.patch as there were some changes in
  this area upstream
- add 0007-execinfo.patch to prevent errors due to missing <execinfo.h>
- sync patches with 18.14.0

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-08-20 11:15:34 +02:00
Andre Heider
376473b38c pjproject: sync patches with asterisk 18.7.1
Switch to AUTORELEASE while at it.

Signed-off-by: Andre Heider <a.heider@gmail.com>
2021-10-18 14:23:46 +02:00
Sebastian Kemper
95611304d9 pjproject: sync patches with asterisk 18.5.1
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-07-31 11:24:10 +02:00
Sebastian Kemper
5a916dc351 pjproject: sync patches with asterisk 18.2.2
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-03-14 18:14:30 +01:00
Jiri Slachta
967c9df8b2
Merge pull request #619 from neheb/cxx
treewide: remove uClibc++ support
2021-03-09 17:33:20 +01:00
Sebastian Kemper
6d6dd129aa pjproject: drop autoreconf, run make dep
Neither configure.ac nor configure.in exists, so autoreconf is a no-op.
This commit drops it.

Also, run "make dep" as advertised by the README and the configure
script.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-03-07 12:24:06 +01:00
Rosen Penev
13fd0a5ab9 treewide: remove uClibc++ support
This is in preparation for removing the whole thing from base.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-03-06 14:45:47 -08:00
Andre Heider
a71a6666d2 pjproject: bump to version 2.10
Sync with asterisk v16.13.0:
* update to v2.10
* update config_site.h settings
* sync patches

Signed-off-by: Andre Heider <a.heider@gmail.com>
2020-09-04 17:09:31 +02:00
Sebastian Kemper
80d0fbd405 pjproject: add two patches from Asterisk 16.10.0
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-05-14 21:40:05 +02:00
Sebastian Kemper
93e08d1ad9 pjproject: fix pkg-config file
The .pc file uses hard-coded paths:

prefix=/usr
exec_prefix=${prefix}
libdir=/usr/lib
includedir=/usr/include

It also pushes "-I/usr/include" into CFLAGS. This commit amends all of
that.

Resolve: #483

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-11-04 20:25:15 +01:00
Sebastian Kemper
5cc8a67196 pjproject: sync patches with Asterisk 16.6.1
Quote from Asterisk commit e6cc1f5083bbb85a76280e4bbada7be265b0a106:

"Issues in pjproject 2.9 caused us to revert some of their changes as a
work around. This introduced another issue where pjproject wouldn't
build with older gcc versions such as that found on CentOS 6. This
commit replaces the reverts with the official fixes for the original
issues and allows pjproject to be built on CentOS 6 again."

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-10-24 23:22:27 +02:00
Sebastian Kemper
9ea4a8b49b pjproject: bump to version 2.9
Version bump as preparation for Asterisk update.

In other news:

- upgrades ULRs to https
- adds new configure switch --disable-darwin-ssl (doesn't apply to
  OpenWrt, but disable it explicitly anyway)
- use INSTALL_DATA for pkg-config file
- patch naming changed to be in line with Asterisk's patch naming,
  making maintenance easier
- drops some patches, adds some new ones from Asterisk (mainly reverts
  of some pjproject commits which turned out to cause memory leaks)

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-10-11 18:06:20 +02:00
Andre Heider
a7280b6114 pjproject: add patches from asterisk's bundled pjproject
"check whether UPDATE is supported on outgoing calls", commit 5de36abd:

In ASTERISK-27095 an issue had been fixed because of which chan_pjsip was not
trying to send UPDATE messages when connected_line_method was set to invite.
However this only solved the issue for incoming INVITES. For outgoing INVITES
(important when transferring calls) the options variable needs to be updated
at a different place.

"Add patch for double free issue in timer heap", commit 9c11399b:

Fixed #2172: Avoid double reference counter decrements in
timer in the scenario of race condition between
pj_timer_heap_cancel() and pj_timer_heap_poll().

"Add timer patch from pjproject r5934", commit d4cd2a97.

Signed-off-by: Andre Heider <a.heider@gmail.com>
2019-05-02 10:50:59 +02:00
Andre Heider
48af9ec67b pjproject: update to 2.8
Update to the current release, see [0].

Get rid of the dropped --without-oss configure switch.

Add an upstream patch to fix building without SRTP support[1],
and refresh the rest.

[0] https://trac.pjsip.org/repos/milestone/release-2.8
[1] https://trac.pjsip.org/repos/changeset/5891/

Signed-off-by: Andre Heider <a.heider@gmail.com>
2018-12-16 12:14:51 +01:00
Andre Heider
ef17798ecf pjproject: update config_site.h
Sync asterisk settings, see [0].

[0] https://github.com/asterisk/asterisk/blob/master/third-party/pjproject/patches/config_site.h

Signed-off-by: Andre Heider <a.heider@gmail.com>
2018-10-08 12:12:17 +02:00
Sebastian Kemper
522ca0de75 pjproject: use preferred standard C++ lib
Currently libstdc++ is hardcoded. Change that and use whatever standard
C++ lib has preference.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-03-13 12:04:38 +01:00
Sebastian Kemper
186a6063aa pjproject: add PKG_CONFIG_DEPENDS
It is unlikely that SOFT_FLOAT is toggled, but add it to
PKG_CONFIG_DEPENDS for completeness' sake anyway.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-03-08 16:07:48 +01:00
Sebastian Kemper
744f27072c pjproject: bump to 2.7.2
Includes security fixes:

2094: Crash when receiving SDP with invalid fmtp attribute
2095: Crash when parsing SDP with an invalid media format description

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-02-26 22:33:33 +01:00
Sebastian Kemper
622de3d93f pjproject: bump to 2.7.1
- Update from 2.6 to 2.7.1.
- Update sed script because the TARGET_CFLAGS now occur twice in the .pc
  file.
- Upgrade dependency from libsrtp to libsrtp2.
- Drop patches that were included upstream.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-11-14 22:59:21 +01:00
Sebastian Kemper
630d92a0cf pjpoject: cleanups and fix for COPTS warnings
- Remove some unnecessary trailing slashes plus fix a whitespace.
- Remove flags that do not seem to have a good reason to be there
  (anymore).
- Add sed script to remove $(TARGET_CFLAGS) from pkgconfig file. This
  gets rid of the warnings in asterisk13 about COPTS duplication.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-08-19 15:48:04 +02:00
Sebastian Kemper
45e0c6a721 pjproject: add config_site.h
Copied from Asterisk, sets some sane values. For instance it enables
IPv6 support.

Also it disables DEBUG. With debug enabled 'pjproject enables "assert"
functions which can cause Asterisk to crash unexpectedly' (quote from
Asterisk wiki). This probably fixes issue #140.

With this config_site.h in place the libsrtp dep can be dropped from
select sub packages.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-08-09 22:52:24 +02:00
Sebastian Kemper
29cb5debb3 pjproject: enable ssl support
Enable SSL support as Asterisk relies on it. Some Asterisk modules
cannot load without it.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-08-09 22:48:10 +02:00
Sebastian Kemper
ae177a2f5f pjproject: align with Asterisk requirements, misc improvements
- Make "--disable-floating-point" depend on SOFT_FLOAT
- Remove "--disable-ilbc-coder" as configure no longer recognizes it.
- Align args with the ones used by Asterisk (for their bundled pjproject);
  this includes adding "--disable-resample".
- With libresample removed remove the dep from asterisk13 accordingly.
- Note: the disabled items are _not_ used by Asterisk anyway.
- Drop speex dep as pjproject does not link against it the way it is
  configured.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-08-09 22:45:34 +02:00
Sebastian Kemper
d8469c8750 pjproject: sort configure args, remove duplicates
This commit is only meant to make the following commits easier to follow.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-08-09 22:17:17 +02:00
Jiri Slachta
b9e1101518 pjproject: fix Makefile variables
Signed-off-by: Jiri Slachta <jiri@slachta.eu>
2017-07-29 22:24:58 +02:00
Sebastian Kemper
7fc4844b71 libs/pjproject: security revision bump
Add patches provided by Asterisk project for pjproject. This fixes the
following vulnerabilities:

- AST-2017-002: Buffer Overrun in PJSIP transaction layer (CVE-2017-9372)
- AST-2017-003: Crash in PJSIP multi-part body parser

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-07-29 14:04:00 +02:00
Sebastian Kemper
535515658a libs/pjproject: prevent linking against opus
When opus is found in staging area it will be linked against, adding a
dep that is not in the Makefile. So explicity disable opus.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-07-22 16:25:49 +02:00
Jiri Slachta
927ddb060d pjproject: update to 2.6
Signed-off-by: Jiri Slachta <jiri@slachta.eu>
2017-05-08 17:24:36 +02:00
Jiri Slachta
7a4de7c71d multiple packages: change PKG_MAINTAINER email address
Signed-off-by: Jiri Slachta <slachta@cesnet.cz>
2016-05-31 20:12:51 +02:00
Jiri Slachta
3c3c702783 pjproject: update to 2.4.5
Signed-off-by: Jiri Slachta <slachta@cesnet.cz>
2016-04-04 16:24:46 +02:00
Jiri Slachta
43be6e037d pjproject: update to 2.4.0
Signed-off-by: Jiri Slachta <slachta@cesnet.cz>
2015-04-28 11:29:36 +02:00
Daniel Golle
85542a2580 libsrtp: make uninstall before install
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2015-04-10 15:16:57 +02:00
Jiri Slachta
54a41da8cc pjproject: new package for upcoming asterisk-13.x introduced
Signed-off-by: Jiri Slachta <slachta@cesnet.cz>
2015-01-29 21:51:20 +01:00