When compiling lang/swipl it is required to run.The proper and canonical solution for this problem is -DLibUUID_ROOT=${LOCALBASE}
/usr/local/bin/uuid-config --cflags | --ldflags
... as part of deducing header / library placement of misc/ossp-uuid. This is all part of the cmake setup of lang/swipl, and currently I use an awful patch to hardcode something in the cmake file pre-make - but this file actually allows one to set a variable - $LibUUID_ROOT - to the path of uuid-config from the outside. I have successfully experimented with this, so I added:
BUILD_DEPENDS= uuid-config:misc/ossp-uuid
.. to the makefile. Now my question is: How do I properly get to the pathname of uuid-config?? In order to pass it to cmake somewhat like (pseudo):
CMAKE_ARGS= -DLibUUID_ROOT=${which uuid-config:sh:H}
On 2026-05-28 22:03, Gleb Popov wrote:... I tried both changes and synth still complains! Both changes make sense to me, and when make'ing from the cmdline all is well!?
On Thu, May 28, 2026 at 10:36rC>PM Nikolaj Thygesen <mailinglist@diamondbox.dk> wrote:
When compiling lang/swipl it is required to run.The proper and canonical solution for this problem is
/usr/local/bin/uuid-config --cflags | --ldflags
... as part of deducing header / library placement of
misc/ossp-uuid. This is all part of the cmake setup of lang/swipl,
and currently I use an awful patch to hardcode something in the
cmake file pre-make - but this file actually allows one to set a
variable - $LibUUID_ROOT - to the path of uuid-config from the
outside. I have successfully experimented with this, so I added:
BUILD_DEPENDS= uuid-config:misc/ossp-uuid
.. to the makefile. Now my question is: How do I properly get to
the pathname of uuid-config?? In order to pass it to cmake
somewhat like (pseudo):
CMAKE_ARGS= -DLibUUID_ROOT=${which uuid-config:sh:H}
-DLibUUID_ROOT=${LOCALBASE}
Ports should expect their dependencies to be installed underRemove the patch and use use USES= localbase:ldflags? https://cgit.freebsd.org/ports/tree/lang/swipl/files/patch-packages_clib_cmake_FindLibUUID.cmake
${LOCALBASE}.
Best regards, Daniel
On 2026-05-28 22:03, Gleb Popov wrote:For the record - this turned out to be a minor discrepancy in ossp-uuid.
On Thu, May 28, 2026 at 10:36rC>PM Nikolaj Thygesen <mailinglist@diamondbox.dk> wrote:
When compiling lang/swipl it is required to run.The proper and canonical solution for this problem is
/usr/local/bin/uuid-config --cflags | --ldflags
... as part of deducing header / library placement of
misc/ossp-uuid. This is all part of the cmake setup of lang/swipl,
and currently I use an awful patch to hardcode something in the
cmake file pre-make - but this file actually allows one to set a
variable - $LibUUID_ROOT - to the path of uuid-config from the
outside. I have successfully experimented with this, so I added:
BUILD_DEPENDS= uuid-config:misc/ossp-uuid
.. to the makefile. Now my question is: How do I properly get to
the pathname of uuid-config?? In order to pass it to cmake
somewhat like (pseudo):
CMAKE_ARGS= -DLibUUID_ROOT=${which uuid-config:sh:H}
-DLibUUID_ROOT=${LOCALBASE}
Ports should expect their dependencies to be installed underRemove the patch and use use USES= localbase:ldflags? https://cgit.freebsd.org/ports/tree/lang/swipl/files/patch-packages_clib_cmake_FindLibUUID.cmake
${LOCALBASE}.
Best regards, Daniel
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 70 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 39:34:40 |
| Calls: | 948 |
| Calls today: | 2 |
| Files: | 1,325 |
| Messages: | 280,644 |