From 1976a707db03ee42d2cfd1409ddfed59fd73e8ae Mon Sep 17 00:00:00 2001 From: termux-pacman-bot Date: Sat, 3 Jan 2026 07:37:23 +0000 Subject: [PATCH] fix(main/notcurses): remove `target_link_directories(notcurses-static`... - Progress on https://github.com/termux/termux-packages/issues/23492 - Works around error `Found relative path while evaluating link directories of "notcurses-static": "lib"` --- packages/notcurses/CMakeLists.txt.patch | 21 ++++++++++++++++++++- packages/notcurses/build.sh | 2 +- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/packages/notcurses/CMakeLists.txt.patch b/packages/notcurses/CMakeLists.txt.patch index 2b18e2c7cf..c4e8a1a2f0 100644 --- a/packages/notcurses/CMakeLists.txt.patch +++ b/packages/notcurses/CMakeLists.txt.patch @@ -1,3 +1,7 @@ +removing target_link_directories(notcurses-static... +avoids error: +Found relative path while evaluating link directories of "notcurses-static": "lib" + --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -86,7 +86,7 @@ @@ -32,7 +36,22 @@ target_compile_definitions(notcurses-core PUBLIC _XOPEN_SOURCE=700 # wcwidth(3) requires _XOPEN_SOURCE, and is in our headers -@@ -417,7 +417,7 @@ +@@ -411,14 +411,6 @@ target_link_directories(notcurses + "${SWSCALE_LIBRARY_DIRS}" + "${AVUTIL_LIBRARY_DIRS}" + ) +-target_link_directories(notcurses-static +- PRIVATE +- "${AVCODEC_STATIC_LIBRARY_DIRS}" +- "${AVDEVICE_STATIC_LIBRARY_DIRS}" +- "${AVFORMAT_STATIC_LIBRARY_DIRS}" +- "${SWSCALE_STATIC_LIBRARY_DIRS}" +- "${AVUTIL_STATIC_LIBRARY_DIRS}" +-) + elseif(${USE_OIIO}) + target_include_directories(notcurses PUBLIC "${OIIO_INCLUDE_DIRS}") + target_include_directories(notcurses-static PUBLIC "${OIIO_STATIC_INCLUDE_DIRS}") +@@ -436,7 +428,7 @@ add_library(notcurses-ffi SHARED ${NCFFISRCS}) target_compile_options(notcurses-ffi PUBLIC -fkeep-inline-functions) target_compile_definitions(notcurses-ffi PUBLIC NOTCURSES_FFI) # don't want these on freebsd/dragonfly/osx diff --git a/packages/notcurses/build.sh b/packages/notcurses/build.sh index b315f948af..8c19451a05 100644 --- a/packages/notcurses/build.sh +++ b/packages/notcurses/build.sh @@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="blingful TUIs and character graphics" TERMUX_PKG_LICENSE="Apache-2.0" TERMUX_PKG_MAINTAINER="@termux" TERMUX_PKG_VERSION="3.0.17" -TERMUX_PKG_REVISION=1 +TERMUX_PKG_REVISION=2 TERMUX_PKG_SRCURL=https://github.com/dankamongmen/notcurses/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz TERMUX_PKG_SHA256=b0fbe824984fe25b5a16770dbd00b85d44db5d09cc35bd881b95335d0db53128 TERMUX_PKG_AUTO_UPDATE=true