[ 
https://issues.apache.org/jira/browse/ARROW-592?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16143048#comment-16143048
 ] 

Kouhei Sutou commented on ARROW-592:
------------------------------------

Ruby 1.9 is too old.

This patch will help you:

{code:diff}
diff --git a/cpp-linux/Rakefile b/cpp-linux/Rakefile
index c0e5963..d612423 100644
--- a/cpp-linux/Rakefile
+++ b/cpp-linux/Rakefile
@@ -28,7 +28,7 @@ class ApacheArrowPackageTask < PackageTask
 
   private
   def arrow_source_dir
-    File.join(__dir__, "..", "arrow")
+    File.join(File.dirname(__FILE__), "..", "arrow")
   end
 
   def detect_version(release_time)
diff --git a/cpp-linux/apt/ubuntu-14.04/Dockerfile 
b/cpp-linux/apt/ubuntu-14.04/Dockerfile
new file mode 100644
index 0000000..f993458
--- /dev/null
+++ b/cpp-linux/apt/ubuntu-14.04/Dockerfile
@@ -0,0 +1,42 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+FROM ubuntu:14.04
+
+ENV DEBIAN_FRONTEND noninteractive
+
+ARG DEBUG
+
+RUN \
+  quiet=$([ "${DEBUG}" = "yes" ] || echo "-qq") && \
+  apt update ${quiet} && \
+  apt install -y -V ${quiet} \
+    build-essential \
+    cmake3 \
+    debhelper\
+    devscripts \
+    git \
+    gtk-doc-tools \
+    libboost-filesystem-dev \
+    libboost-system-dev \
+    libgirepository1.0-dev \
+    libglib2.0-doc \
+    libjemalloc-dev \
+    lsb-release \
+    pkg-config && \
+  apt-get clean && \
+  rm -rf /var/lib/apt/lists/*
diff --git a/cpp-linux/debian/control b/cpp-linux/debian/control
index 147a73c..aa0571d 100644
--- a/cpp-linux/debian/control
+++ b/cpp-linux/debian/control
@@ -10,8 +10,6 @@ Build-Depends:
   libboost-system-dev,
   libboost-filesystem-dev,
   libjemalloc-dev,
-  python3-dev,
-  python3-numpy,
   libgirepository1.0-dev,
   gtk-doc-tools,
   gobject-introspection
@@ -32,21 +30,6 @@ Description: Apache Arrow is a data processing library for 
analysis
  .
  This package provides library files.
 
-Package: libarrow-python0
-Section: libs
-Architecture: any
-Multi-Arch: same
-Pre-Depends: ${misc:Pre-Depends}
-Depends:
-  ${misc:Depends},
-  ${shlibs:Depends},
-  libarrow0 (= ${binary:Version}),
-  python3,
-  python3-numpy
-Description: Apache Arrow is a data processing library for analysis
- .
- This package provides library files for Python.
-
 Package: libarrow-dev
 Section: libdevel
 Architecture: any
diff --git a/cpp-linux/debian/libarrow-dev.install 
b/cpp-linux/debian/libarrow-dev.install
index 92b5574..67c6cdc 100644
--- a/cpp-linux/debian/libarrow-dev.install
+++ b/cpp-linux/debian/libarrow-dev.install
@@ -1,6 +1,4 @@
 usr/include/arrow/
 usr/lib/*/libarrow.a
-usr/lib/*/libarrow_*.a
 usr/lib/*/libarrow.so
-usr/lib/*/libarrow_*.so
 usr/lib/*/pkgconfig/arrow.pc
diff --git a/cpp-linux/debian/rules b/cpp-linux/debian/rules
index 641e07c..f92b589 100755
--- a/cpp-linux/debian/rules
+++ b/cpp-linux/debian/rules
@@ -17,10 +17,7 @@ override_dh_auto_configure:
          --builddirectory=cpp_build \
          -- \
          -DCMAKE_BUILD_TYPE=$(BUILD_TYPE) \
-         -DARROW_BUILD_TESTS=OFF \
-         -DARROW_PYTHON=ON \
-         -DPythonInterp_FIND_VERSION=ON \
-         -DPythonInterp_FIND_VERSION_MAJOR=3
+         -DARROW_BUILD_TESTS=OFF
        dh_auto_configure \
          --sourcedirectory=c_glib \
          --builddirectory=c_glib_build \
diff --git a/cpp-linux/package-task.rb b/cpp-linux/package-task.rb
index c9a0755..ed115bd 100644
--- a/cpp-linux/package-task.rb
+++ b/cpp-linux/package-task.rb
@@ -180,9 +180,10 @@ VERSION=#{@version}
   def define_apt_task
     namespace :apt do
       code_names = [
-        ["debian", "stretch"],
-        ["ubuntu", "16.04"],
-        ["ubuntu", "17.04"],
+        # ["debian", "stretch"],
+        ["ubuntu", "14.04"],
+        # ["ubuntu", "16.04"],
+        # ["ubuntu", "17.04"],
       ]
       debian_dir = "debian"
       apt_dir = "apt"
{code}

You can build .deb for Ubuntu 14.04  by Ruby 1.9 with this patch.

> [C++] Provide .deb and .rpm packages
> ------------------------------------
>
>                 Key: ARROW-592
>                 URL: https://issues.apache.org/jira/browse/ARROW-592
>             Project: Apache Arrow
>          Issue Type: Wish
>          Components: C++
>         Environment: GNU/Linux
>            Reporter: Kouhei Sutou
>            Assignee: Kouhei Sutou
>            Priority: Minor
>             Fix For: 0.7.0
>
>
> If we provide .deb and .rpm packages for C++ Arrow, users can install it 
> easily. (At least, I'm happy as an user.)
> Is there any location to provide .deb and .rpm packages? If it doesn't exist, 
> how about using https://packagecloud.io/ with "Open Source plan"? We can find 
> "Open Source plan" by clicking "Looking for free or open-source plans" at 
> https://packagecloud.io/pricing .



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to