You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "Attila Doroszlai (Jira)" <ji...@apache.org> on 2026/08/03 21:13:00 UTC

[jira] [Comment Edited] (RATIS-2639) Make release .tar.gz files reproducible.

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

Attila Doroszlai edited comment on RATIS-2639 at 8/3/26 9:12 PM:
-----------------------------------------------------------------

Build depends on the environment, e.g. Mac and Linux produce different results.  reproducible-central has tooling to reduce environment differences (builds on Linux, uses specific JDK).

{code}
git clone https://github.com/jvm-repo-rebuild/reproducible-central
cd reproducible-central
cp content/org/apache/ratis/ratis-3.{2,3}.0.buildspec
sed -i -e "s/version=3.2.0/version=3.3.0/" -e "s/gitTag=.*/&-rc2/" -e "s@mvn -P@./mvnw -P@" content/org/apache/ratis/ratis-3.3.0.buildspec
./rebuild.sh content/org/apache/ratis/ratis-3.3.0.buildspec staging
{code}

Note that it does not use make_rc.sh to build Ratis, just Maven.  This reflects how users would build their own after the release.


was (Author: adoroszlai):
Build depends on the environment, e.g. Mac and Linux produce different results.  reproducible-central has tooling to reduce environment differences (builds on Linux, uses specific JDK).

{code}
git clone https://github.com/jvm-repo-rebuild/reproducible-central
cd reproducible-central
cp content/org/apache/ratis/ratis-3.{2,3}.0.buildspec
sed -i -e "s/version=3.2.0/version=3.3.0/" -e "s/gitTag=.*/&-rc2/" -e "s@mvn -P@./mvnw -P@" content/org/apache/ratis/ratis-3.3.0.buildspec
./rebuild.sh content/org/apache/ratis/ratis-3.3.0.buildspec staging
{code}

> Make release .tar.gz files reproducible.
> ----------------------------------------
>
>                 Key: RATIS-2639
>                 URL: https://issues.apache.org/jira/browse/RATIS-2639
>             Project: Ratis
>          Issue Type: Improvement
>          Components: build
>            Reporter: Tsz-wo Sze
>            Priority: Major
>         Attachments: image-2026-08-03-11-26-40-659.png
>
>
> Currently, the [src|bin].tar.gz files generated by ./dev-support/make_rc.sh are not reproducible.  According to Google, it is due to file ordering and metadata such user id.  These problem can be fixed; see below:
>  !image-2026-08-03-11-26-40-659.png|width=600! 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)