notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Ukraine
Some details on the 2023-01-16 website outage.
We just rebooted with several updates: * new HMTLify code * no port maintainer is now highly visible (e.g. https://freshports.org/security/sssd/) * fixed search logic error when using plain/ text details at https://github.com/FreshPorts/freshports/releases/tag/2.2.34
non port: Mk/Uses/cabal.mk
SVNWeb

Number of commits found: 53

Sun, 20 Nov 2022
[ 17:39 Gleb Popov (arrowd) search for other commits by this committer ]    commit hash:934c0a2d759fe09a92739e4ed84e154b6d8e1970  commit hash:934c0a2d759fe09a92739e4ed84e154b6d8e1970  commit hash:934c0a2d759fe09a92739e4ed84e154b6d8e1970  934c0a2 
Uses/cabal.mk: Add support for building multi-repository cabal.projects.

To build such projects a port must add the repository to MASTER_SITES under
some group and then use this group in USE_CABAL.

Cabal2Tuple (ports-mgmt/hs-cabal2tuple) supports this feature starting with
version 2.0. Running `make make-use-cabal` will automatically pass necessary
flags to it.
[ 17:39 Gleb Popov (arrowd) search for other commits by this committer ]    commit hash:2fca7097b9f29351f1969eca7d1837ab99782f2e  commit hash:2fca7097b9f29351f1969eca7d1837ab99782f2e  commit hash:2fca7097b9f29351f1969eca7d1837ab99782f2e  2fca709  (Only the first 10 of 90 ports in this commit are shown above. View all ports for this commit)
Uses/cabal.mk: Rework MASTER_SITES and DISTFILES handling.

This change removes duplicated entries from MASTER_SITES and DISTFILES
variables. Now the MASTER_SITES variable will contain single Hackage URL without
any group for the simplest case and with :_cabal_mk_hackage group in nodefault
case.

This change opens a path to using non-Hackage Cabal repositories
(needed for Cardano) and pulling in .cabal revisions without using patches.

Unfortunately, this change results in a large churn in Haskell ports distinfos.
To make this churn less useless, refresh all Haskell dependencies in all ports.
[ 17:39 Gleb Popov (arrowd) search for other commits by this committer ]    commit hash:9e425fc8821515b2456a20b11bfe75a492d60b5a  commit hash:9e425fc8821515b2456a20b11bfe75a492d60b5a  commit hash:9e425fc8821515b2456a20b11bfe75a492d60b5a  9e425fc  (Only the first 10 of 13 ports in this commit are shown above. View all ports for this commit)
Uses/cabal.mk: Introduce CABAL_REVISION knob.

This knob allows pulling in a revised .cabal file for a Haskell package
being ported. This allows us to drop local patches that were serving the
same purpose.
[ 17:39 Gleb Popov (arrowd) search for other commits by this committer ]    commit hash:56e3d8878497d9764bc9b69a90b7990dd309ec71  commit hash:56e3d8878497d9764bc9b69a90b7990dd309ec71  commit hash:56e3d8878497d9764bc9b69a90b7990dd309ec71  56e3d88 
Uses/cabal.mk: Use "cabal build --dry-run" in cabal-configure target.

In the future Cabal release the "cabal configure" command changes its meaning.
The closest thing to the configure step in Cabal is "build --dry-run".
[ 17:39 Gleb Popov (arrowd) search for other commits by this committer ]    commit hash:e254bdde429a3d700beb9d421dc35f1da0b2077a  commit hash:e254bdde429a3d700beb9d421dc35f1da0b2077a  commit hash:e254bdde429a3d700beb9d421dc35f1da0b2077a  e254bdd 
Uses/cabal.mk: Change the way we act on cabal.project files.

Instead of moving the original project file into a temporary location,
employ cabal.project.local for Ports-related adjustments.

This implements an idea that upstream cabal.project files shouldn't be touched
by Ports framework. If needed they can be patched by the port maintainer
directly.

Adapt existing Haskell ports to this change.
[ 17:39 Gleb Popov (arrowd) search for other commits by this committer ]    commit hash:b55505da219d4fe5ded356cfa94486cd4a6d1b80  commit hash:b55505da219d4fe5ded356cfa94486cd4a6d1b80  commit hash:b55505da219d4fe5ded356cfa94486cd4a6d1b80  b55505d 
Uses/cabal.mk: Do not extract any USE_CABAL distfiles in cabal-extract.
[ 17:39 Gleb Popov (arrowd) search for other commits by this committer ]    commit hash:d72b566da395ab655a5083e1240066304c6875fd  commit hash:d72b566da395ab655a5083e1240066304c6875fd  commit hash:d72b566da395ab655a5083e1240066304c6875fd  d72b566 
Uses/cabal.mk: Use .for directive to introduce temporary variables inside loops.

Suggested by:	tijl
Tue, 20 Sep 2022
[ 13:11 Gleb Popov (arrowd) search for other commits by this committer ]    commit hash:eaf7a4ee5399b0cac5f21bdf0cec3b7c53c0ae86  commit hash:eaf7a4ee5399b0cac5f21bdf0cec3b7c53c0ae86  commit hash:eaf7a4ee5399b0cac5f21bdf0cec3b7c53c0ae86  eaf7a4e 
Uses/cabal.mk: Extend i386 brokeness to basement-0.0.15
Tue, 9 Aug 2022
[ 09:16 Gleb Popov (arrowd) search for other commits by this committer ]    commit hash:505ecf2230c9e73f5d231b855b2a88c41dfc3d26  commit hash:505ecf2230c9e73f5d231b855b2a88c41dfc3d26  commit hash:505ecf2230c9e73f5d231b855b2a88c41dfc3d26  505ecf2  (Only the first 10 of 25 ports in this commit are shown above. View all ports for this commit)
Uses/cabal.mk: Rename `EXECUTABLES` to `CABAL_EXECUTABLES`.

Approved by: tcberner

Differential Revision: https://reviews.freebsd.org/D36079
Sun, 31 Jul 2022
[ 15:58 Gleb Popov (arrowd) search for other commits by this committer ]    commit hash:949672a6bef2134dfe3f2518400b58999d69ac10  commit hash:949672a6bef2134dfe3f2518400b58999d69ac10  commit hash:949672a6bef2134dfe3f2518400b58999d69ac10  949672a 
Uses/cabal.mk: Fix `cabal-extract` target when GH_TUPLE is present.

The presence of dist-newstyle directory created by unpacking Haskell
dependencies from GH_TUPLE makes `cabal` run `git pull` instead of `git clone`.
Thu, 28 Jul 2022
[ 19:52 Gleb Popov (arrowd) search for other commits by this committer ]    commit hash:166cea3628c726601ebfd9a5497a4808015eebd3  commit hash:166cea3628c726601ebfd9a5497a4808015eebd3  commit hash:166cea3628c726601ebfd9a5497a4808015eebd3  166cea3  (Only the first 10 of 12 ports in this commit are shown above. View all ports for this commit)
Uses/cabal.mk: Introduce CABAL_WRAPPER_SCRIPTS variable.

Before this change every Haskell executable was wrapped into a shell script
which was installed into ${PREFIX}/bin while the actual executable was installed
into {PREFIX}/libexec/cabal. This was required to set env variables pointing the
Haskell program to its data files under ${PREFIX}/share. However, not every
Haskell program uses this feature.

Now the shell wrapping is off by default and CABAL_WRAPPER_SCRIPTS knob can be
used to enable it for a given port/executable.

Adjust all Haskell ports affected by this change.
[ 19:52 Gleb Popov (arrowd) search for other commits by this committer ]    commit hash:842a12d0f9e4b2321b2d0fb6cda37d6906533ab9  commit hash:842a12d0f9e4b2321b2d0fb6cda37d6906533ab9  commit hash:842a12d0f9e4b2321b2d0fb6cda37d6906533ab9  842a12d 
Uses/cabal.mk: Document SKIP_CABAL_PLIST.
[ 19:52 Gleb Popov (arrowd) search for other commits by this committer ]    commit hash:74817ebe9b7d52c4071372491cda1aad5b59afe9  commit hash:74817ebe9b7d52c4071372491cda1aad5b59afe9  commit hash:74817ebe9b7d52c4071372491cda1aad5b59afe9  74817eb 
Uses/cabal.mk: Expand comment for cabal-extract target.
Wed, 27 Jul 2022
[ 14:55 Gleb Popov (arrowd) search for other commits by this committer ]    commit hash:839dbcc4328b5cf011f89f8d2355ff8767336c1b  commit hash:839dbcc4328b5cf011f89f8d2355ff8767336c1b  commit hash:839dbcc4328b5cf011f89f8d2355ff8767336c1b  839dbcc 
Uses/cabal.mk: Various improvements.

- Rename CABAL_BOOTSTRAP to SKIP_CABAL_EXTRACT. This is a much more descriptive
name as to what this knob does.
- Improve cabal-extract target to not overwrite WRKDIR and to leave a cookie
file to let framework know if the user is updating the port.
[ 14:55 Gleb Popov (arrowd) search for other commits by this committer ]    commit hash:22d118e2620c44b6273ea00be51a5fcdfcf1c604  commit hash:22d118e2620c44b6273ea00be51a5fcdfcf1c604  commit hash:22d118e2620c44b6273ea00be51a5fcdfcf1c604  22d118e 
Uses/cabal.mk: Simplify EXTRACT_ONLY setting.

Adapt ports that were using hacks to set EXTRACT_ONLY.
[ 14:55 Gleb Popov (arrowd) search for other commits by this committer ]    commit hash:d5655de18216ed5bfe20522e3285574eb720f3e5  commit hash:d5655de18216ed5bfe20522e3285574eb720f3e5  commit hash:d5655de18216ed5bfe20522e3285574eb720f3e5  d5655de 
Uses/cabal.mk: Do not include '.' package when CABAL_PROJECT=append

If we are appending to an exisiting project file all needed package directories
are already listed there.
[ 14:55 Gleb Popov (arrowd) search for other commits by this committer ]    commit hash:92e98a2584dd2df4fb449c376e3f00efc6388246  commit hash:92e98a2584dd2df4fb449c376e3f00efc6388246  commit hash:92e98a2584dd2df4fb449c376e3f00efc6388246  92e98a2 
Uses/cabal.mk: Simplify USE_LOCALE handling.
[ 14:55 Gleb Popov (arrowd) search for other commits by this committer ]    commit hash:4ad8bbf22f2b9aaa79caccba7559b058245e12a7  commit hash:4ad8bbf22f2b9aaa79caccba7559b058245e12a7  commit hash:4ad8bbf22f2b9aaa79caccba7559b058245e12a7  4ad8bbf 
Uses/cabal.mk: Use cabal2tuple in the make-use-cabal target.
Mon, 11 Jul 2022
[ 13:05 Gleb Popov (arrowd) search for other commits by this committer ]    commit hash:bbb24e0c2e64dc18821c69bc3fd000333875f853  commit hash:bbb24e0c2e64dc18821c69bc3fd000333875f853  commit hash:bbb24e0c2e64dc18821c69bc3fd000333875f853  bbb24e0 
Uses/cabal.mk: Mark all ports using basement-0.0.14 BROKEN on i386.

Reported by:	pkg-fallout
Thu, 7 Jul 2022
[ 10:24 Gleb Popov (arrowd) search for other commits by this committer ]    commit hash:429fe395d1b869f52a3ab7d89ce1a91c624991fa  commit hash:429fe395d1b869f52a3ab7d89ce1a91c624991fa  commit hash:429fe395d1b869f52a3ab7d89ce1a91c624991fa  429fe39 
Uses/cabal.mk: Add support for lang/ghcXXX ports:

- Do not add lang/ghc to BUILD_DEPENDS if another GHC is already there.
- Pass --with-compiler flag to cabal if we're using lang/ghcXXX port to build.
Thu, 30 Jun 2022
[ 19:13 Gleb Popov (arrowd) search for other commits by this committer ]    commit hash:f500b9d07c812cef4a2e84a9f3ee9ed26806bfe8  commit hash:f500b9d07c812cef4a2e84a9f3ee9ed26806bfe8  commit hash:f500b9d07c812cef4a2e84a9f3ee9ed26806bfe8  f500b9d 
Uses/cabal.mk: Replace all occurencies of '-' instead of only one.

Executables named "foo-bar-baz" are now correctly handled.
Sun, 24 Apr 2022
[ 10:00 Tobias C. Berner (tcberner) search for other commits by this committer ]    commit hash:aa2539679084872cd84112e9df6bfee571570623  commit hash:aa2539679084872cd84112e9df6bfee571570623  commit hash:aa2539679084872cd84112e9df6bfee571570623  aa25396  (Only the first 10 of 118 ports in this commit are shown above. View all ports for this commit)
framework: cleanup conditional-indentations in Mk/

Run Tools/scripts/indent_make_if.pl on all of Mk.

These white space changes contribute greatly to the readability of those files.
As we have a version control system, finding out the reasons for the changes
prior to these white space changes is still easily possible

Differential Revision:	https://reviews.freebsd.org/D35024
Reviewed by:		portmgr (rene, bapt)
Sat, 12 Jun 2021
[ 10:14 Gleb Popov (arrowd) search for other commits by this committer ]    commit hash:1d2372ec7f975ad32da34c3bd4031046741ee32c  commit hash:1d2372ec7f975ad32da34c3bd4031046741ee32c  commit hash:1d2372ec7f975ad32da34c3bd4031046741ee32c  1d2372e 
Uses/cabal.mk: Omit "_0" part of the package version in make-use-cabal-revs
Fri, 4 Jun 2021
[ 16:43 Gleb Popov (arrowd) search for other commits by this committer ]    commit hash:8c54911133d9418d2d4a1d006965a223f72ab98e  commit hash:8c54911133d9418d2d4a1d006965a223f72ab98e  commit hash:8c54911133d9418d2d4a1d006965a223f72ab98e  8c54911 
Uses/cabal.mk: Fix make-use-cabal-revs after upstream changes.

Hackage now returns a JSON array with all revisions, so sed/grep trickery
is not working anymore. Use Python to parse the reply and extract revision
number.
Mon, 24 May 2021
[ 06:32 Gleb Popov (arrowd) search for other commits by this committer ]    commit hash:0da1ad3eb5beb90ab1b86ff0e478a9ab0f08baca  commit hash:0da1ad3eb5beb90ab1b86ff0e478a9ab0f08baca  commit hash:0da1ad3eb5beb90ab1b86ff0e478a9ab0f08baca  0da1ad3 
Uses/cabal.mk: Make cabal-extract-deps target overridable.
Wed, 19 May 2021
[ 14:13 Gleb Popov (arrowd) search for other commits by this committer ]    commit hash:1db88699b09ff53bf0029cb8a01dad1e7f646a4c  commit hash:1db88699b09ff53bf0029cb8a01dad1e7f646a4c  commit hash:1db88699b09ff53bf0029cb8a01dad1e7f646a4c  1db8869 
Uses/cabal.mk: Improve our Cabal machinery.

- Introduce CABAL_PROJECT variable to simplify handling project files in ports.
- Put dependencies into ${WRKSRC}/_cabal_deps subdir to make WRKSRC look
  clean after `extract` stage.
- Perform cabal.project trickery on post-patch stage to allow users to fiddle
  with the original one before creation.
- Document some code.
Fri, 14 May 2021
[ 19:11 Gleb Popov (arrowd) search for other commits by this committer ]    commit hash:8d6788c0871e0f0ee69678265c5f4707d28484fb  commit hash:8d6788c0871e0f0ee69678265c5f4707d28484fb  commit hash:8d6788c0871e0f0ee69678265c5f4707d28484fb  8d6788c 
Uses/cabal.mk: Pass same flags to do-build and cabal-extract-deps.
Thu, 29 Apr 2021
[ 05:39 Gleb Popov (arrowd) search for other commits by this committer ]    commit hash:f4397f5de0408abed022dca95ac78ba27686a205  commit hash:f4397f5de0408abed022dca95ac78ba27686a205  commit hash:f4397f5de0408abed022dca95ac78ba27686a205  f4397f5 
Uses/cabal.mk: Improve cabal-extract for USE_GITHUB/USE_GITLAB cases.

The `cabal-extract` is an auxiliary target that is intended to be run
interactively by the port developer. It populates Cabal cache and then tries
to fetch the main distribution file from Hackage package database. However,
some packages reside on GitHub and other hostings, in which case this target
fails. This commit modifies the target in such way that it does the usual
`make extract`, but preserves the Cabal cache.

Differential Revision: https://reviews.freebsd.org/D30014
Wed, 21 Apr 2021
[ 04:46 Tobias Kortkamp (tobik) search for other commits by this committer ]    commit hash:12837690ed0c7785f94e8793ddc13a57477ef319  commit hash:12837690ed0c7785f94e8793ddc13a57477ef319  commit hash:12837690ed0c7785f94e8793ddc13a57477ef319  1283769 
Mk/Uses/cabal.mk: Replace shell process in EXECUTABLES wrapper scripts

The wrapper scripts leave the shell running for no reason.  Add an
exec to replace the shell process.

Before:
$ ps -d
35230  5  Ss    0:00.09 -oksh (oksh)
35351  5  S+    0:00.00 - /bin/sh /usr/local/bin/shellcheck -
35352  5  S+    0:00.00 `-- /usr/local/libexec/cabal/shellcheck -

After:
$ ps -d
35230  5  Is    0:00.05 -oksh (oksh)
35236  5  I+    0:00.01 - /usr/local/libexec/cabal/shellcheck -

Approved by:	arrowd
Differential Revision:	https://reviews.freebsd.org/D29852
[ 04:33 Tobias Kortkamp (tobik) search for other commits by this committer ]    commit hash:a0109ed75443d8b475f04f1844c6dbcab84d6702  commit hash:a0109ed75443d8b475f04f1844c6dbcab84d6702  commit hash:a0109ed75443d8b475f04f1844c6dbcab84d6702  a0109ed 
Mk/Uses/cabal.mk: use ECHO_CMD not ECHO (D29852)

ECHO is set to true on make -s in /usr/share/mk/sys.mk and shouldn't
be used for things like this.

Approved by:	arrowd
Tue, 6 Apr 2021
[ 14:27 Mathieu Arnold (mat) search for other commits by this committer ]    commit hash:5d33e045968104ac678d8b4b4ec1e8956bbf68e0  commit hash:5d33e045968104ac678d8b4b4ec1e8956bbf68e0  commit hash:5d33e045968104ac678d8b4b4ec1e8956bbf68e0  5d33e04  (Only the first 10 of 224 ports in this commit are shown above. View all ports for this commit)
framework: Remove $FreeBSD$

Where appropriate fiddle with a few other things.
Wed, 10 Mar 2021
[ 12:31 arrowd search for other commits by this committer ] Original commit   Revision:567995
devel/hs-cabal-install: Update to 3.4.0.0 and adjust Uses/cabal.mk to its
changes.
[ 08:00 arrowd search for other commits by this committer ] Original commit   Revision:567989
Uses/cabal.mk: Take into account MAKE_JOBS_NUMBERS.
Thu, 7 Jan 2021
[ 12:17 arrowd search for other commits by this committer ] Original commit   Revision:560704
Uses/cabal.mk: Add "nodefault" argument.
Mon, 4 Jan 2021
[ 11:31 arrowd search for other commits by this committer ] Original commit   Revision:560282
Uses/cabal.mk: More correct fix for EXTRACT_ONLY problem from r559679.
Wed, 30 Dec 2020
[ 18:57 arrowd search for other commits by this committer ] Original commit   Revision:559679
Uses/cabal.mk: Set EXTRACT_ONLY based on DISTFILES value, just like bsd.port.mk
does.

This removes the need for specifying EXTRACT_ONLY for Haskell ports that have
USE_{GITHUB,GITLAB}.

PR:		244784
Sat, 4 Jul 2020
[ 18:11 zeising search for other commits by this committer ] Original commit   Revision:541232 (Only the first 10 of 105 ports in this commit are shown above. View all ports for this commit)
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)
Thu, 28 May 2020
[ 14:29 arrowd search for other commits by this committer ] Original commit   Revision:536771
Mk/Uses/cabal.mk: Modify make-use-cabal target to also show some build tools in
its output.
Mon, 4 May 2020
[ 18:08 arrowd search for other commits by this committer ] Original commit   Revision:533933 (Only the first 10 of 166 ports in this commit are shown above. View all ports for this commit)
Upgrade lang/ghc to 8.8.3 and many Haskell ports along the way.

PR:		244784
Submitted by:	Evilham <contact@evilham.com> (some ports)
Mon, 16 Mar 2020
[ 19:59 arrowd search for other commits by this committer ] Original commit   Revision:528542
Mk/Uses/cabal.mk: Wrap *.cabal argument in ticks.
Sun, 23 Feb 2020
[ 07:30 tobik search for other commits by this committer ] Original commit   Revision:526884
Mk/Uses/cabal.mk: Fix typo in make-use-cabal-revs ENV vs. SETENV

While this typo is harmless when ENV is undefined in the environment,
ENV is also used by oksh(1) or sh(1) to source files on startup,
so when it set to some file like ~/.shrc it breaks the entire
command.
Wed, 25 Sep 2019
[ 16:57 arrowd search for other commits by this committer ] Original commit   Revision:512795
cabal.mk: Move hpack invocation to post-patch stage, as sometimes we need to
patch package.yaml before feeding it to hpack.
Wed, 31 Jul 2019
[ 18:18 arrowd search for other commits by this committer ] Original commit   Revision:507727
devel/hs-git-annex: Fix git-annex-shell and git-remote-tor-annex executables.

PR:		239289
Mon, 29 Jul 2019
[ 07:53 arrowd search for other commits by this committer ] Original commit   Revision:507562
Uses/cabal.mk: In case of wrong arguments, print the wrong one, not all of them.

Reported by:	tobik
Sun, 28 Jul 2019
[ 10:16 arrowd search for other commits by this committer ] Original commit   Revision:507506
Mk/Uses/cabal.mk: Check for invalid args.

Reported by:	tobik
Fri, 26 Jul 2019
[ 16:52 arrowd search for other commits by this committer ] Original commit   Revision:507361
Add support for USES= cabal:hpack and document this option.
Sun, 21 Jul 2019
[ 18:37 arrowd search for other commits by this committer ] Original commit   Revision:507062
cabal.mk: Transforms check-revs aux target into make-use-cabal-revs, which works
much better.

Submitted by:	Evilham <contact@evilham.com>
[ 14:59 arrowd search for other commits by this committer ] Original commit   Revision:507054
Make `make-use-cabal` aux target output an item per line.
Thu, 4 Jul 2019
[ 18:44 arrowd search for other commits by this committer ] Original commit   Revision:505861
cabal.mk: Pass `--disable-benchmarks --disable-tests` in do-build rule.
This cuts down amount of required dependencies and decreases build time.
Thu, 20 Jun 2019
[ 16:03 arrowd search for other commits by this committer ] Original commit   Revision:504637 (Only the first 10 of 36 ports in this commit are shown above. View all ports for this commit)
In wrapper scripts, use $@ instead of $* to correctly pass arguments to the real
program

PR:		238719
Approved by:	tcberner (mentor, implicit)
Thu, 13 Jun 2019
[ 13:57 arrowd search for other commits by this committer ] Original commit   Revision:504093 (Only the first 10 of 50 ports in this commit are shown above. View all ports for this commit)
For ports with USES=cabal install a wrapper shell script instead of a real
executable into /bin/, that sets some environment variables to workaround
https://github.com/haskell/cabal/issues/5997

While there, update bunch of Haskell ports, install their data files.

PR:		237878
Reviewed by:	tcberner
Approved by:	tcberner (mentor)
Differential Revision:	https://reviews.freebsd.org/D20556
Thu, 9 May 2019
[ 15:02 arrowd search for other commits by this committer ] Original commit   Revision:501105
Restore "hs-" package name prefix for Haskell packages.

Reported by:	mat
Approved by:	mat
[ 14:39 arrowd search for other commits by this committer ] Original commit   Revision:501101 (Only the first 10 of 102 ports in this commit are shown above. View all ports for this commit)
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

Number of commits found: 53