Debian Codegraph @

debian/patches/fix-hurd-build

raw symbols SCIP
1 Description: <short summary of the patch>
2 TODO: Put a short summary on the line above and replace this paragraph
3 with a longer explanation of this change. Complete the meta-information
4 with other relevant fields (see below for details). To make it easier, the
5 information below has been extracted from the changelog. Adjust it or drop
6 it.
7 .
8 pacman.c (0+git20240818+ds-5) unstable; urgency=medium
9 .
10 * Fix FTBFS for Hurd.
11 Author: Alex Myczko <[email protected]>
12
13 ---
14 The information above should follow the Patch Tagging Guidelines, please
15 checkout https://dep.debian.net/deps/dep3/ to learn about the format. Here
16 are templates for supplementary fields that you might want to add:
17
18 Origin: (upstream|backport|vendor|other), (<patch-url>|commit:<commit-id>)
19 Bug: <upstream-bugtracker-url>
20 Bug-Debian: https://bugs.debian.org/<bugnumber>
21 Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
22 Forwarded: (no|not-needed|<patch-forwarded-url>)
23 Applied-Upstream: <version>, (<commit-url>|commit:<commid-id>)
24 Reviewed-By: <name and email of someone who approved/reviewed the patch>
25 Last-Update: 2025-11-12
26
27 --- pacman.c-0+git20240818+ds.orig/CMakeLists.txt
28 +++ pacman.c-0+git20240818+ds/CMakeLists.txt
29 @@ -2,8 +2,8 @@ cmake_minimum_required(VERSION 3.5)
30 project(pacman)
31 set(CMAKE_C_STANDARD 11)
32
33 -# Linux -pthread shenanigans
34 -if (CMAKE_SYSTEM_NAME STREQUAL Linux)
35 +# POSIX thread handling (covers Linux, GNU/Hurd, BSD)
36 +if (UNIX AND NOT APPLE)
37 set(THREADS_PREFER_PTHREAD_FLAG ON)
38 find_package(Threads REQUIRED)
39 endif()
40 @@ -27,7 +27,7 @@ if(CMAKE_SYSTEM_NAME STREQUAL Darwin)
41 "-framework OpenGL"
42 "-framework AudioToolbox")
43 else()
44 - if (CMAKE_SYSTEM_NAME STREQUAL Linux)
45 + if (UNIX AND NOT APPLE)
46 target_link_libraries(sokol INTERFACE X11 Xi Xcursor GL asound dl m)
47 target_link_libraries(sokol PUBLIC Threads::Threads)
48 endif()