diff options
author | Bernard Cafarelli <voyageur@gentoo.org> | 2020-03-29 13:27:31 +0200 |
---|---|---|
committer | Bernard Cafarelli <voyageur@gentoo.org> | 2020-03-29 13:35:25 +0200 |
commit | 9f3ea90ac43ed06b3a5fad8007a9e16f355acc3f (patch) | |
tree | 6f636941f97d2f62b44fb4056cf8f9bbcd45e42f /x11-plugins | |
parent | x11-plugins/wmweather: fix build with -fno-common (diff) | |
download | gentoo-9f3ea90ac43ed06b3a5fad8007a9e16f355acc3f.tar.gz gentoo-9f3ea90ac43ed06b3a5fad8007a9e16f355acc3f.tar.bz2 gentoo-9f3ea90ac43ed06b3a5fad8007a9e16f355acc3f.zip |
x11-plugins/wmcalendar: fix build with -fno-common
Closes: https://bugs.gentoo.org/711692
Package-Manager: Portage-2.3.96, Repoman-2.3.22
Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
Diffstat (limited to 'x11-plugins')
-rw-r--r-- | x11-plugins/wmcalendar/files/wmcalendar-0.5.2-fno-common.patch | 97 | ||||
-rw-r--r-- | x11-plugins/wmcalendar/wmcalendar-0.5.2-r2.ebuild | 7 |
2 files changed, 102 insertions, 2 deletions
diff --git a/x11-plugins/wmcalendar/files/wmcalendar-0.5.2-fno-common.patch b/x11-plugins/wmcalendar/files/wmcalendar-0.5.2-fno-common.patch new file mode 100644 index 000000000000..9907634290a2 --- /dev/null +++ b/x11-plugins/wmcalendar/files/wmcalendar-0.5.2-fno-common.patch @@ -0,0 +1,97 @@ +diff -Naur Src.orig/calendar.c Src/calendar.c +--- Src.orig/calendar.c 2007-01-15 01:14:32.000000000 +0100 ++++ Src/calendar.c 2020-03-29 13:25:39.390760510 +0200 +@@ -1,5 +1,10 @@ + #include "calendar.h" + ++time_t modtime; ++struct calobj* calRoot; ++int xr, yr; ++int datetype[32][2]; ++ + int get_datetype(int day){return datetype[day][0];} + + /*------------------------------------------------------ +diff -Naur Src.orig/calendarfunc.c Src/calendarfunc.c +--- Src.orig/calendarfunc.c 2003-07-13 16:41:02.000000000 +0200 ++++ Src/calendarfunc.c 2020-03-29 13:24:07.630789052 +0200 +@@ -24,6 +24,7 @@ + #include <stdio.h> + + ++int datemoon[200][2]; + + long persian_jdn(struct icaltimetype dt) + { +diff -Naur Src.orig/calendarfunc.h Src/calendarfunc.h +--- Src.orig/calendarfunc.h 2003-07-15 17:19:43.000000000 +0200 ++++ Src/calendarfunc.h 2020-03-29 13:23:23.468802848 +0200 +@@ -70,5 +70,5 @@ + + int Ceil(float number); + +-int datemoon[200][2]; /* hashtable for moonphase.[jdn%32][0] stores moonphase of day jdn, ++extern int datemoon[200][2]; /* hashtable for moonphase.[jdn%32][0] stores moonphase of day jdn, + [jdn%32][1] stores jdn. */ +diff -Naur Src.orig/calendar.h Src/calendar.h +--- Src.orig/calendar.h 2007-01-15 01:13:50.000000000 +0100 ++++ Src/calendar.h 2020-03-29 13:25:57.657754851 +0200 +@@ -5,10 +5,10 @@ + #include <sys/stat.h> + + +-time_t modtime; /* modified time of icalendar file */ +-struct calobj* calRoot; /* 1st element in list of calendar obj*/ +-int xr, yr; /*evil hack for moving dayview window*/ +-int datetype[32][2]; /* hashtable for coloring days.[jdn%32][0] stores color of day jdn, ++extern time_t modtime; /* modified time of icalendar file */ ++extern struct calobj* calRoot; /* 1st element in list of calendar obj*/ ++extern int xr, yr; /*evil hack for moving dayview window*/ ++extern int datetype[32][2]; /* hashtable for coloring days.[jdn%32][0] stores color of day jdn, + [jdn%32][1] stores jdn. */ + struct calobj{ + struct icaltimetype start; +diff -Naur Src.orig/settings.c Src/settings.c +--- Src.orig/settings.c 2003-07-15 17:22:51.000000000 +0200 ++++ Src/settings.c 2020-03-29 13:26:31.673744323 +0200 +@@ -1,4 +1,14 @@ + #include "settings.h" ++ ++char rcfile[250]; ++char icsfile[250]; ++char application[250]; ++int start_of_week; ++char* daystr[8]; ++int appicon; ++int lang; ++int debug; ++ + void set_lang(int language){lang = language;} + void setAppicon(int app){appicon = app;} + void enter_callback( GtkWidget *widget, GtkWidget *entry ){ +diff -Naur Src.orig/settings.h Src/settings.h +--- Src.orig/settings.h 2006-09-15 11:56:12.000000000 +0200 ++++ Src/settings.h 2020-03-29 13:26:37.732742450 +0200 +@@ -7,14 +7,14 @@ + + + +-char rcfile[250]; /* location of settings file */ +-char icsfile[250]; /* location of icalendar file */ +-char application[250]; /* command for starting external application */ +-int start_of_week; /* defines the first day of week */ +-char* daystr[8]; +-int appicon; /* sets the application icon evol(0) moz(1) other(2)*/ +-int lang; /* defines the language 0:english(default) 1:farsi */ +-int debug; /* debug mode off(0) or on(1) */ ++extern char rcfile[250]; /* location of settings file */ ++extern char icsfile[250]; /* location of icalendar file */ ++extern char application[250]; /* command for starting external application */ ++extern int start_of_week; /* defines the first day of week */ ++extern char* daystr[8]; ++extern int appicon; /* sets the application icon evol(0) moz(1) other(2)*/ ++extern int lang; /* defines the language 0:english(default) 1:farsi */ ++extern int debug; /* debug mode off(0) or on(1) */ + + + void destroy (GtkWidget * widget, gpointer data); diff --git a/x11-plugins/wmcalendar/wmcalendar-0.5.2-r2.ebuild b/x11-plugins/wmcalendar/wmcalendar-0.5.2-r2.ebuild index a3aae730cbba..1bbb79c3f80c 100644 --- a/x11-plugins/wmcalendar/wmcalendar-0.5.2-r2.ebuild +++ b/x11-plugins/wmcalendar/wmcalendar-0.5.2-r2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -27,8 +27,11 @@ S=${WORKDIR}/${P}/Src PATCHES=( "${FILESDIR}"/${P}-exit-sin-and-cos.patch "${FILESDIR}"/${P}-rename_kill_func.patch - "${FILESDIR}"/${P}-ical.patch ) + "${FILESDIR}"/${P}-ical.patch + "${FILESDIR}"/${P}-fno-common.patch +) src_compile() { tc-export CC PKG_CONFIG + default } |