Commit Graph

527 Commits

Author SHA1 Message Date
Gleb Popov ba2e106d70 lang/ghc: Update to 9.2.5
MFH:		2022Q4
2022-11-07 18:40:07 +03:00
Stefan Eßer fb16dfecae Remove WWW entries moved into port Makefiles
Commit b7f05445c0 has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.

This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.

Approved by:		portmgr (tcberner)
2022-09-07 23:58:51 +02:00
Stefan Eßer b7f05445c0 Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.

Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.

There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.

This commit implements such a proposal and moves one of the WWW: entries
of each pkg-descr file into the respective port's Makefile. A heuristic
attempts to identify the most relevant URL in case there is more than
one WWW: entry in some pkg-descr file. URLs that are not moved into the
Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr
files in order to preserve them.

There are 1256 ports that had no WWW: entries in pkg-descr files. These
ports will not be touched in this commit.

The portlint port has been adjusted to expect a WWW entry in each port
Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as
deprecated.

Approved by:		portmgr (tcberner)
2022-09-07 23:10:59 +02:00
Gleb Popov 3ef9df6fa2 lang/ghc: Use correct LLVM toolchain for the bootstrap compiler.
PR:		264192
Reported by:	Mark Millard <marklmi26-fbsd@yahoo.com>
2022-08-26 22:01:55 +03:00
Gleb Popov 90e26bb3b3 lang/ghc: Update to 9.2.4
Deal with Haskell ports fallout caused by the update.

While there, re-add patches necessary for lang/ghc810 that were somehow lost.
2022-08-01 12:38:54 +03:00
Gleb Popov 55788dde6f lang/ghc810: Unbreak check-sanity. 2022-07-31 23:27:10 +03:00
Tobias C. Berner f98ae56653 lang: remove 'Created by' lines
A big Thank You to the original contributors of these ports:

  *  Aaron Dalton <aaron@FreeBSD.org>
  *  Adam Weinberger <adamw@FreeBSD.org>
  *  Akinori MUSHA aka knu <knu@idaemons.org>
  *  Alex Dupre <ale@FreeBSD.org>
  *  Alexey Dokuchaev <danfe@FreeBSD.org>
  *  Alonso Cardenas Marquez <acm@FreeBSD.org>
  *  Andreas Klemm <andreas@klemm.gtn.com>
  *  Andrew Pantyukhin <infofarmer@FreeBSD.org>
  *  Andrey Zakhvatov
  *  Anton Berezin <tobez@FreeBSD.org>
  *  Anton Berezin <tobez@tobez.org>
  *  Anton Shterenlikht
  *  Ashish SHUKLA <ashish@FreeBSD.org>
  *  Bob Eager <bob@eager.cx>
  *  Bruce M Simpson
  *  Bruce M. Simpson
  *  Christoph Mallon <christoph.mallon@gmx.de>
  *  Christopher Elkins <chrise@scardini.com>
  *  Christopher Key <cjk32@cam.ac.uk>
  *  Chuck Robey <chuckr@FreeBSD.org>
  *  Cyrille Lefevre <clefevre@citeweb.net>
  *  Dan Rench <citric@cubicone.tmetic.com>
  *  Danilo Egea Gondolfo <danilogondolfo@gmail.com>
  *  Dario Freni <saturnero@gufi.org>
  *  David Kalliecharan <dave@dal.ca>
  *  David Naylor <dbn@FreeBSD.org>
  *  David Naylor <dbn@dragon.local>
  *  David O'Brien (obrien@NUXI.com)
  *  David O'Brien (obrien@NUXI.org)
  *  David O'Brien <obrien@NUXI.org>
  *  David O'Brien <obrien@cs.ucdavis.edu>
  *  Dereckson <dereckson@gmail.com>
  *  Devon H. O'Dell <devon.odell@gmail.com>
  *  Dmitry Sivachenko <demon@FreeBSD.org>
  *  Don Croyle <croyle@gelemna.org>
  *  Douglas Anestad <yotta@dougdidit.com>
  *  Edwin Groothuis (edwin@mavetju.org)
  *  Edwin Groothuis <edwin@mavetju.org>
  *  Eugene Ossintsev
  *  Frank Fischer
  *  Frank Gruender <elwood@mc5sys.in-berlin.de>
  *  Frederic Cambus
  *  Gea-Suan Lin <gslin@gslin.org>
  *  Gerald Pfeifer <gerald@FreeBSD.org>
  *  Giuseppe Pilichi aka Jacula Modyun <jacula@gmail.com>
  *  GreenDog <fiziologus@gmail.com>
  *  Gustau Perez i Querol <gustau.perez@gmail.com>
  *  Guy Antony Halse <guy@rucus.ru.za.za>
  *  Herve Quiroz <hq@FreeBSD.org>
  *  Hye-Shik Chang
  *  Hye-Shik Chang <perky@fallin.lv>
  *  Hye-Shik Chang <perky@python.or.kr>
  *  Iblis Lin <iblis@hs.ntnu.edu.tw>
  *  James Bailie <jimmy@mammothcheese.ca>
  *  James FitzGibbon <jfitz@FreeBSD.org>
  *  Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
  *  Jean-Yves Lefort <jylefort@FreeBSD.org>
  *  Jeff Brown <jabrown@caida.org>
  *  Jeremy Norris <ishmael27@home.com>
  *  Jing-Tang Keith Jang <keith@FreeBSD.org>
  *  John Hein <jhein@symmetricom.com>
  *  John Marino <marino@FreeBSD.org>
  *  John Merryweather Cooper
  *  John Merryweather Cooper <coop9211@uidaho.edu>
  *  John Merryweather Cooper et al
  *  Joseph Koshy <jkoshy@FreeBSD.org>
  *  Josh Elsasser <jre@vineyard.net>
  *  Josh Gilliam <josh@quick.net>
  *  Julian H. Stacey <jhs@FreeBSD.org>
  *  Julian Stecklina
  *  Jyun-Yan You <jyyou@cs.nctu.edu.tw>
  *  Katsuji ISHIKAWA <katsuji.ishikawa@gmail.com>
  *  Kimura Fuyuki <fuyuki@hadaly.org>
  *  Kimura Fuyuki <fuyuki@mj.0038.net>
  *  Kimura Fuyuki <fuyuki@nigredo.org>
  *  Kiriyama Kazuhiko <kiri@kiri.toba-cmt.ac.jp>
  *  Kubilay Kocak <koobs@FreeBSD.org>
  *  Lars Thegler <lth@FreeBSD.org>
  *  Lev Walkin <vlm@lionet.info>
  *  Li-Wen Hsu <lwhsu@FreeBSD.org>
  *  Mahdi Mokhtari <mokhi64@gmail.com>
  *  Marcin Cieslak <saper@SYSTEM.PL>
  *  Martin Matuska <mm@FreeBSD.org>
  *  Matthew Hunt <mph@FreeBSD.org>
  *  Michael Butschky <butsch@computi.erols.com>
  *  Michael Johnson <ahze@FreeBSD.org>
  *  Mitsuru YOSHIDA <mitsuru@riken.jp>
  *  Muhammad Moinur Rahman <5u623l20@gmail.com>
  *  Neal Nelson <ports@nicandneal.net>
  *  Nicola Vitale <nivit@FreeBSD.org>
  *  Nils M Holm <nmh@t3x.org>
  *  Oliver Braun <obraun@informatik.unibw-muenchen.de>
  *  Oliver Breuninger <ob@seicom.NET>
  *  Patrick Li <pat@databits.net>
  *  Pawel Worach <pawel.worach@gmail.com>
  *  Pedro F. Giffuni <giffunip@asme.org>
  *  Pedro Giffuni
  *  Pedro Giffuni <giffunip@asme.org>
  *  Pete French <pete@twisted.org.uk>
  *  Peter Schuller <peter.schuller@infidyne.com>
  *  Peter van Heusden <pvh@egenetics.com>
  *  Phillip Neumann <pneumann@gmail.com>
  *  Piotr Kubaj <pkubaj@anongoth.pl>
  *  Po-Chuan Hsieh <sunpoet@FreeBSD.org>
  *  Pontus Stenetorp <ninjin@kth.se>
  *  Ralf S. Engelschall <rse@engelschall.com>
  *  Rick van der Zwet <rick@wzoeterwoude.net>
  *  Rob Zinkov
  *  Roland Jesse <roland.jesse@gmx.net>
  *  Romain Tartiere <romain@blogreen.org>
  *  Ryan Steinmetz <zi@FreeBSD.org>
  *  Sahil Tandon <sahil@tandon.net>
  *  Sergei Kolobov <sergei@kolobov.com>
  *  Sergey A. Osokin <osa@FreeBSD.org>
  *  Sergey Skvortsov <skv@protey.ru>
  *  Simon Marlow <simonmar@microsoft.com>
  *  Simun Mikecin <numisemis@yahoo.com>
  *  Stanislav Sedov <ssedov@mbsd.msk.ru>
  *  Stephen Weeks <sweeks@sweeks.com>
  *  Steven G. Kargl
  *  Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
  *  Sylvio Cesar <sylvio@FreeBSD.org>
  *  Thomas Gellekum <tg@FreeBSD.org>
  *  Timothy Beyer <beyert@cs.ucr.edu>
  *  Timothy Bourke <timbob@bigpond.com>
  *  Tom Judge <tj@FreeBSD.org>
  *  Veniamin Gvozdikov <vg@FreeBSD.org>
  *  Vitaly Magerya <vmagerya@gmail.com>
  *  Wen Heping <wenheping@gmail.com>
  *  Wen Heping <wenhping@gmail.com>
  *  Wes Peters <wes@softweyr.com>
  *  Ying-Chieh Liao <ijliao@FreeBSD.org>
  *  Yukihiro Nakai <Nakai@technologist.com>
  *  Yukihiro Nakai <nakai@FreeBSD.org>
  *  Zach Garner <zach@neurosoft.org>
  *  aaron@FreeBSD.org
  *  andrewb@cs.cmu.edu
  *  arved
  *  chinsan
  *  chuckr
  *  dd
  *  erik@smluc.org
  *  gahr
  *  gahr@FreeBSD.org
  *  gpalmer
  *  hsu
  *  ijliao
  *  jasone
  *  jkh
  *  jkoshy
  *  jmacd
  *  jmacd@FreeBSD.org
  *  jmz
  *  js@jeannot.org
  *  jseger@FreeBSD.org
  *  kappa@FreeBSD.org.ua
  *  kbyanc
  *  msmith@gsoft.com.au
  *  mutoh@openedu.org
  *  netchild@FreeBSD.org
  *  patrick
  *  pst
  *  rene@FreeBSD.org
  *  ruslan@shevchenko.kiev.ua
  *  stas
  *  tobez

With hat:	portmgr
2022-07-20 16:22:15 +02:00
Gleb Popov a0d234572b lang/ghc810: Add the port, slave to lang/ghc.
The need to have different GHC versions installed on the same system became
more common in the Haskell ecosystem. The devel/stack port solves this problem
by installing its own distributions into the user's HOME dir. Cabal doesn't do
that, but uses system-wide GHC installations. This slave port is intended to
help for such use cases.

This port can also be used as a fallback during major lang/ghc upgrades. At
the moment such upgrades require a lot of work to deal with Haskell packages
fallout. By switching failing ports to older GHC we can deliver lang/ghc
updates faster.
2022-07-07 13:24:40 +03:00
Gleb Popov 92d9d50ef6 lang/ghc: Generate build.mk file from the Makefile variable.
This removes the need to keep build.mk.in in files/ and also allows to get
rid of SUB_FILES.
2022-07-07 13:24:39 +03:00
Gleb Popov de74e5877a lang/ghc: Update to 9.2.3 2022-07-07 13:24:37 +03:00
Gleb Popov 8709d6be0b lang/ghc: Update to 9.2.2 2022-07-07 13:24:28 +03:00
Gleb Popov be5f5db250 lang/ghc: Add RTS linker patch for the external interpreter. 2022-07-07 13:24:10 +03:00
Gleb Popov 2d7aef8d9c lang/ghc: Add cpuset_t related patch. 2022-07-07 13:19:09 +03:00
Gleb Popov fcc19be790 lang/ghc: Update to 9.2.1 2022-07-07 13:19:09 +03:00
Mark Millard afdc95c40d lang/ghc: Properly dereference a shell variable.
This makes GHC build system to pick up correct LLVM tools during the build on ARM.

PR:		264192
2022-05-30 23:08:35 +03:00
Kevin Bowling db78da8f8b devel/libffi: Bump deps PORTREVISION for shlib change
PR:		263764
Reported by:	VVD <vvd@unislabs.com>
2022-05-09 12:23:51 -07:00
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