Commit graph

32 commits

Author SHA1 Message Date
pho
becb2c910c lang/ghc90: Use ${_PKGSRC_MKPIE} instead of ${_OPSYS_SUPPORTS_MKPIE}
It's the variable that indicates if MKPIE is requested and feasible on the
platform. In fact I originally wrote a condition mentioning
${_PKGSRC_MKPIE}, but it somehow got lost while I was refactoring the code.
2022-02-24 09:18:09 +00:00
pho
61d4087764 Correct wrong checksums for the Darwin/x86_64 bootkit 2022-02-17 10:18:06 +00:00
pho
b013558cd5 When the LLVM backend is enabled, use clang as the assembler
This turned out to be necessary because LLVM 13 emits assembly code that is
incompatible with "as" from Binutils < 2.36.
2022-02-06 05:31:57 +00:00
pho
68127c0fba Update to GHC 9.0.2
* Now the package supports PKGSRC_MKPIE.
* The full list of changes is too long to paste here. See
  https://downloads.haskell.org/~ghc/9.0.2/docs/html/users_guide/9.0.2-notes.html
2022-01-18 02:22:49 +00:00
pho
3c01a46a0a revbump for libffi 2021-12-18 19:14:41 +00:00
adam
b6d9bd86bc revbump for icu and libffi 2021-12-08 16:01:42 +00:00
pho
b5717802ca Replace RMD160 checksums with BLAKE2s checksums 2021-11-21 03:38:10 +00:00
nia
1361343c24 lang: Remove SHA1 hashes for distfiles 2021-10-07 14:20:45 +00:00
jperkin
103a2827c5 ghc90: Switch to fixed SunOS bootstrap.
Also apply the "cp -p" fix from other versions, removing the need for ln
workarounds on OmniOS.
2021-09-30 15:32:53 +00:00
nia
7fad5b5799 Disable MKPIE in Haskell.
Presumably there's a way to make this work, but it probably requires
changes to the bootstrap kits.
2021-09-27 14:30:47 +00:00
jperkin
85f781e37e ghc90: Ensure bsd.prefs.mk is included.
Fixes builds on OS where PKG_SUPPORTED_OPTIONS is not defined, so
bsd.options.mk is not pulled in, but OPSYS is still tested.
2021-07-14 09:15:35 +00:00
pho
6ed2e49402 Do not include ../../lang/llvm/buildlink3.mk
GHC only needs bin/opt and bin/llc but not libLLVM, so inheriting its dependencies does not make sense.
2021-05-23 06:33:23 +00:00
wiz
3a0e0b825e ghc90: remove conflicts line
The PKGNAME is ghc-* so there is no point in a conflict with ghc-*
2021-05-22 23:08:45 +00:00
pho
2522f28c31 Add upstream URLs in the patch comment 2021-05-22 09:10:36 +00:00
pho
c2eee27828 Built a bootkit for NetBSD/aarch64
Also the package is now more explicit about LLVM. It used to invoke whatever llc(1) and opt(1) found in the $PATH when -fllvm is passed to the compiler, though it's not the default backend. Now LLVM is an explicit, optional dependency on platforms where NCG backend is available, and a mandatory dependency on others.

Note that the LLVM backend tends to produce faster code but it runs significantly slower than NCG. AArch64 support of NCG is being worked on, but it hasn't been merged to the 9.0 branch yet (or even the master branch).
2021-05-21 01:45:00 +00:00
pho
5d721a48ce Add upstream URLs to patch comments 2021-05-05 09:18:52 +00:00
pho
d87dd78b7b Don't use "response file" while invoking CC and LD
Our tool wrappers don't look into response files, so common mistakes
such as forgetting to declare dependencies have been overlooked by
our buildlink framework. With the change that will no longer happen.
2021-05-01 09:04:57 +00:00
pho
e43641f992 Rebuilt the bootkit for FreeBSD/amd64
It was accidentally depending on pkgsrc gmp.
2021-04-30 15:14:30 +00:00
pho
9c3e0ac1f4 Rebuilt the bootkit for FreeBSD/i386
It was accidentally depending on pkgsrc gmp.
2021-04-30 08:10:24 +00:00
pho
e71d477508 Rebuilt the bootkit for Darwin/x86_64
It was accidentally depending on pkgsrc gmp.
2021-04-30 06:08:19 +00:00
pho
b5dfdf84c3 Add a bootkit for SunOS/x86_64
Also fixed a bug in the previous commit which would produce
non-installable bootkits.
2021-04-30 03:05:30 +00:00
pho
0a69a01785 Apply jperkin@'s $ORIGIN removal patch 2021-04-29 07:02:42 +00:00
pho
6f51e3cece Swith to CHECK_SHLIBS_SUPPORTED=no from individual CHECK_SHLIBS_SKIP list (pkg/56125)
Our binary packages have been broken because of bad "REQUIRES"
entries: GHC uses $ORIGIN in rpath but mk/pkgformat/pkg/metadata.mk
uses ldd(1) to extract the list of required .so objects, which causes
them to be wrongly expanded.
2021-04-27 13:55:25 +00:00
pho
85faa55f9d Added a bootkit for Darwin/x86-64 2021-04-27 11:59:42 +00:00
pho
5a60420e8b Added a bootkit for FreeBSD/amd64 2021-04-27 00:48:17 +00:00
pho
3e9c171043 Add a bootkit for FreeBSD-*-i386 2021-04-26 07:41:21 +00:00
pho
13e4fbd350 Drop run-time dependency on perl
GHC has stopped requiring perl since 8.2.1 release. The last component
written in Perl was the evil splitter (-fsplit-objs), which has been
superseded by -fsplit-sections. Hooray!
2021-04-23 00:08:02 +00:00
pho
48bcbf609e Enable PaX MPROTECT and ASLR for everything but ghc-iserv and ghc-iserv-prof
Now that allocateExec() in rts/sm/Storage.c uses libffi to map executable
pages, we no longer have to disable these protections unless the RTS linker
is to be used.
2021-04-22 18:15:00 +00:00
pho
210df64d96 Implement getNumberOfProcessors() for NetBSD 2021-04-22 14:20:23 +00:00
nia
0bd4fcfdd6 ghc90: Fix buildlink3 file 2021-02-25 10:35:48 +00:00
ryoon
9900549fa3 ghc90: Fix COMMENT 2021-02-16 15:41:36 +00:00
ryoon
04fe00b27b lang/ghc90: import ghc-9.0.1
GHC: The Glasgow Haskell Compiler.

The Glasgow Haskell Compiler is a robust, fully-featured, optimising
compiler for the functional programming language Haskell 98
(http://www.haskell.org). GHC compiles Haskell to either native code
or C. It implements numerous experimental language extensions to
Haskell, including concurrency, a foreign language interface, several
type-system extensions, exceptions, and so on. GHC comes with a
generational garbage collector, a space and time profiler, and a
comprehensive set of libraries.

This package provides the 9.0.x release series.
2021-02-09 13:18:36 +00:00