[packages/libgtextutils] Add missing patches
arekm
arekm at pld-linux.org
Sat Nov 28 18:24:46 CET 2026
commit c152eac0315814aee903bf2f4a2be82799210f44
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Fri Nov 27 17:35:13 2026 +0100
Add missing patches
avoid-deprecated-binary-function.patch | 20 ++++++++++++++++++++
fix-implicit-conversion.patch | 10 ++++++++++
gcc6-istream-bool.patch | 10 ++++++++++
3 files changed, 40 insertions(+)
---
diff --git a/avoid-deprecated-binary-function.patch b/avoid-deprecated-binary-function.patch
new file mode 100644
index 0000000..aaa2459
--- /dev/null
+++ b/avoid-deprecated-binary-function.patch
@@ -0,0 +1,20 @@
+--- libgtextutils-0.7.orig/src/gtextutils/natsort.h 2014-01-05 21:09:32.000000000 +0100
++++ libgtextutils-0.7/src/gtextutils/natsort.h 2026-03-15 01:47:21.683238317 +0100
+@@ -78,7 +78,7 @@
+
+ #include <string>
+
+-struct natural_sort_predicate : public std::binary_function<std::string, std::string, bool>
++struct natural_sort_predicate
+ {
+ bool operator() ( const std::string& s1, const std::string& s2 )
+ {
+@@ -86,7 +86,7 @@
+ }
+ };
+
+-struct natural_sort_ignore_case_predicate : public std::binary_function<std::string, std::string, bool>
++struct natural_sort_ignore_case_predicate
+ {
+ bool operator() ( const std::string& s1, const std::string& s2 )
+ {
diff --git a/fix-implicit-conversion.patch b/fix-implicit-conversion.patch
new file mode 100644
index 0000000..efa28e7
--- /dev/null
+++ b/fix-implicit-conversion.patch
@@ -0,0 +1,10 @@
+--- libgtextutils-0.7.orig/src/gtextutils/text_line_reader.h 2014-01-05 21:09:32.000000000 +0100
++++ libgtextutils-0.7/src/gtextutils/text_line_reader.h 2026-03-15 01:47:14.890141163 +0100
+@@ -54,7 +54,6 @@
+
+ //implicit conversions
+ operator const std::string& () const { return line_string() ; }
+- operator std::string() const { return line_string(); }
+ operator std::istream& () { return line_stream(); }
+
+ };
diff --git a/gcc6-istream-bool.patch b/gcc6-istream-bool.patch
new file mode 100644
index 0000000..57b0af4
--- /dev/null
+++ b/gcc6-istream-bool.patch
@@ -0,0 +1,10 @@
+--- libgtextutils-0.7.orig/src/gtextutils/text_line_reader.cpp 2014-01-05 21:09:32.000000000 +0100
++++ libgtextutils-0.7/src/gtextutils/text_line_reader.cpp 2026-03-15 01:47:11.153712191 +0100
+@@ -44,6 +44,6 @@
+ if (input_stream.eof())
+ return false;
+
+- return input_stream ;
++ return input_stream.good();
+ }
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libgtextutils.git/commitdiff/3071286185df2104f9c8e13e376892554a651406
More information about the pld-cvs-commit
mailing list