forked from buildroot/buildroot
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
package/pulseview: update the patches to be applied with fuzz 0
Commit 8f88a64 ("support/scripts/apply-patches.sh: set the maximum fuzz factor to 0") reduced the fuzz factor. Due to this change, pulseview fails to build with output: Applying 0001-Replace-obsolete-deprecated-Qt-methods.patch using patch: patching file pv/util.cpp Hunk #2 succeeded at 175 (offset 4 lines). Hunk buildroot#3 succeeded at 285 (offset 4 lines). patching file pv/util.hpp Hunk #2 succeeded at 139 (offset 1 line). patching file pv/views/trace/decodetrace.cpp Hunk #1 FAILED at 103. 1 out of 1 hunk FAILED -- saving rejects to file pv/views/trace/decodetrace.cpp.rej Applying 0003-Support-glibmm-2.68.patch using patch: patching file CMakeLists.txt Hunk buildroot#3 FAILED at 231. Hunk #4 FAILED at 492. 2 out of 4 hunks FAILED -- saving rejects to file CMakeLists.txt.rej This commit refreshes the package patches on the current package version. Signed-off-by: Dario Binacchi <[email protected]> Signed-off-by: Thomas Petazzoni <[email protected]>
- Loading branch information
1 parent
e86fa6b
commit 758fc7e
Showing
3 changed files
with
29 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
From caacc9bc622238ca48674ea6f40d07466e4b97a5 Mon Sep 17 00:00:00 2001 | ||
From 01de3217e14b52e44356185729f804460147c85c Mon Sep 17 00:00:00 2001 | ||
From: Valentin Ochs <[email protected]> | ||
Date: Sat, 20 Jun 2020 16:01:27 +0200 | ||
Subject: [PATCH] Replace obsolete/deprecated Qt methods | ||
|
@@ -9,6 +9,8 @@ resolved in pv/util.cpp.] | |
Signed-off-by: Thomas Petazzoni <[email protected]> | ||
[Fabrice: restore original patch in pv/util.cpp for 0.4.2] | ||
Signed-off-by: Fabrice Fontaine <[email protected]> | ||
[Dario: make the patch to be applied with fuzz factor 0] | ||
Signed-off-by: Dario Binacchi <[email protected]> | ||
--- | ||
pv/util.cpp | 21 +++++++++++++++++++-- | ||
pv/util.hpp | 10 ++++++++++ | ||
|
@@ -18,7 +20,7 @@ Signed-off-by: Fabrice Fontaine <[email protected]> | |
5 files changed, 33 insertions(+), 5 deletions(-) | ||
|
||
diff --git a/pv/util.cpp b/pv/util.cpp | ||
index 49b9467c..2a63038d 100644 | ||
index 9a9a5065a2e1..b0c29f304287 100644 | ||
--- a/pv/util.cpp | ||
+++ b/pv/util.cpp | ||
@@ -137,7 +137,7 @@ QString format_time_si(const Timestamp& v, SIPrefix prefix, | ||
|
@@ -30,7 +32,7 @@ index 49b9467c..2a63038d 100644 | |
ts << qSetRealNumberPrecision(precision) << (v * multiplier); | ||
ts << ' ' << prefix << unit; | ||
|
||
@@ -171,7 +171,7 @@ QString format_value_si(double v, SIPrefix prefix, unsigned precision, | ||
@@ -175,7 +175,7 @@ QString format_value_si(double v, SIPrefix prefix, unsigned precision, | ||
QString s; | ||
QTextStream ts(&s); | ||
if (sign && (v != 0)) | ||
|
@@ -39,7 +41,7 @@ index 49b9467c..2a63038d 100644 | |
ts.setRealNumberNotation(QTextStream::FixedNotation); | ||
ts.setRealNumberPrecision(precision); | ||
ts << (v * multiplier) << ' ' << prefix << unit; | ||
@@ -281,5 +281,22 @@ vector<string> split_string(string text, string separator) | ||
@@ -285,5 +285,22 @@ vector<string> split_string(string text, string separator) | ||
return result; | ||
} | ||
|
||
|
@@ -63,7 +65,7 @@ index 49b9467c..2a63038d 100644 | |
} // namespace util | ||
} // namespace pv | ||
diff --git a/pv/util.hpp b/pv/util.hpp | ||
index dd7be222..ad904f85 100644 | ||
index e1640c4a374d..a6cdfdcad4d9 100644 | ||
--- a/pv/util.hpp | ||
+++ b/pv/util.hpp | ||
@@ -30,6 +30,7 @@ | ||
|
@@ -74,7 +76,7 @@ index dd7be222..ad904f85 100644 | |
|
||
using std::string; | ||
using std::vector; | ||
@@ -137,6 +138,15 @@ QString format_time_minutes(const Timestamp& t, signed precision = 0, | ||
@@ -138,6 +139,15 @@ QString format_time_minutes(const Timestamp& t, signed precision = 0, | ||
|
||
vector<string> split_string(string text, string separator); | ||
|
||
|
@@ -91,24 +93,24 @@ index dd7be222..ad904f85 100644 | |
} // namespace pv | ||
|
||
diff --git a/pv/views/trace/decodetrace.cpp b/pv/views/trace/decodetrace.cpp | ||
index 9c7196bf..1ee7ae9f 100644 | ||
index 1cc89feb67ae..0347b3327b27 100644 | ||
--- a/pv/views/trace/decodetrace.cpp | ||
+++ b/pv/views/trace/decodetrace.cpp | ||
@@ -103,7 +103,8 @@ DecodeTrace::DecodeTrace(pv::Session &session, | ||
@@ -164,7 +164,8 @@ DecodeTrace::DecodeTrace(pv::Session &session, | ||
|
||
// Determine shortest string we want to see displayed in full | ||
QFontMetrics m(QApplication::font()); | ||
- min_useful_label_width_ = m.width("XX"); // e.g. two hex characters | ||
+ // e.g. two hex characters | ||
+ min_useful_label_width_ = util::text_width(m, "XX"); | ||
|
||
// For the base color, we want to start at a very different color for | ||
// every decoder stack, so multiply the index with a number that is | ||
default_row_height_ = (ViewItemPaintParams::text_height() * 6) / 4; | ||
annotation_height_ = (ViewItemPaintParams::text_height() * 5) / 4; | ||
diff --git a/pv/views/trace/ruler.cpp b/pv/views/trace/ruler.cpp | ||
index acea8a36..68134966 100644 | ||
index 555794fc42c6..83ffed281b5f 100644 | ||
--- a/pv/views/trace/ruler.cpp | ||
+++ b/pv/views/trace/ruler.cpp | ||
@@ -218,7 +218,7 @@ void Ruler::paintEvent(QPaintEvent*) | ||
@@ -283,7 +283,7 @@ void Ruler::paintEvent(QPaintEvent*) | ||
const int rightedge = width(); | ||
const int x_tick = tick.first; | ||
if ((x_tick > leftedge) && (x_tick < rightedge)) { | ||
|
@@ -118,10 +120,10 @@ index acea8a36..68134966 100644 | |
const int x_legend = min(max(x_tick, x_left_bound), x_right_bound); | ||
p.drawText(x_legend, ValueMargin, 0, text_height, | ||
diff --git a/pv/widgets/timestampspinbox.cpp b/pv/widgets/timestampspinbox.cpp | ||
index 21b3d0d7..383aed1f 100644 | ||
index fea8175e8e00..01424a5b7837 100644 | ||
--- a/pv/widgets/timestampspinbox.cpp | ||
+++ b/pv/widgets/timestampspinbox.cpp | ||
@@ -75,7 +75,7 @@ QSize TimestampSpinBox::minimumSizeHint() const | ||
@@ -76,7 +76,7 @@ QSize TimestampSpinBox::minimumSizeHint() const | ||
{ | ||
const QFontMetrics fm(fontMetrics()); | ||
const int l = round(value_).str().size() + precision_ + 10; | ||
|
@@ -131,5 +133,5 @@ index 21b3d0d7..383aed1f 100644 | |
return QSize(w, h); | ||
} | ||
-- | ||
2.26.2 | ||
2.43.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
From a97d5a060a534a3c658578e7f14ab43556db93ca Mon Sep 17 00:00:00 2001 | ||
From cbdd970fa4a805cefcad2e692df204bfceb46e16 Mon Sep 17 00:00:00 2001 | ||
From: Fabrice Fontaine <[email protected]> | ||
Date: Thu, 30 Dec 2021 16:19:46 +0100 | ||
Subject: [PATCH] Support glibmm 2.68 | ||
|
@@ -10,14 +10,16 @@ https://gitlab.gnome.org/GNOME/glibmm/-/blob/2.68.2/NEWS | |
C++17 support is mandatory with glibmm 2.68 | ||
|
||
Signed-off-by: Fabrice Fontaine <[email protected]> | ||
[Upstream status: not sent yet] | ||
Upstream: not sent yet | ||
[Dario: make the patch to be applied with fuzz factor 0] | ||
Signed-off-by: Dario Binacchi <[email protected]> | ||
--- | ||
CMakeLists.txt | 23 +++++++++++++++++++---- | ||
INSTALL | 2 +- | ||
2 files changed, 20 insertions(+), 5 deletions(-) | ||
|
||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 7791b1b1..58a9cf92 100644 | ||
index c29fa283bcb6..e739d5fccaa7 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -75,7 +75,14 @@ add_subdirectory(manual) | ||
|
@@ -44,9 +46,9 @@ index 7791b1b1..58a9cf92 100644 | |
pkg_check_modules(LIBSRCXX ${LIBSR_CXX_BINDING}) | ||
if(NOT LIBSRCXX_FOUND OR NOT LIBSRCXX_VERSION) | ||
message(FATAL_ERROR "libsigrok C++ bindings missing, check libsigrok's 'configure' output (missing dependencies?)") | ||
@@ -225,7 +231,11 @@ memaccess_check_unaligned_le(HAVE_UNALIGNED_LITTLE_ENDIAN_ACCESS) | ||
@@ -194,7 +200,11 @@ memaccess_check_unaligned_le(HAVE_UNALIGNED_LITTLE_ENDIAN_ACCESS) | ||
set(PV_TITLE PulseView) | ||
set(PV_VERSION_STRING "0.5.0") | ||
set(PV_VERSION_STRING "0.4.2") | ||
|
||
-set(PV_GLIBMM_VERSION ${PKGDEPS_glibmm-2.4_VERSION}) | ||
+if(LIBSRGLIBMM24_FOUND) | ||
|
@@ -57,7 +59,7 @@ index 7791b1b1..58a9cf92 100644 | |
|
||
include(GetGitRevisionDescription) | ||
|
||
@@ -486,7 +496,12 @@ qt5_add_resources(pulseview_RESOURCES_RCC ${CMAKE_BINARY_DIR}/translations.qrc) | ||
@@ -445,7 +455,12 @@ qt5_add_resources(pulseview_RESOURCES_RCC ${CMAKE_BINARY_DIR}/translations.qrc) | ||
add_definitions(-DQT_NO_KEYWORDS) | ||
add_definitions(-D__STDC_LIMIT_MACROS) | ||
add_definitions(-Wall -Wextra) | ||
|
@@ -69,10 +71,10 @@ index 7791b1b1..58a9cf92 100644 | |
+ add_definitions(-std=c++17) | ||
+endif() | ||
add_definitions(-DBOOST_MATH_DISABLE_FLOAT128=1) | ||
if(WIN32) | ||
add_definitions(-Wa,-mbig-obj -O3) | ||
|
||
if(ENABLE_FLOW) | ||
diff --git a/INSTALL b/INSTALL | ||
index da89be8d..8003fcfb 100644 | ||
index d666f0a7f824..ecf984f3c4b4 100644 | ||
--- a/INSTALL | ||
+++ b/INSTALL | ||
@@ -14,7 +14,7 @@ Requirements | ||
|
@@ -85,5 +87,5 @@ index da89be8d..8003fcfb 100644 | |
- Qt5Core, Qt5Gui, Qt5Widgets, Qt5Svg, Qt5LinguistTools | ||
- Qt translation package (optional; needed at runtime, not build time) | ||
-- | ||
2.34.1 | ||
2.43.0 | ||
|