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

kou pushed a commit to branch main
in repository 
https://gitbox.apache.org/repos/asf/arrow-flight-sql-postgresql.git


The following commit(s) were added to refs/heads/main by this push:
     new 849661e  Source verification ensures using the original user in tmp 
directory (#110)
849661e is described below

commit 849661e619e54a7308f195d9ea629811ac35a754
Author: Sutou Kouhei <[email protected]>
AuthorDate: Mon Sep 11 16:43:32 2023 +0900

    Source verification ensures using the original user in tmp directory (#110)
    
    Closes GH-108
---
 .github/workflows/test.yaml | 17 -----------------
 dev/release/verify-rc.sh    |  3 ++-
 2 files changed, 2 insertions(+), 18 deletions(-)

diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml
index 35477b6..5e621fa 100644
--- a/.github/workflows/test.yaml
+++ b/.github/workflows/test.yaml
@@ -46,23 +46,6 @@ jobs:
       - name: Prepare
         run: |
           ci/scripts/prepare-${{ matrix.os }}.sh ${{ matrix.postgresql-version 
}}
-      - name: Install Apache Arrow Flight SQL adapter
-        run: |
-          setup_args=(
-            "--prefix=/tmp/local"
-            "-Dbenchmark=true"
-            "-Dpostgresql_dir=$(pg_config --bindir)/.."
-          )
-          if [ ${{ matrix.os }} = "macos" ]; then
-            setup_args+=("--pkg-config-path=$(brew --prefix 
libpq)/lib/pkgconfig")
-          fi
-          meson setup "${setup_args[@]}" build
-          meson compile -C build
-          if [ ${{ matrix.os }} = "ubuntu" ]; then
-            sudo meson install -C build
-          else
-            meson install -C build
-          fi
       - uses: ruby/setup-ruby@v1
         with:
           ruby-version: ruby
diff --git a/dev/release/verify-rc.sh b/dev/release/verify-rc.sh
index 97bfecd..f7eb05d 100755
--- a/dev/release/verify-rc.sh
+++ b/dev/release/verify-rc.sh
@@ -203,7 +203,7 @@ test_source_distribution() {
   fi
 
   meson setup \
-        --prefix="${PWD}/install" \
+        --prefix="${ARROW_TMPDIR}/install" \
         -Dpostgresql_dir="$(pg_config --bindir)/.." \
         ${ARROW_FLIGHT_SQL_POSTGRESQL_MESON_SETUP_ARGS:-} \
         build
@@ -227,6 +227,7 @@ test_source_distribution() {
       Linux-/usr/*)
         if type sudo > /dev/null 2>&1; then
           sudo meson install -C build
+          sudo chown -R "${USER}:" "${ARROW_TMPDIR}/install"
         else
           meson install -C build
         fi

Reply via email to