Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reproducible builds of opam itself #4573

Open
dra27 opened this issue Mar 1, 2021 · 1 comment
Open

Reproducible builds of opam itself #4573

dra27 opened this issue Mar 1, 2021 · 1 comment
Assignees
Projects

Comments

@dra27
Copy link
Member

dra27 commented Mar 1, 2021

Some good progress has been made here since 2016. Opam 2.0.3 was reproducible. Unfortunately, some changes introduced in later versions broke this nice property. I have tried to make it reproducible. During the build process, it turns out that setting HOME variable to some static setting and using this patch [1] makes most of the issues to go away (they appear only in manpages, which contain paths).

[1] https://sources.debian.org/src/opam/2.0.8-1/debian/patches/0004-Use-HOME-env-variable-instead-of.patch/

It would great if this patch (or a variation of it) is integrated in opam's repo 🙏🏼

There is still one issue though which can be observed here: https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/opam.html and which affects opam-admin-cache.1

I didn't want to heavily change the code or the behavior. What would be your recommendation to fix this last issue?

Originally posted by @mehdid in #2720 (comment)

@dra27
Copy link
Member Author

dra27 commented Mar 1, 2021

@avsm notes in #2720 (comment):

It looks like opam admin cache embeds the cwd in the man page:

       DIR (absent=~/src/git/ocurrent/ocaml-ci/cache)

...we should just change this in the manual page generation to be "absent=" as specifying the exact directory is inaccurate in the event the manual page is saved.

@dra27 dra27 added this to the 2.0.9 milestone Mar 1, 2021
@dra27 dra27 mentioned this issue Mar 12, 2021
2 tasks
@dra27 dra27 removed this from the 2.0.9 milestone Jul 2, 2021
@dra27 dra27 added this to To do in Opam 2.2.0 via automation Jul 2, 2021
@dra27 dra27 self-assigned this Jul 2, 2021
@dra27 dra27 added this to To do in Opam 2.3 via automation May 17, 2022
@dra27 dra27 removed this from To do in Opam 2.2.0 May 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Opam 2.3
  
To do
Development

No branches or pull requests

1 participant