From f18fdcb41ea0524542edea6c3053197394403919 Mon Sep 17 00:00:00 2001 From: Mitch Tishmack Date: Sun, 19 Feb 2017 14:39:48 -0600 Subject: testing/ghc: Split ghc into ghc and ghc-dev, add post-install script While here ensure that strip --strip-unneeded is called on all shared libraries and static archives. This reduces the overall install sizes a skosh. The larger win here, is stripping out the profiled debugging libraries from the default ghc package. If someone wanted to debug now they will need to install ghc-dev to get that RTS and debug libraries. Realistically this only affects those users that are building packages that need to debug. As well as future enhancements to the ghc/haskell which will build packages with profiled libraries as well. But this compromise for the overall install size is preferable to users installing libraries they likely won't need/use and overal bandwidth that consumes. Since we install via make install DESTDIR=... we need to regenerate the ghc pkg db at post install time. [TT: flatten commits] --- testing/ghc/ghc.post-install | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 testing/ghc/ghc.post-install (limited to 'testing/ghc/ghc.post-install') diff --git a/testing/ghc/ghc.post-install b/testing/ghc/ghc.post-install new file mode 100755 index 0000000000..43a1034bf6 --- /dev/null +++ b/testing/ghc/ghc.post-install @@ -0,0 +1,5 @@ +#!/bin/sh +# Force ghc-pkg to recache the base installed packages. Necessary as we +# did make install DESTDIR=... so the cache has invalid locations. + +ghc-pkg recache -- cgit v1.2.3