2 Commits

Author SHA256 Message Date
7435295b9e Accepting request 1310726 from hardware
- Boost.System is headers only since 1.69
  * remove boost.m4 and use upstream version instead
  * add boost-system.patch (forwarded request 1310722 from adkorte)

OBS-URL: https://build.opensuse.org/request/show/1310726
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cc-tool?expand=0&rev=3
2025-10-11 20:51:01 +00:00
fec9ac78dd - Boost.System is headers only since 1.69
* remove boost.m4 and use upstream version instead
  * add boost-system.patch

OBS-URL: https://build.opensuse.org/package/show/hardware/cc-tool?expand=0&rev=7
2025-10-11 13:48:33 +00:00
4 changed files with 33 additions and 1703 deletions

19
boost-system.patch Normal file
View File

@@ -0,0 +1,19 @@
diff -purN a/m4/boost.m4 b/m4/boost.m4
--- a/m4/boost.m4 2020-07-30 00:20:40.000000000 +0200
+++ b/m4/boost.m4 2025-10-11 15:06:49.581067581 +0200
@@ -1023,11 +1023,13 @@ BOOST_DEFUN([String_Algo],
# --------------------------------
# Look for Boost.System. For the documentation of PREFERRED-RT-OPT, see the
# documentation of BOOST_FIND_LIB above. This library was introduced in Boost
-# 1.35.0.
+# 1.35.0 and removed in 1.69.0
BOOST_DEFUN([System],
-[BOOST_FIND_LIB([system], [$1],
+[if test $boost_major_version -lt 169; then
+ BOOST_FIND_LIB([system], [$1],
[boost/system/error_code.hpp],
[boost::system::error_code e; e.clear();])
+fi
])# BOOST_SYSTEM

1696
boost.m4

File diff suppressed because it is too large Load Diff

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Sat Oct 11 13:11:02 UTC 2025 - Arjen de Korte <suse+build@de-korte.org>
- Boost.System is headers only since 1.69
* remove boost.m4 and use upstream version instead
* add boost-system.patch
-------------------------------------------------------------------
Mon Dec 18 04:13:59 UTC 2023 - Wang Jun <badboywj@gmail.com>

View File

@@ -22,17 +22,18 @@ Release: 0
Summary: Programmer for Texas Instruments 8051-based System-On-Chip devices
License: GPL-2.0-only
Group: Hardware/Other
URL: http://sourceforge.net/projects/cctool/
URL: https://github.com/dashesy/cc-tool
Source0: https://github.com/dashesy/cc-tool/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: boost.m4
BuildRequires: autoconf
# PATCH-FIX-OPENSUSE - Boost.System is headers only since 1.69
Patch1: boost-system.patch
BuildRequires: automake
BuildRequires: boost-devel >= 1.55
BuildRequires: gcc-c++
BuildRequires: gettext-devel
BuildRequires: libboost_filesystem-devel >= 1.55
BuildRequires: libboost_program_options-devel >= 1.55
BuildRequires: libboost_regex-devel >= 1.55
BuildRequires: libboost_system-devel >= 1.55
BuildRequires: (libboost_system-devel >= 1.55 if boost-devel < 1.69)
BuildRequires: libtool
BuildRequires: libusb-devel
@@ -41,13 +42,12 @@ cc-tool provides support for Texas Instruments CC Debugger for Linux in order
to program 8051-based System-On-Chip devices: CC254x CC253x CC243x CC251x CC111x.
%prep
%setup -q
%autosetup -p1
%build
cp %{SOURCE1} m4/
autoreconf -vfi
%configure
make %{?_smp_mflags}
%make_build
%install
%make_install