diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-01-15 15:51:32 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-01-15 15:51:32 +0000 |
commit | 21435953e16cda318a82334ddbadb3b5c36d9ea7 (patch) | |
tree | e1810a4b135afce04b34862ef0fab2bfaeb8aeca /net-misc/apt-cacher-ng/files | |
parent | 7bc9c63c9da678a7e6fceb095d56c634afd22c56 (diff) |
gentoo resync : 15.01.2020
Diffstat (limited to 'net-misc/apt-cacher-ng/files')
-rw-r--r-- | net-misc/apt-cacher-ng/files/apt-cacher-ng-3.2-flags.patch | 97 | ||||
-rw-r--r-- | net-misc/apt-cacher-ng/files/apt-cacher-ng-9999999-flags.patch | 18 | ||||
-rw-r--r-- | net-misc/apt-cacher-ng/files/confd | 2 | ||||
-rw-r--r-- | net-misc/apt-cacher-ng/files/initd-r1 | 33 |
4 files changed, 18 insertions, 132 deletions
diff --git a/net-misc/apt-cacher-ng/files/apt-cacher-ng-3.2-flags.patch b/net-misc/apt-cacher-ng/files/apt-cacher-ng-3.2-flags.patch deleted file mode 100644 index bc78fcaea142..000000000000 --- a/net-misc/apt-cacher-ng/files/apt-cacher-ng-3.2-flags.patch +++ /dev/null @@ -1,97 +0,0 @@ -- Rip out additional CFLAGS/LDFLAGS -- Drop osslcompat (bug #686608) - ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -106,16 +106,6 @@ - _append(ACNG_CXXFLAGS -fvisibility-inlines-hidden) - endif() - --foreach(linkarg -Wl,--as-needed -Wl,-O1 -Wl,--discard-all -Wl,--no-undefined -Wl,--build-id=sha1 -Wl,-fuse-ld=gold -Wl,--threads) -- STRING(REGEX REPLACE "=|-|," "" optname "${linkarg}") -- set(CMAKE_REQUIRED_FLAGS "${linkarg}") -- CHECK_CXX_COMPILER_FLAG("" "LD_${optname}") -- if(LD_${optname}) -- _append(CMAKE_EXE_LINKER_FLAGS ${linkarg}) -- endif() -- set(CMAKE_REQUIRED_FLAGS "") --endforeach(linkarg) -- - option(USE_SSL "Use OpenSSL library for TLS and other crypto functionality" on) - - IF(CMAKE_SYSTEM MATCHES "Darwin") -@@ -134,14 +124,6 @@ - if(CMAKE_BUILD_TYPE MATCHES Debug) - set(USE_LTO_DEFAULT off) - _append(ACNG_COMPFLAGS -DDEBUG) --else() -- set(CMAKE_REQUIRED_FLAGS "-Wl,--gc-sections") -- CHECK_CXX_COMPILER_FLAG("-Os -fdata-sections -ffunction-sections -Wl,--gc-sections" GC_SECTIONS) -- if(GC_SECTIONS) -- _append(ACNG_COMPFLAGS -fdata-sections -ffunction-sections) -- _append(CMAKE_EXE_LINKER_FLAGS -Wl,--gc-sections) -- endif() -- set(CMAKE_REQUIRED_FLAGS "") - endif() - - # XXX: could use the modern macros instead but they were not available in CMake 2.x -@@ -167,23 +149,6 @@ - endif() - endif() - --option(USE_LTO "Enable Link Time Optimization (requires modern compilers)" ${USE_LTO_DEFAULT}) -- --if(USE_LTO) -- SET(LDFLAGS_BACKUP "${CMAKE_EXE_LINKER_FLAGS}") -- SET(CMAKE_REQUIRED_FLAGS "${ACNG_COMPFLAGS} -flto") -- _append(CMAKE_EXE_LINKER_FLAGS -flto) -- CHECK_CXX_SOURCE_COMPILES("${CXX11_TESTSRC}" HAS_LTO) -- if(HAS_LTO) -- SET(ACNG_COMPFLAGS ${CMAKE_REQUIRED_FLAGS}) -- else() -- SET(CMAKE_REQUIRED_FLAGS "${ACNG_COMPFLAGS}") -- SET(CMAKE_EXE_LINKER_FLAGS "${LDFLAGS_BACKUP}") -- message(WARNING "Link Time Optimization support broken, disabling it.") -- endif() --endif() --message("-- LTO use: ${USE_LTO}") -- - FIND_LIBRARY(HAVE_SOCKETLIB socket) # separate socket lib looks like Solaris-like environment - if(HAVE_SOCKETLIB) - LIST(APPEND BaseNetworkLibs socket nsl) -@@ -378,7 +343,6 @@ - - CONFIGURE_FILE("${CMAKE_SOURCE_DIR}/include/acsyscap.h.in" "${CMAKE_BINARY_DIR}/acsyscap.h") - --add_subdirectory(oldssl-workaround) - add_subdirectory(client) - add_subdirectory(fs) - add_subdirectory(source) ---- a/fs/CMakeLists.txt -+++ b/fs/CMakeLists.txt -@@ -20,7 +20,7 @@ - list(APPEND fsSRCS ../source/aclogger.cc) - endif() - -- ADD_EXECUTABLE(acngfs ${fsSRCS} $<TARGET_OBJECTS:osslcompat>) -+ ADD_EXECUTABLE(acngfs ${fsSRCS}) - SET_TARGET_PROPERTIES(acngfs PROPERTIES COMPILE_FLAGS "${ACNG_COMPFLAGS} ${ACNG_CXXFLAGS} ${acngfs_cflags}") - INSTALL(TARGETS acngfs DESTINATION ${LIBDIR}) - if(HAVE_DLOPEN) ---- a/source/CMakeLists.txt -+++ b/source/CMakeLists.txt -@@ -4,12 +4,12 @@ - ADD_LIBRARY(acngstuff OBJECT ${SHAREDSRCS}) - SET_TARGET_PROPERTIES(acngstuff PROPERTIES COMPILE_FLAGS "${ACNG_COMPFLAGS} ${ACNG_CXXFLAGS} ${CFLAGS_DAEMON} ${CFLAGS_PTHREAD}") - --ADD_EXECUTABLE(apt-cacher-ng $<TARGET_OBJECTS:acngstuff> ${ACNG_SRCS} apt-cacher.cc $<TARGET_OBJECTS:osslcompat>) -+ADD_EXECUTABLE(apt-cacher-ng $<TARGET_OBJECTS:acngstuff> ${ACNG_SRCS} apt-cacher.cc) - TARGET_LINK_LIBRARIES(apt-cacher-ng ${BaseNetworkLibs} ${ServerLibs} ${CompLibs} ${SSL_LIB_LIST} ${LDFLAGS_DAEMON} ${CMAKE_THREAD_LIBS_INIT} ${EXTRA_LIBS_ACNG}) - SET_TARGET_PROPERTIES(apt-cacher-ng PROPERTIES COMPILE_FLAGS "${ACNG_COMPFLAGS} ${ACNG_CXXFLAGS} ${CFLAGS_DAEMON} ${CFLAGS_PTHREAD}") - INSTALL(TARGETS apt-cacher-ng DESTINATION ${SBINDIR}) - --ADD_EXECUTABLE(acngtool acngtool.cc $<TARGET_OBJECTS:acngstuff> $<TARGET_OBJECTS:osslcompat>) -+ADD_EXECUTABLE(acngtool acngtool.cc $<TARGET_OBJECTS:acngstuff>) - SET_TARGET_PROPERTIES(acngtool PROPERTIES COMPILE_FLAGS "${ACNG_COMPFLAGS} ${ACNG_CXXFLAGS} ${CFLAGS_PTHREAD}") - TARGET_LINK_LIBRARIES(acngtool ${BaseNetworkLibs} ${CompLibs} ${SSL_LIB_LIST} ${CMAKE_THREAD_LIBS_INIT} ${EXTRA_LIBS_ACNGTOOL}) - INSTALL(TARGETS acngtool DESTINATION ${LIBDIR}) diff --git a/net-misc/apt-cacher-ng/files/apt-cacher-ng-9999999-flags.patch b/net-misc/apt-cacher-ng/files/apt-cacher-ng-9999999-flags.patch new file mode 100644 index 000000000000..8fe769ada328 --- /dev/null +++ b/net-misc/apt-cacher-ng/files/apt-cacher-ng-9999999-flags.patch @@ -0,0 +1,18 @@ +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -114,15 +114,6 @@ + + if(CMAKE_BUILD_TYPE MATCHES Debug) + set(USE_LTO_DEFAULT off) +-else() +- set(CMAKE_REQUIRED_FLAGS "-Wl,--gc-sections") +- CHECK_CXX_COMPILER_FLAG("-Os -fdata-sections -ffunction-sections -Wl,--gc-sections" GC_SECTIONS) +- if(GC_SECTIONS) +- _append(ACNG_COMPFLAGS -fdata-sections -ffunction-sections) +- _append(CMAKE_EXE_LINKER_FLAGS -Wl,--gc-sections) +- _append(CMAKE_SHARED_LINKER_FLAGS -Wl,--gc-sections) +- endif() +- set(CMAKE_REQUIRED_FLAGS "") + endif() + + option(USE_LTO "Enable Link Time Optimization (requires modern compilers)" ${USE_LTO_DEFAULT}) diff --git a/net-misc/apt-cacher-ng/files/confd b/net-misc/apt-cacher-ng/files/confd deleted file mode 100644 index 72e76de133d1..000000000000 --- a/net-misc/apt-cacher-ng/files/confd +++ /dev/null @@ -1,2 +0,0 @@ -# Additional options that are passed to the Daemon. -DAEMON_OPTS=" -c /etc/apt-cacher-ng " diff --git a/net-misc/apt-cacher-ng/files/initd-r1 b/net-misc/apt-cacher-ng/files/initd-r1 deleted file mode 100644 index 2e401dcd25a0..000000000000 --- a/net-misc/apt-cacher-ng/files/initd-r1 +++ /dev/null @@ -1,33 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -DAEMON="/usr/sbin/${RC_SVCNAME}" -RUNDIR="/var/run/${RC_SVCNAME}" -CACHEDIR="var/cache/${RC_SVCNAME}" -PIDFILE="${RUNDIR}/${RC_SVCNAME}.pid" -SOCKETFILE="${RUNDIR}/${RC_SVCNAME}.socket" -DAEMON_OPTS="${DAEMON_OPTS} pidfile=${PIDFILE} SocketPath=${SOCKETFILE} foreground=0" - -depend() { - use net -} - -start() { - ebegin "Starting ${RC_SVCNAME}" - checkpath -d -m 0755 -o ${RC_SVCNAME}:${RC_SVCNAME} "${RUNDIR}" - checkpath -d -m 0755 -o ${RC_SVCNAME}:${RC_SVCNAME} "${CACHEDIR}" - start-stop-daemon --start --exec ${DAEMON} \ - --user ${RC_SVCNAME} --group ${RC_SVCNAME} \ - --pidfile ${PIDFILE} \ - -- ${DAEMON_OPTS} - eend $? -} - -stop() { - ebegin "Stopping ${RC_SVCNAME}" - start-stop-daemon --stop --retry 15 --exec ${DAEMON} \ - --pidfile ${PIDFILE} - rm -f ${PIDFILE} - eend $? -} |