[BusyBox] Is this a uclibc problem or a busybox problem?

Bernhard Fischer rep.nop at aon.at
Sat Aug 27 14:13:24 UTC 2005


On Sat, Aug 27, 2005 at 06:03:46AM -0500, Rob Landley wrote:

>if [ ""/usr/include/linux"" == "/usr/" ] ; then \
>        extra_exclude="--exclude include/linux --exclude include/asm'*'" ; \
>else \
>        extra_exclude="" ; \
>fi ; \
>tar -chf - include --exclude .svn --exclude CVS $extra_exclude \
>        | tar -xf - -C /usr/
>tar: CVS: No such file or directory

busybox tar seems not to support '--exclude='

<quote>
# ifdef CONFIG_FEATURE_TAR_FROM
        { "files-from",         1,      NULL,   'T' },
        { "exclude-from",       1,      NULL,   'X' },
</>
so you might try

echo -n '.svn
CVS
' > .tmp.exclude
[ ""/usr/include/linux"" == "/usr/" ] && \
	echo -n 'include/linux
include/asm*' >> .tmp.exclude

tar -chf - include -X .tmp.exclude -X .cvsignore | tar -xf - -C /usr/


or the like.
hth,
># Remove iconv header since locale support is disabled.
>rm -f /usr/include/iconv.h
>
>And so on.  (Nope, the install doesn't fail, exits quite happily, it just 
>doesn't install anything much in/usr/include...)
>
>Thus my question: is this a busybox bug, a uClibc bug, or both?
>
>Rob




More information about the busybox mailing list