[arch-commits] Commit in cairo-dock-plug-ins/trunk (2 files)

Evangelos Foutras foutrelis at archlinux.org
Mon Nov 16 09:12:52 UTC 2020


    Date: Monday, November 16, 2020 @ 09:12:52
  Author: foutrelis
Revision: 755170

Fix build with GCC 10 (patch from Fedora)

Added:
  cairo-dock-plug-ins/trunk/cairo-dock-plugins-3.4.1-gcc10-extern.patch
Modified:
  cairo-dock-plug-ins/trunk/PKGBUILD

---------------------------------------------+
 PKGBUILD                                    |    3 +++
 cairo-dock-plugins-3.4.1-gcc10-extern.patch |   13 +++++++++++++
 2 files changed, 16 insertions(+)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-11-16 09:09:04 UTC (rev 755169)
+++ PKGBUILD	2020-11-16 09:12:52 UTC (rev 755170)
@@ -38,9 +38,11 @@
 replaces=('cairo-dock-plugins')
 source=("cairo-dock-plug-ins-${pkgver}.tar.gz::https://github.com/Cairo-Dock/cairo-dock-plug-ins/archive/${pkgver}.tar.gz"
         'cairo-dock-plug-ins-mono.patch'
+        cairo-dock-plugins-3.4.1-gcc10-extern.patch
         cairo-dock-plugins-3.4.1-time_h-confict.patch)
 sha256sums=('321113fb8fa214d965c9827b82890651dc4cd0beb23aef0e2d3f5caf806ebdc2'
             '061115f3638c47eab04d48808d4cc61e294877643a61c82061d7af2523b4f724'
+            '38311d5f109ba2e290c0d300e27ed2da06e408bde480d81727a42521bd5052c5'
             'f5b859f9acd069cadcfc6188fa1551aa25053abaddf3aa1041cdf10cab3a8fa5')
 
 prepare() {
@@ -47,6 +49,7 @@
   cd cairo-dock-plug-ins-${pkgver}
 
   patch -Np1 -i ../cairo-dock-plug-ins-mono.patch
+  patch -Np1 -i ../cairo-dock-plugins-3.4.1-gcc10-extern.patch
   patch -Np1 -i ../cairo-dock-plugins-3.4.1-time_h-confict.patch
   sed 's/gmcs/mcs/' -i CMakeLists.txt
 

Added: cairo-dock-plugins-3.4.1-gcc10-extern.patch
===================================================================
--- cairo-dock-plugins-3.4.1-gcc10-extern.patch	                        (rev 0)
+++ cairo-dock-plugins-3.4.1-gcc10-extern.patch	2020-11-16 09:12:52 UTC (rev 755170)
@@ -0,0 +1,13 @@
+--- cairo-dock-plugins-3.4.1/dock-rendering/src/rendering-config.c.gcc10	2015-02-20 01:13:47.000000000 +0900
++++ cairo-dock-plugins-3.4.1/dock-rendering/src/rendering-config.c	2020-01-23 18:10:47.301788756 +0900
+@@ -25,8 +25,8 @@
+ #include "rendering-config.h"
+ #include "rendering-rainbow.h"
+ 
+-extern int iVanishingPointY;double my_fRainbowColor[4];
+-double my_fRainbowLineColor[4];
++extern int iVanishingPointY;extern double my_fRainbowColor[4];
++extern double my_fRainbowLineColor[4];
+ 
+ extern double my_fInclinationOnHorizon;
+ extern double my_fForegroundRatio;



More information about the arch-commits mailing list