]> code.ossystems Code Review - openembedded-core.git/commitdiff
quilt/acl/attc/sed: Fix use of tar's --exclude option for tar >= 1.29
authorMariano Lopez <mariano.lopez@linux.intel.com>
Fri, 5 Aug 2016 11:25:20 +0000 (11:25 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 10 Aug 2016 09:45:13 +0000 (10:45 +0100)
Starting from tar 1.29 the --exclude option won't work
anymore if is not used before the path. There are some
recipes that copy the ptest using tar and --exclude
option. This fixes these for OE-Core recipes.

[YOCTO #9763]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-devtools/quilt/quilt.inc
meta/recipes-extended/sed/sed-4.2.2/sed-add-ptest.patch
meta/recipes-support/attr/acl.inc
meta/recipes-support/attr/attr.inc

index 4e393c4d8f6c1b5ce20e2a2934fb5e02ebe5cf64..512b798d735fd7737069d48e840181698087d615 100644 (file)
@@ -48,10 +48,10 @@ do_compile_ptest() {
 }
 
 do_install_ptest() {
-       tar -cf - bin/ --exclude \*.in | ( cd ${D}${PTEST_PATH} && tar -xf - )
-       tar -cf - compat/ --exclude \*.in | ( cd ${D}${PTEST_PATH} && tar -xf - )
-       tar -cf - quilt/ --exclude \*.in | ( cd ${D}${PTEST_PATH} && tar -xf - )
-       tar -cf - test/ --exclude mail.test --exclude delete.test | ( cd ${D}${PTEST_PATH} && tar -xf - && chmod 777 test)
+       tar -c --exclude=\*.in bin/ | ( cd ${D}${PTEST_PATH} && tar -xf - )
+       tar -c --exclude=\*.in compat/ | ( cd ${D}${PTEST_PATH} && tar -xf - )
+       tar -c --exclude=\*.in quilt/ | ( cd ${D}${PTEST_PATH} && tar -xf - )
+       tar -c --exclude=mail.test --exclude=delete.test test/ | ( cd ${D}${PTEST_PATH} && tar -xf - && chmod 777 test)
        cp ${WORKDIR}/Makefile ${D}${PTEST_PATH}
        cp ${WORKDIR}/test.sh ${D}${PTEST_PATH}
 }
index 105e8b745ba62683299d792e6544038171e96656..0293900fbf30295006a877f3a2c93f94e1042bcb 100644 (file)
@@ -54,7 +54,7 @@ index d80e72c..b05f01e 100644
  # dummy targets for $(TESTS) so that make does not complain.
  
 +install-ptest:
-+      cd $(BUILDDIR); tar -cf - $(TESTDIR) --exclude *.o | ( cd $(DESTDIR) && tar -xf - )
++      cd $(BUILDDIR); tar -c --exclude=*.o $(TESTDIR) | ( cd $(DESTDIR) && tar -xf - )
 +      for i in $(EXTRA_DIST) tst-regex2.c; do install $(srcdir)/$$i $(DESTDIR)/$(TESTDIR); done
 +      sed -e 's/^Makefile:/_Makefile:/' -e 's/^srcdir = \(.*\)/srcdir = ./' -e 's/bash/sh/' -i $(DESTDIR)/$(TESTDIR)/Makefile
 +      for i in `grep -rl "../sed/sed" $(DESTDIR)/$(TESTDIR)`; do sed -e 's/..\/sed\/sed/sed/' -i $$i; done
index aebebfd965d7c4bfa5a3ef2d069e81a7f9951800..37a0218cbb87a51909e44cdeaaf0789f9e9111ea 100644 (file)
@@ -34,7 +34,7 @@ do_install_append() {
 inherit ptest
 
 do_install_ptest() {
-       tar -cf - test/ --exclude nfs | ( cd ${D}${PTEST_PATH} && tar -xf - )
+       tar -c --exclude=nfs test/ | ( cd ${D}${PTEST_PATH} && tar -xf - )
        mkdir ${D}${PTEST_PATH}/include
        cp ${S}/include/builddefs ${S}/include/buildmacros ${S}/include/buildrules ${D}${PTEST_PATH}/include/
 }
index 68609784d94c537e526193e0bfe8f73e48202b54..a1b0829e1f56af8bec48d0d141401cf4635f8079 100644 (file)
@@ -26,7 +26,7 @@ do_install_append() {
 inherit ptest
 
 do_install_ptest() {
-       tar -cf - test/ --exclude ext | ( cd ${D}${PTEST_PATH} && tar -xf - )
+       tar -c --exclude=ext test/ | ( cd ${D}${PTEST_PATH} && tar -xf - )
        mkdir ${D}${PTEST_PATH}/include
        for i in builddefs buildmacros buildrules; \
          do cp ${S}/include/$i ${D}${PTEST_PATH}/include/; \