package/rtptools: fix build for toolchains missinf SUN RPC headers
PATCH 1/1 package/rtptools: fix build for toolchains missinf SUN RPC headers
Use a configure check rather than checking explicitly for uClibc.
Make the patch a git patch at the same time.
Fixes:
http://autobuild.buildroot.org/results/1cf/1cfe3e019a627e7c092dbd94e4b891179e35bedd/ http://autobuild.buildroot.org/results/5ba/5bad40610316392c3f213c3e2a27ac76abd88de6/ http://autobuild.buildroot.org/results/789/789ebdc6a96fc62ca5c98bdd6b90de20872ea221/ ... and numerous similar build failures
Signed-off-by "Yann E. MORIN" <[email protected]>
Cc Peter Korsgaard <[email protected]>
--- .../rtptools/0001-host2ip-no-nis-on-uClibc.patch | 45 ------------- ...isable-NIS-support-for-toolchains-lacking.patch | 73 ++++++++++++++++++++++ package/rtptools/rtptools.mk | 1 + 3 files changed, 74 insertions(+), 45 deletions(-) delete mode 100644 package/rtptools/0001-host2ip-no-nis-on-uClibc.patch create mode 100644 package/rtptools/0001-host2ip.c-disable-NIS-support-for-toolchains-lacking.patch
package/rtptools/0001-host2ip-no-nis-on-uClibc.patch deleted +0 -45
@@ -1,45 +0,0 @@ -host2ip.c: disable NIS support when building with uClibc - -uClibc doesn't have NIS support, so simply disable the fallback. - -Signed-off-by: Peter Korsgaard <[email protected]> ---- - host2ip.c | 11 +++++++++++ - 1 file changed, 11 insertions(+) - -Index: rtptools-1.20/host2ip.c -=================================================================== ---- rtptools-1.20.orig/host2ip.c -+++ rtptools-1.20/host2ip.c -@@ -3,7 +3,16 @@ - #include <netdb.h> /* gethostbyname() */ - #include <netinet/in.h> /* sockaddr_in */ - #include <arpa/inet.h> /* inet_addr() */ -+ -+#include <features.h> -+#ifndef __UCLIBC__ -+#define HAVE_YP -+#endif -+ -+#ifdef HAVE_YP - #include <rpcsvc/ypclnt.h> /* YP */ -+#endif -+ - #include <string.h> /* strlen() added by Akira 12/27/01 */ - #include "sysdep.h" - -@@ -28,6 +37,7 @@ - else if ((hep = gethostbyname(host))) { - in = *(struct in_addr *)(hep->h_addr_list[0]); - } -+#ifdef HAVE_YP - /* As a last resort, try YP. */ - else { - static char *domain = 0; /* YP domain */ -@@ -39,5 +49,6 @@ - in.s_addr = inet_addr(value); - } - } -+#endif - return in; - } /* host2ip */
package/rtptools/0001-host2ip.c-disable-NIS-support-for-toolchains-lacking.patch new file +73 -0
73 lines not on this page · raw message
package/rtptools/rtptools.mk +1 -0
@@ -8,5 +8,6 @@ RTPTOOLS_VERSION = 1.20 RTPTOOLS_SITE = http://www.cs.columbia.edu/irt/software/rtptools/download RTPTOOLS_LICENSE = MIT-like (research and education only) RTPTOOLS_LICENSE_FILES = COPYRIGHT +RTPTOOLS_AUTORECONF = YES $(eval $(autotools-package))
Signature · 1 line
1.9.1
Thomas Petazzoni
AppliedPATCH 1/1 package/rtptools: fix build for toolchains missinf SUN RPC headers
Hello,
Quoted 12 lines · Yann E. MORIN
Use a configure check rather than checking explicitly for uClibc.
Make the patch a git patch at the same time.
Fixes:
http://autobuild.buildroot.org/results/1cf/1cfe3e019a627e7c092dbd94e4b891179e35bedd/ http://autobuild.buildroot.org/results/5ba/5bad40610316392c3f213c3e2a27ac76abd88de6/ http://autobuild.buildroot.org/results/789/789ebdc6a96fc62ca5c98bdd6b90de20872ea221/ ... and numerous similar build failuresSigned-off-by "Yann E. MORIN" <[email protected]>Cc Peter Korsgaard <[email protected]>
Quoted 7 lines
--- .../rtptools/0001-host2ip-no-nis-on-uClibc.patch | 45 ------------- ...isable-NIS-support-for-toolchains-lacking.patch | 73 ++++++++++++++++++++++ package/rtptools/rtptools.mk | 1 + 3 files changed, 74 insertions(+), 45 deletions(-) delete mode 100644 package/rtptools/0001-host2ip-no-nis-on-uClibc.patch create mode 100644 package/rtptools/0001-host2ip.c-disable-NIS-support-for-toolchains-lacking.patch
Applied to master, thanks. Please submit the patch upstream. Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com