2010-02-24 13:02:17     bash build fix

Document created by Aaronwu Employee on Aug 20, 2013
Version 1Show Document
  • View in full screen mode

2010-02-24 13:02:17     bash build fix

Peter Naulls (UNITED STATES)

Message: 86475   

 

The trunk version of bash is really quite old, but it might be ok for what I need.  Anyway, it doesn't build, but some quick hacks to the makefile fix that:

 

 

 

Index: user/bash/Makefile

===================================================================

--- user/bash/Makefile  (revision 9462)

+++ user/bash/Makefile  (working copy)

@@ -453,7 +453,7 @@

             -e "s%!CFLAGS!%$(CCFLAGS)%" -e "s%!CC!%$(CC)%" \

             -e "s%!RELEASE!%$(Version)%" -e "s%!PATCHLEVEL!%$(PatchLevel)%" \

             -e "s%!MACHTYPE!%$(MACHTYPE)%" -e "s%!RELSTATUS!%$(RELSTATUS)%" \

-            $(SUPPORT_SRC)bashbug.sh > $@

+            $(SUPPORT_SRC)bashbug.sh > $@ || touch $@

        @chmod a+rx bashbug

 

strip: $(Program) .made

@@ -515,10 +515,10 @@

                $(MAKE) $(MFLAGS) ${SHLIB_LIBNAME}) || exit 1

 

mksignames$(EXEEXT):   $(SUPPORT_SRC)mksignames.c

-       $(CC_FOR_BUILD) $(CCFLAGS_FOR_BUILD) $(CPPFLAGS) -o $@ $(SUPPORT_SRC)mksignames.c

+       $(CC_FOR_BUILD) $(CCFLAGS_FOR_BUILD) -o $@ $(SUPPORT_SRC)mksignames.c

 

mksyntax$(EXEEXT):     ${srcdir}/mksyntax.c config.h syntax.h

-       ${CC_FOR_BUILD} ${CCFLAGS_FOR_BUILD} ${CPPFLAGS} -o $@ ${srcdir}/mksyntax.c

+       ${CC_FOR_BUILD} ${CCFLAGS_FOR_BUILD} -o $@ ${srcdir}/mksyntax.c

 

# make a list of signals for the local system -- this is done when we're

# *not* cross-compiling

QuoteReplyEditDelete

 

 

2010-02-24 13:11:37     Re: bash build fix

Mike Frysinger (UNITED STATES)

Message: 86476   

 

bash isnt usable on nommu systems, so i dont see the point in touching it

QuoteReplyEditDelete

 

 

2010-02-24 13:24:03     Re: bash build fix

Peter Naulls (UNITED STATES)

Message: 86477   

 

Yes, I see now.  But with that in mind, it should be removed, or at the very least, a note added so others don't waste time on it.  Hopefully the other shell options are sophisticated for what I want.

QuoteReplyEditDelete

 

 

2010-02-24 13:57:11     Re: bash build fix

Mike Frysinger (UNITED STATES)

Message: 86481   

 

we try to avoid diverging from the upstream uclinux-dist when possible.  i dont see much point at this time in disabling/removing bash.

 

hush should be pretty feature complete for most people now.  what exactly do you need that it deosnt support ?

QuoteReplyEditDelete

 

 

2010-02-24 20:52:12     Re: bash build fix

Peter Naulls (UNITED STATES)

Message: 86489   

 

The ash build has a dirty message in it about not working on non-mmu, perhaps something like that.

 

hush is a bit limited, I was after the -ex flags.  It looks like msh does most of what I need with a few minor changes from bash assumptions.  Eventually, it'll be in C, but bash-alike is good for rapid prototyping.

 

Thanks again.

QuoteReplyEditDelete

 

 

2010-02-25 04:22:06     Re: bash build fix

Robin Getz (UNITED STATES)

Message: 86522   

 

Peter:

 

Don't use msh - it has many more bugs in it, and is less feature rich than hush.

 

If hush is missing POSIX features - let us know, and we can see if it is feasible on adding them.

 

If you are looking for non-POSIX bashisms - you might be out of luck.

 

-Robin

QuoteReplyEditDelete

 

 

2010-02-25 04:23:09     Re: bash build fix

Mike Frysinger (UNITED STATES)

Message: 86523   

 

hush should support -e.  it is known that it does not yet support -x ... we plan on adding it at some point though.

 

QuoteReplyEditDelete

Attachments

    Outcomes