pidgin-otr: Upgrade to 4.0.2
PATCH 1/2 pidgin-otr: Upgrade to 4.0.2
Check for x11 before building, it has a hard dep on gtk+, which inturn needs x11 or directfb
Signed-off-by Khem Raj <[email protected]>
--- .../ignore_extra-portability_warnings.patch | 19 ------------------- meta-oe/recipes-support/pidgin/pidgin-otr_4.0.0.bb | 16 ---------------- meta-oe/recipes-support/pidgin/pidgin-otr_4.0.2.bb | 15 +++++++++++++++ 3 files changed, 15 insertions(+), 35 deletions(-) delete mode 100644 meta-oe/recipes-support/pidgin/pidgin-otr/ignore_extra-portability_warnings.patch delete mode 100644 meta-oe/recipes-support/pidgin/pidgin-otr_4.0.0.bb create mode 100644 meta-oe/recipes-support/pidgin/pidgin-otr_4.0.2.bb
meta-oe/recipes-support/pidgin/pidgin-otr/ignore_extra-portability_warnings.patch deleted +0 -19
@@ -1,19 +0,0 @@ -pidgin-otr: Silence no-extra-portability warnings - -Make it build with OE, was not building with warning turned on - -Upstream-Status: Pending - -Signed-off-by: Jakob Drexel <[email protected]> - ---- a/configure.ac 2012-09-01 17:03:19.000000000 +0200 -+++ b/configure.ac 2014-01-12 21:59:24.920300215 +0100 -@@ -4,7 +4,7 @@ - - AM_CONFIG_HEADER(config.h) - --AM_INIT_AUTOMAKE([-Wall -Werror]) -+AM_INIT_AUTOMAKE([-Wall -Werror -Wno-extra-portability]) - - AC_PROG_CC -
meta-oe/recipes-support/pidgin/pidgin-otr_4.0.0.bb deleted +0 -16
@@ -1,16 +0,0 @@ -SUMMARY = "(OTR) Messaging allows you to have private conversations over instant messaging" -HOMEPAGE = "http://www.cypherpunks.ca/otr/" -LICENSE = "GPLv2" -LIC_FILES_CHKSUM = "file://COPYING;md5=92fe174bad6da3763f6e9e9eaff6df24" -DEPENDS = "libgcrypt libotr pidgin intltool-native glib-2.0-native" - -SRC_URI = "http://www.cypherpunks.ca/otr/${BP}.tar.gz \ - file://ignore_extra-portability_warnings.patch \ -" - -SRC_URI[md5sum] = "eadb953376acc474e56041d4c12aa2c8" -SRC_URI[sha256sum] = "d56b3f092dbe9ee6597641c7d2dd294884dc04ba47aaf4ec571cd54977df4691" - -FILES_${PN} = "${libdir}/pidgin/*" - -inherit autotools pkgconfig
meta-oe/recipes-support/pidgin/pidgin-otr_4.0.2.bb new file +15 -0
@@ -0,0 +1,15 @@ +SUMMARY = "(OTR) Messaging allows you to have private conversations over instant messaging" +HOMEPAGE = "https://otr.cypherpunks.ca/" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=92fe174bad6da3763f6e9e9eaff6df24" +DEPENDS = "libgcrypt libotr pidgin gtk+ intltool-native glib-2.0 glib-2.0-native" +REQUIRED_DISTRO_FEATURES = "x11" + +SRC_URI = "https://otr.cypherpunks.ca/${BP}.tar.gz \ +" +SRC_URI[md5sum] = "7ef14e1334a4bc80e5d530f9a3cfc626" +SRC_URI[sha256sum] = "f4b59eef4a94b1d29dbe0c106dd00cdc630e47f18619fc754e5afbf5724ebac4" + +FILES_${PN} = "${libdir}/pidgin/*" + +inherit autotools pkgconfig distro_features_check
Signature · 1 line
2.14.1
PATCH 2/2 ypbind-mt: Upgrade to 2.4
Fix build with musl along the way
Signed-off-by Khem Raj <[email protected]>
---
.../0001-dns_hosts-Fix-build-with-musl.patch | 67 ++++++++++++++++++++++
.../nis/{ypbind-mt_1.38.bb => ypbind-mt_2.4.bb} | 10 +++-
2 files changed, 74 insertions(+), 3 deletions(-)
create mode 100644 meta-networking/recipes-support/nis/ypbind-mt/0001-dns_hosts-Fix-build-with-musl.patch
rename meta-networking/recipes-support/nis/{ypbind-mt_1.38.bb => ypbind-mt_2.4.bb} (84%)meta-networking/recipes-support/nis/ypbind-mt/0001-dns_hosts-Fix-build-with-musl.patch new file +67 -0
@@ -0,0 +1,67 @@ +From 5452961750275b1e3f7c95e9528338f0ee0357ad Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Thu, 14 Sep 2017 09:17:35 -0700 +Subject: [PATCH] dns_hosts: Fix build with musl + +Add NETDB_* defines which are not available in musl +remove need for sys/cdefs.h by remove __P +Add _GNU_SOURCE for missing u_char definition + +Signed-off-by: Khem Raj <[email protected]> +--- +Upstream-Status: Pending + + lib/Makefile.am | 2 +- + lib/dns_hosts.c | 9 ++++++++- + 2 files changed, 9 insertions(+), 2 deletions(-) + +diff --git a/lib/Makefile.am b/lib/Makefile.am +index 977a8db..35cb5b3 100644 +--- a/lib/Makefile.am ++++ b/lib/Makefile.am +@@ -8,7 +8,7 @@ + noinst_LIBRARIES = libcompat.a + noinst_HEADERS = ypbind3_binding.h + +-AM_CFLAGS = -D_REENTRANT=1 @WARNFLAGS@ ++AM_CFLAGS = -D_GNU_SOURCE -D_REENTRANT=1 @WARNFLAGS@ + AM_CPPFLAGS = -I$(srcdir) @TIRPC_CFLAGS@ @NSL_CFLAGS@ -DLOCALEDIR=\"$(localedir)\" + + libcompat_a_SOURCES = dns_hosts.c res_options.h ypbind3_binding_dup.c \ +diff --git a/lib/dns_hosts.c b/lib/dns_hosts.c +index fd421fd..6067879 100644 +--- a/lib/dns_hosts.c ++++ b/lib/dns_hosts.c +@@ -64,6 +64,7 @@ + + #include <sys/param.h> + #include <sys/socket.h> ++#include <sys/types.h> + #include <netinet/in.h> + #include <arpa/inet.h> + #include <arpa/nameser.h> +@@ -84,6 +85,12 @@ extern struct hostent *_gethtbyaddr(const char *, int, int); + #ifndef LOG_AUTH + # define LOG_AUTH 0 + #endif ++#ifndef NETDB_SUCCESS ++# define NETDB_SUCCESS 0 ++#endif ++#ifndef NETDB_INTERNAL ++# define NETDB_INTERNAL -1 ++#endif + + #define MULTI_PTRS_ARE_ALIASES 1 /* XXX - experimental */ + +@@ -101,7 +108,7 @@ static char hostbuf[8*1024]; + static struct in_addr host_addr; + + #ifdef RESOLVSORT +-static void addrsort __P((char **, int)); ++static void addrsort (char **, int); + #endif + + #if PACKETSZ > 1024 +-- +2.14.1 +
meta-networking/recipes-support/nis/ypbind-mt_2.4.bb renamed from meta-networking/recipes-support/nis/ypbind-mt_1.38.bb +7 -3
@@ -21,6 +21,7 @@ DEPENDS = " \ yp-tools \ ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \ " +DEPENDS_append_libc-musl = " bsd-headers nss" RDEPENDS_${PN} += "yp-tools" # ypbind-mt now provides all the functionality of ypbind
@@ -30,9 +31,10 @@ PROVIDES += "ypbind" SRC_URI = "http://www.linux-nis.org/download/ypbind-mt/${BP}.tar.bz2 \ file://ypbind.init \ file://ypbind.service \ -" -SRC_URI[md5sum] = "094088c0e282fa7f3b3dd6cc51d0a4e1" -SRC_URI[sha256sum] = "1930ce19f6ccfe10400f3497b31867f71690d2bcd3f5b575199fa915559b7746" + file://0001-dns_hosts-Fix-build-with-musl.patch \ + " +SRC_URI[md5sum] = "1aeccd0d11c064d5d59c56941bca682b" +SRC_URI[sha256sum] = "a2e1fa8fc992a12b289c229e00e38c20d59070c3bcf08babf40c692515c340e0" inherit systemd update-rc.d
@@ -42,6 +44,8 @@ INITSCRIPT_PARAMS = "start 44 3 5 . stop 70 0 1 2 6 ." CACHED_CONFIGUREVARS = "ac_cv_prog_STRIP=/bin/true" +CFLAGS_append_libc-musl = " -I${STAGING_INCDIR}/nss3" + do_install_append () { install -d ${D}${sysconfdir}/init.d install -d ${D}${sysconfdir}/rcS.d
Signature · 1 line
2.14.1