summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Mair-Keimberger <m.mairkeimberger@gmail.com>2017-12-28 08:46:52 +0100
committerBernard Cafarelli <voyageur@gentoo.org>2018-01-01 22:01:26 +0100
commitd26214d02b1ee9ee5a6782ff0dbe010ba332e806 (patch)
treed53926bbf21d47c80b1e69d9d7b891ed41efe845 /x11-plugins
parentx11-plugins/wmcube: remove unused patch (diff)
downloadgentoo-d26214d02b1ee9ee5a6782ff0dbe010ba332e806.tar.gz
gentoo-d26214d02b1ee9ee5a6782ff0dbe010ba332e806.tar.bz2
gentoo-d26214d02b1ee9ee5a6782ff0dbe010ba332e806.zip
x11-plugins/wmload: remove unused patches
Diffstat (limited to 'x11-plugins')
-rw-r--r--x11-plugins/wmload/files/wmload-0.9.2-prefix.patch11
-rw-r--r--x11-plugins/wmload/files/wmload-ComplexProgramTargetNoMan.patch8
-rw-r--r--x11-plugins/wmload/files/wmload.solaris.patch141
3 files changed, 0 insertions, 160 deletions
diff --git a/x11-plugins/wmload/files/wmload-0.9.2-prefix.patch b/x11-plugins/wmload/files/wmload-0.9.2-prefix.patch
deleted file mode 100644
index 3ec43c570df0..000000000000
--- a/x11-plugins/wmload/files/wmload-0.9.2-prefix.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- Imakefile
-+++ Imakefile
-@@ -2,7 +2,7 @@
- DESTDIR = /usr/local
- BINDIR = /bin
-
--XPMLIB = -L/usr/lib/X11 -lXpm -lm
-+XPMLIB = `pkg-config xpm --libs` -lm
- DEPLIBS = $(DEPXLIB)
-
- LOCAL_LIBRARIES = $(XPMLIB) $(XLIB)
diff --git a/x11-plugins/wmload/files/wmload-ComplexProgramTargetNoMan.patch b/x11-plugins/wmload/files/wmload-ComplexProgramTargetNoMan.patch
deleted file mode 100644
index 8d3d25d6fa3c..000000000000
--- a/x11-plugins/wmload/files/wmload-ComplexProgramTargetNoMan.patch
+++ /dev/null
@@ -1,8 +0,0 @@
---- wmload-0.9.2/Imakefile~ Sat Dec 1 21:53:52 2001
-+++ wmload-0.9.2/Imakefile Sat Dec 1 21:53:52 2001
-@@ -14,4 +14,4 @@
- SRCS = wmload.c
- OBJS = wmload.o
-
--ComplexProgramTarget(wmload)
-+ComplexProgramTargetNoMan(wmload)
diff --git a/x11-plugins/wmload/files/wmload.solaris.patch b/x11-plugins/wmload/files/wmload.solaris.patch
deleted file mode 100644
index 788d4190aba0..000000000000
--- a/x11-plugins/wmload/files/wmload.solaris.patch
+++ /dev/null
@@ -1,141 +0,0 @@
-* original: http://www.rampant.org/~dp/software/wmload.solaris.patch
-
---- wmload.c
-+++ wmload.c
-@@ -6,6 +6,11 @@
- #include <math.h>
- #include <fcntl.h>
- #include <X11/Xatom.h>
-+#ifdef sun
-+#include <sys/types.h>
-+#include <sys/sysinfo.h>
-+#include <kstat.h>
-+#endif
-
- #include "back.xpm"
- #include "mask2.xbm"
-@@ -214,7 +219,7 @@
- NormalGC = XCreateGC(dpy, Root, gcm, &gcv);
-
- if (ONLYSHAPE) { /* try to make shaped window here */
-- pixmask = XCreateBitmapFromData(dpy, win, mask2_bits, mask2_width,
-+ pixmask = XCreateBitmapFromData(dpy, win, (char *)mask2_bits, mask2_width,
- mask2_height);
- XShapeCombineMask(dpy, win, ShapeBounding, 0, 0, pixmask, ShapeSet);
- XShapeCombineMask(dpy, iconwin, ShapeBounding, 0, 0, pixmask, ShapeSet);
-@@ -410,6 +415,107 @@
- return (char *)p;
- }
-
-+#ifdef sun
-+
-+static kstat_ctl_t *kc;
-+static kstat_t **cpu_ksp_list;
-+static int ncpus;
-+
-+void
-+cpu_stats_init()
-+{
-+ int i = 0;
-+ kstat_t *ksp;
-+ static int kstats_ready = 0;
-+
-+ if (!kstats_ready) {
-+ if ((kc = kstat_open()) == NULL) {
-+ fprintf(stderr,"wmload: can't open /dev/kstat\n");
-+ exit (1);
-+ }
-+ kstats_ready = 1;
-+ }
-+
-+ for (ksp = kc->kc_chain; ksp; ksp = ksp->ks_next) {
-+ if (strcmp(ksp->ks_module, "cpu_stat") == 0)
-+ i++;
-+ }
-+
-+ if (cpu_ksp_list) {
-+ free(cpu_ksp_list);
-+ }
-+ cpu_ksp_list = (kstat_t **) calloc(i * sizeof (kstat_t *), 1);
-+ ncpus = i;
-+
-+ /*
-+ * stash the ksp for each CPU.
-+ */
-+ i = 0;
-+ for (ksp = kc->kc_chain; ksp; ksp = ksp->ks_next) {
-+ if (strcmp(ksp->ks_module, "cpu_stat") == 0) {
-+ cpu_ksp_list[i] = ksp;
-+ i++;
-+ }
-+ }
-+}
-+
-+int
-+get_cpu_stats()
-+{
-+ int i;
-+ cpu_stat_t stat;
-+ static int firsttime = 1;
-+
-+ if (firsttime) {
-+ firsttime = 0;
-+ return (1); /* force code to go initialize kstat stuff */
-+ }
-+
-+ /*
-+ * Read each cpu's data. If the chain has changed (a state change
-+ * has happened, maybe a new cpu was added to the system), then
-+ * return 1. This will cause the code to reinitialize the cpu_ksp_list
-+ * array. word.
-+ */
-+ cp_time[0] = cp_time[1] = cp_time[2] = cp_time[3] = 0;
-+ for (i = 0; i < ncpus; i++) {
-+ if (kstat_read(kc, cpu_ksp_list[i], (void *) &stat) == -1)
-+ return (1);
-+ cp_time[0] += stat.cpu_sysinfo.cpu[CPU_USER]; /* user */
-+ cp_time[1] += stat.cpu_sysinfo.cpu[CPU_WAIT]; /* "nice" */
-+ cp_time[2] += stat.cpu_sysinfo.cpu[CPU_KERNEL]; /* sys */
-+ cp_time[3] += stat.cpu_sysinfo.cpu[CPU_IDLE]; /* idle ("free")*/
-+ }
-+ return (0);
-+}
-+
-+void GetLoad(int Maximum, int *usr, int *nice, int *sys, int *free)
-+{
-+ int total;
-+
-+ while (get_cpu_stats() != 0) {
-+ cpu_stats_init();
-+ }
-+
-+ *usr = cp_time[0] - last[0];
-+ *nice = cp_time[1] - last[1];
-+ *sys = cp_time[2] - last[2];
-+ *free = cp_time[3] - last[3];
-+
-+ /* printf("[%d %d %d %d]\n", *usr, *nice, *sys, *free); */
-+
-+ total = *usr + *nice + *sys + *free;
-+ last[0] = cp_time[0];
-+ last[1] = cp_time[1];
-+ last[2] = cp_time[2];
-+ last[3] = cp_time[3];
-+
-+ *usr = rint(Maximum * (float)(*usr) /total);
-+ *nice =rint(Maximum * (float)(*nice) /total);
-+ *sys = rint(Maximum * (float)(*sys) /total);
-+ *free = rint(Maximum * (float)(*free) /total);
-+}
-+#else /* sun */
- void GetLoad(int Maximum, int *usr, int *nice, int *sys, int *free)
- {
- char buffer[100];/*[4096+1];*/
-@@ -445,6 +551,7 @@
- *sys = rint(Maximum * (float)(*sys) /total);
- *free = rint(Maximum * (float)(*free) /total);
- }
-+#endif
-
- void InsertLoad()
- {