Skip to content

Commit 511fa9f

Browse files
author
Anthony Mallet
committed
[sysutils/gz-tools] Fix dynamic loading of 'backward' library
* patch-ab: always use full path to the library, so as to no rely on LD_LIBRARY_PATH. Bump PKGREVISION.
1 parent 81aad5a commit 511fa9f

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

sysutils/gz-tools/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# Created: Anthony Mallet on Thu, 6 Feb 2025
33
#
44

5+
PKGREVISION= 1
56
DISTNAME= gz-tools-2.0.0
67

78
GZ_COMMENT= command line interface

sysutils/gz-tools/distinfo

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ SHA1 (gz-tools-gz-tools2_2.0.0.tar.gz) = 55f95d01462f602fb870ede858b7eb6e707d94b
22
RMD160 (gz-tools-gz-tools2_2.0.0.tar.gz) = 2c77aa1fd1b08b0afadc839a6ac55b1fb74c5692
33
Size (gz-tools-gz-tools2_2.0.0.tar.gz) = 60973 bytes
44
SHA1 (patch-aa) = fe582aab3cb742096819c31762915963e8dce4c0
5+
SHA1 (patch-ab) = f9b3a1f23211d8bca0bfcff49c57465e457ee14f

sysutils/gz-tools/patches/patch-ab

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Always use full path to libbackward.
2+
3+
--- src/CMakeLists.txt~ 2022-09-22 23:00:59.000000000 +0200
4+
+++ src/CMakeLists.txt 2025-03-13 12:37:09.897991272 +0100
5+
@@ -39,7 +39,7 @@
6+
7+
#===============================================================================
8+
# Used for the installed version.
9+
-if(APPLE)
10+
+if(TRUE)
11+
# On macOS, the full path to the library since DYLD_LIBRARY_PATH may not work.
12+
set(backward_library_name ${CMAKE_INSTALL_FULL_LIBDIR}/$<TARGET_FILE_NAME:backward>)
13+
else()

0 commit comments

Comments
 (0)