File: optional-boost-system.patch

package info (click to toggle)
innoextract 1.9-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,296 kB
  • sloc: cpp: 12,230; python: 1,703; sh: 76; makefile: 9
file content (41 lines) | stat: -rw-r--r-- 2,001 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
commit 52d39dfdffa29d7ba32231b62848b7d433025e75
Author: Stephen Kitt <skitt@debian.org>
Date:   Tue Mar 3 12:05:07 2026 +0100

    Make boost::system optional
    
    This is a header-only component since Boost 1.69 and the stub library
    is no longer available since 1.89, which breaks builds requiring it.
    This makes it optional to allow building with older versions of
    Boost. (innoextract doesn't use it directly so it could probably be
    removed entirely, but I haven't checked builds with older versions of
    Boost.)
    
    See https://www.boost.org/releases/1.89.0/ for details.
    
    Signed-off-by: Stephen Kitt <skitt@debian.org>

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -155,8 +155,9 @@
 	iostreams
 	filesystem
 	date_time
-	system
 	program_options
+	OPTIONAL_COMPONENTS
+	system
 )
 list(APPEND LIBRARIES ${Boost_LIBRARIES})
 link_directories(${Boost_LIBRARY_DIRS})
--- a/README.md
+++ b/README.md
@@ -21,7 +21,7 @@
 * **liblzma** from [xz-utils](https://tukaani.org/xz/) *(optional)*
 * **iconv** (*optional*, either as part of the system libc, as is the case with [glibc](https://www.gnu.org/software/libc/) and [uClibc](https://uclibc.org/), or as a separate [libiconv](https://www.gnu.org/software/libiconv/))
 
-For Boost you will need the headers as well as the `iostreams`, `filesystem`, `date_time`, `system` and `program_options` libraries. Older Boost version may work but are not actively supported. The boost `iostreams` library needs to be build with zlib and bzip2 support.
+For Boost you will need the headers as well as the `iostreams`, `filesystem`, `date_time` and `program_options` libraries. Older Boost versions may work but are not actively supported. The boost `iostreams` library needs to be built with zlib and bzip2 support.
 
 While innoextract can be built without liblzma by manually setting `-DUSE_LZMA=OFF`, it is highly recommended and you won't be able to extract most installers created by newer Inno Setup versions without it.