[
https://issues.apache.org/jira/browse/ARROW-2713?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16516742#comment-16516742
]
Kouhei Sutou commented on ARROW-2713:
-------------------------------------
For Debian GNU/Linux stretch:
FlatBuffers has build error:
{noformat}
cat
/build/apache-arrow-0.10.0.20180617/cpp_build/flatbuffers_ep-prefix/src/flatbuffers_ep-stamp/flatbuffers_ep-build-err.log
/build/apache-arrow-0.10.0.20180617/cpp_build/flatbuffers_ep-prefix/src/flatbuffers_ep/src/flatc.cpp:250:38:
error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
printf("flatc version %s\n", FLATC_VERSION);
^~~~~~~~~~~~~
/build/apache-arrow-0.10.0.20180617/cpp_build/flatbuffers_ep-prefix/src/flatbuffers_ep/src/flatc.cpp:21:33:
error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
#define FLATC_VERSION "1.9.0 (" __DATE__ " " __TIME__ ")"
^
/build/apache-arrow-0.10.0.20180617/cpp_build/flatbuffers_ep-prefix/src/flatbuffers_ep/src/flatc.cpp:250:38:
note: in expansion of macro 'FLATC_VERSION'
printf("flatc version %s\n", FLATC_VERSION);
^~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
{noformat}
Debian GNU/Linux stretch adds -Wdate-time flag by default and FlatBuffers uses
-Werror flag. It causes the error.
See also "timeless" value description of "reproducible" in
http://man7.org/linux/man-pages/man1/dpkg-buildflags.1.html .
We can disable the feature by:
{code:diff}
diff --git a/dev/tasks/linux-packages/debian/rules
b/dev/tasks/linux-packages/debian/rules
index 5a3c0a31..5af70521 100755
--- a/dev/tasks/linux-packages/debian/rules
+++ b/dev/tasks/linux-packages/debian/rules
@@ -6,6 +6,8 @@
# This has to be exported to make some magic below work.
export DH_OPTIONS
+export DEB_BUILD_MAINT_OPTIONS=reproducible=-timeless
+
BUILD_TYPE=release
%:
{code}
> [Packaging] Fix linux package builds
> ------------------------------------
>
> Key: ARROW-2713
> URL: https://issues.apache.org/jira/browse/ARROW-2713
> Project: Apache Arrow
> Issue Type: Improvement
> Components: Packaging
> Reporter: Krisztian Szucs
> Priority: Major
> Fix For: 0.10.0
>
>
> Build configuration:
> https://github.com/kszucs/arrow/tree/0d9d89b7bff32823ab68e6ec1dc7ade52511f7ee/dev/tasks/linux-packages
> Failing build:
> https://travis-ci.org/kszucs/crossbow/builds/391894564?utm_source=github_status&utm_medium=notification
> Looks like it’s waiting for a user input? There might be some hardcoded
> version too, because the expected is 0.9.1 instead of 0.9.0.
> ping [~kou]
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)