Bug 207131 - net-im/prosody: unable to find LuaSec
Summary: net-im/prosody: unable to find LuaSec
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: arm Any
: --- Affects Some People
Assignee: David Thiel
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-12 11:46 UTC by Daniel
Modified: 2016-05-17 22:19 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (lx)


Attachments
use CC for linking (571 bytes, patch)
2016-02-12 19:29 UTC, Mikael Urankar
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel 2016-02-12 11:46:28 UTC
Running FreeBSD 11 current (either official image or a slightly newer that I compiled yesterday) on a Raspberry Pi 2:

`pkg install security/luasec` says it’s installed.

I can build and install Prosody just fine, but get this error when I try to run it:

    Prosody was unable to find LuaSec
    This package can be obtained in the following ways:

        Source:           http://www.inf.puc-rio.br/~brunoos/luasec/
        Debian/Ubuntu:    http://prosody.im/download/start#debian_and_ubuntu
        luarocks:         luarocks install luasec

    SSL/TLS support will not be available
    More help can be found on our website, at http://prosody.im/doc/depends

Possibly related to bug #207130.
Comment 1 Daniel 2016-02-12 17:07:17 UTC
The patch suggested in bug #207130 had no effect on this issue.
Comment 2 Mikael Urankar freebsd_committer freebsd_triage 2016-02-12 19:29:49 UTC
Created attachment 166905 [details]
use CC for linking

The problem is in security/luasec and the root cause is the same: direct use of LD: https://github.com/brunoos/luasec/blob/master/src/Makefile#L52
The attached patch against security/luasec should fix the problem.
lx@ do you want me to open a PR for luasec?
Comment 3 David Thiel freebsd_committer freebsd_triage 2016-02-12 19:37:43 UTC
No need, I'll go ahead and apply to luasec. Thanks!
Comment 4 commit-hook freebsd_committer freebsd_triage 2016-05-17 22:16:05 UTC
A commit references this bug:

Author: lx
Date: Tue May 17 22:15:32 UTC 2016
New revision: 415419
URL: https://svnweb.freebsd.org/changeset/ports/415419

Log:
  Don't use ld directly.

  PR:		207131
  Submitted by:	mikael.urankar@gmail.com
  Reported by:	Daniel <code@daniel.priv.no>

Changes:
  head/security/luasec/Makefile
Comment 5 David Thiel freebsd_committer freebsd_triage 2016-05-17 22:19:18 UTC
Committed, thanks!