Bug 244556 - lang/ghc: ghc-pkg expects libncursesw.so.8 on -CURRENT
Summary: lang/ghc: ghc-pkg expects libncursesw.so.8 on -CURRENT
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-haskell (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-02 15:51 UTC by Trond Endrestøl
Modified: 2020-03-11 17:46 UTC (History)
3 users (show)

See Also:
contact: maintainer-feedback+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Trond Endrestøl 2020-03-02 15:51:29 UTC
After libncursesw.so.8 recently became libncursesw.so.9 in -CURRENT, ghc-pkg started to complain:

Installing library in /construction/xports/lang/ghc/work/ghc-8.6.5-boot/lib/ghc-8.6.5/ghc-8.6.5
"/construction/xports/lang/ghc/work/ghc-8.6.5-boot/lib/ghc-8.6.5/bin/ghc-pkg" --force --global-package-db "/construction/xports/lang/ghc/work/ghc-8.6.5-boot/lib/ghc-8.6.5/package.conf.d" update rts/dist/package.conf.install
ld-elf.so.1: Shared object "libncursesw.so.8" not found, required by "ghc-pkg"

The above is from an attempt at using ports-mgmt/synth to build lang/ghc. We might need new bootstrappers for -CURRENT.
Comment 1 Gleb Popov freebsd_committer freebsd_triage 2020-03-02 15:53:39 UTC
I'm aware of the problem, just don't have time to take a look at that.

I believe, this can be fixed by adding compat12x port to BUILD_DEPENDS. Maybe you can try that?
Comment 2 Trond Endrestøl 2020-03-03 20:42:15 UTC
(In reply to Gleb Popov from comment #1)
Success! Thank you.
Comment 3 Evilham 2020-03-09 19:11:58 UTC
In case someone comes wanting to spend time on this:
I think I have an simple patch, it's building now and requires also testing on 12, will probably submit in CET morning.
Comment 4 Gleb Popov freebsd_committer freebsd_triage 2020-03-09 19:12:53 UTC
(In reply to Evilham from comment #3)
That would be great! I can test it for 12 and 11.
Comment 5 Evilham 2020-03-10 10:13:37 UTC
*sigh* can't add the patch kw :-D anyway.

Here is the patch: https://reviews.freebsd.org/D24014
(note I created that with `arc diff lang/ghc --preview` and then from the web interface, still getting used to this :-))


Tested against 12 and 13, used it to build the new version of elm-format in poudriere and things appear to work fine.
Comment 6 commit-hook freebsd_committer freebsd_triage 2020-03-10 18:46:03 UTC
A commit references this bug:

Author: arrowd
Date: Tue Mar 10 18:45:38 UTC 2020
New revision: 528190
URL: https://svnweb.freebsd.org/changeset/ports/528190

Log:
  lang/ghc: Fix build on CURRENT.

  PR:		244556
  Submitted by:	Evilham <contact@evilham.com>
  Differential Revision:	https://reviews.freebsd.org/D24014

Changes:
  head/lang/ghc/Makefile
Comment 7 commit-hook freebsd_committer freebsd_triage 2020-03-11 05:21:45 UTC
A commit references this bug:

Author: arrowd
Date: Wed Mar 11 05:21:24 UTC 2020
New revision: 528207
URL: https://svnweb.freebsd.org/changeset/ports/528207

Log:
  lang/ghc: Follow-up fix for r528190.

  PR:		244556
  Reported by:	Evilham <contact@evilham.com>, pkubaj

Changes:
  head/lang/ghc/Makefile
Comment 8 commit-hook freebsd_committer freebsd_triage 2020-03-11 17:46:50 UTC
A commit references this bug:

Author: arrowd
Date: Wed Mar 11 17:46:13 UTC 2020
New revision: 528241
URL: https://svnweb.freebsd.org/changeset/ports/528241

Log:
  Follow-follow-up for r528190.

  PR:		244556
  Submitted by:	Evilham <contact@evilham.com>
  Differential Revision:	https://reviews.freebsd.org/D24023

Changes:
  head/lang/ghc/Makefile