[weasel-commit] Source: busybox=1.13.2-1

  • From: rbuilder@xxxxxxxxx
  • To: weasel-commit@xxxxxxxxxxxxx
  • Date: Sat, 02 Jan 2010 15:47:25 -0500

================================
busybox:source=1.13.2-1
cvc rdiff busybox -1 /weasel.rpath.org@wgl:3-devel/1.13.2-1
================================
1.13.2-1 Filip Brcic (brcha@xxxxxxx) Sat Jan  2 15:47:16 2010
    Automatic promote by rBuild.

busybox-1.13.2.tar.gz: new
busybox.recipe: new
--- /dev/null
+++ busybox.recipe
@@ -0,0 +49 @@
+#
+# Copyright (c) 2004-2007 rPath, Inc.
+#               2009      Weasel GNU/Linux
+# This file is distributed under the terms of the MIT License.
+# A copy is available at http://www.rpath.com/permanent/mit-license.html
+#
+
+class BusyBox(CPackageRecipe):
+    name = 'busybox'
+    version = '1.13.2'
+
+    buildRequires = [
+        'gettext:runtime', 'intltool:runtime',
+        ]
+
+    def enable(r, feature):
+        r.Replace('.*CONFIG_%s is not.*' % feature, 'CONFIG_%s=y' % feature, 
'.config')
+
+    def disable(r, feature):
+        r.Replace('.*CONFIG_%s=y.*' % feature, '# CONFIG_%s is not set/' % 
feature, '.config')
+
+    def setup(r):
+        r.addArchive('http://busybox.net/downloads/')
+
+        # upstream patches
+        programToPatch = [ ]
+        for prog in programToPatch:
+            
r.addPatch('http://busybox.net/downloads/fixes-%s/busybox-%s-%s.patch' % 
(r.version, r.version, prog) )
+        # RPL-3083
+        r.addPatch('busybox-grep-fflush.patch')
+
+        # busybox claims linking statically against glibc produces a buggy
+        # output, but it works fine for our purposes
+#         r.Replace('#error.*', '', 'applets/applets.c')
+        r.Replace('-Werror', '', 'Makefile.flags')
+
+        r.Make('defconfig')
+        r.enable('FEATURE_SH_IS_MSH')
+        r.enable('STATIC')
+        r.Make('oldconfig < /dev/null')
+
+        r.Make()
+        r.Install('busybox', '%(essentialsbindir)s/busybox')
+
+        # FIXME: is this still necessary? the configs are the same...
+        # build the busybox for anaconda
+        r.Install('busybox', '/sbin/busybox-anaconda', mode=0755)
+
+        r.ComponentSpec('anaconda', '/sbin/busybox-anaconda')

busybox-grep-fflush.patch: new
--- /dev/null
+++ busybox-grep-fflush.patch
@@ -0,0 +10 @@
+--- busybox-1.9.0/findutils/grep.c.orig        2009-07-14 21:16:28.000000000 
-0400
++++ busybox-1.9.0/findutils/grep.c     2009-07-14 06:17:55.000000000 -0400
+@@ -533,6 +533,7 @@
+               fclose_if_not_stdin(file);
+  grep_done: ;
+       } while (--argc > 0);
++    fflush(stdout);
+ 
+       /* destroy all the elments in the pattern list */
+       if (ENABLE_FEATURE_CLEAN_UP) {


Committed by: brcha

Other related posts:

  • » [weasel-commit] Source: busybox=1.13.2-1 - rbuilder