1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-12 18:59:50 +03:00

testing/*: remove unused patches

This commit is contained in:
Sertonix 2025-06-07 20:21:32 +02:00 committed by Patrycja Rosa
parent 731be7fa13
commit 530840245e
13 changed files with 0 additions and 2415 deletions

View file

@ -1,23 +0,0 @@
use monotonic clock for pthread_cond_timedwait with musl too, since it supports
it
--
--- a/v8/src/base/platform/condition-variable.cc
+++ b/v8/src/base/platform/condition-variable.cc
@@ -16,7 +16,7 @@
ConditionVariable::ConditionVariable() {
#if (V8_OS_FREEBSD || V8_OS_NETBSD || V8_OS_OPENBSD || \
- (V8_OS_LINUX && V8_LIBC_GLIBC))
+ V8_OS_LINUX)
// On Free/Net/OpenBSD and Linux with glibc we can change the time
// source for pthread_cond_timedwait() to use the monotonic clock.
pthread_condattr_t attr;
@@ -92,7 +92,7 @@
&native_handle_, &mutex->native_handle(), &ts);
#else
#if (V8_OS_FREEBSD || V8_OS_NETBSD || V8_OS_OPENBSD || \
- (V8_OS_LINUX && V8_LIBC_GLIBC))
+ V8_OS_LINUX)
// On Free/Net/OpenBSD and Linux with glibc we can change the time
// source for pthread_cond_timedwait() to use the monotonic clock.
result = clock_gettime(CLOCK_MONOTONIC, &ts);

View file

@ -1,11 +0,0 @@
--- ./buildtools/third_party/libc++/__config_site.orig
+++ ./buildtools/third_party/libc++/__config_site
@@ -18,7 +18,7 @@
/* #undef _LIBCPP_ABI_FORCE_MICROSOFT */
/* #undef _LIBCPP_HAS_NO_THREADS */
/* #undef _LIBCPP_HAS_NO_MONOTONIC_CLOCK */
-/* #undef _LIBCPP_HAS_MUSL_LIBC */
+#define _LIBCPP_HAS_MUSL_LIBC 1
/* #undef _LIBCPP_HAS_THREAD_API_PTHREAD */
/* #undef _LIBCPP_HAS_THREAD_API_EXTERNAL */
/* #undef _LIBCPP_HAS_THREAD_API_WIN32 */

View file

@ -1,14 +0,0 @@
To prevent:
configure.ac:80: error: possibly undefined macro: AM_GCONF_SOURCE_2
diff -Naur a/configure.ac b/configure.ac
--- a/configure.ac 2017-05-09 18:21:44.000000000 +0100
+++ b/configure.ac 2019-03-10 17:14:20.222932063 +0000
@@ -77,7 +77,6 @@
dnl GConf stuff
dnl ***********
AC_PATH_PROG(GCONFTOOL, gconftool-2, no)
-AM_GCONF_SOURCE_2
dnl ***************
dnl Libappindicator stuff

View file

@ -1,25 +0,0 @@
--- a/libhashkit/common.h
+++ b/libhashkit/common.h
@@ -44,12 +44,22 @@
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
+#include <limits.h>
#ifndef __WORDSIZE
# ifdef __MINGW32__
# define __WORDSIZE 32
# endif
#endif
+
+/* last try - use information from limits.h */
+#ifndef __WORDSIZE
+# if ULONG_MAX == 0xffffffffffffffff
+# define __WORDSIZE 64
+# elif ULONG_MAX == 0xffffffff
+# define __WORDSIZE 32
+# endif /* ULONG_MAX */
+#endif /* __WORDSIZE */
#include <libhashkit-1.0/hashkit.h>
#include "libhashkit/algorithm.h"

View file

@ -1,22 +0,0 @@
--- a/libtest/cmdline.cc
+++ b/libtest/cmdline.cc
@@ -61,10 +61,6 @@
#include <algorithm>
#include <stdexcept>
-#ifndef __USE_GNU
-static char **environ= NULL;
-#endif
-
#ifndef FD_CLOEXEC
# define FD_CLOEXEC 0
#endif
@@ -201,7 +197,7 @@
fatal_assert(posix_spawnattr_setsigmask(&spawnattr, &mask) == 0);
-#if defined(POSIX_SPAWN_USEVFORK) || defined(__linux__)
+#if defined(POSIX_SPAWN_USEVFORK) && defined(__linux__)
// Use USEVFORK on linux
flags |= POSIX_SPAWN_USEVFORK;
#endif

View file

@ -1,15 +0,0 @@
diff --git a/cmake/setup_ult_global_flags.cmake b/cmake/setup_ult_global_flags.cmake
index 17a68cdd6f..ae9055cdb4 100644
--- a/cmake/setup_ult_global_flags.cmake
+++ b/cmake/setup_ult_global_flags.cmake
@@ -14,8 +14,8 @@ if(MSVC)
else()
string(TOUPPER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE_upper)
- string(REGEX REPLACE "-O[1-3]" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
- string(REGEX REPLACE "-O[1-3]" "" CMAKE_CXX_FLAGS_${CMAKE_BUILD_TYPE_upper} ${CMAKE_CXX_FLAGS_${CMAKE_BUILD_TYPE_upper}})
+ string(REGEX REPLACE "-O[1-3]" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
+ string(REGEX REPLACE "-O[1-3]" "" CMAKE_CXX_FLAGS_${CMAKE_BUILD_TYPE_upper} "${CMAKE_CXX_FLAGS_${CMAKE_BUILD_TYPE_upper}}")
#disable fortify source as this requires optimization to be on
string(REPLACE "-Wp,-D_FORTIFY_SOURCE=2" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
string(REPLACE "-D_FORTIFY_SOURCE=2" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})

View file

@ -1,24 +0,0 @@
diff --git a/level_zero/sysman/source/shared/linux/udev/udev_lib.h b/level_zero/sysman/source/shared/linux/udev/udev_lib.h
index 98acb2d2cb..c0d4d04070 100644
--- a/level_zero/sysman/source/shared/linux/udev/udev_lib.h
+++ b/level_zero/sysman/source/shared/linux/udev/udev_lib.h
@@ -9,6 +9,7 @@
#include <string>
#include <vector>
+#include <sys/stat.h>
namespace L0 {
namespace Sysman {
diff --git a/level_zero/sysman/source/shared/linux/udev/udev_lib_imp.h b/level_zero/sysman/source/shared/linux/udev/udev_lib_imp.h
index 494a5dc2a1..5d70c89a67 100644
--- a/level_zero/sysman/source/shared/linux/udev/udev_lib_imp.h
+++ b/level_zero/sysman/source/shared/linux/udev/udev_lib_imp.h
@@ -17,6 +17,7 @@
#include <mutex>
#include <string>
#include <vector>
+#include <sys/stat.h>
namespace L0 {
namespace Sysman {

View file

@ -1,13 +0,0 @@
diff --git a/setup.py b/setup.py
index 0566674..87e049b 100644
--- a/setup.py
+++ b/setup.py
@@ -13,7 +13,7 @@ setup(
license="BSD",
packages=find_packages(),
include_package_data=True,
- install_requires=["jellyfish==0.11.2"],
+ install_requires=["jellyfish>=0.11.2"],
entry_points={"console_scripts": ["states = us.cli.states:main"]},
platforms=["any"],
classifiers=[

View file

@ -1,21 +0,0 @@
diff --git a/Cargo.lock b/Cargo.lock
index 8a3ec5b..4cfb347 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1,6 +1,6 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
-version = 3
+version = 4
[[package]]
name = "addr2line"
@@ -826,7 +826,7 @@ dependencies = [
[[package]]
name = "reaction"
-version = "2.0.0-rc2"
+version = "2.0.0"
dependencies = [
"chrono",
"clap",

View file

@ -1,82 +0,0 @@
Disable flaky test
--- a/frontends/rioterm/src/context/title.rs 2025-03-02 08:45:43.178100398 +0100
+++ b/frontends/rioterm/src/context/title.rs 2025-03-02 08:47:31.054308292 +0100
@@ -276,78 +266,4 @@ pub mod test {
// String::from("")
// );
}
-
- #[test]
- fn test_update_title_with_logical_or() {
- let context_dimension = ContextDimension::build(
- 1200.0,
- 800.0,
- SugarDimensions {
- scale: 2.,
- width: 18.,
- height: 9.,
- },
- 1.0,
- Delta::<f32>::default(),
- );
-
- assert_eq!(context_dimension.columns, 66);
- assert_eq!(context_dimension.lines, 88);
-
- let rich_text_id = 0;
- let route_id = 0;
- let context = create_mock_context(
- VoidListener {},
- WindowId::from(0),
- route_id,
- rich_text_id,
- context_dimension,
- );
- assert_eq!(update_title("", &context), String::from(""));
- // Title always starts empty
- assert_eq!(update_title("{{title}}", &context), String::from(""));
-
- assert_eq!(
- update_title("{{ title || columns }}", &context),
- String::from("66")
- );
-
- assert_eq!(
- update_title("{{ title || title }}", &context),
- String::from("")
- );
-
- // let's modify title to actually be something
- {
- let mut term = context.terminal.lock();
- term.title = "Something".to_string();
- };
-
- assert_eq!(
- update_title("{{ title || columns }}", &context),
- String::from("Something")
- );
-
- assert_eq!(
- update_title("{{ columns || title }}", &context),
- String::from("66")
- );
-
- assert_eq!(
- update_title("{{ absolute_path || title }}", &context),
- String::from("Something")
- );
-
- // let's modify current_directory to actually be something
- {
- let path = std::path::PathBuf::from("/tmp");
- let mut term = context.terminal.lock();
- term.current_directory = Some(path);
- };
-
- assert_eq!(
- update_title("{{ absolute_path || title }}", &context),
- String::from("/tmp"),
- );
- }
}

View file

@ -1,17 +0,0 @@
--- a/src/VBox/Main/Makefile.kmk
+++ b/src/VBox/Main/Makefile.kmk
@@ -1292,10 +1292,13 @@
VBoxMain-hardening-inst_INST = $(INST_BIN)components/
VBoxMain-hardening-inst_SYMLINKS = \
VBoxDDU.so=>../VBoxDDU.so \
- VBoxREM.so=>../VBoxREM.so \
VBoxRT.so=>../VBoxRT.so \
VBoxVMM.so=>../VBoxVMM.so \
VBoxXPCOM.so=>../VBoxXPCOM.so
+ ifdef VBOX_WITH_REM
+ VBoxMain-hardening-inst_SYMLINKS += \
+ VBoxREM.so=>../VBoxREM.so
+ endif
endif

View file

@ -1,29 +0,0 @@
--- a/src/VBox/Runtime/r3/posix/thread2-posix.cpp
+++ b/src/VBox/Runtime/r3/posix/thread2-posix.cpp
@@ -63,7 +63,7 @@
#elif defined(RT_OS_SOLARIS) || defined(RT_OS_HAIKU) || defined(RT_OS_FREEBSD) || defined(RT_OS_NETBSD)
sched_yield();
#else
- if (!pthread_yield())
+ if (!sched_yield())
#endif
{
LogFlow(("RTThreadSleep: returning %Rrc (cMillies=%d)\n", VINF_SUCCESS, cMillies));
@@ -100,7 +100,7 @@
#elif defined(RT_OS_SOLARIS) || defined(RT_OS_HAIKU) || defined(RT_OS_FREEBSD) || defined(RT_OS_NETBSD)
sched_yield();
#else
- if (!pthread_yield())
+ if (!sched_yield())
#endif
return VINF_SUCCESS;
}
@@ -129,7 +129,7 @@
#elif defined(RT_OS_SOLARIS) || defined(RT_OS_HAIKU) || defined(RT_OS_FREEBSD) || defined(RT_OS_NETBSD)
sched_yield();
#else
- pthread_yield();
+ sched_yield();
#endif
#if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86)
u64TS = ASMReadTSC() - u64TS;