On 2024/05/20 21:40, Thomas Frohwein wrote: > On Mon, May 20, 2024 at 11:38:12PM +0300, Viacheslav Chimishuk wrote: > > On 20.05.2024 09:20, Thomas Frohwein <tfrohw...@fastmail.com> wrote: > > > Did this work for you? I built it with your patch, but the file > > > /usr/local/lib/cmake/SDL2_image/sdl2_image-config.cmake appears to be > > > unchanged and still doesn't contain the library version. Don't have > > > time right now to look more closely myself... > > > > Yes, it works just fine for me. Maybe package from the cache has been > > installed > > instead of built version or something? > > > > $ cat /usr/local/lib/cmake/SDL2_image/sdl2_image-config.cmake | grep 1.1 > > IMPORTED_LOCATION > > "${_sdl2image_libdir}/${CMAKE_SHARED_LIBRARY_PREFIX}SDL2_image${CMAKE_SHARED_LIBRARY_SUFFIX}.1.1" > > $ > > I found the cause. This section: > > +Index: sdl2_image-config.cmake.in > +--- sdl2_image-config.cmake.in.orig > ++++ sdl2_image-config.cmake.in > > created the patch in the main directory of the port and not in patches/ > and I didn't look closely so the patch was never applied.
That Index is within the patch file. It's the above line in the diff that sets the patch location: a/devel/sdl2-image/patches/patch-sdl2_image-config_cmake_in So the patch needs applying with -p3 (directories are not created unless there's some -p flag).