[packages/guitarix] - rel 6 - fix boost detection

baggins baggins at pld-linux.org
Wed Nov 11 09:20:16 CET 2026


commit c6284b4df7ac0e3dc5d19b614d32919582ed4f09
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Wed Nov 11 09:19:35 2026 +0100

    - rel 6
    - fix boost detection

 boost-1.90.patch | 38 ++++++++++++++++++++++++++++++++++++++
 guitarix.spec    | 20 ++++++++++++--------
 waf.patch        | 11 +++++++++++
 3 files changed, 61 insertions(+), 8 deletions(-)
---
diff --git a/guitarix.spec b/guitarix.spec
index 0353960..27192bc 100644
--- a/guitarix.spec
+++ b/guitarix.spec
@@ -1,7 +1,7 @@
 Summary:	Linux Rock Guitar Amplifier for Jack Audio Connektion Kit
 Name:		guitarix
 Version:	0.44.1
-Release:	5
+Release:	6
 License:	GPL v2+, GPL v3+ (abgate plugin)
 Group:		Applications/Multimedia
 Source0:	http://downloads.sourceforge.net/guitarix/%{name}2-%{version}.tar.xz
@@ -9,6 +9,8 @@ Source0:	http://downloads.sourceforge.net/guitarix/%{name}2-%{version}.tar.xz
 Patch0:		zita-resampler-1.10.patch
 Patch1:		gcc13.patch
 Patch2:		always_inline.patch
+Patch3:		boost-1.90.patch
+Patch4:		waf.patch
 URL:		https://guitarix.org/
 BuildRequires:	avahi-gobject-devel
 BuildRequires:	bluez-libs-devel
@@ -38,8 +40,8 @@ BuildRequires:	xorg-lib-libX11-devel
 BuildRequires:	xz
 BuildRequires:	zita-convolver-devel >= 4.0.0
 BuildRequires:	zita-resampler-devel
-Requires:	ladspa
 Requires:	fonts-TTF-Roboto
+Requires:	ladspa
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define		_noautoprovfiles	%{_libdir}/(ladspa|lv2)
@@ -60,6 +62,8 @@ use the feedback and feedforward sliders.
 %patch -P0 -p1
 %patch -P1 -p1
 %patch -P2 -p1
+%patch -P3 -p1
+%patch -P4 -p1
 
 %build
 CC="%{__cc}" \
@@ -101,14 +105,14 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc changelog README*
 %attr(755,root,root) %{_bindir}/guitarix
-%attr(755,root,root) %{_libdir}/libgxw.so.0.*
-%attr(755,root,root) %ghost %{_libdir}/libgxw.so.0
-%attr(755,root,root) %{_libdir}/libgxwmm.so.0.*
-%attr(755,root,root) %ghost %{_libdir}/libgxwmm.so.0
-%attr(755,root,root) %{_libdir}/ladspa/*.so
+%{_libdir}/libgxw.so.0.*
+%ghost %{_libdir}/libgxw.so.0
+%{_libdir}/libgxwmm.so.0.*
+%ghost %{_libdir}/libgxwmm.so.0
+%{_libdir}/ladspa/*.so
 %{_datadir}/ladspa/rdf/*.rdf
 %dir %{_libdir}/lv2/gx*
-%attr(755,root,root) %{_libdir}/lv2/gx*/*.so
+%{_libdir}/lv2/gx*/*.so
 %{_libdir}/lv2/gx*/*.ttl
 %{_libdir}/lv2/gx*/modgui
 %{_desktopdir}/guitarix.desktop
diff --git a/boost-1.90.patch b/boost-1.90.patch
new file mode 100644
index 0000000..b2909db
--- /dev/null
+++ b/boost-1.90.patch
@@ -0,0 +1,38 @@
+diff --git a/wscript b/wscript
+index 066d3f00..bc2c4616 100644
+--- a/wscript
++++ b/wscript
+@@ -186,8 +186,13 @@ def check_boost(conf):
+     #include <boost/system/error_code.hpp>
+     int main() { boost::system::error_code c; }
+     """
+-    msg = "Checking for boost-system "
+-    conf.check_cxx(msg = msg, fragment=code, lib="boost_system", uselib_store="BOOST_SYSTEM", mandatory=1,includes='/opt/local/include', libpath='/opt/local/lib')
++    msg = "Checking for boost-system"
++    # boost_system is a stub library since boost 1.69 and is completely removed in boost 1.89
++    try:
++        conf.check_cxx(msg = msg, fragment=code, uselib_store="BOOST_SYSTEM", includes='/opt/local/include', libpath='/opt/local/lib')
++    except ConfigurationError:
++        conf.check_cxx(msg = msg, fragment=code, lib="boost_system", uselib_store="BOOST_SYSTEM", includes='/opt/local/include', libpath='/opt/local/lib')
++        #conf.check_cxx(msg = msg, fragment=code, lib="boost_system-mt", uselib_store="BOOST_SYSTEM", includes='/opt/local/include', libpath='/opt/local/lib')
+     # some boost (>1.49) versions depend on boost-system so we will check for it first
+     # and later link against boost_system were boost headers are included.
+     boost_atleast_version = 104200
+@@ -202,13 +207,11 @@ def check_boost(conf):
+     int main(){ return 0; }
+     """ % boost_atleast_version
+     msg = "Checking for boost >= %s" % boost_atleast_vermsg
+-    conf.check_cxx(msg = msg, fragment=code, lib="boost_system", mandatory=1)
+-    #conf.check_cxx(msg = msg, fragment=code, lib="boost_system-mt", mandatory=1,includes='/opt/local/include', libpath='/opt/local/lib')
++    conf.check_cxx(msg = msg, fragment=code, use='BOOST_SYSTEM', mandatory=1)
++
++    msg = "Checking for boost_iostreams"
++    conf.check_cxx(msg = msg, fragment=code, lib=["boost_iostreams"], use='BOOST_SYSTEM', uselib_store="BOOST_IOSTREAMS", mandatory=1)
+ 
+-    msg = "Checking for boost_iostreams >= %s" % boost_atleast_vermsg
+-    conf.check_cxx(msg = msg, fragment=code, lib=["boost_iostreams","boost_system"], uselib_store="BOOST_IOSTREAMS", mandatory=1)
+-    #conf.check_cxx(msg = msg, fragment=code, lib=["boost_iostreams","boost_system-mt"], uselib_store="BOOST_IOSTREAMS", mandatory=1, includes='/opt/local/include', libpath='/opt/local/lib')
+- 
+     #try:
+     #    conf.check_cxx(
+     #        msg = msg % "", fragment=code, lib="boost_thread", uselib_store="BOOST_THREAD",
diff --git a/waf.patch b/waf.patch
new file mode 100644
index 0000000..cfc0ada
--- /dev/null
+++ b/waf.patch
@@ -0,0 +1,11 @@
+--- guitarix-0.44.1/wscript~	2026-11-11 09:10:11.000000000 +0100
++++ guitarix-0.44.1/wscript	2026-11-11 09:15:30.803986858 +0100
+@@ -537,7 +537,7 @@
+     dst_fname = task.outputs[0].abspath()
+     lst = task.generator.sub_list
+ 
+-    with open(src_fname, 'rU') as f:
++    with open(src_fname, 'r') as f:
+         txt = f.read()
+     for (key, val) in lst:
+         re_pat = re.compile(key, re.M)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/guitarix.git/commitdiff/c6284b4df7ac0e3dc5d19b614d32919582ed4f09



More information about the pld-cvs-commit mailing list