View Issue Details

IDProjectCategoryView StatusLast Update
0016877ScribusBuild Systempublic2023-05-29 18:56
Reporterwiz Assigned Tojghali  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version1.5.8 
Fixed in Version1.6.0.svn 
Summary0016877: NetBSD: link against libexecinfo for backtrace_symbols
DescriptionLike on FreeBSD and OpenBSD, backtrace_symbols() on NetBSD is in libexecinfo.
Linking fails on NetBSD-current with binutils 2.39 because of this.
(Earlier versions of NetBSD had an older binutils where the library was pulled in automatically via a dependency, binutils 2.39 enforces direct usage of the library on the linker command line.)
Steps To ReproduceBuild scribus on NetBSD-current.
Additional InformationThe attached patch handles NetBSD like FreeBSD and OpenBSD and fixes the problem.
TagsNo tags attached.
PatchYes

Activities

wiz

2023-01-01 23:33

reporter  

patch-scribus_CMakeLists.txt (536 bytes)   
$NetBSD$

Link against libexecinfo for backtrace_symbols().

--- scribus/CMakeLists.txt.orig	2022-01-23 16:16:24.000000000 +0000
+++ scribus/CMakeLists.txt
@@ -827,7 +827,7 @@ if(UNIX AND NOT CMAKE_SYSTEM_NAME STREQU
 endif()
 
 # #9311 for the OpenBSD addition
-if(CMAKE_SYSTEM_NAME STREQUAL "OpenBSD" OR CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
+if(CMAKE_SYSTEM_NAME STREQUAL "OpenBSD" OR CMAKE_SYSTEM_NAME STREQUAL "FreeBSD" OR CMAKE_SYSTEM_NAME STREQUAL "NetBSD")
   target_link_libraries(${EXE_NAME} PRIVATE util execinfo)
 endif()
 

jghali

2023-01-02 01:38

administrator   ~0049852

Applied, thanks!

Issue History

Date Modified Username Field Change
2023-01-01 23:33 wiz New Issue
2023-01-01 23:33 wiz File Added: patch-scribus_CMakeLists.txt
2023-01-02 01:36 jghali Priority high => normal
2023-01-02 01:38 jghali Assigned To => jghali
2023-01-02 01:38 jghali Status new => resolved
2023-01-02 01:38 jghali Resolution open => fixed
2023-01-02 01:38 jghali Fixed in Version => 1.6.0.svn
2023-01-02 01:38 jghali Note Added: 0049852
2023-05-29 18:56 cbradney Status resolved => closed