Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jberryman
GHC
Commits
e05f9de1
Commit
e05f9de1
authored
Sep 14, 2007
by
Ian Lynagh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refer to "boot" libs, not "core" libs
parent
a28ba79a
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
21 additions
and
33 deletions
+21
-33
Makefile
Makefile
+2
-2
README
README
+2
-2
boot
boot
+2
-2
darcs-all
darcs-all
+3
-3
libraries/Makefile
libraries/Makefile
+1
-1
libraries/boot-packages
libraries/boot-packages
+0
-0
libraries/ifBuildable.hs
libraries/ifBuildable.hs
+2
-2
mk/config.mk.in
mk/config.mk.in
+1
-7
mk/package.mk
mk/package.mk
+1
-7
push-all
push-all
+7
-7
No files found.
Makefile
View file @
e05f9de1
...
...
@@ -66,10 +66,10 @@ endif
SUBDIRS
=
gmp includes compat utils driver docs rts libraries compiler
# Sanity check that all the
core
libraries are in the tree, to catch
# Sanity check that all the
boot
libraries are in the tree, to catch
# failure to run darcs-all.
check-packages
:
@
for
d
in
`
cat
libraries/
core
-packages
`
;
do
\
@
for
d
in
`
cat
libraries/
boot
-packages
`
;
do
\
if
test
!
-d
libraries/
$$
d
;
then
\
echo
"Looks like you're missing libraries/
$$
d,"
;
\
echo
"maybe you haven't done './darcs-all get'?"
;
\
...
...
README
View file @
e05f9de1
...
...
@@ -27,7 +27,7 @@ There are two ways to get a source tree:
ghc-<version>-src-extralibs.tar.bz2
You only need the first one, which contains GHC itself and
the "
core
" libraries.
the "
boot
" libraries.
The extralibs package contains a bunch of optional libraries. If
you want, you can unpack this over the top of your source tree, and
...
...
@@ -52,7 +52,7 @@ There are two ways to get a source tree:
$ chmod +x darcs-all
$ ./darcs-all get
This grabs the "
core
" packages by default. To get the full set of
This grabs the "
boot
" packages by default. To get the full set of
packages, instead say
$ ./darcs-all --extra get
...
...
boot
View file @
e05f9de1
#! /bin/sh
set
-e
# Check that we have all
core
packages.
for
dir
in
`
cat
libraries/
core
-packages
`
# Check that we have all
boot
packages.
for
dir
in
`
cat
libraries/
boot
-packages
`
do
if
test
!
-d
libraries/
$dir
then
...
...
darcs-all
View file @
e05f9de1
...
...
@@ -71,7 +71,7 @@ sub darcsall {
message
"
==
$dir
not present or not a repository; skipping
";
}
}
for
my
$pkg
(`
cat libraries/
core
-packages libraries/extra-packages
`)
{
for
my
$pkg
(`
cat libraries/
boot
-packages libraries/extra-packages
`)
{
chomp
$pkg
;
if
(
-
d
"
libraries/
$pkg
")
{
darcs
(
@
_
,
"
--repodir
",
"
libraries/
$pkg
");
...
...
@@ -112,10 +112,10 @@ sub darcsget {
my
@packages
;
if
(
$extra
)
{
@packages
=
`
cat
core
-packages extra-packages
`;
@packages
=
`
cat
boot
-packages extra-packages
`;
}
else
{
@packages
=
`
cat
core
-packages
`;
@packages
=
`
cat
boot
-packages
`;
}
for
my
$pkg
(
@packages
)
{
...
...
libraries/Makefile
View file @
e05f9de1
...
...
@@ -240,7 +240,7 @@ stamp/configure.library.build$(CONFIGURE_STAMP_EXTRAS).%: %/setup/Setup
&&
touch
$@
||
touch
$*
/unbuildable
# We don't touch $@ if configure failed as we would prefer to try
# configuring it next time round, rather than assuming it'll still fail.
# This is particularly important for
core
libs, where failure means the
# This is particularly important for
boot
libs, where failure means the
# build dies!
# Build the library using 'make'
...
...
libraries/
core
-packages
→
libraries/
boot
-packages
View file @
e05f9de1
File moved
libraries/ifBuildable.hs
View file @
e05f9de1
-- Returns exitcode 0 if the given package is buildable or is a
core
package,
-- Returns exitcode 0 if the given package is buildable or is a
boot
package,
-- and 1 otherwise.
module
Main
(
main
)
where
...
...
@@ -31,5 +31,5 @@ doit package
getMustBeBuildablePackages
::
IO
[
String
]
getMustBeBuildablePackages
=
do
xs
<-
readFile
"../
core
-packages"
=
do
xs
<-
readFile
"../
boot
-packages"
return
$
filter
(
"readline"
/=
)
$
lines
xs
mk/config.mk.in
View file @
e05f9de1
...
...
@@ -396,13 +396,7 @@ StripLibraries=NO
# These are the URL patterns that Haddock uses to generate the "Source
# File" links on each page.
CorePackageSourceURL
=
http://darcs.haskell.org/ghc-6.6/packages/
$(PACKAGE)
/%
{
FILE
}
ExtraPackageSourceURL
=
http://darcs.haskell.org/packages/
$(PACKAGE)
/%
{
FILE
}
# These are the packages required to be present in order to bootstrap GHC
# NB. must be synced with libraries/core-packages
CorePackages
=
base Cabal haskell98 readline regex-base regex-compat
\
regex-posix parsec stm template-haskell unix Win32
PackageSourceURL
=
http://darcs.haskell.org/packages/
$(PACKAGE)
/%
{
FILE
}
# ----------------------------------------------------------------------------
# Object-file splitting
...
...
mk/package.mk
View file @
e05f9de1
...
...
@@ -279,19 +279,13 @@ html :: $(HTML_DOC)
extraclean
::
$(RM)
-rf
$(HTML_DIR)
ifneq
"$(findstring $(PACKAGE), $(CorePackages))" ""
HaddockSourceURL
=
$(CorePackageSourceURL)
else
HaddockSourceURL
=
$(ExtraPackageSourceURL)
endif
$(HTML_DOC)
:
$(HS_PPS)
@
$(INSTALL_DIR)
$(HTML_DIR)
$(HADDOCK)
$(HADDOCK_OPTS)
-h
-o
$(HTML_DIR)
$(HS_PPS)
\
--package
=
$(PACKAGE)
\
--dump-interface
=
$(PACKAGE)
.haddock
\
--use-index
=
../doc-index.html
--use-contents
=
../index.html
\
--source-module
=
$(
Haddock
SourceURL)
\
--source-module
=
$(
Package
SourceURL)
\
$(
foreach
pkg,
$(PACKAGE_DEPS)
,
\
--read-interface
=
../
$(pkg)
,../
$(pkg)
/
$(pkg)
.haddock
)
...
...
push-all
View file @
e05f9de1
...
...
@@ -11,8 +11,8 @@ my $ignore_failure = 0;
# --checked-out says we are pushing to a checked out tree
my
$checked_out
=
0
;
# --
core-only says we only want to push core
libs, not extralibs
my
$
core
_only
=
0
;
# --
boot-only says we only want to push boot
libs, not extralibs
my
$
boot
_only
=
0
;
# --push or --pull?
my
$push_pull
=
"
push
";
...
...
@@ -49,9 +49,9 @@ sub pushall {
message
"
==
$dir
not present or not a repository; skipping
";
}
}
my
$library_lists
=
$
core
_only
?
"
libraries/
core
-packages
"
:
"
libraries/
core
-packages libraries/extra-packages
";
my
$library_lists
=
$
boot
_only
?
"
libraries/
boot
-packages
"
:
"
libraries/
boot
-packages libraries/extra-packages
";
for
my
$pkg
(`
cat
$library_lists
`)
{
chomp
$pkg
;
$dir
=
"
libraries/
$pkg
";
...
...
@@ -83,8 +83,8 @@ sub main {
elsif
(
$arg
eq
"
--checked-out
")
{
$checked_out
=
1
;
}
elsif
(
$arg
eq
"
--
core
-only
")
{
$
core
_only
=
1
;
elsif
(
$arg
eq
"
--
boot
-only
")
{
$
boot
_only
=
1
;
}
elsif
(
$arg
eq
"
--push
")
{
$push_pull
=
"
push
";
...
...
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