diff options
author | Peter Volkov <pva@gentoo.org> | 2010-09-17 07:50:38 +0000 |
---|---|---|
committer | Peter Volkov <pva@gentoo.org> | 2010-09-17 07:50:38 +0000 |
commit | b4be689da7fbc740679050559bf01d9e5d563afb (patch) | |
tree | 2d3295bcbe6b5e72befb58d2f2356dfe4aba8909 /sci-visualization | |
parent | Change comment in generated autoload file. (diff) | |
download | gentoo-2-b4be689da7fbc740679050559bf01d9e5d563afb.tar.gz gentoo-2-b4be689da7fbc740679050559bf01d9e5d563afb.tar.bz2 gentoo-2-b4be689da7fbc740679050559bf01d9e5d563afb.zip |
Fix build failure: src/origin/importOPJ.cpp:2162: error: unknown escape sequence '\p'
(Portage version: 2.1.9.7/cvs/Linux x86_64)
Diffstat (limited to 'sci-visualization')
-rw-r--r-- | sci-visualization/qtiplot/ChangeLog | 7 | ||||
-rw-r--r-- | sci-visualization/qtiplot/files/qtiplot-0.9.8.2-origin-build-failure.patch | 76 | ||||
-rw-r--r-- | sci-visualization/qtiplot/qtiplot-0.9.8.2.ebuild | 3 |
3 files changed, 84 insertions, 2 deletions
diff --git a/sci-visualization/qtiplot/ChangeLog b/sci-visualization/qtiplot/ChangeLog index 08e32e3aa3b7..c0abafc5fb0d 100644 --- a/sci-visualization/qtiplot/ChangeLog +++ b/sci-visualization/qtiplot/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sci-visualization/qtiplot # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-visualization/qtiplot/ChangeLog,v 1.66 2010/09/03 06:12:37 jlec Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-visualization/qtiplot/ChangeLog,v 1.67 2010/09/17 07:50:37 pva Exp $ + + 17 Sep 2010; Peter Volkov <pva@gentoo.org> qtiplot-0.9.8.2.ebuild, + +files/qtiplot-0.9.8.2-origin-build-failure.patch: + Fix build failure: src/origin/importOPJ.cpp:2162: error: unknown escape + sequence '\p' *qtiplot-0.9.8.2 (03 Sep 2010) diff --git a/sci-visualization/qtiplot/files/qtiplot-0.9.8.2-origin-build-failure.patch b/sci-visualization/qtiplot/files/qtiplot-0.9.8.2-origin-build-failure.patch new file mode 100644 index 000000000000..22e4fbe15d65 --- /dev/null +++ b/sci-visualization/qtiplot/files/qtiplot-0.9.8.2-origin-build-failure.patch @@ -0,0 +1,76 @@ +Without this upstream patch qtiplot fails to build with the following error: + +src/origin/importOPJ.cpp: In member function ‘QString ImportOPJ::parseOriginTags(const QString&)’: +src/origin/importOPJ.cpp:2162: ошибка: unknown escape sequence '\p' + +--- qtiplot/src/origin/importOPJ.cpp 2010-09-01 11:07:38 +0000 ++++ qtiplot/src/origin/importOPJ.cpp 2010-09-07 10:12:30 +0000 +@@ -473,6 +473,8 @@ + } + table->setDayFormat(format, j); + break; ++ default: ++ break; + } + table->freeMemory(); + } +@@ -720,7 +722,6 @@ + bkg.setAlpha(0); + graph->setCanvasBackground(bkg); + +- int auto_color = -1; + int style = 0; + bool matrixImage = false; + for(unsigned int c = 0; c < layer.curves.size(); ++c){ +@@ -1461,7 +1462,7 @@ + + if (boxWhiskersPlot){ + QStringList curveNames; +- for (unsigned int i = 0; i < graph->curveCount(); i++){ ++ for (int i = 0; i < graph->curveCount(); i++){ + BoxCurve *box = (BoxCurve *)graph->curve(i); + if (!box || box->type() != Graph::Box) + continue; +@@ -1659,7 +1660,6 @@ + for(unsigned int c = 0; c < layer.curves.size(); ++c){ + Origin::GraphCurve& _curve = layer.curves[c]; + QString data(_curve.dataName.c_str()); +- int color = 0; + double fFontScaleFactor = 2.0; + switch(_curve.type){ + case Origin::GraphCurve::Line3D: +@@ -1809,7 +1809,6 @@ + } + + QStringList formulas; +- double start, end; + + plot->showColorLegend(false); + plot->setFramed(); +@@ -1951,8 +1950,8 @@ + + QList <PieLabel *> pieTexts = p->labelsList(); + QFont font(mw->plotLegendFont); +- unsigned int lsize = layer.pieTexts.size(); +- for(unsigned int i = 0; i < lsize && i < pieTexts.size(); ++i){ ++ int lsize = layer.pieTexts.size(); ++ for(int i = 0; i < lsize && i < pieTexts.size(); ++i){ + Origin::TextBox text = layer.pieTexts[lsize - i - 1]; + font.setPointSizeF(text.fontSize*fFontScaleFactor); + QFontMetrics fm(font, graph); +@@ -2159,12 +2158,12 @@ + line.replace("&lbracket;", "("); + line.replace("&rbracket;", ")"); + +- QRegExp fontModifier("\p(\\d)+\\(.*\\)");//remove \p163(...) like tags ++ QRegExp fontModifier("\\\\p(\\d)+\\(.*\\)");//remove \p163(...) like tags + int index = line.indexOf(fontModifier); + while (index >= 0){ + int pos1 = line.indexOf("(", index + 2) + 1; + int length = fontModifier.matchedLength(); +- line = line.mid(pos1, length - pos1); ++ line = line.mid(pos1, length - pos1 - 1); + index = line.indexOf(fontModifier, index + length); + } + + diff --git a/sci-visualization/qtiplot/qtiplot-0.9.8.2.ebuild b/sci-visualization/qtiplot/qtiplot-0.9.8.2.ebuild index 0f1d718ee1f4..228553688318 100644 --- a/sci-visualization/qtiplot/qtiplot-0.9.8.2.ebuild +++ b/sci-visualization/qtiplot/qtiplot-0.9.8.2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-visualization/qtiplot/qtiplot-0.9.8.2.ebuild,v 1.1 2010/09/03 06:12:37 jlec Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-visualization/qtiplot/qtiplot-0.9.8.2.ebuild,v 1.2 2010/09/17 07:50:37 pva Exp $ EAPI=3 @@ -62,6 +62,7 @@ PATCHES=( "${FILESDIR}/${PN}-0.9.7.12-system-gl2ps.patch" "${FILESDIR}/${PN}-0.9.7.10-dont-install-qwt.patch" "${FILESDIR}/${PN}-0.9.8.2-syslibs.patch" + "${FILESDIR}/${PN}-0.9.8.2-origin-build-failure.patch" ) pkg_setup() { |