Skip to contentSkip to conversation

Added the empty package

PATCH New spdawson at gmail.com 2 participants 2 messages Apr 10, 2012 – May 5, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Added the empty package

From: Simon Dawson <[email protected]>

---
Improved patch in response to comments

 package/Config.in       |    1 +
 package/empty/Config.in |    6 ++++++
 package/empty/empty.mk  |   19 +++++++++++++++++++
 3 files changed, 26 insertions(+), 0 deletions(-)
 create mode 100644 package/empty/Config.in
 create mode 100644 package/empty/empty.mk
package/Config.in +1 -0
index 4c6d4d8..205fa8a 100644
@@ -426,6 +426,7 @@ endmenu
 endmenu
 
 menu "Miscellaneous"
+source "package/empty/Config.in"
 source "package/shared-mime-info/Config.in"
 endmenu
 
package/empty/Config.in new file +6 -0
new file mode 100644
index 0000000..67b09fc
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_EMPTY
+	bool "empty"
+	help
+	  Run processes and applications under pseudo-terminal (PTY) sessions.
+
+	  http://empty.sourceforge.net/
package/empty/empty.mk new file +18 -0
new file mode 100644
index 0000000..d15a18f
@@ -0,1 +1,18 @@
+#############################################################
+#
+# empty
+#
+#############################################################
+EMPTY_VERSION = 0.6.18b
+EMPTY_SOURCE = empty-$(EMPTY_VERSION).tgz
+EMPTY_SITE = http://downloads.sourceforge.net/project/empty/empty/empty-$(EMPTY_VERSION)
+
+define EMPTY_BUILD_CMDS
+	$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) all
+endef
+
+define EMPTY_INSTALL_TARGET_CMDS
+	$(INSTALL) -D $(@D)/empty $(TARGET_DIR)/usr/bin/empty
+endef
+
+$(eval $(call GENTARGETS))
Signature · 1 line
1.7.5.4
#1 lore raw

PATCH 1/1 Added the empty package

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"spdawson" == spdawson <[email protected]> writes:

spdawson> From: Simon Dawson <[email protected]> spdawson> Signed-off-by: Simon Dawson <[email protected]>

I was about to commit this, but noticed a few errors. Care to fix and resubmit?

spdawson> new file mode 100644
spdawson> index 0000000..d15a18f
spdawson> --- /dev/null
spdawson> +++ b/package/empty/empty.mk
spdawson> @@ -0,1 +1,18 @@

I don't know where this first 0,1 comes from, but git am andn patch very much dislikes it. I had to change it to to 0,0 to get the patch to apply.

spdawson> +#############################################################
spdawson> +#
spdawson> +# empty
spdawson> +#
spdawson> +#############################################################
spdawson> +EMPTY_VERSION = 0.6.18b
spdawson> +EMPTY_SOURCE = empty-$(EMPTY_VERSION).tgz
spdawson> +EMPTY_SITE = http://downloads.sourceforge.net/project/empty/empty/empty-$(EMPTY_VERSION)
spdawson> +
spdawson> +define EMPTY_BUILD_CMDS
spdawson> + $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) all

variables passed in the environment do not override settings in the Makefile (unless ?= is used), so it ends up using my host compiler:

make[1]: Entering directory `/home/peko/source/buildroot/output/build/empty-0.6.18b' gcc -pipe -Os -Wall -lutil -o empty empty.c
empty.c: In function ?pidbyppid?:
empty.c:689:9: warning: array subscript is above array bounds [-Warray-bounds] make[1]: Leaving directory `/home/peko/source/buildroot/output/build/empty-0.6.18b'

I suggest you add TARGET_CONFIGURE_OPTS as a make argument instead.

spdawson> +endef
spdawson> +
spdawson> +define EMPTY_INSTALL_TARGET_CMDS
spdawson> + $(INSTALL) -D $(@D)/empty $(TARGET_DIR)/usr/bin/empty

We normally add explicit -m 0755 for installation of binaries.

Signature · 1 line
Bye, Peter Korsgaard