Skip to contentSkip to conversation

package/openvmtools: move files up from unnecessary subdirectory

PATCH New Karoly Kasza 2 participants 5 messages Jun 17, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/openvmtools: move files up from unnecessary subdirectory

The Open-vm-tools package is now distributed from GitHub and a new subdirectory was introduced, which breaks the Buildroot process.

This patch moves everything up from the new subdirectory after extraction, making Buildroot once again able to run.

Fixes:

http://autobuild.buildroot.net/results/bfd10c8d454a2686ebb1c4afdb49c55e39a9dd67/

---
 package/openvmtools/openvmtools.mk | 7 +++++++
 1 file changed, 7 insertions(+)
package/openvmtools/openvmtools.mk +7 -0
index 822bbf1..414a42a 100644
@@ -44,6 +44,13 @@ else
 OPENVMTOOLS_CONF_OPTS += --without-pam
 endif
 
+# Move everything up from the unnecessary subdirectory
+define OPENVMTOOLS_POST_EXTRACT_MOVE_SUBDIR
+	mv $(@D)/open-vm-tools/* $(@D)
+endef
+
+OPENVMTOOLS_POST_EXTRACT_HOOKS += OPENVMTOOLS_POST_EXTRACT_MOVE_SUBDIR
+
 # 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
Signature · 1 line
2.1.4
#1 lore raw

PATCH 1/1 package/openvmtools: move files up from unnecessary subdirectory

Dear Karoly Kasza,

Quoted 11 lines · Karoly Kasza

The Open-vm-tools package is now distributed from GitHub and a new subdirectory was introduced, which breaks the Buildroot process.

This patch moves everything up from the new subdirectory after extraction, making Buildroot once again able to run.

Fixes:

http://autobuild.buildroot.net/results/bfd10c8d454a2686ebb1c4afdb49c55e39a9dd67/

Or you could use:

OPENVMTOOLS_SUBDIR = open-vm-tools

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#3 lore raw

PATCH 1/1 package/openvmtools: move files up from unnecessary subdirectory

Hi,

Quoted 8 lines
Quoted 5 lines

Or you could use:

OPENVMTOOLS_SUBDIR = open-vm-tools

I did not know there is such an option.
Which one solution does the BR community prefer?

Also, I assume this variable only tells the build system where to start configure/make etc,
so all patches also has to be modified, am I right?

BR
Karoly
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20150617/40f6c611/attachment.html>

#4 lore raw

PATCH 1/1 package/openvmtools: move files up from unnecessary subdirectory

Dear K?roly Kasza,

Quoted 3 lines · K?roly Kasza

Also, I assume this variable only tells the build system where to start configure/make etc,
so all patches also has to be modified, am I right?

Correct.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com