Created attachment 187122 [details] Out of make clean configure in graphics/okular At configure-time the port fails to find exiv2: -- Check Kexiv2 library in local sub-folder... -- Check Kexiv2 library using pkg-config... -- Checking for module 'libkexiv2-kde4>=0.2.0' -- Package 'libkexiv2-kde4', required by 'virtual:world', not found CMake Deprecation Warning at /opt/share/cmake/Modules/FeatureSummary.cmake:671 (message): SET_PACKAGE_INFO is deprecated. Use SET_PACKAGE_PROPERTIES instead. Call Stack (most recent call first): /opt/share/apps/cmake/modules/MacroLogFeature.cmake:96 (SET_PACKAGE_INFO) generators/CMakeLists.txt:12 (macro_log_feature) I've forcibly reinstalled cmake, pkg-config, and libkexiv2 itself, but the problem persists... Annoyingly, the port proceeds to build and fails at the install-time, when some of the expected files can not be found in STAGEDIR.
Do you have a custom install prefix set?
Yes, I’ve been using /opt for both LOCALBASE and X11BASE since long before the latter was retired.
I'll have to set up an environment with non-standard prefix to see exactly where it fails. You might want to try adding 'localbase:ldflags' to graphics/okular USES= list; perhaps that is enough...
Created attachment 187171 [details] Output of "make clean configure" after adding the suggested setting to USES > You might want to try adding 'localbase:ldflags' to graphics/okular USES= list No obvious difference: -USES= cmake:outsource jpeg kde:4 pkgconfig tar:xz +USES= cmake:outsource jpeg localbase:ldflags kde:4 pkgconfig tar:xz See updated configure-log...
Shame, was a shot in the dark :) How did you even get that far? Trying to install with PREFIX=/opt stops way earlier than okular.
> How did you even get that far? I have a symlink: /usr/local -> ../opt Maybe, that's what gets me through?
- Without the link /usr/local -> /opt, the build of gettext-tools fails already. This might be a PATH thing, though, since /opt/bin isn't in there by default (while /usr/local/bin is). - With the link, current graphics/okular (the KF5-based one) does build and install into /opt. Problem has gone away with other updates.