tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bad paths in installed cmake files



On Sat, Jun 07, 2025 at 07:22:46AM -0400, Greg Troxel wrote:
> In the macos 12 bulk build, mosquitto didn't build.  (It builds most
> places, I think.)
> 
> reading the log:
>   https://reports.pkgci.org/Darwin/12.3/arm64/20250606.1533/mosquitto-2.0.21nb1/configure.log
> 
> I see
> 
>     CMake Error in src/CMakeLists.txt:
>       Imported target "websockets_shared" includes non-existent path
> 
>         "/Users/pbulk/build/www/libwebsockets/work/.buildlink/include"
> 
>       in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:
> 
>       * The path was deleted, renamed, or moved to another location.
> 
>       * An install or uninstall procedure did not complete successfully.
> 
>       * The installation package was faulty and references files it does not
>       provide.
> 
> I looked on my NetBSD 10 system and
> 
>     $ egrep work /usr/pkg/lib/cmake/libwebsockets/*
>     /usr/pkg/lib/cmake/libwebsockets/LibwebsocketsTargets.cmake:  INTERFACE_LINK_LIBRARIES "websockets_shared;/tmp/work/www/libwebsockets/work/.buildlink/lib/libuv.so"
>     /usr/pkg/lib/cmake/libwebsockets/LibwebsocketsTargets.cmake:      OR NOT DEFINED _cmake_import_check_xcframework_for_${_cmake_target}
>     /usr/pkg/lib/cmake/libwebsockets/LibwebsocketsTargets.cmake:      OR NOT IS_DIRECTORY "${_cmake_import_check_xcframework_for_${_cmake_target}}")
> 
> and while lines 2 and 3 are ok, line 1 is not.
> 
> 
> It seems
> 
>    we need to patch out build paths harder
> 
>    it would be great to have a 'make package'-time check for bad paths
>    in cmakefiles
> 
> but IANA cmake expert.

Also not a cmake expert, but there was a thread about this a while back:

https://marc.info/?l=netbsd-tech-pkg&m=174384056132188

I managed to patch around it in a few packages, largely with pretty
gross hacks.

-- 
Paul Ripke
"Great minds discuss ideas, average minds discuss events, small minds
 discuss people."
-- Disputed: Often attributed to Eleanor Roosevelt. 1948.


Home | Main Index | Thread Index | Old Index