[darcs-users] [patch141] Include the exact package versions darcs was compiled

Petr Ročkai bugs at darcs.net
Tue Jan 12 21:02:23 UTC 2010

New submission from Petr Ročkai <me at mornfall.net>:

This might be useful and didn't seem to be too hard. I haven't tested this too
much, but I used Cabal 1.6 docs (but tried only with 1.8, apparently).

2 patches for repository darcs-unstable at darcs.net:darcs:

Tue Jan 12 21:33:26 CET 2010  Petr Rockai <me at mornfall.net>
  * Fix our version mechanism to make non-clean rebuilds pick up right version.
  Since Cabal relies on ghc --make, changes in -D flags are not noticed in
  dependency analysis and things do not get rebuild, which translates into stale
  version numbers in produced darcs binaries (only --exact-version was correct in
  the old system). We now tack the version information into a generated module
  instead (header file changes are not noticed by ghc --make either). This
  involves an ugly hack, since autogenerated modules cannot be listed in
  other-modules, since this breaks sdist while at the same time, libraries have
  to have all their modules listed to work. And the version information is part
  of darcslib. The workaround involves tricking the sdist implementation into not
  seeing the other-modules clause in the cabal file. This seems to work.

Tue Jan 12 21:58:41 CET 2010  Petr Rockai <me at mornfall.net>
  * Include the exact package versions darcs was compiled with in --exact-version.

files: fix-our-version-mechanism-to-make-non_clean-rebuilds-pick-up-right-version_.dpatch, unnamed
messages: 9799
nosy: darcs-users, mornfall
status: needs-review
title: Include the exact package versions darcs was compiled

Darcs bug tracker <bugs at darcs.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-our-version-mechanism-to-make-non_clean-rebuilds-pick-up-right-version_.dpatch
Type: text/x-darcs-patch
Size: 87081 bytes
Desc: not available
URL: <http://lists.osuosl.org/pipermail/darcs-users/attachments/20100112/470d38d3/attachment-0001.bin>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: unnamed
URL: <http://lists.osuosl.org/pipermail/darcs-users/attachments/20100112/470d38d3/attachment-0001.diff>

More information about the darcs-users mailing list