mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 19:14:30 +04:00
schroot: fix compilation with boost 1.89
Patch taken from reschroot. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
committed by
Tianling Shen
parent
d77623843e
commit
ffbb8ff708
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=reschroot
|
||||
PKG_VERSION:=1.6.13
|
||||
PKG_RELEASE:=3
|
||||
PKG_RELEASE:=4
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://codeberg.org/shelter/reschroot/archive/release
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
${public_chroot_facet_cc_sources})
|
||||
target_link_libraries(sbuild
|
||||
PRIVATE
|
||||
+ Intl::Intl
|
||||
+ Intl::Intl
|
||||
${CMAKE_THREAD_LIBS_INIT}
|
||||
${PAM_LIBRARY}
|
||||
${UUID_LIBRARY}
|
||||
|
||||
15
admin/schroot/patches/040-boost-189.patch
Normal file
15
admin/schroot/patches/040-boost-189.patch
Normal file
@@ -0,0 +1,15 @@
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -59,7 +59,11 @@ find_package(Threads REQUIRED)
|
||||
|
||||
include(FindBoost)
|
||||
find_package(Boost REQUIRED
|
||||
- COMPONENTS filesystem system iostreams program_options regex)
|
||||
+ COMPONENTS filesystem iostreams program_options regex)
|
||||
+if(Boost_MAJOR_VERSION EQUAL 1 AND Boost_MINOR_VERSION LESS 69)
|
||||
+ list(APPEND BOOST_REQUIRED_COMPONENTS system)
|
||||
+ find_package(Boost REQUIRED COMPONENTS ${BOOST_REQUIRED_COMPONENTS})
|
||||
+endif()
|
||||
|
||||
# HEADER CHECKS
|
||||
include(CheckIncludeFileCXX)
|
||||
Reference in New Issue
Block a user