Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Balister/2011.3 maintenance/pull 2 #2

Open
wants to merge 13 commits into
base: 2011.03-maintenance
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions conf/distro/include/angstrom-2010-preferred-versions.inc
Expand Up @@ -17,8 +17,8 @@ PREFERRED_VERSION_cairo = "1.10.0"
PREFERRED_VERSION_dbus = "1.2.24"
PREFERRED_VERSION_dropbear = "0.52"
PREFERRED_VERSION_fontconfig = "2.8.0"
PREFERRED_VERSION_glib-2.0 = "2.28.0"
PREFERRED_VERSION_glib-2.0-native = "2.28.0"
PREFERRED_VERSION_glib-2.0 = "2.28.5"
PREFERRED_VERSION_glib-2.0-native = "2.28.5"
PREFERRED_VERSION_glibmm = "2.24.0"
PREFERRED_VERSION_gst-pulse = "0.9.7"
PREFERRED_VERSION_gtk+ = "2.20.1"
Expand Down
3 changes: 3 additions & 0 deletions recipes/asterisk/asterisk-1.4.39.2/init
Expand Up @@ -6,13 +6,16 @@
#
asterisk=/usr/sbin/asterisk
pidfile=/var/run/asterisk/asterisk.pid
logdir=/var/log/asterisk
asterisk_args="-npqT -U asterisk -G asterisk"

test -x "$asterisk" || exit 0

case "$1" in
start)
echo -n "Starting Asterisk"
mkdir -p $logdir
chown asterisk:asterisk $logdir
start-stop-daemon --start --quiet --exec $asterisk -- $asterisk_args
echo "."
;;
Expand Down
1 change: 1 addition & 0 deletions recipes/asterisk/asterisk_1.4.39.2.bb
Expand Up @@ -7,6 +7,7 @@ PRIORITY = "optional"
SECTION = "console/telephony"
DEPENDS = "speex readline zlib openssl curl popt gnutls sqlite libogg libvorbis"
#RRECOMMENDS_${PN} = "logrotate"
PR = "r1"

SRC_URI="http://downloads.asterisk.org/pub/telephony/asterisk/old-releases/asterisk-${PV}.tar.gz \
# file://sounds.xml.patch \
Expand Down
@@ -0,0 +1,26 @@
--- glib/tests/threadpool-test.c.old 2008-02-12 06:11:21.000000000 +0100
+++ glib/tests/threadpool-test.c 2008-02-12 06:11:52.000000000 +0100
@@ -5,8 +5,8 @@

#include <glib.h>

-#define DEBUG_MSG(x)
-/* #define DEBUG_MSG(args) g_printerr args ; g_printerr ("\n"); */
+/* #define DEBUG_MSG(x) */
+#define DEBUG_MSG(args) g_printerr args ; g_printerr ("\n");

#define WAIT 5 /* seconds */
#define MAX_THREADS 10
@@ -124,10 +124,10 @@
DEBUG_MSG (("[unused] stopping unused threads"));
g_thread_pool_stop_unused_threads ();

- DEBUG_MSG (("[unused] waiting ONE second for threads to die"));
+ DEBUG_MSG (("[unused] waiting FIVE second for threads to die"));

/* Some time for threads to die. */
- g_usleep (G_USEC_PER_SEC);
+ g_usleep (5 * G_USEC_PER_SEC);

DEBUG_MSG (("[unused] stopped idle threads, %d remain, %d threads still exist",
g_thread_pool_get_num_unused_threads (),
92 changes: 92 additions & 0 deletions recipes/glib-2.0/glib-2.0-2.28.5/configure-ipv6.patch
@@ -0,0 +1,92 @@
From a619a217e3e5aa5345db631213aec5a3684a3001 Mon Sep 17 00:00:00 2001
Subject: [PATCH] autodetect in6addr_{any,loopback} availability

Fixes linking error on systems which choose not to support ipv6:
./.libs/libgio-2.0.so: undefined reference to `in6addr_loopback'
./.libs/libgio-2.0.so: undefined reference to `in6addr_any'

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
---
configure.ac | 31 +++++++++++++++++++++++++++++++
gio/ginetaddress.c | 16 ++++++++++++++--
2 files changed, 45 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 7114014..023db49 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1019,6 +1019,37 @@ if test $glib_native_win32 = no; then
AC_SUBST(LIBASYNCNS_LIBADD)
fi

+dnl handle --disable-ipv6
+AC_ARG_ENABLE(ipv6, AC_HELP_STRING([--disable-ipv6],[Disable IPv6 support]))
+if test "$ipv6" != "no"; then
+ AC_DEFINE(HAVE_IPV6, 1, [Define if IPv6 is available])
+
+ AC_MSG_CHECKING([for struct in6addr_any])
+ AC_TRY_LINK(
+ [#define IN_AUTOCONF
+ #include <sys/types.h>
+ #include <sys/socket.h>
+ #include <netinet/in.h>],
+ [struct in6_addr a = in6addr_any;
+ return a.s6_addr[0];],
+ [AC_MSG_RESULT(yes)
+ AC_DEFINE(HAVE_IN6ADDR_ANY, 1, [Define if in6addr_any is available])],
+ [AC_MSG_RESULT(no)]
+ )
+ AC_MSG_CHECKING([for struct in6addr_loopback])
+ AC_TRY_LINK(
+ [#define IN_AUTOCONF
+ #include <sys/types.h>
+ #include <sys/socket.h>
+ #include <netinet/in.h>],
+ [struct in6_addr a = in6addr_loopback;
+ return a.s6_addr[0];],
+ [AC_MSG_RESULT(yes)
+ AC_DEFINE(HAVE_IN6ADDR_LOOPBACK, 1, [Define if in6addr_loopback is available])],
+ [AC_MSG_RESULT(no)]
+ )
+fi
+
case $host in
*-*-solaris* )
AC_DEFINE(_XOPEN_SOURCE_EXTENDED, 1, Needed to get declarations for msg_control and msg_controllen on Solaris)
diff --git a/gio/ginetaddress.c b/gio/ginetaddress.c
index 0f67e4f..ed29be2 100644
--- a/gio/ginetaddress.c
+++ b/gio/ginetaddress.c
@@ -484,7 +484,13 @@ g_inet_address_new_loopback (GSocketFamily family)
return g_inet_address_new_from_bytes (addr, family);
}
else
- return g_inet_address_new_from_bytes (in6addr_loopback.s6_addr, family);
+ {
+#ifdef HAVE_IN6ADDR_LOOPBACK
+ return g_inet_address_new_from_bytes (in6addr_loopback.s6_addr, family);
+#else
+ return NULL;
+#endif
+ }
}

/**
@@ -511,7 +517,13 @@ g_inet_address_new_any (GSocketFamily family)
return g_inet_address_new_from_bytes (addr, family);
}
else
- return g_inet_address_new_from_bytes (in6addr_any.s6_addr, family);
+ {
+#ifdef HAVE_IN6ADDR_ANY
+ return g_inet_address_new_from_bytes (in6addr_any.s6_addr, family);
+#else
+ return NULL;
+#endif
+ }
}


--
1.7.2.3

30 changes: 30 additions & 0 deletions recipes/glib-2.0/glib-2.0-2.28.5/configure-libtool.patch
@@ -0,0 +1,30 @@
diff -uNr glib-2.28.0.orig//configure.ac glib-2.28.0/configure.ac
--- glib-2.28.0.orig//configure.ac 2011-02-08 05:53:25.000000000 +0100
+++ glib-2.28.0/configure.ac 2011-02-15 15:07:54.683976837 +0100
@@ -1378,7 +1378,7 @@
G_MODULE_LDFLAGS=
else
export SED
- G_MODULE_LDFLAGS=`(./libtool --config; echo eval echo \\$export_dynamic_flag_spec) | sh`
+ G_MODULE_LDFLAGS=`($host_alias-libtool --config; echo eval echo \\$export_dynamic_flag_spec) | sh`
fi
dnl G_MODULE_IMPL= don't reset, so cmd-line can override
G_MODULE_NEED_USCORE=0
@@ -1443,7 +1443,7 @@
LDFLAGS="$LDFLAGS $G_MODULE_LDFLAGS"
dnl *** check for OSF1/5.0 RTLD_GLOBAL brokenness
echo "void glib_plugin_test(void) { }" > plugin.c
- ${SHELL} ./libtool --mode=compile ${CC} -shared \
+ ${SHELL} $host_alias-libtool --mode=compile ${CC} -shared \
-export-dynamic -o plugin.o plugin.c 2>&1 >/dev/null
AC_CACHE_CHECK([for RTLD_GLOBAL brokenness],
glib_cv_rtldglobal_broken,[
@@ -1517,7 +1517,7 @@

AC_MSG_CHECKING(for the suffix of module shared libraries)
export SED
-shrext_cmds=`./libtool --config | grep '^shrext_cmds='`
+shrext_cmds=`$host_alias-libtool --config | grep '^shrext_cmds='`
eval $shrext_cmds
module=yes eval std_shrext=$shrext_cmds
# chop the initial dot
11 changes: 11 additions & 0 deletions recipes/glib-2.0/glib-2.0-2.28.5/g_once_init_enter.patch
@@ -0,0 +1,11 @@
--- glib-2.22.1/glib/gthread.h.orig 2009-10-13 22:53:23.000000000 +0200
+++ glib-2.22.1/glib/gthread.h 2009-10-13 23:34:59.000000000 +0200
@@ -341,7 +341,7 @@
G_INLINE_FUNC gboolean
g_once_init_enter (volatile gsize *value_location)
{
- if G_LIKELY ((gpointer) g_atomic_pointer_get (value_location) != NULL)
+ if G_LIKELY ((gpointer) g_atomic_pointer_get ((volatile gpointer *)value_location) != NULL)
return FALSE;
else
return g_once_init_enter_impl (value_location);
@@ -0,0 +1,12 @@
diff -uri glib-2.26.1.orig/glib/gatomic.h glib-2.26.1/glib/gatomic.h
--- glib-2.26.1.orig/glib/gatomic.h 2010-07-11 05:56:45.000000000 +0200
+++ glib-2.26.1/glib/gatomic.h 2010-12-01 16:20:33.140009635 +0100
@@ -70,7 +70,7 @@
(g_atomic_int_set) ((volatile gint G_GNUC_MAY_ALIAS *) (volatile void *) (atomic), (newval)))
# define g_atomic_pointer_get(atomic) \
((void) sizeof (gchar [sizeof (*(atomic)) == sizeof (gpointer) ? 1 : -1]), \
- (g_atomic_pointer_get) ((volatile gpointer G_GNUC_MAY_ALIAS *) (volatile void *) (atomic)))
+ (g_atomic_pointer_get) ((volatile gpointer G_GNUC_MAY_ALIAS *) (volatile void G_GNUC_MAY_ALIAS *) (atomic)))
# define g_atomic_pointer_set(atomic, newval) \
((void) sizeof (gchar [sizeof (*(atomic)) == sizeof (gpointer) ? 1 : -1]), \
(g_atomic_pointer_set) ((volatile gpointer G_GNUC_MAY_ALIAS *) (volatile void *) (atomic), (newval)))
10 changes: 10 additions & 0 deletions recipes/glib-2.0/glib-2.0-2.28.5/glib-mkenums-interpreter.patch
@@ -0,0 +1,10 @@
Index: glib-2.28.0/gobject/glib-mkenums.in
===================================================================
--- glib-2.28.0.orig/gobject/glib-mkenums.in
+++ glib-2.28.0/gobject/glib-mkenums.in
@@ -1,4 +1,4 @@
-#! @PERL_PATH@
+#! /usr/bin/env perl

use warnings;
use File::Basename;
@@ -0,0 +1,25 @@
From 58096320ea0888c4fbbff318839017a4d2e82703 Mon Sep 17 00:00:00 2001
From: Lionel Landwerlin <llandwerlin@gmail.com>
Date: Sat, 6 Nov 2010 14:56:15 +0100
Subject: [PATCH] glib: fix compilation with no builtin atomic operations compilers

Signed-off-by: Lionel Landwerlin <llandwerlin@gmail.com>
---
glib/gatomic.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/glib/gatomic.c b/glib/gatomic.c
index 845c866..01468ce 100644
--- a/glib/gatomic.c
+++ b/glib/gatomic.c
@@ -881,6 +881,7 @@ g_atomic_pointer_compare_and_exchange (volatile gpointer G_GNUC_MAY_ALIAS *atomi
#endif /* DEFINE_WITH_WIN32_INTERLOCKED */

#ifdef DEFINE_WITH_MUTEXES
+# include "gthread.h"
/* We have to use the slow, but safe locking method */
static GMutex *g_atomic_mutex;

--
1.7.2.3

76 changes: 76 additions & 0 deletions recipes/glib-2.0/glib-2.0_2.28.5.bb
@@ -0,0 +1,76 @@
DESCRIPTION = "GLib is a general-purpose utility library, \
which provides many useful data types, macros, \
type conversions, string utilities, file utilities, a main \
loop abstraction, and so on. It works on many \
UNIX-like platforms, Windows, OS/2 and BeOS."
LICENSE = "LGPLv2+"
SECTION = "libs"
PRIORITY = "optional"
PR = "r2"
DEPENDS = "glib-2.0-native gtk-doc zlib"
DEPENDS_virtclass-native = "gettext-native gtk-doc-native \
pkgconfig-native"

SRC_URI = "\
http://ftp.gnome.org/pub/GNOME/sources/glib/2.28/glib-${PV}.tar.bz2;name=archive \
file://glibconfig-sysdefs.h \
file://configure-libtool.patch \
file://g_once_init_enter.patch \
file://gatomic-proper-pointer-get-cast.patch \
file://60_wait-longer-for-threads-to-die.patch \
file://glib-mkenums-interpreter.patch \
file://libglib2-fix-compilation-with-no-builtin-atomic.patch \
file://configure-ipv6.patch \
"

SRC_URI[archive.md5sum] = "ddf80a060ec9039ad40452ba3ca2311b"
SRC_URI[archive.sha256sum] = "8eb4b56b228c6d0bf5021dd23db5b0084d80cc6d8d89d7863073c2da575ec22a"

inherit autotools gettext

S = "${WORKDIR}/glib-${PV}"

EXTRA_OECONF = "--disable-debug "

# Add and entry for your favourite arch if your (g)libc has a sane printf
EXTRA_OECONF_append_glibc_arm = " --enable-included-printf=no "

do_configure_prepend () {
install -m 0644 ${WORKDIR}/glibconfig-sysdefs.h .
sed -i -e "s:TEST_PROGS += gdbus-serialization::g" ${S}/gio/tests/Makefile.am
}

do_install_append() {
sed -i -e s:${STAGING_BINDIR_NATIVE}:${bindir}:g ${D}${bindir}/glib-mkenums || true
}

EXTRA_OECONF_virtclass-native = "--disable-dtrace --disable-systemtap"

do_configure_prepend_virtclass-native() {
if [ -e ${S}/${TARGET_SYS}-libtool ] ; then
echo "${TARGET_SYS}-libtool already present"
else
cp ${STAGING_BINDIR}/${TARGET_SYS}-libtool ${S}
fi

}

BBCLASSEXTEND = "native"

PACKAGES =+ "gobject-2.0 gmodule-2.0 gthread-2.0 gio-2.0 glib-2.0-utils "
LEAD_SONAME = "libglib-2.0.*"
FILES_glib-2.0-utils = "${bindir}/*"
FILES_${PN} = "${libdir}/lib*so.* ${libdir}/gio/modules/*.so"
FILES_${PN}-dev += "${libdir}/glib-2.0 ${datadir}/glib-2.0 ${libdir}/gio/modules/*.la"
FILES_${PN}-dbg += "${libdir}/gio/modules/.debug"
FILES_gmodule-2.0 = "${libdir}/libgmodule-2.0.so.*"
FILES_gobject-2.0 = "${libdir}/libgobject-2.0.so.*"
FILES_gio-2.0 = "${libdir}/libgio-2.0.so.*"
FILES_gthread-2.0 = "${libdir}/libgthread-2.0.so.*"

# Let various glib components end up in glib package
# for compatibility (with binary packages from Maemo).
FILES_gthread-2.0_chinook-compat = ""
FILES_gmodule-2.0_chinook-compat = ""
FILES_gobject-2.0_chinook-compat = ""
FILES_gio-2.0_chinook-compat = ""
@@ -0,0 +1,42 @@
From 857c38eb8201e2a34b524fcabea21b1accbdb288 Mon Sep 17 00:00:00 2001
From: Philip Balister <philip@opensdr.com>
Date: Fri, 13 May 2011 12:26:14 -0400
Subject: [PATCH] volk : Remove all traces of volk from configure for OE builds.

Signed-off-by: Philip Balister <philip@opensdr.com>
---
Makefile.common | 4 ++--
configure.ac | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile.common b/Makefile.common
index 20b8a78..aeda1dd 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -92,8 +92,8 @@ GRUEL_INCLUDES = @gruel_INCLUDES@
GRUEL_LA = @gruel_LA@

# How to link in the VOLK library from inside the tree
-VOLK_INCLUDES = @volk_INCLUDES@
-VOLK_LA = @volk_LA@
+#VOLK_INCLUDES = @volk_INCLUDES@
+#VOLK_LA = @volk_LA@

# How to link in the USRP library from inside the tree
USRP_INCLUDES = @usrp_INCLUDES@
diff --git a/configure.ac b/configure.ac
index 73ebbd6..e5cf7a2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -349,7 +349,7 @@ AC_ARG_ENABLE(

build_dirs="config"
GRC_GRUEL dnl must come first
-GRC_VOLK
+dnl GRC_VOLK
GRC_GCELL
GRC_GNURADIO_CORE
GRC_USRP
--
1.7.3.4

3 changes: 2 additions & 1 deletion recipes/gnuradio/gnuradio.inc
Expand Up @@ -4,7 +4,7 @@ SECTION = "apps"
PRIORITY = "optional"
LICENSE = "GPLv3"
DEPENDS = "uhd gsl guile-native fftwf python alsa-lib boost cppunit swig-native python-numpy"
INC_PR = "r8"
INC_PR = "r9"

inherit distutils-base autotools pkgconfig

Expand Down Expand Up @@ -39,6 +39,7 @@ FILES_${PN}-examples = "${datadir}/gnuradio/examples"
FILES_${PN}-grc = "${datadir}/gnuradio/grc"
FILES_${PN}-conf = "${sysconfdir}/gnuradio"

FILES_${PN} += "${datadir}/gnuradio"
FILES_${PN} += "${PYTHON_SITEPACKAGES_DIR}/gnuradio/*"
FILES_${PN}-dbg += "${PYTHON_SITEPACKAGES_DIR}/gnuradio/.debug \
${PYTHON_SITEPACKAGES_DIR}/gnuradio/*/.debug \
Expand Down