From: Panu Matilainen Date: Mon, 23 May 2016 05:53:33 +0000 (+0300) Subject: mk: fix install with tar 1.29 X-Git-Tag: spdx-start~6786 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=dd9ae4c7b302dffd9b3dac849f4da8badac91719;p=dpdk.git mk: fix install with tar 1.29 --exclude became a positional option in tar 1.29, breaking the test app filtering in "make install", causing .map files and all test apps to get installed in bindir. Adjust the tar arguments accordingly, this is compatible with older versions too since they do not care about the order. Ref: https://bugzilla.redhat.com/show_bug.cgi?id=1337864 Fixes: 6b62a72a70d0 ("mk: install a standard cutomizable tree") Signed-off-by: Panu Matilainen --- diff --git a/mk/rte.sdkinstall.mk b/mk/rte.sdkinstall.mk index 68e56b68e6..abdab0f0c3 100644 --- a/mk/rte.sdkinstall.mk +++ b/mk/rte.sdkinstall.mk @@ -116,9 +116,9 @@ install-runtime: $(Q)$(call rte_mkdir, $(DESTDIR)$(libdir)) $(Q)cp -a $O/lib/* $(DESTDIR)$(libdir) $(Q)$(call rte_mkdir, $(DESTDIR)$(bindir)) - $(Q)tar -cf - -C $O app --exclude 'app/*.map' \ + $(Q)tar -cf - -C $O --exclude 'app/*.map' \ --exclude 'app/cmdline*' --exclude app/test \ - --exclude app/testacl --exclude app/testpipeline | \ + --exclude app/testacl --exclude app/testpipeline app | \ tar -xf - -C $(DESTDIR)$(bindir) --strip-components=1 \ --keep-newer-files --warning=no-ignore-newer $(Q)$(call rte_mkdir, $(DESTDIR)$(datadir))