Commit graph

465 commits

Author SHA1 Message Date
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
Gleb Popov
75a64b54e2 Use HTTPS in pkg-descr's of Haskell ports. 2019-08-04 09:25:28 +00:00
Piotr Kubaj
2e2e331074 lang/ghc: fix build on powerpc64 elfv1
Dtrace doesn't seem to work on elfv1 powerpc64 (at least on 12.0-RELEASE).

Also properly detect when running on elfv1 and elfv2.

PR:		239193
Approved by:	arrowd (maintainer), tcberner (mentor)
Differential Revision:	https://reviews.freebsd.org/D20995
2019-08-01 18:58:14 +00:00
Gerald Pfeifer
ea8c8ec7da Bump PORTREVISION for ports depending on the canonical version of GCC
as defined in Mk/bsd.default-versions.mk which has moved from GCC 8.3
to GCC 9.1 under most circumstances now after revision 507371.

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
   c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, everything INDEX-11 shows with a dependency on lang/gcc9 now.

PR:		238330
2019-07-26 20:46:53 +00:00
Gleb Popov
749dd5ec4a lang/ghc: Adjust OSVERSION checks for powerpc64.
Submitted by:	Mikael Urankar <mikael.urankar@gmail.com>
2019-07-11 09:44:39 +00:00
Gleb Popov
0ef93fd866 lang/ghc: Add support for ELFv2 on powerpc64.
Submitted by:	Mikael Urankar <mikael.urankar@gmail.com>
Differential Revision:	https://reviews.freebsd.org/D20872
2019-07-07 15:45:46 +00:00
Gleb Popov
e0165fa8da lang/ghc: Remove --enable-dtrace=0 for newer GHCs, seem to be working now.
PR:		228727
2019-07-07 11:39:18 +00:00
Gleb Popov
1f97c687a7 lang/ghc: Makefile cleanup for tier2 arches.
Submitted by:	Mikael Urankar <mikael.urankar@gmail.com>
Differential Revision:	https://reviews.freebsd.org/D20860
2019-07-07 07:38:41 +00:00
Gleb Popov
642d12c396 lang/ghc: Upgrade to 8.6.5.
Approved by:	tcberner (mentor, implicit)
2019-06-03 13:46:44 +00:00
Gleb Popov
55deb88353 lang/ghc: Update to 8.6.4 and bump PORTREVISIONs for Haskell ports.
While there, fix build with DOCS=off.

Approved by:	tcberner (mentor)
Differential Revision:	https://reviews.freebsd.org/D20464
2019-06-02 09:02:21 +00:00
Gleb Popov
0402fd9082 Merge lang/ghcXXX ports into lang/ghc.
Remove OPTIONS support from library Haskell ports.
Do not install documentation by library Haskell ports.
Remove deprecation notice from library ports, that still needed.

PR:		224083
Approved by:	tcberner (mentor)
Differential Revision:	https://reviews.freebsd.org/D20247
2019-05-28 15:53:04 +00:00
Gleb Popov
6dc2e22e2d Introduce USES=cabal and use it to build Haskell applications.
PR:		230186
Reviewed by:	mat, tcberner
Approved by:	tcberner (mentor)
Differential Revision:	https://reviews.freebsd.org/D19730
2019-05-09 14:39:30 +00:00
Gleb Popov
19f0bd96ba Drop ARM support for GHC 8.4 and update bootstrap compilers to 8.6.3.
ARM support required LLVM 5, which is getting pushed out of ports.

Submitted by:	Mikael Urankar <mikael.urankar@gmail.com>
Approved by:	tcberner (mentor)
Differential Revision:	https://reviews.freebsd.org/D19722
2019-03-29 04:53:53 +00:00
Koop Mast
a5b8ef24e5 Remove expired webkit-gtk2 and webkit-gtk3 ports.
Bump graphics/variety deprecation date, there is a patch for a update which
uses webkit2-gtk3 in ports/236180 but I had issues that I could't fix.
2019-03-24 18:43:27 +00:00
Gleb Popov
7797578a91 bsd.cabal.mk: Add USE_BINUTILS for powerpc64 arch and add support for FLAGS_DEFAULT_${ARCH} variables.
PR:		236346
Submitted by:	 Piotr Kubaj <pkubaj@anongoth.pl>
Reviewed by:	Mikael Urankar <mikael.urankar@gmail.com>
Approved by:	tcberner (mentor)
2019-03-21 17:38:10 +00:00
Gleb Popov
6d4d84530d bsd.cabal.mk: Sanitize arch string for powerpc64
Submitted by:	Mikael Urankar <mikael.urankar@gmail.com>
Approved by:	tcberner (mentor)
2019-03-15 05:31:48 +00:00
Gleb Popov
8750d1188f lang/ghc: Port to powerpc64 architecture.
Submitted by:	Mikael Urankar <mikael.urankar_gmail.com>
Reviewed by:	arrowd, tcberner, mat
Approved by:	tcberner (mentor)
Differential Revision:	https://reviews.freebsd.org/D18886
2019-03-04 07:57:32 +00:00
Gleb Popov
c1feac4c92 bsd.hackage.mk: Remove entries for ports that are already deleted.
Approved by:	tcberner (mentor)
2019-02-19 09:09:22 +00:00
Gleb Popov
7fa38c4c12 lang/ghc: Since we already depend on binutils on ARM, use their strip, because our strip is incredibly slow.
PR:		234949
Submitted by:	Mikael Urankar <mikael.urankar@gmail.com>
Approved by:	tcberner (mentor)
Differential Revision:	https://reviews.freebsd.org/D18842
2019-01-16 08:04:03 +00:00
Gleb Popov
a7b1a5e261 lang/ghc: Fix create-stack-bindist target.
Approved by:	tcberner (mentor)
2019-01-14 17:57:44 +00:00
Gleb Popov
e2c3fdc1fd lang/ghc: Update to 8.6.3 and bump PORTREVISION's of all Haskell ports.
As usual, it is recommended to rebuild or reinstall all the
dependent ports and the lang/ghc port itself in one of the following
ways:

# portmaster -w -r ghc
  or
# portupgrade -fr lang/ghc

In case of pkg(8), it is probably safer to remove all the GHC-dependent
packages along with GHC and reinstall everything from scratch.  For
example:

# pkg query "%ro" ghc > ghc-pkgs.txt
# pkg delete -y lang/ghc
# pkg install -y `cat ghc-pkgs.txt`

During update some hs-* ports got two PORTREVISION bumps in a row. Other ports
got a PORTVERSION update together with one PORTREVISION bump. This is caused
by bulk-bumping PORTREVISION of all hs-* ports. There are a lot of them updated,
so figuring out which ones require a bump and which are not is too tedious.

Approved by:	tcberner (mentor)
Differential Revision:	https://reviews.freebsd.org/D18707
2019-01-06 12:18:06 +00:00
Gleb Popov
a6f762c977 GHC ports: use proper sorting for Makefile variables. Add create-stack-bindist target in bsd.ghc.mk.
Approved by:	tcberner (mentor)
Differential Revision:	https://reviews.freebsd.org/D18540
2018-12-17 06:04:49 +00:00
Gleb Popov
3486d09821 lang/ghc843: Use PLIST definition from bsd.ghc.mk.
Approved by:	tcberner (mentor)
2018-12-10 17:08:17 +00:00
Gleb Popov
27630df81e lang/ghc862: Add a port for GHC 8.6.2.
Reviewed by:	Mikael Urankar <mikael.urankar@gmail.com> (ARM bits), tcberner
Approved by:	tcberner (mentor)
Differential Revision:	https://reviews.freebsd.org/D18397
2018-12-08 18:47:16 +00:00
Gleb Popov
7bcee44538 Cleanup GHC ports:
- Switch to using ld instead of binutils ld or ld.bfd on amd64/i386.
  - Add GMP option.
  - Re-enable DYNAMIC option on ARM. It is reported that it works now.
  - Fix create-bootstrap target to produce tarballs ready to be consumed by ports.
  - Update bootstrap compilers to 8.4.3 on amd64, i386, aarch64.
  - Get rid merge build.boot.mk.in into build.mk.in.
  - Sort some Makefile variables.

Reviewed by:	Mikael Urankar <mikael.urankar@gmail.com> (ARM bits), tcberner
Approved by:	tcberner (mentor)
Differential Revision:	https://reviews.freebsd.org/D18378
2018-12-07 05:46:39 +00:00
Antoine Brodin
6fde505af4 Fix build on head amd64 after ld.bfd is no longer installed
With hat:	portmgr
2018-11-27 13:41:27 +00:00
Gleb Popov
9b949e5d4f lang/ghc: Update to 8.4.4 and factor out common port code into bsd.ghc.mk in preparation for adding a port for previous version.
ARM testing by Mikael Urankar <mikael.urankar@gmail.com>.

Submitted by:	Viktor Dukhovni <ietf-dane@dukhovni.org> (some patches)
Approved by:	tcberner (mentor)
Differential Revision:	https://reviews.freebsd.org/D17866
2018-11-18 15:30:45 +00:00
Gleb Popov
0906474aef lang/ghc: Cosmetic changes to Makefile and build.mk files.
Approved by:	tcberner (mentor)
Differential Revision:	https://reviews.freebsd.org/D17636
2018-10-21 18:17:03 +00:00
Gleb Popov
f8b26374f4 textproc/hs-parsec-numbers: Add new port.
PR:		232055
Submitted by:	Kevin Zheng <kevinz5000@gmail.com>
Approved by:	tcberner (mentor)
2018-10-09 12:03:07 +00:00
Gleb Popov
acd01bf525 lang/ghc: Remove BOOTH option.
Approved by:	tcberner (mentor)
Differential Revision:	https://reviews.freebsd.org/D17372
2018-10-04 08:34:09 +00:00
Gleb Popov
7ebd77f080 lang/ghc: Disable using xelatex, as the build fails if it is present.
PR:		197241
Submitted by:	John Hein <z7dr6ut7gs@snkmail.com>
Approved by:	tcberner (mentor)
2018-10-01 14:02:07 +00:00
Gleb Popov
12c54d9269 lang/ghc: Add support for ARM arches: aarch64, armv6, armv7.
PR:		196899
Submitted by:	Mikael Urankar <mikael.urankar@gmail.com>
Reviewed by:	arrowd, mat, tcberner
Approved by:	tcberner (mentor)
Differential Revision:	https://reviews.freebsd.org/D15674
2018-08-31 08:51:33 +00:00
Gleb Popov
c7da4c952c Add devel/hs-fortran-src port - a library for lexing and parsing Fortran source code.
Submitted by:	blubee blubeeme <gurenchan@gmail.com>
Reviewed by:	mat
Approved by:	tcberner (mentor)
Differential Revision:	https://reviews.freebsd.org/D16523
2018-08-01 21:53:17 +00:00
Gerald Pfeifer
09f9633cb6 Bump PORTREVISION for ports depending on the canonical version of GCC
in the ports tree (via Mk/bsd.default-versions.mk and lang/gcc) which
has now moved from GCC 6 to GCC 7 by default.

This includes ports
 - featuring USE_GCC=yes or USE_GCC=any,
 - featuring USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and those
 - with USES=compiler specifying one of openmp, nestedfct, c11, c++0x,
   c++11-lib, c++11-lang, c++14-lang, c++17-lang, or gcc-c++11-lib.

PR:		222542
2018-07-29 22:18:44 +00:00
Gleb Popov
7fbb9efab1 Update some hs-* ports that were previously IGNORE'd.
Approved by:	tcberner (mentor)
Differential Revision:	https://reviews.freebsd.org/D16308
2018-07-29 10:40:28 +00:00
Gleb Popov
468cd131bd When deinstalling a Haskell package pass --no-user-package-db flag to ghc-pkg to avoid creation of ~/.ghc directory.
Reported by:	tcberner
Approved by:	tcberner (mentor)
Differential Revision:	https://reviews.freebsd.org/D16480
2018-07-28 20:09:01 +00:00