Bug 207622 - lang/erlang: ODBC doesn't work on FreeBSD
Summary: lang/erlang: ODBC doesn't work on FreeBSD
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Some People
Assignee: Jimmy Olgeni
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-01 19:33 UTC by mk+freebsd
Modified: 2016-03-29 15:10 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mk+freebsd 2016-03-01 19:33:03 UTC
Hi everyone,

ODBC support doesn't compile ebin files on FreeBSD, using ports (via poudriere) and using official source. After installing this package with correct options I have only doc files and man page

Here the output of all options

```
$ pkg info erlang
erlang-18.2.4,3
Name           : erlang
Version        : 18.2.4,3
Installed on   : Mon Feb 29 17:11:08 2016 CET
Origin         : lang/erlang
Architecture   : freebsd:10:x86:64
Prefix         : /usr/local
Categories     : java lang parallel
Licenses       : APACHE20
Maintainer     : olgeni@FreeBSD.org
WWW            : http://www.erlang.org/
Comment        : Functional programming language from Ericsson
Options        :
        DIRTY          : off
        DOCS           : on
        DTRACE         : off
        GCC            : off
        GS             : off
        HIPE           : on
        JAVA           : off
        KQUEUE         : on
        ODBC           : on
        OPENSSL        : on
        SCTP           : on
        SMP            : on
        THREADS        : on
        WX             : off
Shared Libs required:
        libcrypto.so.7
        libc.so.7
Annotations    :
        repo_type      : binary
        repository     : next
Flat size      : 151MiB
Description    :
Erlang is a programming language used to build massively scalable soft
real-time systems with requirements on high availability. Some of its
uses are in telecoms, banking, e-commerce, computer telephony and
instant messaging. Erlang's runtime system has built-in support for
concurrency, distribution and fault tolerance.

WWW: http://www.erlang.org/
```

And here files filter with ODBC:

```
$ pkg info -l erlang | grep -i odbc
        /usr/local/lib/erlang/lib/odbc-2.11.1/doc/html/book.gif
        /usr/local/lib/erlang/lib/odbc-2.11.1/doc/html/databases.html
        /usr/local/lib/erlang/lib/odbc-2.11.1/doc/html/error_handling.html
        /usr/local/lib/erlang/lib/odbc-2.11.1/doc/html/getting_started.html
        /usr/local/lib/erlang/lib/odbc-2.11.1/doc/html/index.html
        /usr/local/lib/erlang/lib/odbc-2.11.1/doc/html/introduction.html
        /usr/local/lib/erlang/lib/odbc-2.11.1/doc/html/note.gif
        /usr/local/lib/erlang/lib/odbc-2.11.1/doc/html/notes.gif
        /usr/local/lib/erlang/lib/odbc-2.11.1/doc/html/notes.html
        /usr/local/lib/erlang/lib/odbc-2.11.1/doc/html/odbc.eix
        /usr/local/lib/erlang/lib/odbc-2.11.1/doc/html/odbc.gif
        /usr/local/lib/erlang/lib/odbc-2.11.1/doc/html/odbc.html
        /usr/local/lib/erlang/lib/odbc-2.11.1/doc/html/odbc_app_arc.gif
        /usr/local/lib/erlang/lib/odbc-2.11.1/doc/html/ref_man.gif
        /usr/local/lib/erlang/lib/odbc-2.11.1/doc/html/release_notes.html
        /usr/local/lib/erlang/lib/odbc-2.11.1/doc/html/user_guide.gif
        /usr/local/lib/erlang/lib/odbc-2.11.1/doc/html/users_guide.html
        /usr/local/lib/erlang/lib/odbc-2.11.1/doc/pdf/odbc-2.11.1.pdf
        /usr/local/lib/erlang/lib/odbc-2.11.1/info
        /usr/local/lib/erlang/man/man3/odbc.3
```

I've build with official source too, same issue. I've also read #167023 but, I don't know if its the same problem.

```
FreeBSD localhost 10.1-RELEASE-p26 FreeBSD 10.1-RELEASE-p26 #0: Wed Jan 13 20:59:29 UTC 2016     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64
```
Comment 1 Jimmy Olgeni freebsd_committer freebsd_triage 2016-03-03 11:37:33 UTC
Found it - testing a fix.
Comment 2 commit-hook freebsd_committer freebsd_triage 2016-03-29 15:06:49 UTC
A commit references this bug:

Author: olgeni
Date: Tue Mar 29 15:05:54 UTC 2016
New revision: 412118
URL: https://svnweb.freebsd.org/changeset/ports/412118

Log:
  Upgrade Erlang 18 ports to version 18.3.

  Also, make sure that ODBC is actually built (PR 207622).

  PR:		207622
  Submitted by:	Mathieu Kerjouan

Changes:
  head/lang/erlang/Makefile
  head/lang/erlang/distinfo
  head/lang/erlang-java/Makefile
  head/lang/erlang-java/distinfo
  head/lang/erlang-wx/Makefile
  head/lang/erlang-wx/distinfo
Comment 3 Jimmy Olgeni freebsd_committer freebsd_triage 2016-03-29 15:10:19 UTC
Fixed in 18.3. Thank you!