Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
jberryman
GHC
Commits
eb39f720
Commit
eb39f720
authored
Jul 04, 2010
by
Ian Lynagh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use Cabal to configure the dist-install ghc-pkg; fixes trac #4156
parent
8354d614
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
10 deletions
+19
-10
ghc.mk
ghc.mk
+1
-0
rules/build-prog.mk
rules/build-prog.mk
+5
-1
utils/ghc-pkg/ghc-pkg.cabal
utils/ghc-pkg/ghc-pkg.cabal
+10
-4
utils/ghc-pkg/ghc.mk
utils/ghc-pkg/ghc.mk
+3
-5
No files found.
ghc.mk
View file @
eb39f720
...
...
@@ -404,6 +404,7 @@ ghc/stage2/package-data.mk: compiler/stage2/package-data.mk
# libraries
utils/haddock/dist/package-data.mk
:
compiler/stage2/package-data.mk
utils/ghc-pkg/dist-install/package-data.mk
:
compiler/stage2/package-data.mk
utils/hsc2hs/dist-install/package-data.mk
:
compiler/stage2/package-data.mk
utils/compare_sizes/dist/package-data.mk
:
compiler/stage2/package-data.mk
...
...
rules/build-prog.mk
View file @
eb39f720
...
...
@@ -50,6 +50,10 @@ define build-prog-helper
$(call
all-target,$1,all_$1_$2)
ifeq
"$$($1_USES_CABAL)" "YES"
$1_$2_USES_CABAL
=
YES
endif
ifeq
"$$($1_$2_USES_CABAL)" "YES"
ifneq
"$$(NO_INCLUDE_PKGDATA)" "YES"
include
$1/$2/package-data.mk
endif
...
...
@@ -57,7 +61,7 @@ endif
$(call
package-config,$1,$2,$3)
ifeq
"$$($1_USES_CABAL)$$($1_$2_VERSION)" "YES"
ifeq
"$$($1_
$2_
USES_CABAL)$$($1_$2_VERSION)" "YES"
$1_$2_DISABLE
=
YES
endif
...
...
utils/ghc-pkg/ghc-pkg.cabal
View file @
eb39f720
...
...
@@ -21,6 +21,7 @@ Flag base3
Executable ghc-pkg
Main-Is: Main.hs
Other-Modules: Version
Extensions: CPP, ForeignFunctionInterface
if flag(base4)
...
...
@@ -32,14 +33,19 @@ Executable ghc-pkg
if flag(base3) || flag(base4)
Build-Depends: directory >= 1 && < 1.1,
process >= 1 && < 1.1,
pretty >= 1 && < 1.1
process >= 1 && < 1.1
if impl(ghc < 6.9)
Build-Depends: extensible-exceptions
Build-Depends: haskell98, filepath, Cabal, bin-package-db
Build-Depends: haskell98,
filepath,
Cabal,
binary,
bin-package-db,
bytestring
if !os(windows)
Build-Depends: unix
Build-Depends: unix,
terminfo
if os(windows)
c-sources: CRT_noglob.c
utils/ghc-pkg/ghc.mk
View file @
eb39f720
...
...
@@ -78,12 +78,10 @@ $(eval $(call clean-target,utils/ghc-pkg,dist,\
# -----------------------------------------------------------------------------
# Building ghc-pkg with stage 1
utils/
ghc-pkg_dist-install_USES_CABAL
=
YES
utils/
ghc-pkg_PACKAGE
=
ghc-pkg
utils/
ghc-pkg_dist-install_PROG
=
ghc-pkg
utils/
ghc-pkg_dist-install_MODULES
=
Main Version
utils/
ghc-pkg_dist-install_DEPS
=
Cabal bin-package-db
ifeq
"$(Windows)" "NO"
utils/
ghc-pkg_dist-install_DEPS
+=
terminfo
endif
utils/
ghc-pkg_dist-install_SHELL_WRAPPER
=
YES
utils/
ghc-pkg_dist-install_INSTALL_SHELL_WRAPPER
=
YES
utils/
ghc-pkg_dist-install_INSTALL_SHELL_WRAPPER_NAME
=
ghc-pkg-
$(ProjectVersion)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment