Bug 211312

Summary: devel/stack: Hangs on build
Product: Ports & Packages Reporter: freebsd
Component: Individual Port(s)Assignee: Kurt Jaeger <pi>
Status: Closed FIXED    
Severity: Affects Only Me CC: pi, tobik
Priority: --- Flags: tobik: maintainer-feedback+
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Build log
none
stack.diff
tobik: maintainer-approval+
stack.diff tobik: maintainer-approval+

Description freebsd 2016-07-23 15:31:49 UTC
Created attachment 172895 [details]
Build log

Build hangs after following lines:

> echo "#compdef stack" > _stack.zsh
> echo "autoload -U +X bashcompinit && bashcompinit" >> _stack.zsh
> cat  >> _stack.zsh

Full build log is attached.
Comment 1 Tobias Kortkamp freebsd_committer freebsd_triage 2016-07-23 16:14:05 UTC
Created attachment 172898 [details]
stack.diff

Odd... The last line should be cat _stack.bash >> _stack.zsh.  It's obviously the cat that hangs.

What FreeBSD version are you on?

I've attached a patch you could try that might fix this.  Let me know if it works.  Apply with patch -p0 -i stack.diff in /usr/port/devel/stack.
Comment 2 freebsd 2016-07-23 16:51:23 UTC
The patch worked, thanks!

I'm running version 10.3-RELEASE-p4.
Comment 3 Tobias Kortkamp freebsd_committer freebsd_triage 2016-07-26 14:43:43 UTC
Created attachment 173001 [details]
stack.diff

Updated patch to also add a missing run dependency on gmake, ca_root_nss, and perl which is required by at least 'stack setup' on newly installed systems with no other packages installed.  This deserves a PORTREVISION bump.

Poudriere testport (FreeBSD 10.3/amd64) ok. portlint ok (ignoring the expected warnings about libutil.so.8 and gmake as run dependency).
Comment 4 Kurt Jaeger freebsd_committer freebsd_triage 2016-08-26 06:23:12 UTC
testbuilds@work
Comment 5 commit-hook freebsd_committer freebsd_triage 2016-08-26 09:34:00 UTC
A commit references this bug:

Author: pi
Date: Fri Aug 26 09:33:56 UTC 2016
New revision: 420907
URL: https://svnweb.freebsd.org/changeset/ports/420907

Log:
  devel/stack: fix dependencies and hang on build

  PR:		211312
  Reported by:	freebsd@get-experience.com
  Submitted by:	Tobias Kortkamp <t@tobik.me> (maintainer)

Changes:
  head/devel/stack/Makefile
  head/devel/stack/files/
  head/devel/stack/files/patch-Makefile
Comment 6 Kurt Jaeger freebsd_committer freebsd_triage 2016-08-26 09:34:06 UTC
Committed, thanks!