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

Kouhei Sutou commented on ARROW-2792:
-------------------------------------

If we use different filenames for each distribution, we should do it by 
{{debian/changelog}} instead of outer script. We can do it by the following 
patch:

{noformat}
diff --git a/dev/tasks/linux-packages/apt/build.sh 
b/dev/tasks/linux-packages/apt/build.sh
index f489d026..fad5d16d 100755
--- a/dev/tasks/linux-packages/apt/build.sh
+++ b/dev/tasks/linux-packages/apt/build.sh
@@ -54,6 +54,13 @@ if [ -d "/host/tmp/${specific_debian_dir}" ]; then
 else
   run cp -rp "/host/tmp/debian" debian
 fi
+run \
+  sed \
+  -i"" \
+  -e"1 s/)/~${code_name}1)/" \
+  -e"1 s/unstable/${code_name}/" \
+  debian/changelog
+
 # export DEB_BUILD_OPTIONS=noopt
 if [ "${DEBUG:-no}" = "yes" ]; then
   run debuild -us -uc
{noformat}

With this patch, we can generate
{{libarrow0_${VERSION}~${CODE_NAME}1_${ARCHITECTURE}.deb}} instead of
{{libarrow0_${VERSION}_${ARCHITECTURE}.deb}}.

> [Packaging] Consider uploading tarballs to avoid naming conflicts
> -----------------------------------------------------------------
>
>                 Key: ARROW-2792
>                 URL: https://issues.apache.org/jira/browse/ARROW-2792
>             Project: Apache Arrow
>          Issue Type: Task
>          Components: Packaging
>            Reporter: Krisztian Szucs
>            Priority: Major
>             Fix For: 0.10.0
>
>
> [~kou] has suggested, that we should upload tarballs for linux package 
> builds, to include all .deb and/or .rpm packages.
> For conda packages currenlty we postfix the artifacts with the arch name to 
> avoid naming conflicts. To remain consistent we should chose one of the 
> strategies (postifx or tarballs) and apply for each tasks.
> However tarballs would be a trivial solution to resolve naming conflicts, 
> ensuring that a tarball contains all of the expected artifacts would require 
> to download and extract it beforehand. This requires changes in status checks 
> and artifact downloading / signing.
> [~cpcloud] thoughts?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to