]> git.pld-linux.org Git - packages/cinepaint.git/commitdiff
- added ptr,gcc patches to build with gcc 13 auto/th/cinepaint-1.3-11
authorJakub Bogusz <qboosh@pld-linux.org>
Fri, 1 Sep 2023 16:53:04 +0000 (18:53 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Fri, 1 Sep 2023 16:53:04 +0000 (18:53 +0200)
cinepaint-gcc.patch [new file with mode: 0644]
cinepaint-ptr.patch [new file with mode: 0644]
cinepaint.spec

diff --git a/cinepaint-gcc.patch b/cinepaint-gcc.patch
new file mode 100644 (file)
index 0000000..ad2d311
--- /dev/null
@@ -0,0 +1,12 @@
+--- cinepaint/plug-ins/icc_examin/icc_examin/icc_cinepaint.cpp.orig    2007-11-29 10:55:21.000000000 +0100
++++ cinepaint/plug-ins/icc_examin/icc_examin/icc_cinepaint.cpp 2023-09-01 06:21:02.279247963 +0200
+@@ -59,7 +59,8 @@
+ #include <cstring>
+ #include <vector>
+-using namespace std;
++using std::cout;
++using std::max;
+ extern "C" {
diff --git a/cinepaint-ptr.patch b/cinepaint-ptr.patch
new file mode 100644 (file)
index 0000000..5fff76d
--- /dev/null
@@ -0,0 +1,17 @@
+--- cinepaint/plug-ins/icc_examin/icc_examin/icc_profile_tags.cpp.orig 2016-12-09 23:50:43.000000000 +0100
++++ cinepaint/plug-ins/icc_examin/icc_examin/icc_profile_tags.cpp      2023-08-31 21:54:14.201770620 +0200
+@@ -349,12 +349,12 @@ ICCtag::getText                     (std
+ #   ifdef DEBUG_ICCTAG
+     DBG_NUM_S ((int)strchr(txt, 13))
+ #   endif
+-    while (strchr(txt, 13) > 0) { // \r 013 0x0d
++    while (strchr(txt, 13) != NULL) { // \r 013 0x0d
+       pos = strchr(txt, 13);
+ #     ifdef DEBUG_ICCTAG
+       //cout << (int)pos << " "; DBG
+ #     endif
+-      if (pos > 0) {
++      if (pos != NULL) {
+         if (*(pos+1) == '\n')
+           *pos = ' ';
+         else
index 4a352d3c140faa5840a6db946110e0220720c61b..ca7fe14ea3c94ce68e067efad64c342b464df962 100644 (file)
@@ -24,6 +24,8 @@ Patch8:               %{name}-include.patch
 Patch9:                %{name}-python.patch
 Patch10:       %{name}-extern.patch
 Patch11:       %{name}-no-common.patch
+Patch12:       %{name}-ptr.patch
+Patch13:       %{name}-gcc.patch
 URL:           http://cinepaint.org/
 BuildRequires: OpenEXR-devel >= 1.0.0
 BuildRequires: autoconf
@@ -149,6 +151,8 @@ Wtyczka do drukowania dla CinePainta.
 %patch9 -p1
 %patch10 -p1
 %patch11 -p1
+%patch12 -p1
+%patch13 -p1
 
 # dead symlinks
 %{__rm} config.guess config.sub py-compile
This page took 0.071848 seconds and 4 git commands to generate.