diff options
author | Dave Wallace <dwallacelf@gmail.com> | 2016-05-13 22:49:36 -0400 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2016-05-16 11:47:05 +0000 |
commit | 9c5b2b301c1a2cc39b76c4a9570ce18a5eaa37be (patch) | |
tree | fb17b2c85e01b9408fdfe45554475d37e2e018c5 | |
parent | ed18a1c84071b063c960324005353e9a2c36c872 (diff) |
VPP-64: Fix top-level "make pkg-deb" which breaks if CDPATH is set in the user's
bash environment.
Change-Id: Ib13e6fdafa67175937e57fad4e75e553cb1e08a3
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
-rwxr-xr-x | build-root/scripts/find-dpdk-contents | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/build-root/scripts/find-dpdk-contents b/build-root/scripts/find-dpdk-contents index f8c80b5bf81..c7065139e0a 100755 --- a/build-root/scripts/find-dpdk-contents +++ b/build-root/scripts/find-dpdk-contents @@ -5,6 +5,15 @@ rm -rf dpdk-includes mkdir dpdk-includes (cd $1/dpdk/include; tar cfh - . | (cd ../../../dpdk-includes; tar xf -)) +# If CDPATH is set, the "Change Directory" builtin (cd) will output the +# destination directory when a relative path is passed as an argument. +# In this case, this has the negative side effect of polluting the "paths" +# variable with the destination directory, breaking the package generation. +# +# Patient: Doctor! Doctor! It hurts when I do this... +# Doctor: Don't do that! +# +unset CDPATH paths=`cd dpdk-includes; find . -type f -print` rm -f $2 |