Source: source-highlight
Version: 3.1.8-1.2
Severity: minor
Dear Maintainer,
source-highlight won't build with clang. Please consider applying
the patches I submitted upstream a moment ago.
https://savannah.gnu.org/bugs/?func=detailitem&item_id=49327
I tested them with
export CXX=clang++-7
dpkg-buildpackage -b -uc
on this Debian Buster system and the package builds now both with clang and gcc.
Thanks, Paul
-- System Information:
Debian Release: buster/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 4.19.0-2-amd64 (SMP w/16 CPU cores)
Locale: LANG=sv_SE.UTF-8, LC_CTYPE=sv_SE.UTF-8 (charmap=UTF-8),
LANGUAGE=sv_SE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
--- source-highlight-3.1.8_orig/lib/tests/test_wordtokenizer_main.cpp
2012-04-14 19:29:40.000000000 +0200
+++ source-highlight-3.1.8/lib/tests/test_wordtokenizer_main.cpp
2019-03-23 07:30:31.268065859 +0100
@@ -6,12 +6,13 @@
#include "asserttestexit.h"
#include "srchilite/wordtokenizer.h"
-#include "srchilite/tostringcollection.h"
+
using namespace std;
using namespace srchilite;
static ostream &operator <<(ostream &os, const
WordTokenizer::WordTokenizerResults::value_type &);
+#include "srchilite/tostringcollection.h"
ostream &operator <<(ostream &os, const
WordTokenizer::WordTokenizerResults::value_type &token) {
if (token.first.size()) {
--- source-highlight-3.1.8/lib/tests/stdboosterror.h 2010-05-06
10:32:57.000000000 +0200
+++ source-highlight-3.1.8_patched/lib/tests/stdboosterror.h 2019-03-23
06:56:52.111635097 +0100
@@ -3,8 +3,7 @@
#include <boost/regex/pattern_except.hpp>
-static boost::regex_error
-
std_boost_exception(boost::regex_error(boost::regex_constants::error_bad_pattern));
+static boost::regex_error
std_boost_exception(boost::regex_constants::error_bad_pattern);
/**
* returns the string representing a standard exception (which