Commit graph

511 commits

Author SHA1 Message Date
Filipe da Silva Santos
c7644898c7 lang/ghc: Add a patch for correctly selecting a LLVM backend.
PR:		261798
MFH:		2022Q1
2022-02-13 21:23:45 +03:00
Dmitry Marakasov
dc37cfca2d lang/ghc: add NO_CCACHE=yes
This fixes the following build error with ccache (probably caused
by CCACHE_DIR not propagated through the build properly):

    [1 of 1] Compiling Main             ( Setup.hs, Setup.o )
    ccache: error: Failed to create directory /nonexistent/.ccache/6/3: Permission denied
    `clang' failed in phase `Assembler'. (Exit code: 1)

Approved by:	portmgr blanket
2021-11-17 23:48:27 +03:00
Gleb Popov
0c6dace087 lang/ghc: Update bootstrap compiler to 8.10.7 2021-10-17 23:24:26 +03:00
Gleb Popov
b41e25946a lang/ghc: Remove unused stuff and make cosmetic changes. 2021-10-17 23:24:25 +03:00
Gleb Popov
852fb7f3bc lang/ghc: Remove powerpc64 support.
It was reported as broken by pkubaj.
2021-10-17 23:24:25 +03:00
Jimmy Olgeni
4460cf727a *: fix tab vs. space issues, and comments according to the guide. 2021-10-16 11:51:39 +02:00
Mikael Urankar
c57db8f4de lang/ghc: Update arm bootstrap to 8.10.7
Update arm bootstrap to 8.10.7
Pass --host to the configure script otherwise ghc thinks we are crosscompiling (only affects armv6 and armv7)
Remove CONFIGURE_ENV, it is now handled in patch-aclocal.m4 (submitted upstream as https://gitlab.haskell.org/ghc/ghc/-/merge_requests/6599)

Approved by:		arrowd
Differential Revision:	https://reviews.freebsd.org/D32155
2021-10-01 14:51:04 +02:00
Rene Ladan
620968a43a cleanup: drop support for EOL FreeBSD 11.X
Search criteria used:
- 11.4
- OSREL*
- OSVER*
- *_FreeBSD_11

Input from:
- adridg: devel/qca-legacy
- jbeich: _WITH_DPRINTF, _WITH_GETLINE, GNU bfd workarounds
- sunpoet: security/p5-*OpenSSL*

Reviewed by:	doceng, kde, multimedia, perl, python, ruby, rust
Differential Revision: https://reviews.freebsd.org/D32008
Test Plan: make index
2021-09-30 23:23:30 +02:00
Gleb Popov
f5c3589401 lang/ghc: Update to 8.10.7 2021-08-29 16:37:32 +03:00
Gleb Popov
707da9c7da lang/ghc: Update to 8.10.6 2021-08-29 16:37:32 +03:00
Gleb Popov
3036f585e6 lang/ghc: Fix build with new Sphinx.
PR:		257411
2021-07-27 21:50:20 +03:00
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