summaryrefslogtreecommitdiff
path: root/boot
diff options
context:
space:
mode:
authorHerbert Valerio Riedel <hvr@gnu.org>2015-12-27 09:03:44 +0100
committerHerbert Valerio Riedel <hvr@gnu.org>2015-12-28 10:23:37 +0100
commit01299ca83996710ec1572c952917157b1c2d139e (patch)
tree6840cf59bcc1b45baea77dfd33c3331336489c70 /boot
parent0054bcd42260d248e391ed01d6b3da4fefdad45c (diff)
downloadhaskell-01299ca83996710ec1572c952917157b1c2d139e.tar.gz
Synchronise ghci-package version with ghc-package
In order to simplify the task, the version munging logic has been radically simplified: Previously, in cases where the version contained dates as version components, the build-system would munge the version of the stage1 ghc package before registering the `ghc` package. However, this hack was already questionable at the time of its introduction (c.f. 7b45c46cbabe1288ea87bd9b94c57e010ed17e60). Simplifying the build-systems by avoiding such hacks may also help the shaking-up-ghc effort. So now we simply munge directly via the `.cabal` files, which gives a simpler picture, as now every stage is munged the same. Munging is only active when the first patch-level version component is a date. So stable snapshots and release candidates are unaffacted (as those have the date in the second patch-level version component) Reviewers: simonmar, bgamari, austin, thomie, ezyang Reviewed By: bgamari, thomie, ezyang Differential Revision: https://phabricator.haskell.org/D1673
Diffstat (limited to 'boot')
-rwxr-xr-xboot6
1 files changed, 5 insertions, 1 deletions
diff --git a/boot b/boot
index 2ce7acbb06..18d43aabda 100755
--- a/boot
+++ b/boot
@@ -144,7 +144,10 @@ sub boot_pkgs {
for $package (@library_dirs) {
my $dir = &basename($package);
- my @cabals = glob("$package/*.cabal");
+ my @cabals = glob("$package/*.cabal.in");
+ if ($#cabals < 0) {
+ @cabals = glob("$package/*.cabal");
+ }
if ($#cabals > 0) {
die "Too many .cabal file in $package\n";
}
@@ -155,6 +158,7 @@ sub boot_pkgs {
if (-f $cabal) {
$pkg = $cabal;
$pkg =~ s#.*/##;
+ $pkg =~ s/\.cabal.in$//;
$pkg =~ s/\.cabal$//;
$top = $package;
$top =~ s#[^/]+#..#g;