Update buildroot 2020.02.01 (#622)
* Update buildroot 2020.02.01 Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch> * Fix LN * Fix wpa Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch> * Fix lint Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch> * fix-network Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch> * Fix script Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
From 0a5032669951ffd6735c294a6f309b0ec6667ea5 Mon Sep 17 00:00:00 2001
|
||||
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Date: Sun, 8 Mar 2020 18:49:00 +0100
|
||||
Subject: [PATCH] open-vm-tools/vmhgfs-fuse/fsutils.h: fix build on musl
|
||||
|
||||
loff_t is not defined on musl so define it to avoid the following build
|
||||
failure:
|
||||
|
||||
In file included from module.h:39,
|
||||
from bdhandler.c:31:
|
||||
fsutil.h:76:11: error: unknown type name 'loff_t'; did you mean 'off_t'?
|
||||
loff_t offset);
|
||||
^~~~~~
|
||||
off_t
|
||||
|
||||
Fixes:
|
||||
- http://autobuild.buildroot.org/results/4eba7c4585d318efdb9b965d58d879426588aa14
|
||||
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
[Upstream status: not sent yet (upstream is not reactive on third patch]
|
||||
---
|
||||
vmhgfs-fuse/fsutil.h | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/vmhgfs-fuse/fsutil.h b/vmhgfs-fuse/fsutil.h
|
||||
index 34b6d489..a94f9fbb 100644
|
||||
--- a/vmhgfs-fuse/fsutil.h
|
||||
+++ b/vmhgfs-fuse/fsutil.h
|
||||
@@ -32,7 +32,8 @@
|
||||
#include "hgfsProto.h"
|
||||
#include <fuse.h>
|
||||
|
||||
-#if defined(__FreeBSD__) || defined(__SOLARIS__) || defined(__APPLE__)
|
||||
+#if defined(__FreeBSD__) || defined(__SOLARIS__) || defined(__APPLE__) || \
|
||||
+ !(defined(__GLIBC__) || defined(__UCLIBC__))
|
||||
typedef long long loff_t;
|
||||
#endif
|
||||
|
||||
--
|
||||
2.25.0
|
||||
|
||||
@@ -22,16 +22,6 @@ config BR2_PACKAGE_OPENVMTOOLS
|
||||
|
||||
if BR2_PACKAGE_OPENVMTOOLS
|
||||
|
||||
config BR2_PACKAGE_OPENVMTOOLS_PROCPS
|
||||
bool "procps support"
|
||||
depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
|
||||
select BR2_PACKAGE_PROCPS_NG
|
||||
help
|
||||
Enable support for procps / meminfo
|
||||
|
||||
comment "procps support needs BR2_PACKAGE_BUSYBOX_SHOW_OTHERS"
|
||||
depends on !BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
|
||||
|
||||
config BR2_PACKAGE_OPENVMTOOLS_PAM
|
||||
bool "PAM support"
|
||||
# linux-pam needs locale and wchar, but we already have this
|
||||
@@ -45,6 +35,20 @@ config BR2_PACKAGE_OPENVMTOOLS_PAM
|
||||
comment "PAM support needs a glibc toolchain w/ dynamic library"
|
||||
depends on BR2_STATIC_LIBS || BR2_TOOLCHAIN_USES_MUSL
|
||||
|
||||
config BR2_PACKAGE_OPENVMTOOLS_RESOLUTIONKMS
|
||||
bool "resolutionkms support"
|
||||
depends on BR2_PACKAGE_HAS_UDEV
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # libdrm
|
||||
depends on BR2_i386 || BR2_x86_64 # libdrm vmwgfx
|
||||
select BR2_PACKAGE_LIBDRM
|
||||
select BR2_PACKAGE_LIBDRM_VMWGFX
|
||||
help
|
||||
Enable support for resolutionkms
|
||||
|
||||
comment "resolutionkms needs udev, a toolchain w/ threads"
|
||||
depends on BR2_i386 || BR2_x86_64
|
||||
depends on !BR2_PACKAGE_HAS_UDEV || !BR2_TOOLCHAIN_HAS_THREADS
|
||||
|
||||
endif
|
||||
|
||||
comment "openvmtools needs a glibc or musl toolchain w/ wchar, threads, locale"
|
||||
|
||||
@@ -3,33 +3,54 @@
|
||||
# Starts vmtoolsd for openvmtools
|
||||
#
|
||||
|
||||
EXEC="/usr/bin/vmtoolsd"
|
||||
ARGS="-b"
|
||||
PID="/var/run/vmtoolsd.pid"
|
||||
DAEMON="vmtoolsd"
|
||||
PIDFILE="/var/run/$DAEMON.pid"
|
||||
|
||||
[ -r /etc/default/vmtoolsd ] && . /etc/default/vmtoolsd
|
||||
VMTOOLSD_ARGS="-b"
|
||||
|
||||
# shellcheck source=/dev/null
|
||||
[ -r "/etc/default/$DAEMON" ] && . "/etc/default/$DAEMON"
|
||||
|
||||
start() {
|
||||
printf 'Starting %s: ' "$DAEMON"
|
||||
# shellcheck disable=SC2086 # we need the word splitting
|
||||
start-stop-daemon -S -q -p "$PIDFILE" -x "/usr/bin/$DAEMON" \
|
||||
-- $VMTOOLSD_ARGS "$PIDFILE"
|
||||
status=$?
|
||||
if [ "$status" -eq 0 ]; then
|
||||
echo "OK"
|
||||
else
|
||||
echo "FAIL"
|
||||
fi
|
||||
return "$status"
|
||||
}
|
||||
|
||||
stop() {
|
||||
printf 'Stopping %s: ' "$DAEMON"
|
||||
start-stop-daemon -K -q -p "$PIDFILE"
|
||||
status=$?
|
||||
if [ "$status" -eq 0 ]; then
|
||||
rm -f "$PIDFILE"
|
||||
echo "OK"
|
||||
else
|
||||
echo "FAIL"
|
||||
fi
|
||||
return "$status"
|
||||
}
|
||||
|
||||
restart() {
|
||||
stop
|
||||
sleep 1
|
||||
start
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
printf "Starting vmtoolsd: "
|
||||
start-stop-daemon -S -q -x $EXEC -- $ARGS $PID
|
||||
if [ $? != 0 ]; then
|
||||
echo "FAILED"
|
||||
exit 1
|
||||
else
|
||||
echo "OK"
|
||||
fi
|
||||
;;
|
||||
stop)
|
||||
printf "Stopping vmtoolsd: "
|
||||
start-stop-daemon -K -q -p $PID
|
||||
echo "OK"
|
||||
;;
|
||||
restart|reload)
|
||||
$0 stop
|
||||
$0 start
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart}"
|
||||
exit 1
|
||||
start|stop|restart)
|
||||
"$1";;
|
||||
reload)
|
||||
# Restart, since there is no true "reload" feature.
|
||||
restart;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart|reload}"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
@@ -17,8 +17,14 @@ OPENVMTOOLS_CONF_OPTS = --with-dnet \
|
||||
--without-icu --without-x --without-gtk2 \
|
||||
--without-gtkmm --without-kernel-modules \
|
||||
--disable-deploypkg --without-xerces
|
||||
OPENVMTOOLS_CONF_ENV += CUSTOM_DNET_CPPFLAGS=" "
|
||||
OPENVMTOOLS_DEPENDENCIES = host-nfs-utils libglib2 libdnet
|
||||
OPENVMTOOLS_CONF_ENV += \
|
||||
CUSTOM_DNET_CPPFLAGS=" " \
|
||||
LIBS=$(TARGET_NLS_LIBS)
|
||||
OPENVMTOOLS_DEPENDENCIES = \
|
||||
host-nfs-utils \
|
||||
libglib2 \
|
||||
libdnet \
|
||||
$(TARGET_NLS_DEPENDENCIES)
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBTIRPC),y)
|
||||
OPENVMTOOLS_DEPENDENCIES += libtirpc
|
||||
@@ -37,13 +43,6 @@ else
|
||||
OPENVMTOOLS_CONF_OPTS += --without-ssl
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OPENVMTOOLS_PROCPS),y)
|
||||
OPENVMTOOLS_CONF_OPTS += --with-procps
|
||||
OPENVMTOOLS_DEPENDENCIES += procps-ng
|
||||
else
|
||||
OPENVMTOOLS_CONF_OPTS += --without-procps
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OPENVMTOOLS_PAM),y)
|
||||
OPENVMTOOLS_CONF_OPTS += --with-pam
|
||||
OPENVMTOOLS_DEPENDENCIES += linux-pam
|
||||
@@ -51,6 +50,13 @@ else
|
||||
OPENVMTOOLS_CONF_OPTS += --without-pam
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OPENVMTOOLS_RESOLUTIONKMS),y)
|
||||
OPENVMTOOLS_CONF_OPTS += --enable-resolutionkms
|
||||
OPENVMTOOLS_DEPENDENCIES += libdrm udev
|
||||
else
|
||||
OPENVMTOOLS_CONF_OPTS += --disable-resolutionkms
|
||||
endif
|
||||
|
||||
# symlink needed by lib/system/systemLinux.c (or will cry in /var/log/messages)
|
||||
# defined in lib/misc/hostinfoPosix.c
|
||||
# /sbin/shutdown needed for Guest OS restart/shutdown from hypervisor
|
||||
@@ -72,9 +78,6 @@ endef
|
||||
define OPENVMTOOLS_INSTALL_INIT_SYSTEMD
|
||||
$(INSTALL) -D -m 644 package/openvmtools/vmtoolsd.service \
|
||||
$(TARGET_DIR)/usr/lib/systemd/system/vmtoolsd.service
|
||||
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
||||
ln -fs ../../../../usr/lib/systemd/system/vmtoolsd.service \
|
||||
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/vmtoolsd.service
|
||||
endef
|
||||
|
||||
$(eval $(autotools-package))
|
||||
|
||||
Reference in New Issue
Block a user