Skip to contentSkip to conversation

package/stress-ng: fix install commande

PATCH New Romain Naour 2 participants 4 messages Sep 7, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 package/stress-ng: fix install commande

Don't use make install otherwise stress-ng will be rebuild without required link libraries if any. Furthermore, using INSTALL allow to set the file permission correcly on the target.

Fixes:
http://autobuild.buildroot.net/results/bba/bba4d0b635ab6849f969b8a0363ebe9f5fafd82e

---
 package/stress-ng/stress-ng.mk | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
package/stress-ng/stress-ng.mk +4 -1
index 6015a1e..e12895a 100644
@@ -15,8 +15,11 @@ define STRESS_NG_BUILD_CMDS
 	$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)
 endef
 
+# Don't use make install otherwise stress-ng will be rebuild without
+# required link libraries if any. Furthermore, using INSTALL allow to
+# set the file permission correcly on the target.
 define STRESS_NG_INSTALL_TARGET_CMDS
-	$(TARGET_CONFIGURE_OPTS) $(MAKE) DESTDIR=$(TARGET_DIR) -C $(@D) install
+	$(INSTALL) -m 0755 -D $(@D)/stress-ng $(TARGET_DIR)/usr/bin/stress-ng
 endef
 
 $(eval $(generic-package))
Signature · 1 line
2.5.5
#1 lore raw

PATCH 2/2 package/stress-ng: bump to 0.06.15

---
 package/stress-ng/stress-ng.hash | 2 +-
 package/stress-ng/stress-ng.mk   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
package/stress-ng/stress-ng.hash +1 -1
index d09edc0..e735439 100644
@@ -1,2 +1,2 @@
 # Locally calculated
-sha256	7af9759a37902ebf401f92fedeada0b82bcd1e3f4e9e10130177344f143470eb	stress-ng-0.06.02.tar.gz
+sha256	0e1d7733b35f594f7461dedbf836bd4966d0611da4cd4e85cde4804d2a425e6d	stress-ng-0.06.15.tar.gz
package/stress-ng/stress-ng.mk +1 -1
index e12895a..b4d4699 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-STRESS_NG_VERSION = 0.06.02
+STRESS_NG_VERSION = 0.06.15
 STRESS_NG_SITE = http://kernel.ubuntu.com/~cking/tarballs/stress-ng
 STRESS_NG_LICENSE = GPLv2+
 STRESS_NG_LICENSE_FILES = COPYING
Signature · 1 line
2.5.5
#3 lore raw

PATCH 1/2 package/stress-ng: fix install commande

In reply to Romain Naour
Quoted 19 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Romain" == Romain Naour <[email protected]> writes:

Don't use make install otherwise stress-ng will be rebuild without required link libraries if any. Furthermore, using INSTALL allow to set the file permission correcly on the target.

Fixes:
http://autobuild.buildroot.net/results/bba/bba4d0b635ab6849f969b8a0363ebe9f5fafd82e

---
 package/stress-ng/stress-ng.mk | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
package/stress-ng/stress-ng.mk +0 -0
index 6015a1e..e12895a 100644

package/stress-ng/stress-ng.mk define STRESS_NG_BUILD_CMDS · line 23

Quoted 10 lines
package/stress-ng/stress-ng.mk +4 -1
@@ -15,8 +15,11 @@ define STRESS_NG_BUILD_CMDS
 	$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)
 endef
 
+# Don't use make install otherwise stress-ng will be rebuild without
+# required link libraries if any. Furthermore, using INSTALL allow to
+# set the file permission correcly on the target.
 define STRESS_NG_INSTALL_TARGET_CMDS
-	$(TARGET_CONFIGURE_OPTS) $(MAKE) DESTDIR=$(TARGET_DIR) -C $(@D) install
+	$(INSTALL) -m 0755 -D $(@D)/stress-ng $(TARGET_DIR)/usr/bin/stress-ng
 endef

It is a bit funky that this happens, but I guess it is because of the touch stress-ng.c in the rule for stress-vecmath.o. I'm not sure why they do that.

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard