Hi all,
Tar-1.21, when invoked with either the '-t', '--test-label' or '-v' options,
will output the following warning on 24 out of the 58 tarballs used in LFS
(interestingly enough, one of those is the tar-1.21 tarball itself!).
tar: Record size = 8 blocks
The attached, untested patch suppresses that output by redirecting stderr to
/dev/null.
Regards,
Matt.
Index: common/makefile-functions
===================================================================
--- common/makefile-functions (revision 3526)
+++ common/makefile-functions (working copy)
@@ -63,7 +63,8 @@
define remove_existing_dirs
@PKG_PATH=`ls -t $(SRCSDIR)/$(1) | head -n1` && \
- ROOT=`tar -tf $$PKG_PATH | head -n1 | sed -e 's...@^./@@;s@/.*@@'` && \
+ ROOT=`tar -tf $$PKG_PATH 2>/dev/null | head -n1 | \
+ sed -e 's...@^./@@;s@/.*@@'` && \
[ -n "$$ROOT" ] && \
if [ -d $(SRCDIR)/$$ROOT ]; then \
rm -rf $(SRCSDIR)/$$ROOT && \
@@ -73,7 +74,8 @@
define remove_existing_dirs2
@PKG_PATH=`ls -t $(SRC)/$(1) | head -n1` && \
- ROOT=`tar -tf $$PKG_PATH | head -n1 | sed -e 's...@^./@@;s@/.*@@'` && \
+ ROOT=`tar -tf $$PKG_PATH 2>/dev/null | head -n1 | \
+ sed -e 's...@^./@@;s@/.*@@'` && \
[ -n "$$ROOT" ] && \
if [ -d $(SRC)/$$ROOT ]; then \
rm -rf $(SRC)/$$ROOT && \
@@ -85,12 +87,12 @@
define unpack
@cd $(SRCSDIR) && \
- tar -xvf `ls -t $(1) | head -n1` > $(PKG_LST)
+ tar -xvf `ls -t $(1) | head -n1` > $(PKG_LST) 2>&1
endef
define unpack2
@cd $(SRC) && \
- tar -xvf `ls -t $(1) | head -n1` > $(PKG_LST)
+ tar -xvf `ls -t $(1) | head -n1` > $(PKG_LST) 2>&1
endef
#==#
--
http://linuxfromscratch.org/mailman/listinfo/alfs-discuss
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page