Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 04 Mar 2016 06:19:28 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 207693] math/saga: Drop not needed LDFLAGS=opencv
Message-ID:  <bug-207693-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207693

            Bug ID: 207693
           Summary: math/saga: Drop not needed LDFLAGS=3Dopencv
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs@FreeBSD.org
          Reporter: rhurlin@gwdg.de

Created attachment 167703
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D167703&action=
=3Dedit
patch to remove LDFLAGS=3Dopencv from Makefile

In SAGA GIS version 2.1.0, 'LDFLAGS+=3D -lopencv_contrib' was introduced be=
cause
of some trouble with opencv libs, linked in from graphics/opencv[-core].

Using LDFLAGS in this context leads to some overlinking, which could be fou=
nd
in prior versions of SAGA GIS, for instance:

ldd /usr/local/bin/saga_gui | grep opencv
        libopencv_contrib.so.2 =3D> /usr/local/lib/libopencv_contrib.so.2
(0x2f6fb000)
        libopencv_nonfree.so.2 =3D> /usr/local/lib/libopencv_nonfree.so.2
(0x37977000)
        libopencv_gpu.so.2 =3D> /usr/local/lib/libopencv_gpu.so.2 (0x383840=
00)
        libopencv_legacy.so.2 =3D> /usr/local/lib/libopencv_legacy.so.2
(0x3859f000)
        libopencv_photo.so.2 =3D> /usr/local/lib/libopencv_photo.so.2
(0x388a4000)
        libopencv_ocl.so.2 =3D> /usr/local/lib/libopencv_ocl.so.2 (0x38ac00=
00)
        libopencv_calib3d.so.2 =3D> /usr/local/lib/libopencv_calib3d.so.2
(0x38e86000)
        libopencv_features2d.so.2 =3D> /usr/local/lib/libopencv_features2d.=
so.2
(0x39126000)
        libopencv_flann.so.2 =3D> /usr/local/lib/libopencv_flann.so.2
(0x393cb000)
        libopencv_ml.so.2 =3D> /usr/local/lib/libopencv_ml.so.2 (0x39641000)
        libopencv_video.so.2 =3D> /usr/local/lib/libopencv_video.so.2
(0x398c2000)
        libopencv_objdetect.so.2 =3D> /usr/local/lib/libopencv_objdetect.so=
.2
(0x39b0a000)
        libopencv_highgui.so.2 =3D> /usr/local/lib/libopencv_highgui.so.2
(0x39d84000)
        libopencv_imgproc.so.2 =3D> /usr/local/lib/libopencv_imgproc.so.2
(0x3a200000)
        libopencv_core.so.2 =3D> /usr/local/lib/libopencv_core.so.2 (0x3a80=
0000)


This is overcome by some changes in the SAGA GIS opencv module for some time
now, and so this 'global' LDFLAGS in Makefile should be removed. The attach=
ed
patch also bumps port revision, to get rid of the unneeded deps after
rebuilding.


Tested with Poudriere, and 'portlint -AC' does not complain.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-207693-13>