diff options
Diffstat (limited to 'sci-electronics/fritzing/files')
-rw-r--r-- | sci-electronics/fritzing/files/fritzing-0.9.6-dropping-register-keyword.patch | 25 | ||||
-rw-r--r-- | sci-electronics/fritzing/files/fritzing-0.9.6-quazip-qt5.patch | 28 |
2 files changed, 53 insertions, 0 deletions
diff --git a/sci-electronics/fritzing/files/fritzing-0.9.6-dropping-register-keyword.patch b/sci-electronics/fritzing/files/fritzing-0.9.6-dropping-register-keyword.patch new file mode 100644 index 000000000000..e7e9d6d27ac5 --- /dev/null +++ b/sci-electronics/fritzing/files/fritzing-0.9.6-dropping-register-keyword.patch @@ -0,0 +1,25 @@ +https://github.com/fritzing/fritzing-app/pull/4033 +From: Brahmajit Das <brahmajit.xyz@gmail.com> +Date: Fri, 16 Jun 2023 06:29:28 +0000 +Subject: [PATCH] clipablewire.cpp: Dropping usage of register storage class + +The register storage class has been depreacted in C++14 and completely +removed in C++17. Thus resulting in buils errors such as: + +clipablewire.cpp:55:2: error: ISO C++17 does not allow register storage class specifier [-Wregister] + +Refer: https://en.cppreference.com/w/cpp/language/storage_duration +Bug: https://bugs.gentoo.org/898070 +Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com> +--- a/src/items/clipablewire.cpp ++++ b/src/items/clipablewire.cpp +@@ -50,7 +50,7 @@ static double connectorRectClipInset = 0.5; + int CrossingsTest( double pgon[][2], int numverts, double point[2] ) + { + #ifdef WINDING +- register int crossings ; ++ int crossings ; + #endif + int j, yflag0, yflag1, inside_flag, xflag0 ; + double ty, tx, *vtx0, *vtx1 ; + diff --git a/sci-electronics/fritzing/files/fritzing-0.9.6-quazip-qt5.patch b/sci-electronics/fritzing/files/fritzing-0.9.6-quazip-qt5.patch new file mode 100644 index 000000000000..9d3853c516ab --- /dev/null +++ b/sci-electronics/fritzing/files/fritzing-0.9.6-quazip-qt5.patch @@ -0,0 +1,28 @@ +Fix build with QuaZip-1.0. + +--- a/phoenix.pro ++++ b/phoenix.pro +@@ -194,8 +194,9 @@ + include(test/version.pri) + + contains(DEFINES, QUAZIP_INSTALLED) { + !build_pass:message("using installed QuaZIP library") +- LIBS += -lquazip5 ++ CONFIG += link_pkgconfig ++ PKGCONFIG += quazip1-qt5 + } else { + include(pri/quazip.pri) + } +--- a/src/utils/folderutils.cpp ++++ b/src/utils/folderutils.cpp +@@ -35,8 +35,8 @@ + + #include "../debugdialog.h" + #ifdef QUAZIP_INSTALLED +-#include <quazip5/quazip.h> +-#include <quazip5/quazipfile.h> ++#include <quazip.h> ++#include <quazipfile.h> + #else + #include "../lib/quazip/quazip.h" + #include "../lib/quazip/quazipfile.h" |