arrow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From w...@apache.org
Subject arrow git commit: ARROW-719: [GLib] Release source archive
Date Fri, 31 Mar 2017 14:27:26 GMT
Repository: arrow
Updated Branches:
  refs/heads/master f5967ed68 -> 005826f80


ARROW-719: [GLib] Release source archive

I don't know about his approach is good but it will help you to consider what approach is
better.

Author: Kouhei Sutou <kou@clear-code.com>

Closes #448 from kou/glib-release-source-archive and squashes the following commits:

76b0110 [Kouhei Sutou] [GLib] Release source archive


Project: http://git-wip-us.apache.org/repos/asf/arrow/repo
Commit: http://git-wip-us.apache.org/repos/asf/arrow/commit/005826f8
Tree: http://git-wip-us.apache.org/repos/asf/arrow/tree/005826f8
Diff: http://git-wip-us.apache.org/repos/asf/arrow/diff/005826f8

Branch: refs/heads/master
Commit: 005826f804f7db668e8e165fad45c9c1cd1de0cf
Parents: f5967ed
Author: Kouhei Sutou <kou@clear-code.com>
Authored: Fri Mar 31 10:27:20 2017 -0400
Committer: Wes McKinney <wes.mckinney@twosigma.com>
Committed: Fri Mar 31 10:27:20 2017 -0400

----------------------------------------------------------------------
 dev/release/02-source.sh | 39 ++++++++++++++++++++++++++++++++++++++-
 dev/release/run-rat.sh   | 19 +++++++++++++++++++
 2 files changed, 57 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/arrow/blob/005826f8/dev/release/02-source.sh
----------------------------------------------------------------------
diff --git a/dev/release/02-source.sh b/dev/release/02-source.sh
old mode 100644
new mode 100755
index bdaa5cc..924b94f
--- a/dev/release/02-source.sh
+++ b/dev/release/02-source.sh
@@ -54,9 +54,46 @@ echo "Using commit $release_hash"
 
 tarball=$tag.tar.gz
 
+extract_dir=tmp-apache-arrow
+rm -rf $extract_dir
 # be conservative and use the release hash, even though git produces the same
 # archive (identical hashes) using the scm tag
-git archive $release_hash --prefix $tag/ -o $tarball
+git archive $release_hash --prefix $extract_dir/ | tar xf -
+
+# build Apache Arrow C++ before building Apache Arrow GLib because
+# Apache Arrow GLib requires Apache Arrow C++.
+mkdir -p $extract_dir/cpp/build
+cpp_install_dir=$PWD/$extract_dir/cpp/install
+cd $extract_dir/cpp/build
+cmake .. \
+  -DCMAKE_INSTALL_PREFIX=$cpp_install_dir \
+  -DARROW_BUILD_TESTS=no
+make -j8
+make install
+cd -
+
+# build source archive for Apache Arrow GLib by "make dist".
+cd $extract_dir/c_glib
+./autogen.sh
+./configure \
+  PKG_CONFIG_PATH=$cpp_install_dir/lib/pkgconfig \
+  --enable-gtk-doc
+LD_LIBRARY_PATH=$cpp_install_dir/lib make -j8
+make dist
+tar xzf *.tar.gz
+rm *.tar.gz
+cd -
+rm -rf tmp-c_glib/
+mv $extract_dir/c_glib/apache-arrow-glib-* tmp-c_glib/
+rm -rf $extract_dir
+
+# replace c_glib/ by tar.gz generated by "make dist"
+rm -rf $tag
+git archive $release_hash --prefix $tag/ | tar xf -
+rm -rf $tag/c_glib
+mv tmp-c_glib $tag/c_glib
+tar czf $tarball $tag
+rm -rf $tag
 
 ${SOURCE_DIR}/run-rat.sh $tarball
 

http://git-wip-us.apache.org/repos/asf/arrow/blob/005826f8/dev/release/run-rat.sh
----------------------------------------------------------------------
diff --git a/dev/release/run-rat.sh b/dev/release/run-rat.sh
index e26dd58..a3c12a0 100755
--- a/dev/release/run-rat.sh
+++ b/dev/release/run-rat.sh
@@ -40,6 +40,25 @@ $RAT $1 \
   -e __init__.pxd \
   -e __init__.py \
   -e requirements.txt \
+  -e version \
+  -e "*.m4" \
+  -e configure \
+  -e config.sub \
+  -e config.h.in \
+  -e compile \
+  -e missing \
+  -e install-sh \
+  -e config.guess \
+  -e depcomp \
+  -e ltmain.sh \
+  -e arrow-glib.types \
+  -e arrow-glib-sections.txt \
+  -e arrow-glib-overrides.txt \
+  -e gtk-doc.make \
+  -e "*.html" \
+  -e "*.css" \
+  -e "*.png" \
+  -e "*.devhelp2" \
   > rat.txt
 cat rat.txt
 UNAPPROVED=`cat rat.txt  | grep "Unknown Licenses" | head -n 1 | cut -d " " -f 1`


Mime
View raw message