Bug 212410 - net-im/ejabberd does not build
Summary: net-im/ejabberd does not build
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: Ashish SHUKLA
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-06 13:11 UTC by Victor Sudakov
Modified: 2016-09-07 13:04 UTC (History)
3 users (show)

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


Attachments
Complete poudriere build log (36.33 KB, text/x-log)
2016-09-06 13:11 UTC, Victor Sudakov
no flags Details
possible_patch-net_im-ejabberd (31.41 KB, patch)
2016-09-07 01:10 UTC, Walter Schwarzenfeld
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Victor Sudakov 2016-09-06 13:11:32 UTC
Created attachment 174413 [details]
Complete poudriere build log

ompiled src/fast_xml.erl
/wrkdirs/usr/ports/net-im/ejabberd/work/deps/fast_xml/src/fxml.erl:51: syntax error before: '/'
/wrkdirs/usr/ports/net-im/ejabberd/work/deps/fast_xml/src/fxml.erl:72: syntax error before: '/'
/wrkdirs/usr/ports/net-im/ejabberd/work/deps/fast_xml/src/fxml.erl:82: syntax error before: '/'
/wrkdirs/usr/ports/net-im/ejabberd/work/deps/fast_xml/src/fxml.erl:93: syntax error before: '/'
/wrkdirs/usr/ports/net-im/ejabberd/work/deps/fast_xml/src/fxml.erl:107: syntax error before: '/'
/wrkdirs/usr/ports/net-im/ejabberd/work/deps/fast_xml/src/fxml.erl:132: syntax error before: '/'
/wrkdirs/usr/ports/net-im/ejabberd/work/deps/fast_xml/src/fxml.erl:141: syntax error before: '/'
/wrkdirs/usr/ports/net-im/ejabberd/work/deps/fast_xml/src/fxml.erl:153: syntax error before: '/'
/wrkdirs/usr/ports/net-im/ejabberd/work/deps/fast_xml/src/fxml.erl:162: syntax error before: '/'
/wrkdirs/usr/ports/net-im/ejabberd/work/deps/fast_xml/src/fxml.erl:177: syntax error before: '/'
/wrkdirs/usr/ports/net-im/ejabberd/work/deps/fast_xml/src/fxml.erl:191: syntax error before: '/'
/wrkdirs/usr/ports/net-im/ejabberd/work/deps/fast_xml/src/fxml.erl:203: syntax error before: '/'
/wrkdirs/usr/ports/net-im/ejabberd/work/deps/fast_xml/src/fxml.erl:214: syntax error before: '/'
/wrkdirs/usr/ports/net-im/ejabberd/work/deps/fast_xml/src/fxml.erl:225: syntax error before: '/'
/wrkdirs/usr/ports/net-im/ejabberd/work/deps/fast_xml/src/fxml.erl:239: syntax error before: '/'
/wrkdirs/usr/ports/net-im/ejabberd/work/deps/fast_xml/src/fxml.erl:258: syntax error before: '/'
/wrkdirs/usr/ports/net-im/ejabberd/work/deps/fast_xml/src/fxml.erl:270: syntax error before: '/'
/wrkdirs/usr/ports/net-im/ejabberd/work/deps/fast_xml/src/fxml.erl:293: syntax error before: '/'
/wrkdirs/usr/ports/net-im/ejabberd/work/deps/fast_xml/src/fxml.erl:320: syntax error before: '/'
/wrkdirs/usr/ports/net-im/ejabberd/work/deps/fast_xml/src/fxml.erl:334: syntax error before: '/'
/wrkdirs/usr/ports/net-im/ejabberd/work/deps/fast_xml/src/fxml.erl:345: syntax error before: '/'
/wrkdirs/usr/ports/net-im/ejabberd/work/deps/fast_xml/src/fxml.erl:366: syntax error before: '/'
/wrkdirs/usr/ports/net-im/ejabberd/work/deps/fast_xml/src/fxml.erl:384: syntax error before: '/'
ERROR: compile failed while processing /wrkdirs/usr/ports/net-im/ejabberd/work/deps/fast_xml: rebar_abort
gmake: *** [Makefile:90: deps/.built] Error 1
*** [do-build] Error code 1
Comment 1 Walter Schwarzenfeld freebsd_triage 2016-09-07 01:10:46 UTC
Created attachment 174451 [details]
possible_patch-net_im-ejabberd
Comment 2 Walter Schwarzenfeld freebsd_triage 2016-09-07 01:11:33 UTC
This compiles and installs in the ports. Only tested with port (10.3-RELEASE) yet.
Comment 3 Walter Schwarzenfeld freebsd_triage 2016-09-07 01:16:30 UTC
Maybe, there's a better solution for the syntax-error. But it needs patch-lager__transform.erl.
Comment 4 Walter Schwarzenfeld freebsd_triage 2016-09-07 01:21:44 UTC
Found the patch for lager_transform here:
https://github.com/basho/lager/commit/d35670e01a3c6f9f9bcb3150217d26cc92513586
Comment 5 Walter Schwarzenfeld freebsd_triage 2016-09-07 02:44:06 UTC
An other way maybe, to use a REINPLACE_CMD to filter out the syntax-error.
(Something linke  - only quick checked  -  sed 's/\(-spec.*\)\/[0-9] ::\(.*\)/\1\2/' work/ejabberd-16.04/src/*.erl)
Comment 6 commit-hook freebsd_committer 2016-09-07 13:02:42 UTC
A commit references this bug:

Author: ashish
Date: Wed Sep  7 13:02:08 UTC 2016
New revision: 421499
URL: https://svnweb.freebsd.org/changeset/ports/421499

Log:
  - Update to 16.08
  - Update dependencies tarball
  - Add a diff for riakc to build it with Erlang 19.x
  - Temporarily disable LOGDB option
  - Instead of post-patch, switch to pre-configure target for in-place
    replacements

  PR:		212410 212328

Changes:
  head/net-im/ejabberd/Makefile
  head/net-im/ejabberd/distinfo
  head/net-im/ejabberd/files/patch-.._deps_riakc_rebar.config
  head/net-im/ejabberd/files/patch-Makefile.in
  head/net-im/ejabberd/files/patch-ejabberdctl.template
  head/net-im/ejabberd/pkg-plist
Comment 7 Ashish SHUKLA freebsd_committer 2016-09-07 13:04:50 UTC
Committed update.

HTH