Commit graph

500 commits

Author SHA1 Message Date
Mikael Urankar
e099e7c8c3 lang/ghc: Fix build on aarch64
BINARY_ALIAS doesn't work anymore.
Pass the correct environment variables in the pre-configure target instead.

PR:		256605
Reported by:	tech-lists@zyxst.net
Approved by:	arrowd (previous version)
2021-06-24 18:00:25 +02:00
Gleb Popov
a98612489c lang/ghc: Add USES=iconv:patch,translit
We actually need iconv on the "configure" stage, but there is no such option.
The "translit" is here to force using libiconv from Ports.

Fixes:	4cb80ca6dd
2021-06-12 17:57:26 +03:00
Gleb Popov
9db3b6bbb6 lang/ghc: Workaround build failure on CURRENT.
PR:	256424

Reported by:	Filipe da Silva Santos <contact@shiori.com.br>
2021-06-12 13:14:10 +03:00
Gleb Popov
4cb80ca6dd lang/ghc: Update to 8.10.5 2021-06-12 13:14:09 +03:00
Mathieu Arnold
85737aec4a
Mk: Cleanup after moving apply-slist earlier. 2021-04-14 17:41:02 +02:00
Mathieu Arnold
135fdeebb9
all: Remove all other $FreeBSD keywords. 2021-04-06 16:31:13 +02:00
Mathieu Arnold
305f148f48
Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
Danilo G. Baio
8744bd011d lang/ghc: Generate PORTDOCS pkg-plist dynamically
This is the best approach for ports building its documentation with Sphinx in
html and will save time on future Sphinx updates.

Approved by:	portmgr blanket
2021-03-26 00:44:39 +00:00
Gleb Popov
9203750bd4 lang/ghc: Remove unused patches and add some comments on bootstrap generation. 2021-03-18 10:52:27 +00:00
Danilo G. Baio
cc045a1858 textproc/py-sphinx: Update to 3.5.2
Add patches to fix Sphinx consumers; The most common issues are related with
pkg-plist, the output files for Sphinx changes between versions, keep this
dynamically is the better approach and will save time in future Sphinx updates.

Changelog:  https://github.com/sphinx-doc/sphinx/blob/v3.5.2/CHANGES

PR:		254185
Approved by:	python (with hat)
Exp-run by:	antoine
2021-03-16 21:10:07 +00:00
Mikael Urankar
ed3b34db17 lang/ghc: Update arm bootstrap
The ghc bootstrap (v8.6.5) on arm requires devel/llvm60,
this llvm version is obsolete and still uses python2.7 to build,
update the bootstrap to a newer version (v8.10.4) that requires devel/llvm90

Bump bootstrap to 8.10.4 on arm
Bump minimum required FreeBSD version, 12.1 is not supported anymore
Drop unecessary RUN_DEPENDS
Collapse arm ARCH conditionnal

Approved by:	arrowd
Differential Revision:	https://reviews.freebsd.org/D28906
2021-03-03 17:48:44 +00:00
Gleb Popov
ac538f6432 lang/ghc: Update to 8.10.4 2021-02-16 07:16:58 +00:00
Mikael Urankar
143fad9226 lang/ghc: use CONFIGURE_ENV instead of BINARY_ALIAS on arm
GHC saves the llvm command name (llc, opt, clang) found at compile time in its
settings file.
Using BINARY_ALIAS allows lang/ghc to build but breaks
ghc ports (devel/hs-cabal-install for example)
GHC configure script accepts now to define LLC, OPT, CLANG as
environment variable, switch to it.

<no location info>: error:
    Warning: Couldn't figure out LLVM version!
             Make sure you have installed LLVM 9

<no location info>: error: ghc: could not execute: opt-9.0

PR:		252166, 253367
Approved by:	portmgr (tier-2 blanket)
2021-02-11 16:37:41 +00:00
Antoine Brodin
789eca88c0 Do not include bsd.port.options.mk twice 2021-02-01 20:00:41 +00:00
Mikael Urankar
06ae43f2b2 lang/ghc: arm requires clang90 to build
PR:		252166
Approved by:	portmgr (tier-2 blanket)
2021-01-28 07:38:20 +00:00
Gleb Popov
ea5e89e25b lang/ghc: Update to 8.10.3 and bump devel/hs-cabal-install.
While there, add GHC_VERSION and CABAL_VERSION to the PLIST_SUB to reduce pkg-plist diffs between updates.
2021-01-01 15:03:48 +00:00
Mikael Urankar
04b29d9f59 lang/ghc: fix build on aarch64
checking for llc-6.0... no
checking for llc... no
checking for opt-6.0... no
checking for opt... no

checking for llc-9... no
checking for llc-9.0... no
checking for llc... no
checking for opt-9... no
checking for opt-9.0... no
checking for opt... no

PR:		252166
Approved by:	portmgr (tier-2 blanket)
2020-12-31 17:03:27 +00:00
Mikael Urankar
0848ac6764 lang/ghc: regen extra-patch-aclocal.m4 used for aarch64
Approved by:	portmgr (tier-2 blanket)
2020-12-22 16:37:43 +00:00
Gleb Popov
a5768ebed3 lang/ghc: Update to 8.10.2 2020-08-21 10:50:41 +00:00
Gleb Popov
12047f2917 lang/ghc: Switch to folly static pkg-plist and add aux Makefile target to poke
with OPTIONs variety.
2020-08-18 19:09:36 +00:00
Gleb Popov
98c623c61e lang/ghc: Switch to static pkg-plist for documentation files. 2020-08-17 12:26:10 +00:00
Gleb Popov
0048486f22 lang/ghc: Remove some now unused variables. 2020-08-16 20:00:25 +00:00
Gleb Popov
f1203fad42 lang/ghc: Remove support for building old versions by overriding GHC_VERSION variable.
It turned out that I never used this feature since it was added.
2020-08-16 16:26:24 +00:00
Gleb Popov
1f22b36313 lang/ghc: Add a workaround patch to fix build with LLD 10 (12-STABLE and 13-CURRENT)
Reported by:	David Wolfskill <david@catwhisker.org>
2020-08-16 14:22:04 +00:00
Gleb Popov
b299244952 lang/ghc: Update to 8.10.1.
As usual, along with the compiler, many Haskell packages are updated as well.
2020-08-16 07:56:18 +00:00
Gleb Popov
67da1af194 lang/ghc: Update to 8.8.4 2020-08-04 09:01:45 +00:00
Niclas Zeising
b48b7783c9 lang/ghc: Remove stale comment
Remove stale comment from lang/ghc about gcc shipping a libffi.so of its
own, this is no longer the case.  This should have been part of r541237 and
r541232.

PR:		247028 (for tracking)
Reported by:	arrowd, danfe
2020-07-05 08:42:38 +00:00
Niclas Zeising
35cbe487f8 lang/ghc: Don't hardcode libffi shlib version
Don't hardcode the libffi shared library version in lang/ghc makefile.
This fixes the build after devel/libffi was updated.
This was missed in r541232

PR:		247028 (for tracking)
2020-07-04 21:37:19 +00:00
Niclas Zeising
0e32330f15 Chanse update of devel/libffi
Chase the devel/libffi update
Bump portrevision of all dependent ports to chace shard library version bump
in libffi.
Update LIB_DEPENDS lines where needed to not require a specific version of
libffi.so.

PR:		247028 (for tracking)
2020-07-04 18:11:42 +00:00
Gleb Popov
48e8d5ce03 lang/ghc: Depend on newer LLVM 7.0, for which upstream declares support.
PR:		246988
Submitted by:	mikael
2020-06-04 19:31:41 +00:00
Gleb Popov
289574e39b lang/ghc: Remove legacy mk files, there are no users left in the tree. 2020-05-28 13:04:59 +00:00
Gleb Popov
eeca407697 lang/ghc: Print a error message if BOOT option is enabled, but the user has no "ghc" in PATH.
PR:		246800
Submitted by:	software@bertram-scharpf.de
2020-05-28 12:58:56 +00:00
Gleb Popov
03d81dda1c lang/ghc: Add patch for timer machinery.
PR:		241849
Submitted by:	Kevin Zheng <kevinz5000@gmail.com>
2020-05-26 20:18:41 +00:00
Gleb Popov
cf857adccf lang/ghc: Correct distinfo entry for ghc-8.6.5-boot-powerpc64-freebsd-elfv2.tar.xz file
PR:		246224
Submitted by:	pkubaj
2020-05-06 07:08:03 +00:00
Gleb Popov
19c26acbf0 Upgrade lang/ghc to 8.8.3 and many Haskell ports along the way.
PR:		244784
Submitted by:	Evilham <contact@evilham.com> (some ports)
2020-05-04 18:08:10 +00:00
Gleb Popov
a18110d6db lang/ghc: Use 8.6.3 as bootstrap on PowerPC elfv1.
Submitted by:	mikael
Reported by:	pkubaj
2020-03-27 18:57:28 +00:00
Gleb Popov
b12f70d5d6 lang/ghc: Don't use GCC on ARM arches. Cleanup Makefile.
PR:		245057
Submitted by:	mikael
2020-03-27 17:45:38 +00:00
Gleb Popov
be093f3be9 Update bootstraps for ARM architectures, get rid of GCC on powerpc64 elfv2/
PR:		245057
Submitted by:	pkubaj, mikael
2020-03-26 18:33:20 +00:00
Gleb Popov
ceef1b1ce6 lang/ghc: Unhreak on powerpc64 by using new bootstrap compiler.
PR:		244788
Submitted by:	pkubaj
2020-03-13 18:15:40 +00:00
Gleb Popov
f43bdb6115 Follow-follow-up for r528190.
PR:		244556
Submitted by:	Evilham <contact@evilham.com>
Differential Revision:	https://reviews.freebsd.org/D24023
2020-03-11 17:46:13 +00:00
Gleb Popov
deff720a47 lang/ghc: Follow-up fix for r528190.
PR:		244556
Reported by:	Evilham <contact@evilham.com>, pkubaj
2020-03-11 05:21:23 +00:00
Gleb Popov
29474796df lang/ghc: Fix build on CURRENT.
PR:		244556
Submitted by:	Evilham <contact@evilham.com>
Differential Revision:	https://reviews.freebsd.org/D24014
2020-03-10 18:45:38 +00:00
Gleb Popov
3aafe25999 lang/ghc: Install haddock even when WITH_DOCS=NO. Do this by actually building WITH_DOCS=YES and omitting docs during staging.
Also, don't pack documentation when creating bootstrap tarball.
2020-02-21 08:09:59 +00:00
Gleb Popov
824fb9995a lang/ghc: Now that we use different bootstraps, do not apply ino64 hack anymore.
Unbreaks build on 12.1+

PR:		244217
2020-02-19 18:30:06 +00:00
Gleb Popov
9f77bcc2e2 Fix FreeBSD-12 i386 bootstrap.
Reported by:	pkg-fallout
2020-02-18 16:49:16 +00:00
Gleb Popov
4f8e82f0c5 Reroll r526091:
Use FreeBSD-11 compiled bootstrap on FreeBSD-11 and 12-compiled one on FreeBSD-12.
2020-02-16 11:34:29 +00:00
Gleb Popov
9ff1b3d00d Revert r526091. I uploaded wrong bootstraps. 2020-02-14 15:30:32 +00:00
Gleb Popov
9936f1c258 Use FreeBSD-11 compiled bootstrap on FreeBSD-11 and 12-compiled one on FreeBSD-12.
Another prerequisite for GHC 8.8.2.
2020-02-14 06:40:42 +00:00
Gleb Popov
d17eedbd77 lang/ghc: Upgrade bootstrap compiler for x86 arch to 8.6.5. This is a prerequisite for updating GHC itself. 2020-02-03 19:51:03 +00:00
Gleb Popov
451c74c781 lang/ghc: Unbreak on powerpc64-elfv1.
Submitted by:	Mikael Urankar <mikael.urankar@gmail.com>
Reviewed by:	pkubaj
Differential Revision:	https://reviews.freebsd.org/D22633
2019-12-04 05:31:55 +00:00