Bug 209244 - math/scilab broken by science/hd5 upgrade to 1.10
Summary: math/scilab broken by science/hd5 upgrade to 1.10
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: Don Lewis
URL:
Keywords: patch
Depends on: 209980
Blocks:
  Show dependency treegraph
 
Reported: 2016-05-03 18:32 UTC by Don Lewis
Modified: 2016-06-02 21:26 UTC (History)
1 user (show)

See Also:
makc: maintainer-feedback+


Attachments
patch to unbreak scilab build with hdf5 1.10 and other fixes (3.69 KB, patch)
2016-05-03 18:32 UTC, Don Lewis
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Don Lewis freebsd_committer freebsd_triage 2016-05-03 18:32:36 UTC
Created attachment 169937 [details]
patch to unbreak scilab build with hdf5 1.10 and other fixes

When hdf5 was upgraded to version 1.10, it broke the scilab build:

src/c/h5_readDataFromFile.c:719:64: error: too few arguments to function call, expected 4, have 3
        obj = H5Rdereference(_iDatasetId, H5R_OBJECT, &pData[i]);
              ~~~~~~~~~~~~~~                                   ^
/usr/local/include/H5Rpublic.h:63:8: note: 'H5Rdereference2' declared here

The build fix to math/matio in #209242 is necessary to get this far because matio is a non-optional dependency.

The attached patch fixes the scilab build.

Also, fix the build when the GUI option is disabled.

While here, quiet a bunch of portlint warnings.  Since this port installs both icons and shared libraries, add
    USE_LDCONFIG=  yes
and
    INSTALLS_ICONS=        yes
to Makefile.
Comment 1 Max Brazhnikov freebsd_committer freebsd_triage 2016-05-06 12:13:27 UTC
(In reply to Don Lewis from comment #0)
> Created attachment 169937 [details]
> patch to unbreak scilab build with hdf5 1.10 and other fixes
> 
> When hdf5 was upgraded to version 1.10, it broke the scilab build:
> 
> src/c/h5_readDataFromFile.c:719:64: error: too few arguments to function
> call, expected 4, have 3
>         obj = H5Rdereference(_iDatasetId, H5R_OBJECT, &pData[i]);
>               ~~~~~~~~~~~~~~                                   ^
> /usr/local/include/H5Rpublic.h:63:8: note: 'H5Rdereference2' declared here
> 
> The build fix to math/matio in #209242 is necessary to get this far because
> matio is a non-optional dependency.
> 
> The attached patch fixes the scilab build.
> 
> Also, fix the build when the GUI option is disabled.

Approved.

> While here, quiet a bunch of portlint warnings.  Since this port installs
> both icons and shared libraries, add
>     USE_LDCONFIG=  yes

Porlint is not perfect and this USE_LDCONFIG is superfluous here. Scilab install s its libraries into a privite directory, they are not used by other ports.

> and
>     INSTALLS_ICONS=        yes

Ok.
Comment 2 commit-hook freebsd_committer freebsd_triage 2016-05-06 21:45:44 UTC
A commit references this bug:

Author: truckman
Date: Fri May  6 21:45:20 UTC 2016
New revision: 414732
URL: https://svnweb.freebsd.org/changeset/ports/414732

Log:
  Fix build with science/hdf5 version 1.10 by specifying that we want to
  use the version 1.8 API.

  Fix the build when the GUI option is disabled.

  Since this port installs icons, add INSTALLS_ICONS=yes to Makefile.

  PR:		209244
  Approved by:	makc (maintainer)

Changes:
  head/math/scilab/Makefile
  head/math/scilab/files/patch-modules_hdf5_includes_HDF5Objects.h
  head/math/scilab/files/patch-modules_hdf5_src_c_h5__readDataFromFile.c
  head/math/scilab/files/patch-modules_hdf5_src_c_h5__readDataFromFile__v1.c
Comment 3 Don Lewis freebsd_committer freebsd_triage 2016-06-02 21:26:33 UTC
This problem was fixed by the patch committed in r414720 which tells the port to specifically request the version 1.8 API.  It doesn't require any changes to hdf5.