You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add a Version_ module which does not depend on install dirs #3909
is making the binary non-reproducible. If this section can't be changed due to compatibility issues, there should be a new reproducible Buildconstants_ or what ever API.
By the way: It would be useful to export name and synopsis too, since they often appear in --version or --help.
@qua-bla sorry if it's an obvious question, but why does that make it non-reproducible? Surely these install paths would be the same each time, if you're using the same configuration.
I think we'd be happy to take a PR on this. But before working on it, it would be worth to write the putative docs; i.e., what would the API of this module be.
It would be also possible to fix this via a CPP #ifdef in Paths_ that can be controlled via a cabal option (something like "enable-reproducibility"). The advantage would be that package maintainers can fix reproducibility issues without touching code and no new API would be introduced.
On the other hand the name Paths_ is odd anyways and replacing Paths_ with Version_ as a package maintainer is doable.
maybe we should have a new field/setting in .cabal to declare whether a package needs any paths, as then we could automatically leave them off for all packages inside an install-plan which don't need them.
but I don't have any technical reasons for it (besides, I guess, CPP is bad).
There would be a new config options or something that would have to be carried around for ever. Sound like higher support cost to me. Also changing the flags in my small test implementation required a strange build-clean-build sequence to get the "actual" reproducible result. (There will be a good reason, but who wants to deal with that.)
Activity
ezyang commentedon Sep 28, 2016
Well, we certainly can't delete it. What if we added a new
Version_module which contained the information you asked for?sophie-h commentedon Sep 28, 2016
That would be great and totally do the job.
dcoutts commentedon Oct 1, 2016
@qua-bla sorry if it's an obvious question, but why does that make it non-reproducible? Surely these install paths would be the same each time, if you're using the same configuration.
sophie-h commentedon Oct 1, 2016
On Sat, Oct 1, 2016 at 2:26 AM, Duncan Coutts
[email protected] wrote:
Sure, but why should the config be the same? I don't want force the
build server to do stuff outside the sandbox.
The idea of reproducible builds is not that I can build it twice on
/my/ computer ;)
ezyang commentedon Oct 1, 2016
I think we'd be happy to take a PR on this. But before working on it, it would be worth to write the putative docs; i.e., what would the API of this module be.
[-]autogen/Paths_ is not reproducible[/-][+]Add a Version_ module which does not depend on install dirs[/+]sophie-h commentedon Oct 1, 2016
It would be also possible to fix this via a CPP
#ifdefinPaths_that can be controlled via a cabal option (something like "enable-reproducibility"). The advantage would be that package maintainers can fix reproducibility issues without touching code and no new API would be introduced.On the other hand the name
Paths_is odd anyways and replacingPaths_withVersion_as a package maintainer is doable.Any thoughts?
ezyang commentedon Oct 1, 2016
I'm aesthetically opposed to putting CPP in Paths but I don't have any technical reasons for it (besides, I guess, CPP is bad).
hvr commentedon Oct 2, 2016
but if we had a
Paths_w/o installdirs, then how would a package find where cabal installed its package data and other stuff?ezyang commentedon Oct 2, 2016
Well, the point is anyone who would disable the install paths bits wouldn't actually use it (it can't be disabled by default.)
hvr commentedon Oct 2, 2016
maybe we should have a new field/setting in
.cabalto declare whether a package needs any paths, as then we could automatically leave them off for all packages inside an install-plan which don't need them.sophie-h commentedon Oct 2, 2016
totally
There would be a new config options or something that would have to be carried around for ever. Sound like higher support cost to me. Also changing the flags in my small test implementation required a strange build-clean-build sequence to get the "actual" reproducible result. (There will be a good reason, but who wants to deal with that.)
How about
27 remaining items
Add PackageInfos_ (haskell#3909)
fixup! Add PackageInfos_ (haskell#3909)
fixup! Add PackageInfos_ (haskell#3909)
fixup! Add PackageInfos_ (haskell#3909)
fixup! Add PackageInfos_ (haskell#3909)
fixup! Add PackageInfos_ (haskell#3909)
Add PackageInfos_ (haskell#3909)
Add PackageInfos_ (haskell#3909)
Merge pull request #8534 from blackheaven/package-infos-module
blackheaven commentedon Dec 31, 2022
Fixed by #8534
wismill commentedon Jan 13, 2023
If fixed completely, can this issue be closed?
andreabedini commentedon May 22, 2023
As fas as I can tell, #8534 implemented everything requested here. Feel free to reopen if you think otherwise.