mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-23 23:27:12 -08:00
Merge updates from master
This commit is contained in:
@@ -1,30 +0,0 @@
|
||||
From 7fa8d8aea4a041969e433debef7f4d5d59881ae2 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?V=C3=ADt=20Ondruch?= <vondruch@redhat.com>
|
||||
Date: Fri, 11 Mar 2022 18:29:43 +0100
|
||||
Subject: [PATCH] Use named parameters for `safe_load`.
|
||||
|
||||
This is available since Psych 3.1 [[1], [2]], but mandatory since Psych
|
||||
4.0 [[3]].
|
||||
|
||||
Fixes #72
|
||||
|
||||
[1]: https://github.com/ruby/psych/pull/358
|
||||
[2]: https://github.com/ruby/psych/pull/378
|
||||
[3]: https://github.com/ruby/psych/commit/0767227051dbddf1f949eef512c174deabf22891
|
||||
---
|
||||
lib/crack/json.rb | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/lib/crack/json.rb b/lib/crack/json.rb
|
||||
index 1a27ac7..528aad6 100644
|
||||
--- a/lib/crack/json.rb
|
||||
+++ b/lib/crack/json.rb
|
||||
@@ -13,7 +13,7 @@ def self.parser_exceptions
|
||||
|
||||
def self.parse(json)
|
||||
yaml = unescape(convert_json_to_yaml(json))
|
||||
- YAML.safe_load(yaml, [Regexp, Date, Time])
|
||||
+ YAML.safe_load(yaml, permitted_classes: [Regexp, Date, Time])
|
||||
rescue *parser_exceptions
|
||||
raise ParseError, "Invalid JSON string"
|
||||
rescue Psych::DisallowedClass
|
||||
@@ -1,10 +0,0 @@
|
||||
--- giflib-5.1.9/Makefile
|
||||
+++ giflib-5.1.9/Makefile
|
||||
@@ -63,7 +63,6 @@
|
||||
LDLIBS=libgif.a -lm
|
||||
|
||||
all: libgif.so libgif.a libutil.so libutil.a $(UTILS)
|
||||
- $(MAKE) -C doc
|
||||
|
||||
$(UTILS):: libgif.a libutil.a
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
# gnat-gpl only exists for (bootstrapping) Ada. Until bug #940471 is handled,
|
||||
# force Ada on. Once it is split/moved/gutted, this won't be necessary
|
||||
# as it'll always build Ada.
|
||||
dev-lang/gnat-gpl ada
|
||||
dev-lang/gnat-gpl ada cxx
|
||||
|
||||
# Sam James <sam@gentoo.org> (2024-06-03)
|
||||
# Poor rendering performance otherwise (bug #931215).
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
--- a/wrappers/python/build.py.in 2022-10-16 17:54:18.406418600 +0200
|
||||
+++ b/wrappers/python/build.py.in 2022-10-16 17:54:31.926612653 +0200
|
||||
@@ -20,7 +20,7 @@
|
||||
## Include args
|
||||
incargs = " ".join("-I{}".format(d) for d in incdirs)
|
||||
incargs += " -I@prefix@/include"
|
||||
-incargs += " @CPPFLAGS@"
|
||||
+incargs += " @CPPFLAGS@ @CXXFLAGS@ @LDFLAGS@"
|
||||
|
||||
## Compile args
|
||||
cmpargs = "" #"@PYEXT_CXXFLAGS@"
|
||||
@@ -1,65 +0,0 @@
|
||||
https://bugs.gentoo.org/653136
|
||||
|
||||
From 3c08d28fbae8b0ef3839ef26f8d2a713a9a684f9 Mon Sep 17 00:00:00 2001
|
||||
From: Andreas Sturmlechner <asturm@gentoo.org>
|
||||
Date: Thu, 21 Feb 2019 23:53:19 +0100
|
||||
Subject: [PATCH] Make dbus daemon build optional
|
||||
|
||||
--- a/bus/Makefile.am
|
||||
+++ b/bus/Makefile.am
|
||||
@@ -76,6 +76,7 @@ agentdir=$(LAUNCHD_AGENT_DIR)
|
||||
agent_DATA=org.freedesktop.dbus-session.plist
|
||||
endif
|
||||
|
||||
+if DBUS_DAEMON
|
||||
if DBUS_BUS_ENABLE_KQUEUE
|
||||
DIR_WATCH_SOURCE=dir-watch-kqueue.c
|
||||
else
|
||||
@@ -230,6 +231,7 @@ EXTRA_DIST += \
|
||||
tmpfiles.d/dbus.conf.in \
|
||||
tmpfiles.d/meson.build \
|
||||
$(NULL)
|
||||
+endif DBUS_DAEMON
|
||||
|
||||
if HAVE_SYSTEMD
|
||||
systemdsystemunit_DATA = \
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -211,6 +211,7 @@ AC_ARG_ENABLE([apparmor],
|
||||
[enable_apparmor=$enableval],
|
||||
[enable_apparmor=auto])
|
||||
AC_ARG_ENABLE(libaudit,AS_HELP_STRING([--enable-libaudit],[build audit daemon support for SELinux]),enable_libaudit=$enableval,enable_libaudit=auto)
|
||||
+AC_ARG_ENABLE(daemon, AS_HELP_STRING([--enable-daemon],[build with the dbus daemon]),enable_daemon=$enableval,enable_daemon=yes)
|
||||
AC_ARG_ENABLE(inotify, AS_HELP_STRING([--enable-inotify],[build with inotify support (linux only)]),enable_inotify=$enableval,enable_inotify=auto)
|
||||
AC_ARG_ENABLE(kqueue, AS_HELP_STRING([--enable-kqueue],[build with kqueue support]),enable_kqueue=$enableval,enable_kqueue=auto)
|
||||
AC_ARG_ENABLE(console-owner-file, AS_HELP_STRING([--enable-console-owner-file],[enable console owner file]),enable_console_owner_file=$enableval,enable_console_owner_file=auto)
|
||||
@@ -658,7 +659,20 @@ AC_CHECK_MEMBER([struct unpcbid.unp_pid],
|
||||
[],
|
||||
[[#include <sys/un.h>]])
|
||||
|
||||
-PKG_CHECK_MODULES([EXPAT], [expat])
|
||||
+# dbusdaemon checks
|
||||
+if test x$enable_daemon = xno ; then
|
||||
+ have_daemon=no
|
||||
+else
|
||||
+ have_daemon=yes
|
||||
+fi
|
||||
+
|
||||
+dnl check if daemon shall be built
|
||||
+if test x$have_daemon = xyes; then
|
||||
+ AC_DEFINE(DBUS_DAEMON,1,[Use daemon])
|
||||
+ PKG_CHECK_MODULES([EXPAT], [expat])
|
||||
+fi
|
||||
+
|
||||
+AM_CONDITIONAL(DBUS_DAEMON, test x$have_daemon = xyes)
|
||||
|
||||
save_cflags="$CFLAGS"
|
||||
save_libs="$LIBS"
|
||||
@@ -1748,6 +1762,7 @@ echo "
|
||||
Building bus stats API: ${enable_stats}
|
||||
Building SELinux support: ${have_selinux}
|
||||
Building AppArmor support: ${have_apparmor}
|
||||
+ Building daemon: ${have_daemon}
|
||||
Building inotify support: ${have_inotify}
|
||||
Building kqueue support: ${have_kqueue}
|
||||
Building elogind support: ${have_elogind}
|
||||
@@ -1,75 +0,0 @@
|
||||
https://gitlab.freedesktop.org/dbus/dbus/-/merge_requests/53
|
||||
https://bugs.gentoo.org/599494
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -215,6 +215,7 @@ AC_ARG_ENABLE(inotify, AS_HELP_STRING([--enable-inotify],[build with inotify sup
|
||||
AC_ARG_ENABLE(kqueue, AS_HELP_STRING([--enable-kqueue],[build with kqueue support]),enable_kqueue=$enableval,enable_kqueue=auto)
|
||||
AC_ARG_ENABLE(console-owner-file, AS_HELP_STRING([--enable-console-owner-file],[enable console owner file]),enable_console_owner_file=$enableval,enable_console_owner_file=auto)
|
||||
AC_ARG_ENABLE(launchd, AS_HELP_STRING([--enable-launchd],[build with launchd auto-launch support]),enable_launchd=$enableval,enable_launchd=auto)
|
||||
+AC_ARG_ENABLE(elogind, AS_HELP_STRING([--enable-elogind],[build with elogind user seat support]),enable_elogind=$enableval,enable_elogind=auto)
|
||||
AC_ARG_ENABLE(systemd, AS_HELP_STRING([--enable-systemd],[build with systemd at_console support]),enable_systemd=$enableval,enable_systemd=auto)
|
||||
AC_ARG_ENABLE(traditional-activation, AS_HELP_STRING([--disable-traditional-activation], [Do not build support for service activation without using SystemdService]), enable_traditional_activation="$enableval", enable_traditional_activation=yes)
|
||||
|
||||
@@ -904,6 +905,24 @@ fi
|
||||
|
||||
AM_CONDITIONAL(HAVE_CONSOLE_OWNER_FILE, test x$have_console_owner_file = xyes)
|
||||
|
||||
+dnl elogind detection
|
||||
+if test x$enable_elogind = xno ; then
|
||||
+ have_elogind=no;
|
||||
+else
|
||||
+ PKG_CHECK_MODULES([ELOGIND],
|
||||
+ [libelogind >= 209],
|
||||
+ [have_elogind=yes],
|
||||
+ [have_elogind=no])
|
||||
+fi
|
||||
+
|
||||
+if test x$have_elogind = xyes; then
|
||||
+ AC_DEFINE(HAVE_ELOGIND,1,[Have elogind])
|
||||
+fi
|
||||
+
|
||||
+if test x$enable_elogind = xyes -a x$have_elogind != xyes ; then
|
||||
+ AC_MSG_ERROR([Explicitly requested elogind support, but libelogind not found])
|
||||
+fi
|
||||
+
|
||||
dnl systemd detection
|
||||
if test x$enable_systemd = xno ; then
|
||||
have_systemd=no;
|
||||
@@ -1024,7 +1043,7 @@ if test x$with_valgrind != xno; then
|
||||
fi
|
||||
|
||||
#### Set up final flags
|
||||
-LIBDBUS_LIBS="$THREAD_LIBS $NETWORK_libs $SYSTEMD_LIBS"
|
||||
+LIBDBUS_LIBS="$THREAD_LIBS $NETWORK_libs $SYSTEMD_LIBS $ELOGIND_LIBS"
|
||||
AC_SUBST([LIBDBUS_LIBS])
|
||||
|
||||
### X11 detection
|
||||
@@ -1731,6 +1750,7 @@ echo "
|
||||
Building AppArmor support: ${have_apparmor}
|
||||
Building inotify support: ${have_inotify}
|
||||
Building kqueue support: ${have_kqueue}
|
||||
+ Building elogind support: ${have_elogind}
|
||||
Building systemd support: ${have_systemd}
|
||||
Traditional activation: ${enable_traditional_activation}
|
||||
Building X11 code: ${have_x11}
|
||||
--- a/dbus/dbus-userdb-util.c
|
||||
+++ b/dbus/dbus-userdb-util.c
|
||||
@@ -39,6 +39,9 @@
|
||||
#ifdef HAVE_SYSTEMD
|
||||
#include <systemd/sd-login.h>
|
||||
#endif
|
||||
+#if HAVE_ELOGIND
|
||||
+#include <elogind/sd-login.h>
|
||||
+#endif
|
||||
|
||||
/**
|
||||
* @addtogroup DBusInternalsUtils
|
||||
@@ -65,7 +68,7 @@ dbus_bool_t
|
||||
_dbus_is_console_user (dbus_uid_t uid,
|
||||
DBusError *error)
|
||||
{
|
||||
-#ifdef HAVE_SYSTEMD
|
||||
+#if defined(HAVE_SYSTEMD) || defined(HAVE_ELOGIND)
|
||||
/* check if we have logind */
|
||||
if (access ("/run/systemd/seats/", F_OK) >= 0)
|
||||
{
|
||||
@@ -1,17 +0,0 @@
|
||||
--- ceph-13.2.1/cmake/modules/Distutils.cmake.old 2018-07-26 17:39:56.000000000 -0000
|
||||
+++ ceph-13.2.1/cmake/modules/Distutils.cmake 2018-12-24 05:43:51.566174070 -0000
|
||||
@@ -58,8 +62,13 @@
|
||||
function(distutils_install_cython_module name)
|
||||
get_property(compiler_launcher GLOBAL PROPERTY RULE_LAUNCH_COMPILE)
|
||||
get_property(link_launcher GLOBAL PROPERTY RULE_LAUNCH_LINK)
|
||||
- set(PY_CC "${compiler_launcher} ${CMAKE_C_COMPILER}")
|
||||
+ string(REPLACE " " ";" cflags ${CMAKE_C_FLAGS})
|
||||
+ list(APPEND cflags -iquote${CMAKE_SOURCE_DIR}/src/include -w)
|
||||
+ list(APPEND cflags -D'void0=dead_function\(void\)')
|
||||
+ list(APPEND cflags -D'__Pyx_check_single_interpreter\(ARG\)=ARG \#\# 0')
|
||||
+ string(REPLACE ";" " " cflags "${cflags}")
|
||||
+ set(PY_CC "${compiler_launcher} ${CMAKE_C_COMPILER} ${cflags}")
|
||||
set(PY_LDSHARED "${link_launcher} ${CMAKE_C_COMPILER} -shared")
|
||||
install(CODE "
|
||||
set(ENV{CC} \"${PY_CC}\")
|
||||
set(ENV{LDSHARED} \"${PY_LDSHARED}\")
|
||||
@@ -1,9 +0,0 @@
|
||||
--- ceph-15.2.3.orig/cmake/modules/BuildSPDK.cmake 2020-05-29 09:24:50.000000000 -0700
|
||||
+++ ceph-15.2.3/cmake/modules/BuildSPDK.cmake 2020-06-01 10:36:14.629306433 -0700
|
||||
@@ -1,5 +1,5 @@
|
||||
macro(build_spdk)
|
||||
- set(DPDK_DIR ${CMAKE_BINARY_DIR}/src/dpdk)
|
||||
+ set(DPDK_DIR ${CMAKE_SOURCE_DIR}/src/dpdk)
|
||||
if(NOT TARGET dpdk-ext)
|
||||
include(BuildDPDK)
|
||||
build_dpdk(${DPDK_DIR})
|
||||
@@ -1,14 +0,0 @@
|
||||
diff --git a/cmake/modules/Distutils.cmake b/cmake/modules/Distutils.cmake
|
||||
index 01a6fc500c8..9eb4658482f 100644
|
||||
--- a/cmake/modules/Distutils.cmake
|
||||
+++ b/cmake/modules/Distutils.cmake
|
||||
@@ -90,7 +90,8 @@ function(distutils_add_cython_module target name src)
|
||||
CXX="${PY_CXX}"
|
||||
LDSHARED="${PY_LDSHARED}"
|
||||
OPT=\"-DNDEBUG -g -fwrapv -w\"
|
||||
- LDFLAGS=-L${CMAKE_LIBRARY_OUTPUT_DIRECTORY}
|
||||
+ CFLAGS=${CMAKE_C_FLAGS}
|
||||
+ LDFLAGS=-L${CMAKE_LIBRARY_OUTPUT_DIRECTORY}\ ${CMAKE_LINKER_FLAGS}\ ${CMAKE_SHARED_LINKER_FLAGS}
|
||||
CYTHON_BUILD_DIR=${CMAKE_CURRENT_BINARY_DIR}
|
||||
CEPH_LIBDIR=${CMAKE_LIBRARY_OUTPUT_DIRECTORY}
|
||||
${Python3_EXECUTABLE} ${setup_py}
|
||||
@@ -1,84 +0,0 @@
|
||||
diff --git a/src/common/Cycles.h b/src/common/Cycles.h
|
||||
index 16e0aa67fc1..791be43469c 100644
|
||||
--- a/src/common/Cycles.h
|
||||
+++ b/src/common/Cycles.h
|
||||
@@ -29,8 +29,9 @@
|
||||
*/
|
||||
|
||||
|
||||
-#ifndef CEPH_CYCLES_H
|
||||
-#define CEPH_CYCLES_H
|
||||
+#pragma once
|
||||
+
|
||||
+#include <cstdint>
|
||||
|
||||
/**
|
||||
* This class provides static methods that read the fine-grain CPU
|
||||
@@ -112,4 +113,3 @@ private:
|
||||
}
|
||||
};
|
||||
|
||||
-#endif // CEPH_CYCLES_H
|
||||
diff --git a/src/common/subsys_types.h b/src/common/subsys_types.h
|
||||
index 52171809b23..1a2ab796b6d 100644
|
||||
--- a/src/common/subsys_types.h
|
||||
+++ b/src/common/subsys_types.h
|
||||
@@ -53,7 +53,7 @@ ceph_subsys_get_as_array() {
|
||||
#undef DEFAULT_SUBSYS
|
||||
}
|
||||
|
||||
-constexpr static std::uint8_t
|
||||
+constexpr static uint8_t
|
||||
ceph_subsys_get_max_default_level(const std::size_t subidx) {
|
||||
const auto item = ceph_subsys_get_as_array()[subidx];
|
||||
return std::max(item.log_level, item.gather_level);
|
||||
diff --git a/src/librbd/api/PoolMetadata.h b/src/librbd/api/PoolMetadata.h
|
||||
index c0a8173596e..8d982879aa9 100644
|
||||
--- a/src/librbd/api/PoolMetadata.h
|
||||
+++ b/src/librbd/api/PoolMetadata.h
|
||||
@@ -9,6 +9,7 @@
|
||||
|
||||
#include <map>
|
||||
#include <string>
|
||||
+#include <cstdint>
|
||||
|
||||
namespace librbd {
|
||||
|
||||
diff --git a/src/msg/async/crypto_onwire.h b/src/msg/async/crypto_onwire.h
|
||||
index 55f7550868f..2213c21d08d 100644
|
||||
--- a/src/msg/async/crypto_onwire.h
|
||||
+++ b/src/msg/async/crypto_onwire.h
|
||||
@@ -95,7 +95,7 @@ public:
|
||||
// Transmitter can append extra bytes of ciphertext at the -final step.
|
||||
// This method return how much was added, and thus let client translate
|
||||
// plaintext size into ciphertext size to grab from wire.
|
||||
- virtual std::uint32_t get_extra_size_at_final() = 0;
|
||||
+ virtual uint32_t get_extra_size_at_final() = 0;
|
||||
|
||||
// Instance of RxHandler must be reset before doing any decrypt-update
|
||||
// step. This applies also to situation when decrypt-final was already
|
||||
diff --git a/src/test/librados/op_speed.cc b/src/test/librados/op_speed.cc
|
||||
index 90c7bdac571..9452da6dcc9 100644
|
||||
--- a/src/test/librados/op_speed.cc
|
||||
+++ b/src/test/librados/op_speed.cc
|
||||
@@ -9,7 +9,7 @@ int main() {
|
||||
for (int i = 0; i < to_create; ++i) {
|
||||
librados::ObjectReadOperation op;
|
||||
bufferlist bl;
|
||||
- std::uint64_t sz;
|
||||
+ uint64_t sz;
|
||||
struct timespec tm;
|
||||
std::map<std::string, ceph::buffer::list> xattrs;
|
||||
std::map<std::string, ceph::buffer::list> omap;
|
||||
diff --git a/src/test/mon/test_log_rss_usage.cc b/src/test/mon/test_log_rss_usage.cc
|
||||
index f6e85f414c8..9769cabd884 100644
|
||||
--- a/src/test/mon/test_log_rss_usage.cc
|
||||
+++ b/src/test/mon/test_log_rss_usage.cc
|
||||
@@ -5,6 +5,7 @@
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
+#include <cstdint>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
@@ -1,40 +0,0 @@
|
||||
diff --git a/src/compressor/zstd/CMakeLists.txt b/src/compressor/zstd/CMakeLists.txt
|
||||
index b53b0d9444..5bf5796da2 100644
|
||||
--- a/src/compressor/zstd/CMakeLists.txt
|
||||
+++ b/src/compressor/zstd/CMakeLists.txt
|
||||
@@ -1,34 +1,11 @@
|
||||
# zstd
|
||||
|
||||
-# libzstd - build it statically
|
||||
-set(ZSTD_C_FLAGS "-fPIC -Wno-unused-variable -O3")
|
||||
-
|
||||
-include(ExternalProject)
|
||||
-ExternalProject_Add(zstd_ext
|
||||
- SOURCE_DIR ${CMAKE_SOURCE_DIR}/src/zstd/build/cmake
|
||||
- CMAKE_ARGS -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
|
||||
- -DCMAKE_C_COMPILER=${CMAKE_C_COMPILER}
|
||||
- -DCMAKE_C_FLAGS=${ZSTD_C_FLAGS}
|
||||
- -DCMAKE_AR=${CMAKE_AR}
|
||||
- -DCMAKE_POSITION_INDEPENDENT_CODE=${ENABLE_SHARED}
|
||||
- -G${CMAKE_GENERATOR}
|
||||
- BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/libzstd
|
||||
- BUILD_COMMAND ${CMAKE_COMMAND} --build <BINARY_DIR> --target libzstd_static
|
||||
- BUILD_BYPRODUCTS "${CMAKE_CURRENT_BINARY_DIR}/libzstd/lib/libzstd.a"
|
||||
- INSTALL_COMMAND "true")
|
||||
-
|
||||
-add_library(zstd STATIC IMPORTED)
|
||||
-set_target_properties(zstd PROPERTIES
|
||||
- INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_SOURCE_DIR}/src/zstd/lib"
|
||||
- IMPORTED_LOCATION "${CMAKE_CURRENT_BINARY_DIR}/libzstd/lib/libzstd.a")
|
||||
-add_dependencies(zstd zstd_ext)
|
||||
-
|
||||
set(zstd_sources
|
||||
CompressionPluginZstd.cc
|
||||
)
|
||||
|
||||
add_library(ceph_zstd SHARED ${zstd_sources})
|
||||
-target_link_libraries(ceph_zstd PRIVATE zstd $<$<PLATFORM_ID:Windows>:ceph-common>)
|
||||
+target_link_libraries(ceph_zstd zstd)
|
||||
set_target_properties(ceph_zstd PROPERTIES
|
||||
VERSION 2.0.0
|
||||
SOVERSION 2
|
||||
@@ -1,82 +0,0 @@
|
||||
diff --git a/cmake/modules/AddCephTest.cmake b/cmake/modules/AddCephTest.cmake
|
||||
index cd661be16c9..7183c2f2138 100644
|
||||
--- a/cmake/modules/AddCephTest.cmake
|
||||
+++ b/cmake/modules/AddCephTest.cmake
|
||||
@@ -55,7 +55,6 @@ endfunction()
|
||||
|
||||
function(add_tox_test name)
|
||||
set(test_name run-tox-${name})
|
||||
- set(venv_path ${CEPH_BUILD_VIRTUALENV}/${name}-virtualenv)
|
||||
cmake_parse_arguments(TOXTEST "" "TOX_PATH" "TOX_ENVS" ${ARGN})
|
||||
if(DEFINED TOXTEST_TOX_PATH)
|
||||
set(tox_path ${TOXTEST_TOX_PATH})
|
||||
@@ -68,14 +67,6 @@ function(add_tox_test name)
|
||||
list(APPEND tox_envs py3)
|
||||
endif()
|
||||
string(REPLACE ";" "," tox_envs "${tox_envs}")
|
||||
- add_custom_command(
|
||||
- OUTPUT ${venv_path}/bin/activate
|
||||
- COMMAND ${CMAKE_SOURCE_DIR}/src/tools/setup-virtualenv.sh --python="${Python3_EXECUTABLE}" ${venv_path}
|
||||
- WORKING_DIRECTORY ${tox_path}
|
||||
- COMMENT "preparing venv for ${name}")
|
||||
- add_custom_target(${name}-venv
|
||||
- DEPENDS ${venv_path}/bin/activate)
|
||||
- add_dependencies(tests ${name}-venv)
|
||||
add_test(
|
||||
NAME ${test_name}
|
||||
COMMAND ${CMAKE_SOURCE_DIR}/src/script/run_tox.sh
|
||||
diff --git a/src/ceph-volume/CMakeLists.txt b/src/ceph-volume/CMakeLists.txt
|
||||
index 9166553dc73..9a6c87595b9 100644
|
||||
--- a/src/ceph-volume/CMakeLists.txt
|
||||
+++ b/src/ceph-volume/CMakeLists.txt
|
||||
@@ -8,22 +8,6 @@ if(FREEBSD)
|
||||
add_subdirectory(plugin/zfs)
|
||||
endif()
|
||||
|
||||
-# Required for running ceph-volume inventory in a vstart environment
|
||||
-set(CEPH_VOLUME_VIRTUALENV ${CEPH_BUILD_VIRTUALENV}/ceph-volume-virtualenv)
|
||||
-
|
||||
-add_custom_command(
|
||||
- OUTPUT ${CEPH_VOLUME_VIRTUALENV}/bin/python
|
||||
- COMMAND ${CMAKE_SOURCE_DIR}/src/tools/setup-virtualenv.sh --python=${Python3_EXECUTABLE} ${CEPH_VOLUME_VIRTUALENV}
|
||||
- WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/src/ceph-volume
|
||||
- COMMENT "ceph-volume venv is being created")
|
||||
-
|
||||
-add_custom_command(
|
||||
- OUTPUT ${CEPH_VOLUME_VIRTUALENV}/bin/ceph-volume
|
||||
- DEPENDS ${CEPH_VOLUME_VIRTUALENV}/bin/python
|
||||
- COMMAND . ${CEPH_VOLUME_VIRTUALENV}/bin/activate && ${CEPH_VOLUME_VIRTUALENV}/bin/python setup.py develop && deactivate
|
||||
- WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/src/ceph-volume
|
||||
- COMMENT "${CMAKE_SOURCE_DIR}/src/ceph-volume")
|
||||
-
|
||||
add_custom_target(ceph-volume-venv-setup
|
||||
DEPENDS ${CEPH_VOLUME_VIRTUALENV}/bin/ceph-volume)
|
||||
|
||||
diff --git a/src/pybind/mgr/dashboard/CMakeLists.txt b/src/pybind/mgr/dashboard/CMakeLists.txt
|
||||
index 0c8d46d65ee..67a618f95aa 100644
|
||||
--- a/src/pybind/mgr/dashboard/CMakeLists.txt
|
||||
+++ b/src/pybind/mgr/dashboard/CMakeLists.txt
|
||||
@@ -5,9 +5,6 @@ function(add_npm_command)
|
||||
set(multi_kw COMMAND DEPENDS)
|
||||
cmake_parse_arguments(NC "${options}" "${single_kw}" "${multi_kw}" ${ARGN})
|
||||
string(REPLACE ";" " " command "${NC_COMMAND}")
|
||||
- if(NC_NODEENV)
|
||||
- string(REGEX REPLACE "^(.*(npm|npx) .*)$" ". ${mgr-dashboard-nodeenv-dir}/bin/activate && \\1 && deactivate" command ${command})
|
||||
- endif()
|
||||
string(REPLACE " " ";" command "${command}")
|
||||
add_custom_command(
|
||||
OUTPUT "${NC_OUTPUT}"
|
||||
@@ -51,11 +48,8 @@ else(WITH_SYSTEM_NPM)
|
||||
set(node_mirror_opt "--mirror=$ENV{NODE_MIRROR}")
|
||||
endif()
|
||||
add_custom_command(
|
||||
- OUTPUT "${mgr-dashboard-nodeenv-dir}/bin/npm"
|
||||
- COMMAND ${CMAKE_SOURCE_DIR}/src/tools/setup-virtualenv.sh --python=${MGR_PYTHON_EXECUTABLE} ${mgr-dashboard-nodeenv-dir}
|
||||
- COMMAND ${mgr-dashboard-nodeenv-dir}/bin/pip install nodeenv
|
||||
- COMMAND ${mgr-dashboard-nodeenv-dir}/bin/nodeenv --verbose ${node_mirror_opt} -p --node=12.18.2
|
||||
- COMMAND mkdir ${mgr-dashboard-nodeenv-dir}/.npm
|
||||
+ OUTPUT "/bin/npm"
|
||||
+ COMMAND /bin/nodeenv ${node_mirror_opt} -p --node=12.18.2
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
||||
COMMENT "dashboard nodeenv is being installed"
|
||||
)
|
||||
@@ -1,13 +0,0 @@
|
||||
diff --git a/src/boost/tools/build/src/tools/features/optimization-feature.jam b/src/boost/tools/build/src/tools/features/optimization-feature.jam
|
||||
index 761f76f1..fb2a5dec 100644
|
||||
--- a/src/boost/tools/build/src/tools/features/optimization-feature.jam
|
||||
+++ b/src/boost/tools/build/src/tools/features/optimization-feature.jam
|
||||
@@ -8,7 +8,7 @@
|
||||
import feature ;
|
||||
|
||||
feature.feature optimization
|
||||
- : off speed space
|
||||
+ : off none speed space
|
||||
: propagated ;
|
||||
|
||||
feature.feature inlining
|
||||
@@ -1,115 +0,0 @@
|
||||
#!/sbin/openrc-run
|
||||
|
||||
# make sure /etc/conf.d/ceph gets loaded for ceph-mon etc
|
||||
_CONFD_FILE="${RC_SERVICE%/*}/../conf.d/${RC_SVCNAME%-*}"
|
||||
if [ -r "${_CONFD_FILE}" ]; then
|
||||
. "${_CONFD_FILE}" || exit 1
|
||||
fi
|
||||
|
||||
: "${ceph_conf:=/etc/ceph/ceph.conf}"
|
||||
daemon_type="${RC_SVCNAME#ceph-}"
|
||||
daemon_type="${daemon_type%%.*}"
|
||||
daemon_id="${RC_SVCNAME#ceph-*.}"
|
||||
daemon_id="${daemon_id:-0}"
|
||||
: "${rundir:=/run/ceph}"
|
||||
: "${user:=ceph}"
|
||||
: "${group:=ceph}"
|
||||
: "${rc_ulimit:=-n 1048576 -u 1048576}"
|
||||
|
||||
pidfile="${rundir}/supervisor-${daemon_type}.${daemon_id}.pid"
|
||||
daemon_pidfile="${rundir}/${daemon_type}.${daemon_id}.pid"
|
||||
|
||||
command="/usr/bin/${RC_SVCNAME%%.*}"
|
||||
command_args="-i ${daemon_id} --pid-file ${daemon_pidfile} -c ${ceph_conf}"
|
||||
extra_commands="${extra_commands} reload"
|
||||
command_args_foreground="--foreground"
|
||||
|
||||
retry="${CEPH_TERMTIMEOUT:-TERM/120/KILL/5}"
|
||||
start_stop_daemon_args="--user ${user} --group ${group}"
|
||||
supervise_daemon_args="--user ${user} --group ${group}"
|
||||
|
||||
: "${supervisor:=supervise-daemon}"
|
||||
: "${stdout:=/var/log/ceph/console/ceph}"
|
||||
: "${stderr:=/var/log/ceph/console/ceph}"
|
||||
: "${respawn_delay:=10}"
|
||||
: "${respawn_max:=5}"
|
||||
: "${respawn_period:=1800}"
|
||||
|
||||
: "${osd_respawn_delay:=15}"
|
||||
: "${osd_respawn_max:=10}"
|
||||
|
||||
: "${radosgw_respawn_max:=5}"
|
||||
: "${radosgw_respawn_period:=30}"
|
||||
|
||||
depend() {
|
||||
use dns logger
|
||||
after net ntpd ntp-client chronyd
|
||||
before netmount
|
||||
}
|
||||
|
||||
is_type_valid() {
|
||||
case ${daemon_type} in
|
||||
mon|mds|osd|mgr|radosgw) return 0;;
|
||||
*) return 1;;
|
||||
esac
|
||||
}
|
||||
|
||||
start_pre() {
|
||||
local log_dir
|
||||
export CEPH_CONF="${ceph_conf}"
|
||||
|
||||
checkpath -d -q -o "${user}:${group}" "${rundir}"
|
||||
|
||||
if ! is_type_valid ;then
|
||||
eerror "Please give valid Ceph Server Type: mds, mon, osd"
|
||||
return 1
|
||||
|
||||
elif pgrep -f "[c]eph-${daemon_type} -i ${daemon_id} "; then
|
||||
eerror "${daemon_type}.${daemon_id} is still running, refusing to start"
|
||||
return 1
|
||||
fi
|
||||
|
||||
if [ -n "${bluestore_osd_fsid}" ]; then
|
||||
einfo "Mounting Bluestore"
|
||||
ceph-volume lvm activate "${daemon_id}" "${bluestore_osd_fsid}" --no-systemd
|
||||
fi
|
||||
|
||||
if [ "${daemon_type}" = radosgw ] && [ "${RADOSGW_WANT_NAME_PARAM}" = y ]; then
|
||||
command_args="${command_args} --name client.${daemon_id}"
|
||||
fi
|
||||
|
||||
local arg_name arg_val repl_arg_name
|
||||
for arg_name in stdout stderr respawn_delay respawn_max respawn_period; do
|
||||
eval arg_val="\${${daemon_type}_${arg_name}}"
|
||||
|
||||
if [ -z "${arg_val}" ]; then
|
||||
eval arg_val="\${${arg_name}}"
|
||||
else
|
||||
eval "${arg_name}=\"${arg_val}\""
|
||||
fi
|
||||
|
||||
if [ "${arg_name}" = "stderr" ] || [ "${arg_name}" = "stdout" ]; then
|
||||
local log_file log_postfix
|
||||
log_postfix=".${daemon_id}-${arg_name}.log"
|
||||
log_file="${arg_val}"
|
||||
|
||||
if [ "${log_file}" != /dev/null ]; then
|
||||
log_file="${log_file}${log_postfix}"
|
||||
|
||||
log_dir="$(dirname "${log_file}")"
|
||||
checkpath -m 0755 -o "${user}:${group}" -d "${log_dir}"
|
||||
fi
|
||||
|
||||
repl_arg_name="$(printf -- "%s\n" "${arg_name}" | tr _ -)"
|
||||
supervise_daemon_args="${supervise_daemon_args} --${repl_arg_name}=${log_file}"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
reload() {
|
||||
ebegin "Reloading Ceph ${daemon_type}.${daemon_id}"
|
||||
start-stop-daemon --signal 1 "${start_stop_daemon_args}"
|
||||
eend ${?}
|
||||
}
|
||||
|
||||
# vim:ft=gentoo-init-d:ts=4:sts=4:sw=4:noet:
|
||||
@@ -1,153 +0,0 @@
|
||||
https://github.com/distcc/distcc/pull/460
|
||||
|
||||
From 45d9c4a1ef66451ed45a6afdec7098ed02082390 Mon Sep 17 00:00:00 2001
|
||||
From: Rosen Matev <rosen.matev@cern.ch>
|
||||
Date: Fri, 29 Apr 2022 15:42:28 +0200
|
||||
Subject: [PATCH] Fix tests in pump mode
|
||||
|
||||
`make check` is also running tests for the pump mode
|
||||
(`pump-maintainer-check` target) but they were all falling back to
|
||||
the usual preprocessor mode as the include server was not started.
|
||||
|
||||
This is solved by prepending `pump` to the distcc invocations and
|
||||
also some trivially failing tests are fixed or disabled when they
|
||||
make no sense in pump mode.
|
||||
---
|
||||
Makefile.in | 2 +-
|
||||
pump.in | 13 +++++++++++--
|
||||
test/testdistcc.py | 28 ++++++++++++++++++++++++----
|
||||
3 files changed, 36 insertions(+), 7 deletions(-)
|
||||
|
||||
diff --git a/Makefile.in b/Makefile.in
|
||||
index f240ca6f..79e28380 100644
|
||||
--- a/Makefile.in
|
||||
+++ b/Makefile.in
|
||||
@@ -583,7 +583,7 @@ distccmon-gnome@EXEEXT@: $(mon_obj) $(gnome_obj)
|
||||
# the distcc version, the source location, the CPP flags (for location of the
|
||||
# includes), and the build location.
|
||||
include-server:
|
||||
- if test -z "$(PYTHON)"; then \
|
||||
+ @if test -z "$(PYTHON)"; then \
|
||||
echo "Not building $@: No suitable python found"; \
|
||||
else \
|
||||
mkdir -p "$(include_server_builddir)" && \
|
||||
diff --git a/pump.in b/pump.in
|
||||
index 8e46f458..08a32c0e 100755
|
||||
--- a/pump.in
|
||||
+++ b/pump.in
|
||||
@@ -218,7 +218,9 @@ PrintIncludeServerStatusMessage() {
|
||||
}
|
||||
|
||||
Announce() {
|
||||
- echo "__________Using distcc-pump from $DISTCC_LOCATION"
|
||||
+ if [ "$verbose" = 1 ]; then
|
||||
+ echo "__________Using distcc-pump from $DISTCC_LOCATION"
|
||||
+ fi
|
||||
}
|
||||
|
||||
# Starts up the include server. Sets $socket, $socket_dir, and
|
||||
@@ -359,7 +361,9 @@ ShutDown() {
|
||||
# Always -- at exit -- shut down include_server and remove $socket_dir
|
||||
if [ -n "$include_server_pid" ] && \
|
||||
ps -p "$include_server_pid" > /dev/null; then
|
||||
- echo '__________Shutting down distcc-pump include server'
|
||||
+ if [ "$verbose" = 1 ]; then
|
||||
+ echo '__________Shutting down distcc-pump include server'
|
||||
+ fi
|
||||
kill $include_server_pid
|
||||
# Wait until it's really dead. We need to do this because the
|
||||
# include server may produce output after receiving SIGTERM.
|
||||
@@ -508,6 +512,11 @@ Main() {
|
||||
|
||||
Initialize
|
||||
|
||||
+ # Do not write on stdout if we're testing pump mode
|
||||
+ if [ "0$DISTCC_TESTING_INCLUDE_SERVER" -ne "0" ]; then
|
||||
+ verbose=0
|
||||
+ fi
|
||||
+
|
||||
case "$*" in
|
||||
--startup)
|
||||
# Don't put ordinary progress messages on stdout,
|
||||
diff --git a/test/testdistcc.py b/test/testdistcc.py
|
||||
index dfdf2f13..6377d0b6 100755
|
||||
--- a/test/testdistcc.py
|
||||
+++ b/test/testdistcc.py
|
||||
@@ -258,7 +258,11 @@ def valgrind(self):
|
||||
return _valgrind_command;
|
||||
|
||||
def distcc(self):
|
||||
- return self.valgrind() + "distcc "
|
||||
+ if "cpp" not in _server_options:
|
||||
+ return self.valgrind() + "distcc "
|
||||
+ else:
|
||||
+ return "DISTCC_TESTING_INCLUDE_SERVER=1 " + self.valgrind() + "pump distcc "
|
||||
+
|
||||
|
||||
def distccd(self):
|
||||
return self.valgrind() + "distccd "
|
||||
@@ -422,6 +426,11 @@ class BogusOption_Case(SimpleDistCC_Case):
|
||||
Now that we support implicit compilers, this is passed to gcc,
|
||||
which returns a non-zero status."""
|
||||
def runtest(self):
|
||||
+ # Disable the test in pump mode since the pump wrapper fails
|
||||
+ # before we can run distcc.
|
||||
+ if "cpp" in _server_options:
|
||||
+ raise comfychair.NotRunError('pump wrapper expects DISTCC_HOSTS')
|
||||
+
|
||||
error_rc, _, _ = self.runcmd_unchecked(self._cc + " --bogus-option")
|
||||
assert error_rc != 0
|
||||
self.runcmd(self.distcc() + self._cc + " --bogus-option", error_rc)
|
||||
@@ -432,7 +441,7 @@ def runtest(self):
|
||||
class CompilerOptionsPassed_Case(SimpleDistCC_Case):
|
||||
"""Test that options following the compiler name are passed to the compiler."""
|
||||
def runtest(self):
|
||||
- out, err = self.runcmd("DISTCC_HOSTS=localhost "
|
||||
+ out, err = self.runcmd("DISTCC_HOSTS=localhost%s " % _server_options
|
||||
+ self.distcc()
|
||||
+ self._cc + " --help")
|
||||
if re.search('distcc', out):
|
||||
@@ -1422,7 +1431,8 @@ def source(self):
|
||||
|
||||
def setupEnv(self):
|
||||
Compilation_Case.setupEnv(self)
|
||||
- os.environ['DISTCC_HOSTS'] = '127.0.0.1:%d,lzo' % self.server_port
|
||||
+ os.environ['DISTCC_HOSTS'] = (
|
||||
+ '127.0.0.1:%d,lzo' % self.server_port + _server_options)
|
||||
|
||||
class DashONoSpace_Case(CompileHello_Case):
|
||||
def compileCmd(self):
|
||||
@@ -1525,6 +1535,11 @@ def source(self):
|
||||
"""
|
||||
|
||||
def runtest(self):
|
||||
+ # Disable the test in pump mode since the pump wrapper fails
|
||||
+ # before we can run distcc.
|
||||
+ if "cpp" in _server_options:
|
||||
+ raise comfychair.NotRunError('pump wrapper expects DISTCC_HOSTS')
|
||||
+
|
||||
# -P means not to emit linemarkers
|
||||
self.runcmd(self.distcc()
|
||||
+ self._cc + " -E testtmp.c -o testtmp.out")
|
||||
@@ -1828,7 +1843,7 @@ class NoServer_Case(CompileHello_Case):
|
||||
"""Invalid server name"""
|
||||
def setup(self):
|
||||
self.stripEnvironment()
|
||||
- os.environ['DISTCC_HOSTS'] = 'no.such.host.here'
|
||||
+ os.environ['DISTCC_HOSTS'] = 'no.such.host.here' + _server_options
|
||||
self.distcc_log = 'distcc.log'
|
||||
os.environ['DISTCC_LOG'] = self.distcc_log
|
||||
self.createSource()
|
||||
@@ -1874,6 +1889,11 @@ class NoHosts_Case(CompileHello_Case):
|
||||
We expect compilation to succeed, but with a warning that it was
|
||||
run locally."""
|
||||
def runtest(self):
|
||||
+ # Disable the test in pump mode since the pump wrapper fails
|
||||
+ # before we can run distcc.
|
||||
+ if "cpp" in _server_options:
|
||||
+ raise comfychair.NotRunError('pump wrapper expects DISTCC_HOSTS')
|
||||
+
|
||||
# WithDaemon_Case sets this to point to the local host, but we
|
||||
# don't want that. Note that you cannot delete environment
|
||||
# keys in Python1.5, so we need to just set them to the empty
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
https://bugs.gentoo.org/934006
|
||||
https://github.com/linux-audit/audit-userspace/commit/1dd6123e810ce255692a693a5d52a0c34cf432d0
|
||||
|
||||
From 1dd6123e810ce255692a693a5d52a0c34cf432d0 Mon Sep 17 00:00:00 2001
|
||||
From: Steve Grubb <ausearch.1@gmail.com>
|
||||
Date: Mon, 1 Apr 2024 12:10:33 -0400
|
||||
Subject: [PATCH] Add empty macro to fix muscl c builds
|
||||
|
||||
--- a/common/common.h
|
||||
+++ b/common/common.h
|
||||
@@ -1,5 +1,5 @@
|
||||
-/* audit-fgets.h -- a replacement for glibc's fgets
|
||||
- * Copyright 2018,2022 Red Hat Inc.
|
||||
+/* common.h -- common utility functions used throughout
|
||||
+ * Copyright 2018-24 Red Hat Inc.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
@@ -29,6 +29,9 @@
|
||||
#ifndef __attr_access
|
||||
# define __attr_access(x)
|
||||
#endif
|
||||
+#ifndef __attribute_malloc__
|
||||
+# define __attribute_malloc__
|
||||
+#endif
|
||||
#ifndef __attr_dealloc
|
||||
# define __attr_dealloc(dealloc, argno)
|
||||
#endif
|
||||
@@ -1,40 +0,0 @@
|
||||
https://bugs.gentoo.org/914237
|
||||
https://github.com/apache/tomcat-connectors/commit/ecd005d0792441c4510dc4c2d9348979ab71ddcc
|
||||
|
||||
From ecd005d0792441c4510dc4c2d9348979ab71ddcc Mon Sep 17 00:00:00 2001
|
||||
From: Rainer Jung <rainer.jung@kippdata.de>
|
||||
Date: Fri, 10 Nov 2023 11:38:04 +0100
|
||||
Subject: [PATCH] BZ 68117: Fix typo and escaping in libtool flag introduced in
|
||||
1.2.49.
|
||||
|
||||
---
|
||||
apache-2.0/Makefile.apxs.in | 2 +-
|
||||
apache-2.0/Makefile.in | 2 +-
|
||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/apache-2.0/Makefile.apxs.in b/apache-2.0/Makefile.apxs.in
|
||||
index 36aeada1c..161616502 100644
|
||||
--- a/apache-2.0/Makefile.apxs.in
|
||||
+++ b/apache-2.0/Makefile.apxs.in
|
||||
@@ -21,7 +21,7 @@ top_builddir=@top_builddir@
|
||||
APXS=@APXS@
|
||||
APXSCFLAGS=@APXSCFLAGS@
|
||||
APXSLDFLAGS=@APXSLDFLAGS@
|
||||
-JKLDFLAGS=-export-symbols-regex ^jk_module$
|
||||
+JKLDFLAGS=-export-symbols-regex ^jk_module\$$
|
||||
|
||||
COMMON=common
|
||||
JK_INCL=-DUSE_APACHE_MD5 -I${top_builddir}/${COMMON} -I ${top_srcdir}/${COMMON}
|
||||
diff --git a/apache-2.0/Makefile.in b/apache-2.0/Makefile.in
|
||||
index e63f5c921..a9327743b 100644
|
||||
--- a/apache-2.0/Makefile.in
|
||||
+++ b/apache-2.0/Makefile.in
|
||||
@@ -23,7 +23,7 @@ MKDIR=@MKDIR@
|
||||
APXSCFLAGS=@APXSCFLAGS@
|
||||
APXSCPPFLAGS=@APXSCPPFLAGS@
|
||||
APXSLDFLAGS=@APXSLDFLAGS@
|
||||
-JKLDFLAGS=-export-symbols-regexp ^jk_module$
|
||||
+JKLDFLAGS=-export-symbols-regex ^jk_module\$$
|
||||
|
||||
CC=@CC@
|
||||
SHELL=@SHELL@
|
||||
@@ -1,26 +0,0 @@
|
||||
From 479102b941ac4c8c86ce102ec6e5bc9ad59b0d89 Mon Sep 17 00:00:00 2001
|
||||
From: Conrad Kostecki <conikost@gentoo.org>
|
||||
Date: Tue, 23 Jan 2024 22:10:38 +0100
|
||||
Subject: [PATCH] native/common/jk_global.h: fix compilation on musl
|
||||
|
||||
On musl, sys/socketvar.h does not exist, so we need to make sure,
|
||||
not to use it.
|
||||
|
||||
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
|
||||
---
|
||||
common/jk_global.h | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/common/jk_global.h b/common/jk_global.h
|
||||
index adcbd95f1..f4680ef8b 100644
|
||||
--- a/common/jk_global.h
|
||||
+++ b/common/jk_global.h
|
||||
@@ -148,7 +148,7 @@ extern char *strdup(const char *str);
|
||||
#include <netinet/tcp.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <sys/un.h>
|
||||
-#if !defined(_OSD_POSIX) && !defined(AS400) && !defined(__CYGWIN__) && !defined(HPUX11)
|
||||
+#if !defined(_OSD_POSIX) && !defined(AS400) && !defined(__CYGWIN__) && !defined(HPUX11) && !defined(PLATFORM_LINUX)
|
||||
#include <sys/socketvar.h>
|
||||
#endif
|
||||
#if !defined(HPUX11) && !defined(AS400)
|
||||
@@ -1,57 +0,0 @@
|
||||
https://gitlab.exherbo.org/exherbo/desktop/-/raw/master/packages/net-www/chromium-beta/files/chromium-browser-ui-missing-deps.patch
|
||||
https://issues.chromium.org/u/2/issues/351157339
|
||||
Source: Tom Briden <tom@decompile.me.uk>
|
||||
Upstream: No
|
||||
|
||||
--- a/chrome/browser/ui/views/side_panel/BUILD.gn
|
||||
+++ b/chrome/browser/ui/views/side_panel/BUILD.gn
|
||||
@@ -142,18 +142,30 @@ static_library("side_panel") {
|
||||
}
|
||||
public_deps = [
|
||||
"//base",
|
||||
+ "//chrome/browser/cart:mojo_bindings",
|
||||
"//chrome/browser/companion/core/mojom:mojo_bindings",
|
||||
"//chrome/browser/profiles:profile",
|
||||
"//chrome/browser/ui/actions:actions_headers",
|
||||
"//chrome/browser/ui/color:color_headers",
|
||||
+ "//chrome/browser/ui/webui/side_panel/customize_chrome:mojo_bindings",
|
||||
+ "//chrome/browser/ui/webui/side_panel/bookmarks:mojo_bindings",
|
||||
"//chrome/browser/ui/webui/side_panel/performance_controls:mojo_bindings",
|
||||
+ "//chrome/browser/ui/webui/side_panel/reading_list:mojo_bindings",
|
||||
+ "//chrome/browser/ui:webui_name_variants",
|
||||
"//chrome/common",
|
||||
"//chrome/common/accessibility:mojo_bindings",
|
||||
+ "//chrome/common/companion:mojo_bindings",
|
||||
+ "//components/enterprise/buildflags:buildflags",
|
||||
+ "//components/enterprise/common/proto:connectors_proto",
|
||||
"//components/lens",
|
||||
"//components/lens:buildflags",
|
||||
"//components/omnibox/browser",
|
||||
+ "//components/page_image_service/mojom:mojo_bindings",
|
||||
+ "//components/paint_preview/buildflags:buildflags",
|
||||
"//components/prefs",
|
||||
"//components/search_engines",
|
||||
+ "//components/segmentation_platform/public/proto:proto",
|
||||
+ "//components/webapps/common:mojo_bindings",
|
||||
"//content/public/browser",
|
||||
"//extensions/browser",
|
||||
"//extensions/common",
|
||||
@@ -165,6 +177,8 @@ static_library("side_panel") {
|
||||
"//ui/gfx/geometry",
|
||||
"//ui/views",
|
||||
"//ui/views/controls/webview",
|
||||
+ "//ui/webui/resources/cr_components/commerce:mojo_bindings",
|
||||
+ "//ui/webui/resources/cr_components/help_bubble:mojo_bindings",
|
||||
"//url",
|
||||
]
|
||||
deps = [
|
||||
--- a/chrome/browser/ui/webui/top_chrome/BUILD.gn
|
||||
+++ b/chrome/browser/ui/webui/top_chrome/BUILD.gn
|
||||
@@ -19,6 +19,7 @@ source_set("top_chrome") {
|
||||
deps = [
|
||||
"//base",
|
||||
"//chrome/browser/profiles:profile",
|
||||
+ "//chrome/browser/ui:webui_name_variants",
|
||||
"//components/site_engagement/content:content",
|
||||
"//content/public/browser",
|
||||
"//ui/webui",
|
||||
@@ -1,81 +0,0 @@
|
||||
From dee1eb37d787d34cb37df7eab535240e1774293a Mon Sep 17 00:00:00 2001
|
||||
From: Ruediger Pluem <rpluem@apache.org>
|
||||
Date: Mon, 8 Apr 2024 13:18:28 +0000
|
||||
Subject: [PATCH] * Ensure that we set the default DH parameters for the key
|
||||
|
||||
Replace else with an if as the if branch no longer ensures that
|
||||
custome DH parameters have been loaded.
|
||||
This fixes a regression that causes the default DH parameters for a key
|
||||
no longer set and thus effectively disabling DH ciphers when no explicit
|
||||
DH parameters are set.
|
||||
|
||||
PR: 68863
|
||||
|
||||
|
||||
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1916863 13f79535-47bb-0310-9956-ffa450edef68
|
||||
---
|
||||
changes-entries/pr68863.txt | 3 +++
|
||||
modules/ssl/ssl_engine_init.c | 11 ++++++-----
|
||||
2 files changed, 9 insertions(+), 5 deletions(-)
|
||||
create mode 100644 changes-entries/pr68863.txt
|
||||
|
||||
diff --git a/changes-entries/pr68863.txt b/changes-entries/pr68863.txt
|
||||
new file mode 100644
|
||||
index 00000000000..d45ffc708cc
|
||||
--- /dev/null
|
||||
+++ b/changes-entries/pr68863.txt
|
||||
@@ -0,0 +1,3 @@
|
||||
+ *) mod_ssl: Fix a regression that causes the default DH parameters for a key
|
||||
+ no longer set and thus effectively disabling DH ciphers when no explicit
|
||||
+ DH parameters are set. PR 68863 [Ruediger Pluem]
|
||||
diff --git a/modules/ssl/ssl_engine_init.c b/modules/ssl/ssl_engine_init.c
|
||||
index 64e4aaf1dcd..f657026d137 100644
|
||||
--- a/modules/ssl/ssl_engine_init.c
|
||||
+++ b/modules/ssl/ssl_engine_init.c
|
||||
@@ -1416,6 +1416,7 @@ static apr_status_t ssl_init_server_certs(server_rec *s,
|
||||
const char *vhost_id = mctx->sc->vhost_id, *key_id, *certfile, *keyfile;
|
||||
int i;
|
||||
EVP_PKEY *pkey;
|
||||
+ int custom_dh_done = 0;
|
||||
#ifdef HAVE_ECC
|
||||
EC_GROUP *ecgroup = NULL;
|
||||
int curve_nid = 0;
|
||||
@@ -1591,14 +1592,14 @@ static apr_status_t ssl_init_server_certs(server_rec *s,
|
||||
*/
|
||||
certfile = APR_ARRAY_IDX(mctx->pks->cert_files, 0, const char *);
|
||||
if (certfile && !modssl_is_engine_id(certfile)) {
|
||||
- int done = 0, num_bits = 0;
|
||||
+ int num_bits = 0;
|
||||
#if OPENSSL_VERSION_NUMBER < 0x30000000L
|
||||
DH *dh = modssl_dh_from_file(certfile);
|
||||
if (dh) {
|
||||
num_bits = DH_bits(dh);
|
||||
SSL_CTX_set_tmp_dh(mctx->ssl_ctx, dh);
|
||||
DH_free(dh);
|
||||
- done = 1;
|
||||
+ custom_dh_done = 1;
|
||||
}
|
||||
#else
|
||||
pkey = modssl_dh_pkey_from_file(certfile);
|
||||
@@ -1608,18 +1609,18 @@ static apr_status_t ssl_init_server_certs(server_rec *s,
|
||||
EVP_PKEY_free(pkey);
|
||||
}
|
||||
else {
|
||||
- done = 1;
|
||||
+ custom_dh_done = 1;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
- if (done) {
|
||||
+ if (custom_dh_done) {
|
||||
ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, s, APLOGNO(02540)
|
||||
"Custom DH parameters (%d bits) for %s loaded from %s",
|
||||
num_bits, vhost_id, certfile);
|
||||
}
|
||||
}
|
||||
#if !MODSSL_USE_OPENSSL_PRE_1_1_API
|
||||
- else {
|
||||
+ if (!custom_dh_done) {
|
||||
/* If no parameter is manually configured, enable auto
|
||||
* selection. */
|
||||
SSL_CTX_set_dh_auto(mctx->ssl_ctx, 1);
|
||||
@@ -1,125 +0,0 @@
|
||||
diff -Nur qwtplot3d.orig/examples/axes/src/axesmainwindow.cpp qwtplot3d/examples/axes/src/axesmainwindow.cpp
|
||||
--- qwtplot3d.orig/examples/axes/src/axesmainwindow.cpp 2007-11-26 22:16:54.000000000 +0000
|
||||
+++ qwtplot3d/examples/axes/src/axesmainwindow.cpp 2007-11-26 22:21:56.000000000 +0000
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
#include "axes.h"
|
||||
#include "axesmainwindow.h"
|
||||
-#include "../../../include/qwt3d_function.h"
|
||||
+#include <qwt3d_function.h>
|
||||
|
||||
using namespace std;
|
||||
using namespace Qwt3D;
|
||||
diff -Nur qwtplot3d.orig/examples/common.pro qwtplot3d/examples/common.pro
|
||||
--- qwtplot3d.orig/examples/common.pro 2007-11-26 22:16:54.000000000 +0000
|
||||
+++ qwtplot3d/examples/common.pro 2007-11-26 23:43:33.000000000 +0000
|
||||
@@ -1,13 +1,13 @@
|
||||
TEMPLATE = app
|
||||
-CONFIG += qt warn_on thread debug
|
||||
+CONFIG += qt warn_on thread
|
||||
UI_DIR = tmp
|
||||
MOC_DIR = tmp
|
||||
OBJECTS_DIR = tmp
|
||||
-INCLUDEPATH += ../../include
|
||||
+INCLUDEPATH += /usr/include/qwtplot3d
|
||||
DEPENDPATH = $$INCLUDEPATH
|
||||
DESTDIR = ../bin
|
||||
|
||||
-unix:LIBS += -lqwtplot3d -L../../lib
|
||||
+unix:LIBS += -lqwtplot3d
|
||||
linux-g++:QMAKE_CXXFLAGS += -fno-exceptions
|
||||
|
||||
win32{
|
||||
@@ -25,7 +25,7 @@
|
||||
ISQT4 = $$find(MYVERSION, ^[2-9])
|
||||
|
||||
!isEmpty( ISQT4 ) {
|
||||
-RESOURCES = ../images.qrc
|
||||
+#RESOURCES = ../images.qrc
|
||||
QT += opengl
|
||||
}
|
||||
|
||||
diff -Nur qwtplot3d.orig/examples/enrichments/src/enrichmentmainwindow.cpp qwtplot3d/examples/enrichments/src/enrichmentmainwindow.cpp
|
||||
--- qwtplot3d.orig/examples/enrichments/src/enrichmentmainwindow.cpp 2007-11-26 22:16:54.000000000 +0000
|
||||
+++ qwtplot3d/examples/enrichments/src/enrichmentmainwindow.cpp 2007-11-26 22:22:48.000000000 +0000
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
#include "enrichmentmainwindow.h"
|
||||
#include "enrichments.h"
|
||||
-#include "../../../include/qwt3d_function.h"
|
||||
+#include <qwt3d_function.h>
|
||||
|
||||
using namespace Qwt3D;
|
||||
|
||||
diff -Nur qwtplot3d.orig/examples/mesh2/src/colormapreader.h qwtplot3d/examples/mesh2/src/colormapreader.h
|
||||
--- qwtplot3d.orig/examples/mesh2/src/colormapreader.h 2007-11-26 22:16:54.000000000 +0000
|
||||
+++ qwtplot3d/examples/mesh2/src/colormapreader.h 2007-11-26 22:23:19.000000000 +0000
|
||||
@@ -5,7 +5,7 @@
|
||||
#include <qframe.h>
|
||||
#include <qpixmap.h>
|
||||
|
||||
-#include "../../../include/qwt3d_types.h"
|
||||
+#include <qwt3d_types.h>
|
||||
|
||||
#if QT_VERSION < 0x040000
|
||||
|
||||
diff -Nur qwtplot3d.orig/examples/mesh2/src/functions.h qwtplot3d/examples/mesh2/src/functions.h
|
||||
--- qwtplot3d.orig/examples/mesh2/src/functions.h 2007-11-26 22:16:54.000000000 +0000
|
||||
+++ qwtplot3d/examples/mesh2/src/functions.h 2007-11-26 22:23:47.000000000 +0000
|
||||
@@ -2,8 +2,8 @@
|
||||
#define __EXAMPLE_H__
|
||||
|
||||
#include <math.h>
|
||||
-#include "../../../include/qwt3d_parametricsurface.h"
|
||||
-#include "../../../include/qwt3d_function.h"
|
||||
+#include <qwt3d_parametricsurface.h>
|
||||
+#include <qwt3d_function.h>
|
||||
|
||||
using namespace Qwt3D;
|
||||
|
||||
diff -Nur qwtplot3d.orig/examples/mesh2/src/lightingdlg.h qwtplot3d/examples/mesh2/src/lightingdlg.h
|
||||
--- qwtplot3d.orig/examples/mesh2/src/lightingdlg.h 2007-11-26 22:16:54.000000000 +0000
|
||||
+++ qwtplot3d/examples/mesh2/src/lightingdlg.h 2007-11-26 22:24:41.000000000 +0000
|
||||
@@ -3,10 +3,10 @@
|
||||
|
||||
#include <math.h>
|
||||
#include <qapplication.h>
|
||||
-#include "../../../include/qwt3d_parametricsurface.h"
|
||||
-#include "../../../include/qwt3d_surfaceplot.h"
|
||||
-#include "../../../include/qwt3d_enrichment.h"
|
||||
-#include "../../../include/qwt3d_color.h"
|
||||
+#include <qwt3d_parametricsurface.h>
|
||||
+#include <qwt3d_surfaceplot.h>
|
||||
+#include <qwt3d_enrichment.h>
|
||||
+#include <qwt3d_color.h>
|
||||
|
||||
#if QT_VERSION < 0x040000
|
||||
#include "lightingdlgbase.h"
|
||||
diff -Nur qwtplot3d.orig/examples/mesh2/src/mesh2mainwindow.cpp qwtplot3d/examples/mesh2/src/mesh2mainwindow.cpp
|
||||
--- qwtplot3d.orig/examples/mesh2/src/mesh2mainwindow.cpp 2007-11-26 22:16:54.000000000 +0000
|
||||
+++ qwtplot3d/examples/mesh2/src/mesh2mainwindow.cpp 2007-11-26 22:25:33.000000000 +0000
|
||||
@@ -33,9 +33,9 @@
|
||||
#include "colormapreader.h"
|
||||
#include "lightingdlg.h"
|
||||
#include "femreader.h"
|
||||
-#include "../../../include/qwt3d_io.h"
|
||||
-#include "../../../include/qwt3d_io_gl2ps.h"
|
||||
-#include "../../../include/qwt3d_io_reader.h"
|
||||
+#include <qwt3d_io.h>
|
||||
+#include <qwt3d_io_gl2ps.h>
|
||||
+#include <qwt3d_io_reader.h>
|
||||
|
||||
using namespace Qwt3D;
|
||||
using namespace std;
|
||||
diff -Nur qwtplot3d.orig/examples/mesh2/src/mesh2mainwindow.h qwtplot3d/examples/mesh2/src/mesh2mainwindow.h
|
||||
--- qwtplot3d.orig/examples/mesh2/src/mesh2mainwindow.h 2007-11-26 22:16:54.000000000 +0000
|
||||
+++ qwtplot3d/examples/mesh2/src/mesh2mainwindow.h 2007-11-26 22:26:09.000000000 +0000
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef mesh2mainwindow_h__2004_03_07_13_38_begin_guarded_code
|
||||
#define mesh2mainwindow_h__2004_03_07_13_38_begin_guarded_code
|
||||
|
||||
-#include "../../../include/qwt3d_surfaceplot.h"
|
||||
+#include <qwt3d_surfaceplot.h>
|
||||
|
||||
|
||||
#if QT_VERSION < 0x040000
|
||||
@@ -1,34 +0,0 @@
|
||||
diff -urbN qwtplot3d/include/qwt3d_io_gl2ps.h qwtplot3d.patched/include/qwt3d_io_gl2ps.h
|
||||
--- qwtplot3d/include/qwt3d_io_gl2ps.h 2005-07-10 16:54:52.000000000 +0300
|
||||
+++ qwtplot3d.patched/include/qwt3d_io_gl2ps.h 2012-01-21 22:15:20.000000000 +0200
|
||||
@@ -2,12 +2,7 @@
|
||||
#define qwt3d_io_gl2ps_h__2004_05_07_01_16_begin_guarded_code
|
||||
|
||||
#include <time.h>
|
||||
-
|
||||
-#if QT_VERSION < 0x040000
|
||||
-#include <qgl.h>
|
||||
-#else
|
||||
-#include <QtOpenGL/qgl.h>
|
||||
-#endif
|
||||
+#include <QtOpenGL>
|
||||
|
||||
#include "qwt3d_types.h"
|
||||
#include "qwt3d_io.h"
|
||||
diff -urbN qwtplot3d/include/qwt3d_openglhelper.h qwtplot3d.patched/include/qwt3d_openglhelper.h
|
||||
--- qwtplot3d/include/qwt3d_openglhelper.h 2005-07-19 17:40:28.000000000 +0300
|
||||
+++ qwtplot3d.patched/include/qwt3d_openglhelper.h 2012-01-21 22:29:56.000000000 +0200
|
||||
@@ -2,11 +2,8 @@
|
||||
#define __openglhelper_2003_06_06_15_49__
|
||||
|
||||
#include "qglobal.h"
|
||||
-#if QT_VERSION < 0x040000
|
||||
-#include <qgl.h>
|
||||
-#else
|
||||
-#include <QtOpenGL/qgl.h>
|
||||
-#endif
|
||||
+#include <QtOpenGL>
|
||||
+#include <GL/glu.h>
|
||||
|
||||
namespace Qwt3D
|
||||
{
|
||||
@@ -1,31 +0,0 @@
|
||||
--- a/qwtplot3d.pro 2009-04-07 19:45:29.985645378 +0100
|
||||
+++ b/qwtplot3d.pro 2009-04-07 19:46:50.095747068 +0100
|
||||
@@ -80,13 +80,11 @@
|
||||
include/qwt3d_graphplot.h \
|
||||
include/qwt3d_multiplot.h
|
||||
|
||||
-# gl2ps support
|
||||
-HEADERS+=3rdparty/gl2ps/gl2ps.h \
|
||||
- include/qwt3d_io_gl2ps.h
|
||||
+# gl2ps support taken from system libs
|
||||
+HEADERS+=include/qwt3d_io_gl2ps.h
|
||||
|
||||
-SOURCES+=src/qwt3d_io_gl2ps.cpp \
|
||||
- 3rdparty/gl2ps/gl2ps.c
|
||||
-
|
||||
+SOURCES+=src/qwt3d_io_gl2ps.cpp
|
||||
+unix:LIBS += -lgl2ps
|
||||
# zlib support for gl2ps
|
||||
zlib {
|
||||
DEFINES += GL2PS_HAVE_ZLIB
|
||||
--- a/src/qwt3d_io_gl2ps.cpp 2009-04-07 19:44:38.536418391 +0100
|
||||
+++ b/src/qwt3d_io_gl2ps.cpp 2009-04-07 19:45:03.685133854 +0100
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
#include <time.h>
|
||||
#include "qwt3d_openglhelper.h"
|
||||
-#include "../3rdparty/gl2ps/gl2ps.h"
|
||||
+#include <gl2ps.h>
|
||||
#include "qwt3d_io_gl2ps.h"
|
||||
#include "qwt3d_plot.h"
|
||||
|
||||
Reference in New Issue
Block a user