[Buildroot] [PATCH 01/52] package/libpjsip: disable remaining unspecified options

Luca Ceresoli luca at lucaceresoli.net
Wed Jan 4 13:16:38 UTC 2017


Hi Yann,

On 30/12/2016 11:29, Yann E. MORIN wrote:
> There are a bunch of options that are left unspecified; explicitly
> disable them.
>
> Signed-off-by: Yann E. MORIN <yann.morin.1998 at free.fr>
> ---
>  package/libpjsip/libpjsip.mk | 17 +++++++++++++++++
>  1 file changed, 17 insertions(+)
>
> diff --git a/package/libpjsip/libpjsip.mk b/package/libpjsip/libpjsip.mk
> index cb0d866..7d30bbb 100644
> --- a/package/libpjsip/libpjsip.mk
> +++ b/package/libpjsip/libpjsip.mk
> @@ -36,6 +36,23 @@ LIBPJSIP_CONF_OPTS = \
>  	--disable-ilbc-codec \
>  	--disable-webrtc \
>  	--disable-opus \
> +	--disable-epoll \

Hey, there's a bug in the libpjsip configure script here!

Without --disable-epoll it says:

  checking ioqueue backend... select()

With your patch applied (i.e. passing --disable-epoll) it says:

  checking ioqueue backend... /dev/epoll

Indeed the aconfigure.ac file is wrong:

> AC_ARG_ENABLE(epoll,
>               AS_HELP_STRING([--enable-epoll],
>                              [Use /dev/epoll ioqueue on Linux
(experimental)]),
>               [
> 		ac_os_objs=ioqueue_epoll.o
> 		AC_MSG_RESULT([/dev/epoll])
>                 AC_DEFINE(PJ_HAS_LINUX_EPOLL,1)
> 		ac_linux_poll=epoll
>               ],
> 	      [
>                	ac_os_objs=ioqueue_select.o
>                 AC_MSG_RESULT([select()])
> 		ac_linux_poll=select
>     	      ])

The third parameter to AC_ARG_ENABLE is the action-if-present, which is
called if either --enable-epoll or --disable-epoll is called. It should
then read ${enableval}, not enable epoll unconditionally. The result is
that --disable-epoll enabled epoll! :-)

Note the very next AC_ARG_ENABLE() call (for --enable-shared) is correct.

> +	--disable-oss \
> +	--disable-ext-sound \
> +	--disable-small-filter \
> +	--disable-large-filter \
> +	--disable-g711-codec \
> +	--disable-l16-codec \
> +	--disable-g722-codec \
> +	--disable-libsamplerate \
> +	--disable-sdl \
> +	--disable-ffmpeg \
> +	--disable-v4l2 \
> +	--disable-openh264 \
> +	--disable-libyuv \
> +	--disable-ipp \
> +	--disable-ssl \
> +	--disable-silk \

I thought these were all already disabled by default or disabled by some
higher-level flag (e.g. --disable-sound). But clearly I missed
something, because with your patch we get a few smaller files:

  32272 ->   9789 pjmedia/lib/libpjmedia-codec.so.2
 345892 -> 341510 pjmedia/lib/libpjmedia.so.2

So, I'll be OK with this patch if you at least remove the
--disable-epoll line, or after the above bug is fixed.

Bye,
-- 
Luca


More information about the buildroot mailing list