You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by ko...@apache.org on 2019/03/26 05:26:03 UTC
[arrow] branch master updated: ARROW-3578: [Release] Resolve all
hard and symbolic links in tar.gz
This is an automated email from the ASF dual-hosted git repository.
kou pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/master by this push:
new f870183 ARROW-3578: [Release] Resolve all hard and symbolic links in tar.gz
f870183 is described below
commit f870183013d2d22cbb8d22be7a76d714cb3c63ab
Author: Kouhei Sutou <ko...@clear-code.com>
AuthorDate: Tue Mar 26 14:25:46 2019 +0900
ARROW-3578: [Release] Resolve all hard and symbolic links in tar.gz
They may cause some problems when we extract the archive on Windows
and we run RAT against the archive.
Author: Kouhei Sutou <ko...@clear-code.com>
Closes #4028 from kou/fix-rat and squashes the following commits:
d7ab0653 <Kouhei Sutou> Resolve all hard and symbolic links in tar.gz
---
ci/travis_release_audit.sh | 4 +++-
dev/release/02-source.sh | 8 +++++++-
dev/release/rat_exclude_files.txt | 10 +++-------
3 files changed, 13 insertions(+), 9 deletions(-)
diff --git a/ci/travis_release_audit.sh b/ci/travis_release_audit.sh
index 8da71a0..880e235 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.gz
diff --git a/dev/release/02-source.sh b/dev/release/02-source.sh
index 85dee33..97ee576 100755
--- a/dev/release/02-source.sh
+++ b/dev/release/02-source.sh
@@ -68,8 +68,14 @@ rm -rf ${tag}/c_glib
tar 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.txt
index b0040ef..80e8741 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.cmake
cpp/CHANGELOG_PARQUET.md
cpp/src/arrow/io/mman.h
cpp/src/arrow/util/random.h
@@ -19,13 +18,9 @@ cpp/build-support/asan_symbolize.py
cpp/build-support/cpplint.py
cpp/build-support/lint_exclusions.txt
cpp/build-support/iwyu/*
-cpp/cmake_modules/BuildUtils.cmake
cpp/cmake_modules/FindPythonLibsNew.cmake
-cpp/cmake_modules/FindNumPy.cmake
-cpp/cmake_modules/SetupCxxFlags.cmake
cpp/cmake_modules/SnappyCMakeLists.txt
cpp/cmake_modules/SnappyConfig.h
-cpp/cmake_modules/CompilerInfo.cmake
cpp/src/parquet/.parquetcppversion
cpp/src/plasma/thirdparty/ae/ae.c
cpp/src/plasma/thirdparty/ae/ae.h
@@ -125,8 +120,9 @@ go/*.tmpldata
go/*.s
js/.npmignore
js/closure-compiler-scripts/*
-python/cmake_modules
-python/cmake_modules/*
+python/cmake_modules/FindPythonLibsNew.cmake
+python/cmake_modules/SnappyCMakeLists.txt
+python/cmake_modules/SnappyConfig.h
python/MANIFEST.in
python/manylinux1/.dockerignore
python/pyarrow/includes/__init__.pxd