Apache DataFusion SQL Query Engine
ARROW-3578: [Release] Resolve all hard and symbolic links in tar.gz
Kouhei Sutou2df1fd6a557b
diff --git a/ci/travis_release_audit.sh b/ci/travis_release_audit.shindex 8da71a09cf..880e235db1 100755--- a/ci/travis_release_audit.sh+++ b/ci/travis_release_audit.sh@@ -20,5 +20,7 @@set -e# Check licenses according to Apache policy-git archive HEAD --prefix=apache-arrow/ --output=arrow-src.tar.gz+git archive HEAD --prefix=apache-arrow-raw/ | tar xf -+cp -r -L apache-arrow{-raw,}+tar czf arrow-src.tar.gz apache-arrow./dev/release/run-rat.sh arrow-src.tar.gzdiff --git a/dev/release/02-source.sh b/dev/release/02-source.shindex 85dee3302e..97ee57676a 100755--- a/dev/release/02-source.sh+++ b/dev/release/02-source.sh@@ -68,8 +68,14 @@ rm -rf ${tag}/c_glibtar xf ${dist_c_glib_tar_gz} -C ${tag}rm -f ${dist_c_glib_tar_gz}+# Resolve all hard and symbolic links+rm -rf ${tag}.tmp+mv ${tag} ${tag}.tmp+cp -r -L ${tag}.tmp ${tag}+rm -rf ${tag}.tmp+# Create new tarball from modified source directory-tar czhf ${tarball} ${tag}+tar czf ${tarball} ${tag}rm -rf ${tag}${SOURCE_DIR}/run-rat.sh ${tarball}diff --git a/dev/release/rat_exclude_files.txt b/dev/release/rat_exclude_files.txtindex b0040eff2b..80e87415de 100644--- a/dev/release/rat_exclude_files.txt+++ b/dev/release/rat_exclude_files.txt@@ -8,7 +8,6 @@*.json*.snap.github/ISSUE_TEMPLATE.md-cpp/examples/parquet/parquet-arrow/cmake_modules/FindArrow.cmakecpp/CHANGELOG_PARQUET.mdcpp/src/arrow/io/mman.hcpp/src/arrow/util/random.h@@ -19,13 +18,9 @@ cpp/build-support/asan_symbolize.pycpp/build-support/cpplint.pycpp/build-support/lint_exclusions.txtcpp/build-support/iwyu/*-cpp/cmake_modules/BuildUtils.cmakecpp/cmake_modules/FindPythonLibsNew.cmake-cpp/cmake_modules/FindNumPy.cmake-cpp/cmake_modules/SetupCxxFlags.cmakecpp/cmake_modules/SnappyCMakeLists.txtcpp/cmake_modules/SnappyConfig.h-cpp/cmake_modules/CompilerInfo.cmakecpp/src/parquet/.parquetcppversioncpp/src/plasma/thirdparty/ae/ae.ccpp/src/plasma/thirdparty/ae/ae.h@@ -125,8 +120,9 @@ go/*.tmpldatago/*.sjs/.npmignorejs/closure-compiler-scripts/*-python/cmake_modules-python/cmake_modules/*+python/cmake_modules/FindPythonLibsNew.cmake+python/cmake_modules/SnappyCMakeLists.txt+python/cmake_modules/SnappyConfig.hpython/MANIFEST.inpython/manylinux1/.dockerignorepython/pyarrow/includes/__init__.pxd