Page MenuHomeFreeBSD

math/saga: Configure did not find OpenCV headers
ClosedPublic

Authored by rhurlin on Oct 2 2020, 5:58 PM.
Tags
None
Referenced Files
F82002378: D26645.id77790.diff
Wed, Apr 24, 9:25 AM
F82002315: D26645.id77799.diff
Wed, Apr 24, 9:25 AM
F82002307: D26645.id.diff
Wed, Apr 24, 9:25 AM
F82002251: D26645.id77808.diff
Wed, Apr 24, 9:24 AM
F82000891: D26645.diff
Wed, Apr 24, 9:12 AM
Unknown Object (File)
Wed, Apr 24, 4:05 AM
Unknown Object (File)
Sat, Apr 20, 6:27 PM
Unknown Object (File)
Dec 29 2023, 3:20 PM
Subscribers

Details

Summary

Because of a change in the sources[1], that I missed before, the ports Makefile did not find the opencv header files any more. As a result the OpenCV module will not be build.

[1] SAGA GIS opencv version 4 support: https://sourceforge.net/p/saga-gis/code/ci/1a4b6df792186480953f4fb20474f16b328a9a5c/

While here, remove not needed, OpenMP related, post-patch of configure files. These files are patched now via files/patch-configure.ac.

Bump portrevision to get a more functional SAGA GIS.

Tested on Poudriere. 'portlint -AC' is fine.

Diff Detail

Repository
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 33951
Build 31146: arc lint + arc unit

Event Timeline

math/saga/Makefile
93

^could you do this in a proper patch? There does not seem to be a reason to use a sed-call here.

sed-calls should only be used for dynamic patching, if the patch is static, prefer a patch in files/.

If I overlook something, let me know :)

Convert sed replacement to proper patch file.

Thanks Tobias, for the hint.
While I searched for a solution to find the OpenCV headers, I overlooked the next step to create a real patch file.

Should be done now ;)

Thanks :)

Dumb question: it's looking for opencv4, I would assume as it wants opencv-4.x and not what we have opencv-3.x -- is it really working?

mfg Tobias

Dumb question: it's looking for opencv4, I would assume as it wants opencv-4.x and not what we have opencv-3.x -- is it really working?

I just tested again with some simple datasets. And yes, it seems to work as expected.

Obviously there is some code in SAGA GIS to handle older API. The hint in the according SAGA GIS commit[1] "using previous version will need manual editing of Makefile.am (change 'opencv4' to 'opencv3'!?)" would otherwise also make little sense ...

[1] https://sourceforge.net/p/saga-gis/code/ci/1a4b6df792186480953f4fb20474f16b328a9a5c/

Thank you for thinking your way into this :)

LGTM then :)

I will look at updating opencv to 4.x

This revision is now accepted and ready to land.Oct 3 2020, 9:17 AM

Nice to hear. I just mentioned you already took the port from pool.

This revision was automatically updated to reflect the committed changes.