svn commit: trunk/buildroot/package/busybox
Author: jacmet
Date: 2008-09-09 01:50:15 -0700 (Tue, 09 Sep 2008) New Revision: 23361
Log:
busybox: remove stale busybox 1.11.1 patches
Hamish, don't forget to remove those when you bump the version
Removed:
trunk/buildroot/package/busybox/busybox-1.11.1-ash.patch trunk/buildroot/package/busybox/busybox-1.11.1-basename.patch trunk/buildroot/package/busybox/busybox-1.11.1-modutils.patch trunk/buildroot/package/busybox/busybox-1.11.1-tar.patch
Changeset:
Deleted: trunk/buildroot/package/busybox/busybox-1.11.1-ash.patch
===================================================================
buildroot/package/busybox/busybox-1.11.1-ash.patch +0 -155
@@ -1,155 +0,0 @@ ---- busybox-1.11.1/shell/ash.c Wed Jun 25 14:51:23 2008 -+++ busybox-1.11.1-ash/shell/ash.c Wed Aug 6 00:47:45 2008 -@@ -1569,14 +1569,14 @@ - static char *optptr; /* used by nextopt */ - - /* -- * XXX - should get rid of. have all builtins use getopt(3). the -- * library getopt must have the BSD extension static variable "optreset" -- * otherwise it can't be used within the shell safely. -+ * XXX - should get rid of. Have all builtins use getopt(3). -+ * The library getopt must have the BSD extension static variable -+ * "optreset", otherwise it can't be used within the shell safely. - * -- * Standard option processing (a la getopt) for builtin routines. The -- * only argument that is passed to nextopt is the option string; the -- * other arguments are unnecessary. It return the character, or '\0' on -- * end of input. -+ * Standard option processing (a la getopt) for builtin routines. -+ * The only argument that is passed to nextopt is the option string; -+ * the other arguments are unnecessary. It returns the character, -+ * or '\0' on end of input. - */ - static int - nextopt(const char *optstring) -@@ -1587,13 +1587,20 @@ - - p = optptr; - if (p == NULL || *p == '\0') { -+ /* We ate entire "-param", take next one */ - p = *argptr; -- if (p == NULL || *p != '-' || *++p == '\0') -+ if (p == NULL) - return '\0'; -+ if (*p != '-') -+ return '\0'; -+ if (*++p == '\0') /* just "-" ? */ -+ return '\0'; - argptr++; -- if (LONE_DASH(p)) /* check for "--" */ -+ if (LONE_DASH(p)) /* "--" ? */ - return '\0'; -+ /* p => next "-param" */ - } -+ /* p => some option char in the middle of a "-param" */ - c = *p++; - for (q = optstring; *q != c;) { - if (*q == '\0') -@@ -1602,8 +1609,11 @@ - q++; - } - if (*++q == ':') { -- if (*p == '\0' && (p = *argptr++) == NULL) -- ash_msg_and_raise_error("no arg for -%c option", c); -+ if (*p == '\0') { -+ p = *argptr++; -+ if (p == NULL) -+ ash_msg_and_raise_error("no arg for -%c option", c); -+ } - optionarg = p; - p = NULL; - } -@@ -7428,8 +7438,10 @@ - else if (c != 'p') - abort(); - #endif -- if (verify) -+ /* Mimic bash: just "command -v" doesn't complain, it's a nop */ -+ if (verify && (*argptr != NULL)) { - return describe_command(*argptr, verify - VERIFY_BRIEF); -+ } - - return 0; - } -@@ -7788,16 +7800,33 @@ - static void - evaltree(union node *n, int flags) - { -+ -+ struct jmploc *volatile savehandler = exception_handler; -+ struct jmploc jmploc; - int checkexit = 0; - void (*evalfn)(union node *, int); -- unsigned isor; - int status; -+ - if (n == NULL) { - TRACE(("evaltree(NULL) called\n")); -- goto out; -+ goto out1; - } - TRACE(("pid %d, evaltree(%p: %d, %d) called\n", - getpid(), n, n->type, flags)); -+ -+ exception_handler = &jmploc; -+ { -+ int err = setjmp(jmploc.loc); -+ if (err) { -+ /* if it was a signal, check for trap handlers */ -+ if (exception == EXSIG) -+ goto out; -+ /* continue on the way out */ -+ exception_handler = savehandler; -+ longjmp(exception_handler->loc, err); -+ } -+ } -+ - switch (n->type) { - default: - #if DEBUG -@@ -7843,19 +7872,20 @@ - goto calleval; - case NAND: - case NOR: -- case NSEMI: -+ case NSEMI: { -+ - #if NAND + 1 != NOR - #error NAND + 1 != NOR - #endif - #if NOR + 1 != NSEMI - #error NOR + 1 != NSEMI - #endif -- isor = n->type - NAND; -+ unsigned is_or = n->type - NAND; - evaltree( - n->nbinary.ch1, -- (flags | ((isor >> 1) - 1)) & EV_TESTED -+ (flags | ((is_or >> 1) - 1)) & EV_TESTED - ); -- if (!exitstatus == isor) -+ if (!exitstatus == is_or) - break; - if (!evalskip) { - n = n->nbinary.ch2; -@@ -7866,6 +7896,7 @@ - break; - } - break; -+ } - case NIF: - evaltree(n->nif.test, EV_TESTED); - if (evalskip) -@@ -7886,8 +7917,11 @@ - exitstatus = status; - break; - } -+ - out: -- if ((checkexit & exitstatus)) -+ exception_handler = savehandler; -+ out1: -+ if (checkexit & exitstatus) - evalskip |= SKIPEVAL; - else if (pendingsig && dotrap()) - goto exexit;
Deleted: trunk/buildroot/package/busybox/busybox-1.11.1-basename.patch
===================================================================
buildroot/package/busybox/busybox-1.11.1-basename.patch +0 -9
@@ -1,9 +0,0 @@ ---- busybox-1.11.1/coreutils/basename.c Wed Jun 25 14:51:23 2008 -+++ busybox-1.11.1-basename/coreutils/basename.c Thu Jul 17 20:04:36 2008 -@@ -48,5 +48,5 @@ - - /* puts(s) will do, but we can do without stdio this way: */ - s[m++] = '\n'; -- return full_write(STDOUT_FILENO, s, m) == (ssize_t)m; -+ return full_write(STDOUT_FILENO, s, m) != (ssize_t)m; - }
Deleted: trunk/buildroot/package/busybox/busybox-1.11.1-modutils.patch
===================================================================
buildroot/package/busybox/busybox-1.11.1-modutils.patch +0 -12
@@ -1,12 +0,0 @@ ---- busybox-1.11.1/modutils/insmod.c Wed Jun 25 14:51:18 2008 -+++ busybox-1.11.1-modutils/modutils/insmod.c Wed Jul 23 00:46:08 2008 -@@ -840,7 +840,8 @@ - ElfW(RelM) *rel, ElfW(Addr) v) - { - #if defined(__arm__) || defined(__i386__) || defined(__mc68000__) \ -- || defined(__sh__) || defined(__s390__) || defined(__x86_64__) -+ || defined(__sh__) || defined(__s390__) || defined(__x86_64__) \ -+ || defined(__powerpc__) || defined(__mips__) - struct arch_file *ifile = (struct arch_file *) f; - #endif - enum obj_reloc ret = obj_reloc_ok;
Deleted: trunk/buildroot/package/busybox/busybox-1.11.1-tar.patch
===================================================================
buildroot/package/busybox/busybox-1.11.1-tar.patch +0 -55
55 lines not on this page · raw message
Quoted 7 lines · jacmet at uclibc.org
Author: jacmet
Date: 2008-09-09 01:50:15 -0700 (Tue, 09 Sep 2008) New Revision: 23361Log:
busybox: remove stale busybox 1.11.1 patches
Quoted 7 lines
Hamish, don't forget to remove those when you bump the version
Removed:
trunk/buildroot/package/busybox/busybox-1.11.1-ash.patchtrunk/buildroot/package/busybox/busybox-1.11.1-basename.patchtrunk/buildroot/package/busybox/busybox-1.11.1-modutils.patchtrunk/buildroot/package/busybox/busybox-1.11.1-tar.patch
Hi Peter,
Actually that was deliberate. I noticed that after I changed package/busybox/Config.in, I still had
BR2_BUSYBOX_VERSION_1_11_X=y
BR2_BUSYBOX_VERSION="1.11.1"
until next time I ran a menuconfig/oldconfig/etc. If the patches are removed immediately upon version bump but you don't update your config, you'll be building without those patches. :(
I wonder if BR2_BUSYBOX_VERSION should be determined by the Makefiles rather than through the config system, so that this can't happen?
Regards,
Hamish
Signature · 1 line
Hamish Moffatt VK3SB <[email protected]> <[email protected]>
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Hamish" == Hamish Moffatt <[email protected]> writes:
Hi,
Hamish> Actually that was deliberate. I noticed that after I changed Hamish> package/busybox/Config.in, I still had
Hamish> BR2_BUSYBOX_VERSION_1_11_X=y
Hamish> BR2_BUSYBOX_VERSION="1.11.1"
Hamish> until next time I ran a menuconfig/oldconfig/etc. If the patches are Hamish> removed immediately upon version bump but you don't update your config, Hamish> you'll be building without those patches. :(
Hamish> I wonder if BR2_BUSYBOX_VERSION should be determined by the Makefiles Hamish> rather than through the config system, so that this can't happen?
Notice that this isn't a busybox specific issue - It's everywhere we have a version selection. Maybe it could be done in the makefile, but I do find it quite handy to have it all in the Config.in.
Maybe the solution is simply to teach people to run make oldconfig whenever they rebase?
Signature · 1 line
Bye, Peter Korsgaard