Skip to contentSkip to conversation

openvmtools: new package

PATCH Superseded Karoly Kasza 1 participant 2 messages Apr 11, 2014

v2 of 7 Superseded Latest is v7 →

lore
Share & tools
lore
#0 lore raw

v2 cover openvmtools: new package

Hi,

this is the second version of the new openvmtools package, based on the comments of Thomas. I cleared up the code, but stayed with some of my earlier decisions. I'm waiting for opinions.

Changes v1 -> v2:
- Moved to section System tools from Hardware handling.
- Unnecessary comments removed from both openvmtools.mk and Config.in.
- Select is used in options instead of depends on.
- $(LINUX_DIR) is used now when compiling kernel.
- Vmblock-fuse comments cleaned up.
- The package now does not copy the dnet-config script. One less hook.

What I did not change:
- Initscript. I still think start-stop-daemon is an overkill for here. Please explain me why is it better in this case.
- LDFLAGS variable is still used with procps, it can't use $TARGET_DIR. Why can't we compile a package with LDFLAGS?
- CUSTOM_DNET_CPPFLAGS is still needed, it won't compile otherwise. Same, why can't we use custom FLAGS?

Kind regards,
Karoly

Karoly Kasza (1):
openvmtools: new package

 package/Config.in                                  |    1 +
 package/openvmtools/Config.in                      |   70 +++++++++++++++
 package/openvmtools/S98vmtoolsd                    |   31 +++++++
 .../openvmtools-01-has_bsd_printf.patch            |   26 ++++++
 package/openvmtools/openvmtools.mk                 |   89 ++++++++++++++++++++
 package/openvmtools/shutdown                       |    7 ++
 6 files changed, 224 insertions(+)
 create mode 100644 package/openvmtools/Config.in
 create mode 100755 package/openvmtools/S98vmtoolsd
 create mode 100644 package/openvmtools/openvmtools-01-has_bsd_printf.patch
 create mode 100644 package/openvmtools/openvmtools.mk
 create mode 100755 package/openvmtools/shutdown
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH v2 1/1 openvmtools: new package

New package: openvmtools

---

Changes v1 -> v2:
- Moved to section System tools from Hardware handling.
- Unnecessary comments removed from both openvmtools.mk and Config.in.
- Select is used in options instead of depends on.
- $(LINUX_DIR) is used now.
- Vmblock-fuse comments cleaned up.
- The package now does not copy the dnet-config script. One less hook.

 package/Config.in                                  |    1 +
 package/openvmtools/Config.in                      |   70 +++++++++++++++
 package/openvmtools/S98vmtoolsd                    |   31 +++++++
 .../openvmtools-01-has_bsd_printf.patch            |   26 ++++++
 package/openvmtools/openvmtools.mk                 |   89 ++++++++++++++++++++
 package/openvmtools/shutdown                       |    7 ++
 6 files changed, 224 insertions(+)
 create mode 100644 package/openvmtools/Config.in
 create mode 100755 package/openvmtools/S98vmtoolsd
 create mode 100644 package/openvmtools/openvmtools-01-has_bsd_printf.patch
 create mode 100644 package/openvmtools/openvmtools.mk
 create mode 100755 package/openvmtools/shutdown
package/Config.in +1 -0
index 6abc7b3..a15bb53 100644
@@ -1087,6 +1087,7 @@ source "package/monit/Config.in"
 source "package/ncdu/Config.in"
 source "package/numactl/Config.in"
 source "package/nut/Config.in"
+source "package/openvmtools/Config.in"
 source "package/polkit/Config.in"
 if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
 source "package/procps/Config.in"
package/openvmtools/Config.in new file +70 -0

70 lines not on this page · raw message

package/openvmtools/S98vmtoolsd new file +31 -0
new file mode 100755
index 0000000..4b51e0a
@@ -0,0 +1,31 @@
+#!/bin/sh
+#
+# Start vmtoolsd
+#
+
+PID=/var/run/vmtoolsd.pid
+
+case "$1" in
+  start)
+	echo -n "Starting vmtoolsd: "
+	/usr/bin/vmtoolsd -b $PID
+	if [ $? != 0 ]; then
+		echo "FAILED"
+		exit 1
+	else
+		echo "OK"
+	fi
+	;;
+  stop)
+	echo -n "Stopping vmtoolsd: "
+	kill `cat $PID`
+	echo "OK"
+	;;
+  restart|reload)
+	;;
+  *)
+	echo "Usage: $0 {start|stop|restart}"
+	exit 1
+esac
+
+exit $?
package/openvmtools/openvmtools-01-has_bsd_printf.patch new file +26 -0
new file mode 100644
index 0000000..a33b67b
@@ -0,0 +1,26 @@
+lib/misc/msgList.c: missing #ifdef
+
+This macro checks for BSD style printf(), which is not present
+when compiling for uClibc. The linked functions are unnecessary in
+this case, and they break compilation.
+
+Signed-off-by: Karoly Kasza <[email protected]>
+
+--- openvmtools-9.4.0-1280544.orig/lib/misc/msgList.c	2013-09-23 17:51:10.000000000 +0200
++++ openvmtools-9.4.0-1280544/lib/misc/msgList.c	2014-04-03 13:42:14.138500061 +0200
+@@ -487,6 +487,7 @@
+    return messages->id;
+ }
+ 
++#ifdef HAS_BSD_PRINTF
+ 
+ /*
+  *----------------------------------------------------------------------
+@@ -566,6 +567,7 @@
+    }
+ }
+ 
++#endif
+ 
+ /*
+  *----------------------------------------------------------------------
package/openvmtools/openvmtools.mk new file +89 -0

89 lines not on this page · raw message

package/openvmtools/shutdown new file +7 -0
new file mode 100755
index 0000000..bca9765
@@ -0,0 +1,7 @@
+#!/bin/sh
+#compatibility script for openvmtools
+if [ "$1" == "-r" ]; then
+/sbin/reboot
+else
+/sbin/poweroff
+fi
Signature · 1 line
1.7.10.4