diff options
| author | Yelninei <yelninei@tutamail.com> | 2026-03-10 16:35:57 +0000 |
|---|---|---|
| committer | Gabriel Wicki <gabriel@erlikon.ch> | 2026-07-20 11:14:21 +0200 |
| commit | 1df0928e02e44ede617a1bc729325d2c8007a4ca (patch) | |
| tree | 4e14a764986f74ff080605b129fb589ba586f487 /gnu | |
| parent | dc0990acb382141a50a842bd876e39b23c747d47 (diff) | |
gnu: graphite2: Use same linker settings for the Hurd as on Linux.
* gnu/packages/patches/graphite2-non-linux.patch: New patch.
* gnu/local.mk (dist_patch_DATA): Register it.
* gnu/packages/fontutils.scm (graphite2):
[#:phases] Add phase to apply patch for Hurd targets.
[#:test-exclude] Remove.
Change-Id: I1146adc1daa1cc8400d00456ed2eb65a7ce95c6c
Signed-off-by: Gabriel Wicki <gabriel@erlikon.ch>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/local.mk | 1 | ||||
| -rw-r--r-- | gnu/packages/fontutils.scm | 15 | ||||
| -rw-r--r-- | gnu/packages/patches/graphite2-non-linux.patch | 57 |
3 files changed, 70 insertions, 3 deletions
diff --git a/gnu/local.mk b/gnu/local.mk index 137fd5a61d3..32b738196e0 100644 --- a/gnu/local.mk +++ b/gnu/local.mk | |||
| @@ -1551,6 +1551,7 @@ dist_patch_DATA = \ | |||
| 1551 | %D%/packages/patches/gpodder-disable-updater.patch \ | 1551 | %D%/packages/patches/gpodder-disable-updater.patch \ |
| 1552 | %D%/packages/patches/grantlee-fix-i586-precision.patch \ | 1552 | %D%/packages/patches/grantlee-fix-i586-precision.patch \ |
| 1553 | %D%/packages/patches/grantlee-register-metaenumvariable.patch \ | 1553 | %D%/packages/patches/grantlee-register-metaenumvariable.patch \ |
| 1554 | %D%/packages/patches/graphite2-non-linux.patch \ | ||
| 1554 | %D%/packages/patches/grep-timing-sensitive-test.patch \ | 1555 | %D%/packages/patches/grep-timing-sensitive-test.patch \ |
| 1555 | %D%/packages/patches/grfcodec-gcc-compat.patch \ | 1556 | %D%/packages/patches/grfcodec-gcc-compat.patch \ |
| 1556 | %D%/packages/patches/groovy-add-exceptionutilsgenerator.patch \ | 1557 | %D%/packages/patches/groovy-add-exceptionutilsgenerator.patch \ |
diff --git a/gnu/packages/fontutils.scm b/gnu/packages/fontutils.scm index 6a32294c7f1..41be890bf06 100644 --- a/gnu/packages/fontutils.scm +++ b/gnu/packages/fontutils.scm | |||
| @@ -1690,9 +1690,18 @@ translated keywords and acts.") | |||
| 1690 | (inputs | 1690 | (inputs |
| 1691 | (list freetype)) | 1691 | (list freetype)) |
| 1692 | (arguments | 1692 | (arguments |
| 1693 | (if (system-hurd?) | 1693 | (list |
| 1694 | (list #:test-exclude "awamicmp3") | 1694 | #:phases |
| 1695 | '())) | 1695 | (if (target-hurd?) |
| 1696 | #~(modify-phases %standard-phases | ||
| 1697 | (add-after 'unpack 'apply-patch | ||
| 1698 | (lambda _ | ||
| 1699 | ;; use same linker settings as on linux | ||
| 1700 | ;; harfbuzz complains about being linked against libstdc++ | ||
| 1701 | (let ((patch #$(local-file | ||
| 1702 | (search-patch "graphite2-non-linux.patch")))) | ||
| 1703 | (invoke "patch" "--force" "-p1" "-i" patch))))) | ||
| 1704 | #~%standard-phases))) | ||
| 1696 | (synopsis "Reimplementation of the SIL Graphite text processing engine") | 1705 | (synopsis "Reimplementation of the SIL Graphite text processing engine") |
| 1697 | (description | 1706 | (description |
| 1698 | "Graphite2 is a reimplementation of the SIL Graphite text processing | 1707 | "Graphite2 is a reimplementation of the SIL Graphite text processing |
diff --git a/gnu/packages/patches/graphite2-non-linux.patch b/gnu/packages/patches/graphite2-non-linux.patch new file mode 100644 index 00000000000..135097fd4b0 --- /dev/null +++ b/gnu/packages/patches/graphite2-non-linux.patch | |||
| @@ -0,0 +1,57 @@ | |||
| 1 | From https://sources.debian.org/src/graphite2/1.3.14-11/debian/patches/non-linux.diff | ||
| 2 | and https://github.com/silnrsi/graphite/pull/59 | ||
| 3 | |||
| 4 | From 9bfb76afa1d4036743902be9942f47db0642e330 Mon Sep 17 00:00:00 2001 | ||
| 5 | From: Mattia Rizzolo <mattia@mapreri.org> | ||
| 6 | Date: Mon, 19 Aug 2019 10:05:38 +0200 | ||
| 7 | Subject: [PATCH] Apply the same settings used for Linux also to k*BSD and GNU | ||
| 8 | Hurd | ||
| 9 | |||
| 10 | The patch was originally written by Pino Toscano for Debian back in 2014. | ||
| 11 | |||
| 12 | Signed-off-by: Mattia Rizzolo <mattia@mapreri.org> | ||
| 13 | --- | ||
| 14 | src/CMakeLists.txt | 2 +- | ||
| 15 | tests/examples/CMakeLists.txt | 2 +- | ||
| 16 | tests/vm/CMakeLists.txt | 2 +- | ||
| 17 | 3 files changed, 3 insertions(+), 3 deletions(-) | ||
| 18 | |||
| 19 | diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt | ||
| 20 | index b6ac26bf..7bcc4030 100644 | ||
| 21 | --- a/src/CMakeLists.txt | ||
| 22 | +++ b/src/CMakeLists.txt | ||
| 23 | @@ -102,7 +102,7 @@ set_target_properties(graphite2 PROPERTIES PUBLIC_HEADER "${GRAPHITE_HEADERS}" | ||
| 24 | LT_VERSION_REVISION ${GRAPHITE_API_REVISION} | ||
| 25 | LT_VERSION_AGE ${GRAPHITE_API_AGE}) | ||
| 26 | |||
| 27 | -if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux") | ||
| 28 | +if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR ${CMAKE_SYSTEM_NAME} MATCHES "k.*BSD" OR ${CMAKE_SYSTEM_NAME} STREQUAL "GNU") | ||
| 29 | set_target_properties(graphite2 PROPERTIES | ||
| 30 | COMPILE_FLAGS "-Wall -Wextra -Wno-unknown-pragmas -Wendif-labels -Wshadow -Wctor-dtor-privacy -Wnon-virtual-dtor -fno-rtti -fno-exceptions -fvisibility=hidden -fvisibility-inlines-hidden" | ||
| 31 | LINK_FLAGS "-nodefaultlibs ${GRAPHITE_LINK_FLAGS}" | ||
| 32 | diff --git a/tests/examples/CMakeLists.txt b/tests/examples/CMakeLists.txt | ||
| 33 | index 103c78be..c4b78813 100644 | ||
| 34 | --- a/tests/examples/CMakeLists.txt | ||
| 35 | +++ b/tests/examples/CMakeLists.txt | ||
| 36 | @@ -23,7 +23,7 @@ macro(test_example TESTNAME SRCFILE) | ||
| 37 | set_tests_properties(${TESTNAME} PROPERTIES TIMEOUT 3) | ||
| 38 | endmacro() | ||
| 39 | |||
| 40 | -if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux") | ||
| 41 | +if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR ${CMAKE_SYSTEM_NAME} MATCHES "k.*BSD" OR ${CMAKE_SYSTEM_NAME} STREQUAL "GNU") | ||
| 42 | find_package(Freetype) | ||
| 43 | if (${FREETYPE_FOUND}) | ||
| 44 | include_directories(${FREETYPE_INCLUDE_DIRS}) | ||
| 45 | diff --git a/tests/vm/CMakeLists.txt b/tests/vm/CMakeLists.txt | ||
| 46 | index ee866de9..e94f710c 100644 | ||
| 47 | --- a/tests/vm/CMakeLists.txt | ||
| 48 | +++ b/tests/vm/CMakeLists.txt | ||
| 49 | @@ -29,7 +29,7 @@ if (CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang") | ||
| 50 | target_link_libraries(vm-test-direct vm-test-common) | ||
| 51 | endif() | ||
| 52 | |||
| 53 | -if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux") | ||
| 54 | +if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR ${CMAKE_SYSTEM_NAME} MATCHES "k.*BSD" OR ${CMAKE_SYSTEM_NAME} STREQUAL "GNU") | ||
| 55 | add_definitions(-fno-rtti -fno-exceptions) | ||
| 56 | if ("${CMAKE_BUILD_TYPE}" STREQUAL "Release") | ||
| 57 | add_definitions(-DNDEBUG -fomit-frame-pointer) | ||
