mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
89 lines
2.4 KiB
Plaintext
89 lines
2.4 KiB
Plaintext
From c517d85f3e2a1b4e0e9877035f2709818ed3c276 Mon Sep 17 00:00:00 2001
|
|
From: begasus <begasus@gmail.com>
|
|
Date: Sat, 13 Nov 2021 08:28:23 +0000
|
|
Subject: Haiku doesn't support hard links
|
|
|
|
|
|
diff --git a/test/suites/base.bash b/test/suites/base.bash
|
|
index 6cbbaae..828f61f 100644
|
|
--- a/test/suites/base.bash
|
|
+++ b/test/suites/base.bash
|
|
@@ -176,7 +176,7 @@ base_tests() {
|
|
# -------------------------------------------------------------------------
|
|
TEST "Unsupported source language"
|
|
|
|
- ln -f test1.c test1.ccc
|
|
+ ln -fs test1.c test1.ccc
|
|
$CCACHE_COMPILE -c test1.ccc 2>/dev/null
|
|
expect_stat unsupported_source_language 1
|
|
|
|
@@ -773,7 +773,7 @@ b"
|
|
# -------------------------------------------------------------------------
|
|
TEST "-x c"
|
|
|
|
- ln -f test1.c test1.ccc
|
|
+ ln -fs test1.c test1.ccc
|
|
|
|
$CCACHE_COMPILE -x c -c test1.ccc
|
|
expect_stat preprocessed_cache_hit 0
|
|
@@ -786,7 +786,7 @@ b"
|
|
# -------------------------------------------------------------------------
|
|
TEST "-xc"
|
|
|
|
- ln -f test1.c test1.ccc
|
|
+ ln -fs test1.c test1.ccc
|
|
|
|
$CCACHE_COMPILE -xc -c test1.ccc
|
|
expect_stat preprocessed_cache_hit 0
|
|
--
|
|
2.48.1
|
|
|
|
|
|
From 621bccd21806e5fea48b204a40afc993c4733380 Mon Sep 17 00:00:00 2001
|
|
From: begasus <begasus@gmail.com>
|
|
Date: Sat, 13 Nov 2021 12:28:11 +0000
|
|
Subject: Link against libnetwork
|
|
|
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 590fdfe..608b855 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -116,6 +116,10 @@ if(ENABLE_DOCUMENTATION)
|
|
add_subdirectory(doc)
|
|
endif()
|
|
|
|
+if(HAIKU)
|
|
+ set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -lnetwork")
|
|
+endif(HAIKU)
|
|
+
|
|
#
|
|
# Installation
|
|
#
|
|
--
|
|
2.48.1
|
|
|
|
|
|
From 50bd505ad8fa7ea3d884ce3b43dabf170a80c085 Mon Sep 17 00:00:00 2001
|
|
From: Zardshard <0azrune6@zard.anonaddy.com>
|
|
Date: Tue, 4 Jun 2024 21:28:56 -0400
|
|
Subject: Do not use /run/user directory
|
|
|
|
|
|
diff --git a/src/ccache/config.cpp b/src/ccache/config.cpp
|
|
index ef0fb2a..dc2facd 100644
|
|
--- a/src/ccache/config.cpp
|
|
+++ b/src/ccache/config.cpp
|
|
@@ -1241,7 +1241,7 @@ fs::path
|
|
Config::default_temporary_dir() const
|
|
{
|
|
static const fs::path run_user_tmp_dir = [] {
|
|
-#ifndef _WIN32
|
|
+#if !defined(_WIN32) && !defined(HAIKU)
|
|
const char* const xdg_runtime_dir = getenv("XDG_RUNTIME_DIR");
|
|
if (xdg_runtime_dir && DirEntry(xdg_runtime_dir).is_directory()) {
|
|
fs::path dir = FMT("{}/ccache-tmp", xdg_runtime_dir);
|
|
--
|
|
2.48.1
|
|
|