Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARROW-3578: [Release] Resolve all hard and symbolic links in tar.gz #4028

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion ci/travis_release_audit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 7 additions & 1 deletion dev/release/02-source.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
10 changes: 3 additions & 7 deletions dev/release/rat_exclude_files.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down