htpdate: Add recipe
PATCH 1/2 htpdate: Add recipe
Signed-off-by Khem Raj <[email protected]>
--- ...ent-variables-assignments-to-be-weak.patch | 31 +++++++++++++++ .../recipes-support/htpdate/htpdate_1.2.0.bb | 38 +++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 meta-networking/recipes-support/htpdate/htpdate/0001-Make-environment-variables-assignments-to-be-weak.patch create mode 100644 meta-networking/recipes-support/htpdate/htpdate_1.2.0.bb
meta-networking/recipes-support/htpdate/htpdate/0001-Make-environment-variables-assignments-to-be-weak.patch new file +31 -0
@@ -0,0 +1,31 @@ +From 04603f52d793f964653e6a985944400fe4fa87ee Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Wed, 13 Jun 2018 17:50:20 -0700 +Subject: [PATCH] Make environment variables assignments to be weak + +So that OE can override them for cross builds + +Signed-off-by: Khem Raj <[email protected]> +--- + Makefile | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/Makefile b/Makefile +index 1c80c09..884126c 100644 +--- a/Makefile ++++ b/Makefile +@@ -2,11 +2,11 @@ prefix = $(DESTDIR)/usr + bindir = ${prefix}/bin + mandir = ${prefix}/share/man + +-CC = gcc ++CC ?= gcc + CFLAGS += -Wall -std=c99 -pedantic -O2 + +-INSTALL = /usr/bin/install -c +-STRIP = /usr/bin/strip -s ++INSTALL ?= /usr/bin/install -c ++STRIP ?= /usr/bin/strip -s + + all: htpdate +
meta-networking/recipes-support/htpdate/htpdate_1.2.0.bb new file +38 -0
@@ -0,0 +1,38 @@ +# Copyright (C) 2018 Khem Raj <[email protected]> +# Released under the MIT license (see COPYING.MIT for the terms) + +SUMMARY = "HTTP based time synchronization tool" + +DESCRIPTION = "The HTTP Time Protocol (HTP) is used to synchronize a computer's time with\ + web servers as reference time source. This program can be used instead\ + ntpdate or similar, in networks that has a firewall blocking the NTP port.\ + Htpdate will synchronize the computer time to Greenwich Mean Time (GMT),\ + using the timestamps from HTTP headers found in web servers response (the\ + HEAD method will be used to get the information).\ + Htpdate works through proxy servers. Accuracy of htpdate will be usually\ + within 0.5 seconds (better with multiple servers).\ +" + +HOMEPAGE = "http://www.vervest.org/htp/" + +LICENSE = "GPL-2.0+" +LIC_FILES_CHKSUM = "file://htpdate.c;beginline=26;endline=30;md5=d7018a4d2c5a6eab392709a05e5e168a" + +SRC_URI = "http://www.vervest.org/htp/archive/c/htpdate-${PV}.tar.xz \ + file://0001-Make-environment-variables-assignments-to-be-weak.patch \ + " +SRC_URI[md5sum] = "9d5ca69be06edf5d535b52b5f790da4e" +SRC_URI[sha256sum] = "22b2cf3ec45b0eedecddd3ad2a3d754ac57942ae7dcbac410d254935f0bdbc03" + +do_configure () { + : +} + +do_compile () { + oe_runmake +} + +do_install () { + oe_runmake install 'INSTALL=install' 'STRIP=echo' 'DESTDIR=${D}' +} +
Signature · 1 line
2.17.1
PATCH 2/2 open-vm-tools: Upgrade to 10.2.5
Fix build on musl while here
Signed-off-by Khem Raj <[email protected]>
---
...1-configure.ac-don-t-use-dnet-config.patch | 17 +-
...include-poll.h-instead-of-sys-poll.h.patch | 26 +
.../0002-Rename-poll.h-to-vm_poll.h.patch | 115 +++
...oll.h-instead-of-obsolete-sys-poll.h.patch | 24 -
.../0003-Rename-poll.h-to-vm_poll.h.patch | 756 ------------------
...strerror_r-unless-on-gnu-libc-system.patch | 39 +
...04-Use-uintmax_t-for-handling-rlim_t.patch | 29 +
...-test-for-feature-instead-of-platfor.patch | 13 +-
...0008-use-posix-strerror_r-unless-gnu.patch | 30 -
...rt-for-building-with-system-libtirpc.patch | 342 --------
.../open-vm-tools/0010-gnu-ucontext.patch | 65 --
.../fix-subdir-objects-configure-error.patch | 12 +
.../{files => open-vm-tools}/tools.conf | 0
.../open-vm-tools/use-tirpc.patch | 481 +++++++++++
.../{files => open-vm-tools}/vmtoolsd.init | 0
.../{files => open-vm-tools}/vmtoolsd.service | 0
...ools_10.1.5.bb => open-vm-tools_10.2.5.bb} | 20 +-
17 files changed, 720 insertions(+), 1249 deletions(-)
create mode 100644 meta-oe/recipes-support/open-vm-tools/open-vm-tools/0001-include-poll.h-instead-of-sys-poll.h.patch
create mode 100644 meta-oe/recipes-support/open-vm-tools/open-vm-tools/0002-Rename-poll.h-to-vm_poll.h.patch
delete mode 100644 meta-oe/recipes-support/open-vm-tools/open-vm-tools/0002-include-poll.h-instead-of-obsolete-sys-poll.h.patch
delete mode 100644 meta-oe/recipes-support/open-vm-tools/open-vm-tools/0003-Rename-poll.h-to-vm_poll.h.patch
create mode 100644 meta-oe/recipes-support/open-vm-tools/open-vm-tools/0003-use-posix-strerror_r-unless-on-gnu-libc-system.patch
create mode 100644 meta-oe/recipes-support/open-vm-tools/open-vm-tools/0004-Use-uintmax_t-for-handling-rlim_t.patch
delete mode 100644 meta-oe/recipes-support/open-vm-tools/open-vm-tools/0008-use-posix-strerror_r-unless-gnu.patch
delete mode 100644 meta-oe/recipes-support/open-vm-tools/open-vm-tools/0009-Add-support-for-building-with-system-libtirpc.patch
delete mode 100644 meta-oe/recipes-support/open-vm-tools/open-vm-tools/0010-gnu-ucontext.patch
create mode 100644 meta-oe/recipes-support/open-vm-tools/open-vm-tools/fix-subdir-objects-configure-error.patch
rename meta-oe/recipes-support/open-vm-tools/{files => open-vm-tools}/tools.conf (100%)
create mode 100644 meta-oe/recipes-support/open-vm-tools/open-vm-tools/use-tirpc.patch
rename meta-oe/recipes-support/open-vm-tools/{files => open-vm-tools}/vmtoolsd.init (100%)
rename meta-oe/recipes-support/open-vm-tools/{files => open-vm-tools}/vmtoolsd.service (100%)
rename meta-oe/recipes-support/open-vm-tools/{open-vm-tools_10.1.5.bb => open-vm-tools_10.2.5.bb} (87%)meta-oe/recipes-support/open-vm-tools/open-vm-tools/0001-configure.ac-don-t-use-dnet-config.patch +7 -10
@@ -14,11 +14,11 @@ Signed-off-by: Martin Kelly <[email protected]> configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -diff --git a/configure.ac b/configure.ac -index 3400b86..7d6119e 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -942,7 +942,7 @@ if test "$with_dnet" = "yes"; then +Index: open-vm-tools/configure.ac +=================================================================== +--- open-vm-tools.orig/configure.ac ++++ open-vm-tools/configure.ac +@@ -944,7 +944,7 @@ if test "$with_dnet" = "yes"; then AC_VMW_CHECK_LIB([dnet], [DNET], [],
@@ -27,15 +27,12 @@ index 3400b86..7d6119e 100644 [], [dnet.h], [intf_open], -@@ -952,7 +952,7 @@ if test "$with_dnet" = "yes"; then +@@ -954,7 +954,7 @@ if test "$with_dnet" = "yes"; then if test $have_dnet = "no"; then AC_MSG_ERROR( - [dnet-config was not found on your PATH. Please configure without dnet (using --without-dnet) or install dnet - http://libdnet.sourceforge.net]) + [dnet was not found. Please configure without dnet (using --without-dnet) or install dnet - http://libdnet.sourceforge.net]) - fi + fi fi --- -2.1.4 -
meta-oe/recipes-support/open-vm-tools/open-vm-tools/0001-include-poll.h-instead-of-sys-poll.h.patch new file +26 -0
@@ -0,0 +1,26 @@ +From 4981bb3013d7f1e40e44618076d99af3484eedea Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Wed, 13 Jun 2018 23:02:50 -0700 +Subject: [PATCH] include poll.h instead of sys/poll.h + +including sys/poll.h is deprecated + +Signed-off-by: Khem Raj <[email protected]> +--- + open-vm-tools/lib/asyncsocket/asyncsocket.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/lib/asyncsocket/asyncsocket.c b/lib/asyncsocket/asyncsocket.c +index 13908679..e0a68e7e 100644 +--- a/lib/asyncsocket/asyncsocket.c ++++ b/lib/asyncsocket/asyncsocket.c +@@ -69,8 +69,8 @@ + #else + #include <stddef.h> + #include <ctype.h> ++#include <poll.h> + #include <sys/types.h> +-#include <sys/poll.h> + #include <sys/socket.h> + #include <sys/un.h> + #include <netdb.h>
meta-oe/recipes-support/open-vm-tools/open-vm-tools/0002-Rename-poll.h-to-vm_poll.h.patch new file +115 -0
115 lines not on this page · raw message
meta-oe/recipes-support/open-vm-tools/open-vm-tools/0002-include-poll.h-instead-of-obsolete-sys-poll.h.patch deleted +0 -24
@@ -1,24 +0,0 @@ -From d44c7c9de7380ad7b284231bd5b5c99b5c19758d Mon Sep 17 00:00:00 2001 -From: Khem Raj <[email protected]> -Date: Sun, 16 Jul 2017 07:37:59 -0700 -Subject: [PATCH 02/11] include poll.h instead of obsolete sys/poll.h - -Signed-off-by: Khem Raj <[email protected]> ---- - open-vm-tools/lib/asyncsocket/asyncSocketInt.h | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -Index: open-vm-tools/lib/asyncsocket/asyncSocketInt.h -=================================================================== ---- open-vm-tools.orig/lib/asyncsocket/asyncSocketInt.h -+++ open-vm-tools/lib/asyncsocket/asyncSocketInt.h -@@ -71,8 +71,8 @@ - #else - #include <stddef.h> - #include <ctype.h> -+#include <poll.h> - #include <sys/types.h> --#include <sys/poll.h> - #include <sys/socket.h> - #include <sys/un.h> - #include <netdb.h>
meta-oe/recipes-support/open-vm-tools/open-vm-tools/0003-Rename-poll.h-to-vm_poll.h.patch deleted +0 -756
756 lines not on this page · raw message
meta-oe/recipes-support/open-vm-tools/open-vm-tools/0003-use-posix-strerror_r-unless-on-gnu-libc-system.patch new file +39 -0
@@ -0,0 +1,39 @@ +From a2e7d9273261c5c5cbc33796900f415097f5455e Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Wed, 13 Jun 2018 23:16:53 -0700 +Subject: [PATCH] use posix strerror_r unless on gnu libc system + +Signed-off-by: Khem Raj <[email protected]> +--- + open-vm-tools/lib/err/errPosix.c | 9 ++++++--- + 1 file changed, 6 insertions(+), 3 deletions(-) + +diff --git a/lib/err/errPosix.c b/lib/err/errPosix.c +index c81b4c13..7a403640 100644 +--- a/lib/err/errPosix.c ++++ b/lib/err/errPosix.c +@@ -31,6 +31,7 @@ + #include <errno.h> + #include <string.h> + #include <locale.h> ++#include <stdio.h> + + #include "vmware.h" + #include "errInt.h" +@@ -63,11 +64,13 @@ ErrErrno2String(Err_Number errorNumber, // IN + { + char *p; + +-#if defined(__linux__) && !defined(__ANDROID__) ++#if defined(__GLIBC__) && !defined(__ANDROID__) + p = strerror_r(errorNumber, buf, bufSize); + #else +- p = strerror(errorNumber); +-#endif ++ if (strerror_r(errorNumber, buf, bufSize) != 0) ++ snprintf(buf, bufSize, "unknown error %i", errorNumber); ++ p = buf; ++#endif /* defined __GLIBC__ */ + ASSERT(p != NULL); + return p; + }
meta-oe/recipes-support/open-vm-tools/open-vm-tools/0004-Use-uintmax_t-for-handling-rlim_t.patch new file +29 -0
@@ -0,0 +1,29 @@ +From e694a122c1ff32d8b951ae55756796f9576d23ed Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Wed, 13 Jun 2018 23:37:09 -0700 +Subject: [PATCH] Use uintmax_t for handling rlim_t + +rlimit types are not representable with long or long long +formats, therefore use uintmax_t to typecast rlim_t types +and use %j to print it + +Signed-off-by: Khem Raj <[email protected]> +--- + open-vm-tools/lib/hgfsServer/hgfsServerLinux.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/lib/hgfsServer/hgfsServerLinux.c b/lib/hgfsServer/hgfsServerLinux.c +index 2e73707d..a2fdb850 100644 +--- a/lib/hgfsServer/hgfsServerLinux.c ++++ b/lib/hgfsServer/hgfsServerLinux.c +@@ -5294,8 +5294,8 @@ HgfsWriteCheckIORange(off_t offset, // IN: + goto exit; + } + +- LOG(6, ("%s: File Size limits: 0x%"FMT64"x 0x%"FMT64"x\n", +- __FUNCTION__, fileSize.rlim_cur, fileSize.rlim_max)); ++ LOG(6, ("%s: File Size limits: 0x%jx 0x%jx\n", ++ __FUNCTION__, (uintmax_t)fileSize.rlim_cur, (uintmax_t)fileSize.rlim_max)); + + /* + * Check the offset is within the file size range.
meta-oe/recipes-support/open-vm-tools/open-vm-tools/0007-Use-configure-to-test-for-feature-instead-of-platfor.patch +2 -11
@@ -29,7 +29,7 @@ Index: open-vm-tools/configure.ac =================================================================== --- open-vm-tools.orig/configure.ac +++ open-vm-tools/configure.ac -@@ -798,6 +798,7 @@ AC_CHECK_FUNCS( +@@ -892,6 +892,7 @@ AC_CHECK_FUNCS( AC_CHECK_FUNCS([ecvt]) AC_CHECK_FUNCS([fcvt])
@@ -37,7 +37,7 @@ Index: open-vm-tools/configure.ac AC_CHECK_FUNC([mkdtemp], [have_mkdtemp=yes]) -@@ -1063,10 +1064,13 @@ AC_PATH_PROG( +@@ -1076,10 +1077,13 @@ AC_PATH_PROG( ### AC_CHECK_HEADERS([crypt.h])
@@ -133,12 +133,3 @@ Index: open-vm-tools/lib/nicInfo/nicInfoPosix.c # include <net/if.h> #endif #ifndef NO_DNET -@@ -348,7 +352,7 @@ GuestInfoGetNicInfo(NicInfoV3 *nicInfo) - * - ****************************************************************************** - */ --#if defined(__FreeBSD__) || defined(__APPLE__) || defined(USERWORLD) -+#if defined(NO_DNET) && defined(HAVE_GETIFADDRS) - - char * - GuestInfoGetPrimaryIP(void)
meta-oe/recipes-support/open-vm-tools/open-vm-tools/0008-use-posix-strerror_r-unless-gnu.patch deleted +0 -30
@@ -1,30 +0,0 @@ -From d4d1e7146ca2698089f6bd532f2fb8b9c1134ca7 Mon Sep 17 00:00:00 2001 -From: Natanael Copa <[email protected]> -Date: Mon, 2 Jan 2017 14:39:27 +0000 -Subject: [PATCH 08/11] use posix strerror_r unless gnu - ---- - open-vm-tools/lib/err/errPosix.c | 8 +++++--- - 1 file changed, 5 insertions(+), 3 deletions(-) - -Index: open-vm-tools/lib/err/errPosix.c -=================================================================== ---- open-vm-tools.orig/lib/err/errPosix.c -+++ open-vm-tools/lib/err/errPosix.c -@@ -63,11 +63,13 @@ ErrErrno2String(Err_Number errorNumber, - { - char *p; - --#if defined(linux) && !defined(N_PLAT_NLM) && !defined(__ANDROID__) -+#if defined(__GLIBC__) - p = strerror_r(errorNumber, buf, bufSize); - #else -- p = strerror(errorNumber); --#endif -+ if (strerror_r(errorNumber, buf, bufSize) != 0) -+ snprintf(buf, bufSize, "unknown error %i", errorNumber); -+ p = buf; -+#endif /* defined __GLIBC__ */ - ASSERT(p != NULL); - return p; - }
meta-oe/recipes-support/open-vm-tools/open-vm-tools/0009-Add-support-for-building-with-system-libtirpc.patch deleted +0 -342
342 lines not on this page · raw message
meta-oe/recipes-support/open-vm-tools/open-vm-tools/0010-gnu-ucontext.patch deleted +0 -65
65 lines not on this page · raw message
meta-oe/recipes-support/open-vm-tools/open-vm-tools/fix-subdir-objects-configure-error.patch new file +12 -0
@@ -0,0 +1,12 @@ +Index: open-vm-tools/configure.ac +=================================================================== +--- open-vm-tools.orig/configure.ac ++++ open-vm-tools/configure.ac +@@ -303,6 +303,7 @@ AC_ARG_ENABLE( + [], + [enable_resolutionkms="auto"]) + ++AM_INIT_AUTOMAKE([subdir-objects]) + AM_INIT_AUTOMAKE + + ###
meta-oe/recipes-support/open-vm-tools/open-vm-tools/tools.conf renamed from meta-oe/recipes-support/open-vm-tools/files/tools.conf +0 -0
meta-oe/recipes-support/open-vm-tools/open-vm-tools/use-tirpc.patch new file +481 -0
481 lines not on this page · raw message
meta-oe/recipes-support/open-vm-tools/open-vm-tools/vmtoolsd.init renamed from meta-oe/recipes-support/open-vm-tools/files/vmtoolsd.init +0 -0
meta-oe/recipes-support/open-vm-tools/open-vm-tools/vmtoolsd.service renamed from meta-oe/recipes-support/open-vm-tools/files/vmtoolsd.service +0 -0
meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.2.5.bb renamed from meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb +9 -11
@@ -14,7 +14,7 @@ HOMEPAGE = "https://github.com/vmware/open-vm-tools" SECTION = "vmware-tools" LICENSE = "LGPL-2.0 & GPL-2.0 & BSD & CDDL-1.0" -LIC_FILES_CHKSUM = "file://LICENSE;md5=b66ba4cb4fc017682c95efc300410e79" +LIC_FILES_CHKSUM = "file://LICENSE;md5=e5000bc3c5a39b6e66579d72cc32b45a" LICENSE_modules/freebsd/vmblock = "BSD" LICENSE_modules/freebsd/vmmemctl = "GPL-2.0" LICENSE_modules/freebsd/vmxnet = "GPL-2.0"
@@ -28,25 +28,23 @@ SRC_URI = "git://github.com/vmware/open-vm-tools.git;protocol=https \ file://0001-configure.ac-don-t-use-dnet-config.patch \ file://0002-add-include-sys-sysmacros.h.patch \ file://0001-Remove-assumptions-about-glibc-being-only-libc-imple.patch \ - file://0002-include-poll.h-instead-of-obsolete-sys-poll.h.patch \ - file://0003-Rename-poll.h-to-vm_poll.h.patch \ file://0004-Add-Wno-incompatible-pointer-types-and-Wno-error-add.patch \ file://0005-Use-configure-test-for-struct-timespec.patch \ file://0006-Fix-definition-of-ALLPERMS-and-ACCESSPERMS.patch \ file://0007-Use-configure-to-test-for-feature-instead-of-platfor.patch \ - file://0008-use-posix-strerror_r-unless-gnu.patch \ file://0011-Use-configure-test-for-sys-stat.h-include.patch \ + file://use-tirpc.patch \ + file://fix-subdir-objects-configure-error.patch \ + file://0001-include-poll.h-instead-of-sys-poll.h.patch \ + file://0002-Rename-poll.h-to-vm_poll.h.patch \ + file://0003-use-posix-strerror_r-unless-on-gnu-libc-system.patch \ + file://0004-Use-uintmax_t-for-handling-rlim_t.patch \ " -SRC_URI_append_libc-musl = "\ - file://0009-Add-support-for-building-with-system-libtirpc.patch \ - file://0010-gnu-ucontext.patch \ - " -SRCREV = "854c0bb374612f7e633b448ca273f970f154458b" +SRCREV = "380a3d9747999e8bcbcbcd03b1402b702770db79" S = "${WORKDIR}/git/open-vm-tools" -DEPENDS = "glib-2.0 glib-2.0-native util-linux libdnet procps" -DEPENDS_append_libc-musl = " libtirpc" +DEPENDS = "glib-2.0 glib-2.0-native util-linux libdnet procps libtirpc" # open-vm-tools is supported only on x86. COMPATIBLE_HOST = '(x86_64.*|i.86.*)-linux'
Signature · 1 line
2.17.1