Merge lp:~showard314/ubuntu/karmic/qtiplot/fix_karmic_ftbfs into lp:ubuntu/karmic/qtiplot

Proposed by Scott Howard
Status: Merged
Merge reported by: Scott Howard
Merged at revision: not available
Proposed branch: lp:~showard314/ubuntu/karmic/qtiplot/fix_karmic_ftbfs
Merge into: lp:ubuntu/karmic/qtiplot
Diff against target: 201 lines
4 files modified
debian/changelog (+9/-0)
debian/patches/qwt_api_fix.patch (+153/-0)
debian/patches/series (+1/-0)
debian/postinst (+3/-2)
To merge this branch: bzr merge lp:~showard314/ubuntu/karmic/qtiplot/fix_karmic_ftbfs
Reviewer Review Type Date Requested Status
Ubuntu branches Pending
Review via email: mp+14339@code.launchpad.net

This proposal supersedes a proposal from 2009-11-03.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2009-10-14 00:19:13 +0000
3+++ debian/changelog 2009-11-03 02:10:23 +0000
4@@ -1,3 +1,12 @@
5+qtiplot (0.9.7-1ubuntu1) karmic-proposed; urgency=low
6+
7+ * debian/patches/qwt_api_fix.patch
8+ - Fixed FTBFS from api change in qwt AND Sip (LP: #471238)
9+ * debian/postinst
10+ - Removed python support since this FTBFS with Sip version in Karmic
11+
12+ -- Scott Howard <showard314@gmail.com> Mon, 02 Nov 2009 21:04:45 -0500
13+
14 qtiplot (0.9.7-1build1) karmic; urgency=low
15
16 * Rebuild with Sip 4.9
17
18=== added file 'debian/patches/qwt_api_fix.patch'
19--- debian/patches/qwt_api_fix.patch 1970-01-01 00:00:00 +0000
20+++ debian/patches/qwt_api_fix.patch 2009-11-03 02:10:23 +0000
21@@ -0,0 +1,153 @@
22+# Ubuntu bug: https://bugs.launchpad.net/bugs/471238
23+# Description: Updated qtiplot for new qwt api since this qtiplot is older than Jaunty.
24+# Also removed python scripting capabillities since they do not work and cause FTBFS
25+# since it relies on older (i.e. Hardy) versions of some packages.
26+
27+Index: ubuntu/qtiplot/src/plot2D/Graph.cpp
28+===================================================================
29+--- ubuntu.orig/qtiplot/src/plot2D/Graph.cpp 2009-11-02 18:43:24.505549985 -0500
30++++ ubuntu/qtiplot/src/plot2D/Graph.cpp 2009-11-02 19:16:42.535545896 -0500
31+@@ -1130,8 +1130,8 @@
32+ maxSymbolSize *= 0.5;
33+
34+ QwtScaleDiv *div = axisScaleDiv(QwtPlot::xBottom);
35+- double start = div->lBound();
36+- double end = div->hBound();
37++ double start = div->lowerBound();
38++ double end = div->upperBound();
39+ QwtValueList majTicksLst = div->ticks(QwtScaleDiv::MajorTick);
40+ int ticks = majTicksLst.size();
41+ double step = fabs(end - start)/(double)(ticks - 1.0);
42+@@ -1142,18 +1142,18 @@
43+ double x_left = xMap.xTransform(intv[QwtPlot::xBottom].minValue());
44+
45+ if (start >= xMap.invTransform(x_left - maxSymbolSize))
46+- start = div->lBound() - step;
47++ start = div->lowerBound() - step;
48+
49+ double x_right = xMap.xTransform(intv[QwtPlot::xBottom].maxValue());
50+ if (end <= xMap.invTransform(x_right + maxSymbolSize))
51+- end = div->hBound() + step;
52++ end = div->upperBound() + step;
53+
54+ setAxisScale(QwtPlot::xBottom, start, end, step);
55+ setAxisScale(QwtPlot::xTop, start, end, step);
56+
57+ div = axisScaleDiv(QwtPlot::yLeft);
58+- start = div->lBound();
59+- end = div->hBound();
60++ start = div->lowerBound();
61++ end = div->upperBound();
62+ majTicksLst = div->ticks(QwtScaleDiv::MajorTick);
63+ ticks = majTicksLst.size();
64+ step = fabs(end - start)/(double)(ticks - 1.0);
65+@@ -1163,11 +1163,11 @@
66+ const QwtScaleMap &yMap = canvasMap(QwtPlot::yLeft);
67+ double y_bottom = yMap.xTransform(intv[QwtPlot::yLeft].minValue());
68+ if (start >= yMap.invTransform(y_bottom + maxSymbolSize))
69+- start = div->lBound() - step;
70++ start = div->lowerBound() - step;
71+
72+ double y_top = yMap.xTransform(intv[QwtPlot::yLeft].maxValue());
73+ if (end <= yMap.invTransform(y_top - maxSymbolSize))
74+- end = div->hBound() + step;
75++ end = div->upperBound() + step;
76+
77+ setAxisScale(QwtPlot::yLeft, start, end, step);
78+ setAxisScale(QwtPlot::yRight, start, end, step);
79+@@ -1898,8 +1898,8 @@
80+ const QwtScaleDiv *scDiv = axisScaleDiv(i);
81+ QwtValueList lst = scDiv->ticks (QwtScaleDiv::MajorTick);
82+
83+- s += QString::number(QMIN(scDiv->lBound(), scDiv->hBound()), 'g', 15)+"\t";
84+- s += QString::number(QMAX(scDiv->lBound(), scDiv->hBound()), 'g', 15)+"\t";
85++ s += QString::number(QMIN(scDiv->lowerBound(), scDiv->upperBound()), 'g', 15)+"\t";
86++ s += QString::number(QMAX(scDiv->lowerBound(), scDiv->upperBound()), 'g', 15)+"\t";
87+ s += QString::number(d_user_step[i], 'g', 15)+"\t";
88+ s += QString::number(axisMaxMajor(i))+"\t";
89+ s += QString::number(axisMaxMinor(i))+"\t";
90+@@ -3976,8 +3976,8 @@
91+ double step = g->axisStep(i);
92+ d_user_step[i] = step;
93+ const QwtScaleDiv *sd = g->axisScaleDiv(i);
94+- QwtScaleDiv div = sc_engine->divideScale (QMIN(sd->lBound(), sd->hBound()),
95+- QMAX(sd->lBound(), sd->hBound()), majorTicks, minorTicks, step);
96++ QwtScaleDiv div = sc_engine->divideScale (QMIN(sd->lowerBound(), sd->upperBound()),
97++ QMAX(sd->lowerBound(), sd->upperBound()), majorTicks, minorTicks, step);
98+
99+ if (se->testAttribute(QwtScaleEngine::Inverted))
100+ div.invert();
101+@@ -5411,7 +5411,7 @@
102+ map[axisId].setTransformation(axisScaleEngine(axisId)->transformation());
103+
104+ const QwtScaleDiv &scaleDiv = *axisScaleDiv(axisId);
105+- map[axisId].setScaleInterval(scaleDiv.lBound(), scaleDiv.hBound());
106++ map[axisId].setScaleInterval(scaleDiv.lowerBound(), scaleDiv.upperBound());
107+
108+ double from, to;
109+ if ( axisEnabled(axisId) ){
110+Index: ubuntu/qtiplot/src/plot2D/ScaleEngine.cpp
111+===================================================================
112+--- ubuntu.orig/qtiplot/src/plot2D/ScaleEngine.cpp 2009-11-02 18:43:24.465549029 -0500
113++++ ubuntu/qtiplot/src/plot2D/ScaleEngine.cpp 2009-11-02 19:16:42.545549738 -0500
114+@@ -263,7 +263,7 @@
115+ d_break_width = engine->breakWidth();
116+ d_break_decoration = engine->hasBreakDecoration();
117+ setAttributes(engine->attributes());
118+- setMargins(engine->loMargin(), engine->hiMargin());
119++ setMargins(engine->lowerMargin(), engine->upperMargin());
120+ }
121+
122+ QwtScaleDiv ScaleEngine::divideScale(double x1, double x2, int maxMajSteps,
123+@@ -345,7 +345,7 @@
124+
125+ engine->setAttributes(attributes());
126+ engine->setReference(reference());
127+- engine->setMargins(loMargin(), hiMargin());
128++ engine->setMargins(lowerMargin(), upperMargin());
129+ engine->autoScale(maxNumSteps, x1, x2, stepSize);
130+ delete engine;
131+ } else {
132+Index: ubuntu/qtiplot/src/plot2D/Spectrogram.cpp
133+===================================================================
134+--- ubuntu.orig/qtiplot/src/plot2D/Spectrogram.cpp 2009-11-02 18:43:24.495547511 -0500
135++++ ubuntu/qtiplot/src/plot2D/Spectrogram.cpp 2009-11-02 19:16:42.555548551 -0500
136+@@ -135,9 +135,9 @@
137+ // Next we switch axes scales
138+ QwtScaleDiv *scDiv = plot->axisScaleDiv(oldMainAxis);
139+ if (axis == QwtPlot::xBottom || axis == QwtPlot::xTop)
140+- plot->setAxisScale(xAxis, scDiv->lBound(), scDiv->hBound());
141++ plot->setAxisScale(xAxis, scDiv->lowerBound(), scDiv->upperBound());
142+ else if (axis == QwtPlot::yLeft || color_axis == QwtPlot::yRight)
143+- plot->setAxisScale(yAxis, scDiv->lBound(), scDiv->hBound());
144++ plot->setAxisScale(yAxis, scDiv->lowerBound(), scDiv->upperBound());
145+
146+ colorAxis = plot->axisWidget(color_axis);
147+ plot->setAxisScale(color_axis, data().range().minValue(), data().range().maxValue());
148+Index: ubuntu/qtiplot/src/plot2D/dialogs/AxesDialog.cpp
149+===================================================================
150+--- ubuntu.orig/qtiplot/src/plot2D/dialogs/AxesDialog.cpp 2009-11-02 18:43:24.545547868 -0500
151++++ ubuntu/qtiplot/src/plot2D/dialogs/AxesDialog.cpp 2009-11-02 19:16:42.565548761 -0500
152+@@ -2611,8 +2611,8 @@
153+
154+ int a = mapToQwtAxis(axis);
155+ const QwtScaleDiv *scDiv = d_graph->axisScaleDiv(a);
156+- double start = QMIN(scDiv->lBound(), scDiv->hBound());
157+- double end = QMAX(scDiv->lBound(), scDiv->hBound());
158++ double start = QMIN(scDiv->lowerBound(), scDiv->upperBound());
159++ double end = QMAX(scDiv->lowerBound(), scDiv->upperBound());
160+
161+ ScaleDraw::ScaleType type = d_graph->axisType(a);
162+ if (type == ScaleDraw::Date){
163+Index: ubuntu/qtiplot/qtiplot.pro
164+===================================================================
165+--- ubuntu.orig/qtiplot/qtiplot.pro 2009-11-02 19:17:28.905547852 -0500
166++++ ubuntu/qtiplot/qtiplot.pro 2009-11-02 19:17:46.166835204 -0500
167+@@ -1,6 +1,6 @@
168+ # building without muParser doesn't work yet
169+ SCRIPTING_LANGS += muParser
170+-SCRIPTING_LANGS += Python
171++#SCRIPTING_LANGS += Python
172+
173+ # a console displaying output of scripts; particularly useful on Windows
174+ # where running QtiPlot from a terminal is inconvenient
175
176=== modified file 'debian/patches/series'
177--- debian/patches/series 2008-08-17 19:43:31 +0000
178+++ debian/patches/series 2009-11-03 02:10:23 +0000
179@@ -1,3 +1,4 @@
180+qwt_api_fix.patch
181 01_build_system.diff
182 02_docbook_stylesheet.diff
183 03_fix_qti_wordlist.txt_path.diff
184
185=== modified file 'debian/postinst'
186--- debian/postinst 2008-06-12 08:57:17 +0000
187+++ debian/postinst 2009-11-03 02:10:23 +0000
188@@ -18,10 +18,11 @@
189 # the debian-policy package
190
191
192+#PYTHON support IS REMOVED FOR UBUNTU KARMIC to fix a FTBFS
193 case "$1" in
194 configure)
195- py_compilefiles -f /usr/share/qtiplot/qtiplotrc.py
196- py_compilefiles -f /usr/share/qtiplot/qtiUtil.py
197+# py_compilefiles -f /usr/share/qtiplot/qtiplotrc.py
198+# py_compilefiles -f /usr/share/qtiplot/qtiUtil.py
199 ;;
200
201 abort-upgrade|abort-remove|abort-deconfigure)

Subscribers

People subscribed via source and target branches

to all changes: