[PATCH] Use tar by variable
Jan-Benedict Glaw
jbglaw at lug-owl.de
Thu Jan 5 17:44:54 UTC 2006
Hi!
The "install" target uses the tar program to copy files. This is done
with omitting some unneeded directories containing metadata.
Unfortunately, --exclude isn't known to all versions of tar (notice
that there's no longer such a thing like a "POSIX tar", because POSIX
abandoned tar in flavour of pax (cf.
http://www.opengroup.org/onlinepubs/009695399/basedefs/tar.h.html and
http://www.opengroup.org/onlinepubs/009695399/utilities/pax.html)).
This allows to use gtar (by supplying a variable) instead of using a
hardcoded tar. (Optimally, Rules.mak would proble for gtar and fall
back to tar, but I don't know how to easily code that :-)
--- uclibc/Makefile.in~ 2006-01-05 18:22:24.907660000 +0100
+++ uclibc/Makefile.in 2006-01-05 18:23:45.477423000 +0100
@@ -112,8 +112,8 @@
else \
extra_exclude="" ; \
fi ; \
- tar -chf - --exclude .svn $$extra_exclude include \
- | tar -xf - -C $(PREFIX)$(DEVEL_PREFIX)
+ $(TAR) -chf - --exclude .svn $$extra_exclude include \
+ | $(TAR) -xf - -C $(PREFIX)$(DEVEL_PREFIX)
echo -e '#ifndef _LIBC_INTERNAL_H\n#define _LIBC_INTERNAL_H 1\n#endif\n' > \
$(PREFIX)$(DEVEL_PREFIX)include/libc-internal.h
$(RM) $(PREFIX)$(DEVEL_PREFIX)include/dl-osinfo.h
--- uclibc/Rules.mak~ 2006-01-05 18:21:20.707833000 +0100
+++ uclibc/Rules.mak 2006-01-05 18:22:08.717671000 +0100
@@ -36,6 +36,7 @@
INSTALL = install
LN = ln
RM = rm -f
+TAR = tar
STRIP_FLAGS ?= -x -R .note -R .comment
MfG, JBG
--
Jan-Benedict Glaw jbglaw at lug-owl.de . +49-172-7608481 _ O _
"Eine Freie Meinung in einem Freien Kopf | Gegen Zensur | Gegen Krieg _ _ O
für einen Freien Staat voll Freier Bürger" | im Internet! | im Irak! O O O
ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20060105/47cb0027/attachment-0002.pgp
More information about the uClibc
mailing list