Mail archive
alpine-devel

Re: [alpine-devel] [PATCH] kamailio - version bump to 4.2.0

From: Natanael Copa <ncopa_at_alpinelinux.org>
Date: Wed, 22 Oct 2014 09:14:04 +0200

On Wed, 22 Oct 2014 01:29:56 +0000
Nathan Angelacos <nangel_at_alpinelinux.org> wrote:

> new in sub-packages:
>
> kamailio: rtpproxy-ng renamed to rtpengine
> kamailio-extras: tsilo jsonrpc-s
> kamailio-uuid: new (uuid module)
> kamailio-ev: new (evapi module)

Thanks!

I had some problems building it

problem 1: checksum missing for kamailio-4.2-backslash.patch. 'abuild checksum' fixed that

problem 2:

ws_frame.c:34:20: fatal error: unistr.h: No such file or directory
 #include <unistr.h>
                    ^
compilation terminated.
../../Makefile.rules:114: recipe for target 'ws_frame.o' failed


> _at_@ -240,7 +247,7 @@ prepare() {
>
> build() {
> cd "$_builddir"
> - make FLAVOUR=kamailio STUN=1 \
> + make FLAVOUR=kamailio STUN=1 EMBEDDED_UTF_DECODE=1\
> PREFIX=/usr \
> CC_EXTRA_OPTS="$CFLAGS -D_GNU_SOURCE" \
> cfg_target=/etc/kamailio/ \



Seems the define is EMBEDDED_UTF8_DECODE but I don't get how we are
supposed to pass it since just passing it to 'make cfg' does not make
it stick.

adding EMBEDDED_UTF8_DECODE:=1 in config.mak does not either work.

I believe this should be reported upstream.

As a workaround I have added it to 'make all' and 'make install':
_at_@ -247,7 +247,7 @@ prepare() {
 
 build() {
        cd "$_builddir"
- make FLAVOUR=kamailio STUN=1 EMBEDDED_UTF_DECODE=1\
+ make FLAVOUR=kamailio STUN=1 \
                PREFIX=/usr \
                CC_EXTRA_OPTS="$CFLAGS -D_GNU_SOURCE" \
                cfg_target=/etc/kamailio/ \
_at_@ -256,12 +256,12 @@ build() {
                DESTDIR="$pkgdir" \
                cfg_prefix="$pkgdir" \
                cfg
- make all || return 1
+ make all EMBEDDED_UTF8_DECODE=1 || return 1
 }
 
 package() {
        cd "$_builddir"
- make -j1 install || return 1
+ make -j1 install EMBEDDED_UTF8_DECODE=1 || return 1
 
        # move default config to -doc package and use our own default config
 


-nc


---
Unsubscribe:  alpine-devel+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-devel+help_at_lists.alpinelinux.org
---
Received on Wed Oct 22 2014 - 09:14:04 UTC