diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-05-12 16:42:50 +0300 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-05-12 16:42:50 +0300 |
commit | 752d6256e5204b958b0ef7905675a940b5e9172f (patch) | |
tree | 330d16e6362a49cbed8875a777fe641a43376cd3 /app-admin/xstow/files | |
parent | 0c100b7dd2b30e75b799d806df4ef899fd98e1ea (diff) |
gentoo resync : 12.05.2022
Diffstat (limited to 'app-admin/xstow/files')
-rw-r--r-- | app-admin/xstow/files/xstow-1.0.1-gcc12-clang.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/app-admin/xstow/files/xstow-1.0.1-gcc12-clang.patch b/app-admin/xstow/files/xstow-1.0.1-gcc12-clang.patch new file mode 100644 index 000000000000..982d6bc5cb12 --- /dev/null +++ b/app-admin/xstow/files/xstow-1.0.1-gcc12-clang.patch @@ -0,0 +1,33 @@ +https://svnweb.freebsd.org/ports/head/sysutils/xstow/files/patch-src__string_utils.h?revision=319588&view=co&pathrev=319588 +https://svnweb.freebsd.org/ports/head/sysutils/xstow/files/patch-src__leoini.h?revision=319588&view=co&pathrev=319588 +https://bugs.gentoo.org/840359 +https://bugs.gentoo.org/729114 + +--- a/src/leoini.h ++++ b/src/leoini.h +@@ -260,11 +260,9 @@ + + if( start == std::string::npos || + end == std::string::npos ) +- s = ""; +- else +- s = s.substr( start+1, start-end -1 ); ++ return s2x<A>(""); + +- return s2x<A>(s); ++ return s2x<A>(s.substr( start+1, start-end -1 )); + } + } // namespace Leo + +--- a/src/string_utils.h ++++ b/src/string_utils.h +@@ -28,6 +28,9 @@ + # define STRSTREAM + #endif + ++typedef std::vector<std::string> vec_string; ++std::ostream& operator<<( std::ostream& out, const vec_string &v ); ++ + std::string toupper( std::string s ); + std::string strip( const std::string& str, const std::string& what = " \t\n\0" ); + bool is_int( const std::string &s ); |