You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by uw...@apache.org on 2018/09/22 14:30:48 UTC

[arrow] branch master updated: ARROW-3300: [Release] Update deb package names in preparation

This is an automated email from the ASF dual-hosted git repository.

uwe 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 e2f4f9a  ARROW-3300: [Release] Update deb package names in preparation
e2f4f9a is described below

commit e2f4f9a754e2f227c1769f14579a3d8653017ff9
Author: Kouhei Sutou <ko...@clear-code.com>
AuthorDate: Sat Sep 22 16:30:39 2018 +0200

    ARROW-3300: [Release] Update deb package names in preparation
    
    We need to use libarrow${SO_VERSION} package name for .deb.
    
    Author: Kouhei Sutou <ko...@clear-code.com>
    
    Closes #2606 from kou/release-update-deb-package-names and squashes the following commits:
    
    cd47ae5f <Kouhei Sutou>  Update deb package names in preparation
---
 dev/release/00-prepare.sh | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/dev/release/00-prepare.sh b/dev/release/00-prepare.sh
index 7a34477..8ca763c 100755
--- a/dev/release/00-prepare.sh
+++ b/dev/release/00-prepare.sh
@@ -50,6 +50,27 @@ if [ "$#" -eq 2 ]; then
 
   cd -
 
+  echo "Updating .deb package names for $nextVersion"
+  deb_lib_suffix=$(echo $version | sed -r -e 's/^[0-9]+\.([0-9]+)\.[0-9]+$/\1/')
+  next_deb_lib_suffix=$(echo $nextVersion | sed -r -e 's/^[0-9]+\.([0-9]+)\.[0-9]+$/\1/')
+  cd $SOURCE_DIR/../tasks/linux-packages/
+  for target in debian*/lib*${deb_lib_suffix}.install; do
+    git mv \
+      ${target} \
+      $(echo $target | sed -e "s/${deb_lib_suffix}/${next_deb_lib_suffix}/")
+  done
+  deb_lib_suffix_substitute_pattern="s/(lib(arrow|parquet)[-a-z]*)${deb_lib_suffix}/\\1${next_deb_lib_suffix}/g"
+  sed -i.bak -r -e "${deb_lib_suffix_substitute_pattern}" debian*/control
+  rm -f debian*/control.bak
+  git add debian*/control
+  cd -
+  cd $SOURCE_DIR
+  sed -i.bak -r -e "${deb_lib_suffix_substitute_pattern}" rat_exclude_files.txt
+  rm -f rat_exclude_files.txt.bak
+  git add rat_exclude_files.txt
+  git commit -m "[Release] Update .deb package names for $nextVersion"
+  cd -
+
   echo "Finish staging binary artifacts by running: sh dev/release/01-perform.sh"
 
 else