Gentoo Archives: gentoo-commits

From: Bernard Cafarelli <voyageur@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-plugins/wmpasman/, x11-plugins/wmpasman/files/
Date: Mon, 04 Jan 2016 12:57:48
Message-Id: 1451912208.163a04ca2e015ce2c62d48cb0099f78ae374d70a.voyageur@gentoo
1 commit: 163a04ca2e015ce2c62d48cb0099f78ae374d70a
2 Author: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 4 12:21:49 2016 +0000
4 Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 4 12:56:48 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=163a04ca
7
8 x11-plugins/wmpasman: fix compilation with gcc 5, bug #569126
9
10 Package-Manager: portage-2.2.26
11
12 .../wmpasman/files/wmpasman-0.8.5.3-list.patch | 116 +++++++++++++++++++++
13 x11-plugins/wmpasman/wmpasman-0.8.5.3.ebuild | 7 +-
14 2 files changed, 122 insertions(+), 1 deletion(-)
15
16 diff --git a/x11-plugins/wmpasman/files/wmpasman-0.8.5.3-list.patch b/x11-plugins/wmpasman/files/wmpasman-0.8.5.3-list.patch
17 new file mode 100644
18 index 0000000..3769d09
19 --- /dev/null
20 +++ b/x11-plugins/wmpasman/files/wmpasman-0.8.5.3-list.patch
21 @@ -0,0 +1,116 @@
22 +diff -Naur wmgeneral.orig/list.c wmgeneral/list.c
23 +--- wmgeneral.orig/list.c 2016-01-04 13:18:09.361133006 +0100
24 ++++ wmgeneral/list.c 2016-01-04 13:18:21.789137166 +0100
25 +@@ -40,7 +40,7 @@
26 +
27 + /* Return a cons cell produced from (head . tail) */
28 +
29 +-inline LinkedList*
30 ++LinkedList*
31 + list_cons(void* head, LinkedList* tail)
32 + {
33 + LinkedList* cell;
34 +@@ -53,7 +53,7 @@
35 +
36 + /* Return the length of a list, list_length(NULL) returns zero */
37 +
38 +-inline int
39 ++int
40 + list_length(LinkedList* list)
41 + {
42 + int i = 0;
43 +@@ -68,7 +68,7 @@
44 + /* Return the Nth element of LIST, where N count from zero. If N
45 + larger than the list length, NULL is returned */
46 +
47 +-inline void*
48 ++void*
49 + list_nth(int index, LinkedList* list)
50 + {
51 + while(index-- != 0)
52 +@@ -83,7 +83,7 @@
53 +
54 + /* Remove the element at the head by replacing it by its successor */
55 +
56 +-inline void
57 ++void
58 + list_remove_head(LinkedList** list)
59 + {
60 + if (!*list) return;
61 +@@ -103,7 +103,7 @@
62 +
63 + /* Remove the element with `car' set to ELEMENT */
64 + /*
65 +-inline void
66 ++void
67 + list_remove_elem(LinkedList** list, void* elem)
68 + {
69 + while (*list)
70 +@@ -114,7 +114,7 @@
71 + }
72 + }*/
73 +
74 +-inline LinkedList *
75 ++LinkedList *
76 + list_remove_elem(LinkedList* list, void* elem)
77 + {
78 + LinkedList *tmp;
79 +@@ -134,7 +134,7 @@
80 +
81 + /* Return element that has ELEM as car */
82 +
83 +-inline LinkedList*
84 ++LinkedList*
85 + list_find(LinkedList* list, void* elem)
86 + {
87 + while(list)
88 +@@ -148,7 +148,7 @@
89 +
90 + /* Free list (backwards recursive) */
91 +
92 +-inline void
93 ++void
94 + list_free(LinkedList* list)
95 + {
96 + if(list)
97 +@@ -160,7 +160,7 @@
98 +
99 + /* Map FUNCTION over all elements in LIST */
100 +
101 +-inline void
102 ++void
103 + list_mapcar(LinkedList* list, void(*function)(void*))
104 + {
105 + while(list)
106 +diff -Naur wmgeneral.orig/list.h wmgeneral/list.h
107 +--- wmgeneral.orig/list.h 2016-01-04 13:18:09.361133006 +0100
108 ++++ wmgeneral/list.h 2016-01-04 13:18:26.007138577 +0100
109 +@@ -36,20 +36,20 @@
110 + struct LinkedList *tail;
111 + } LinkedList;
112 +
113 +-inline LinkedList* list_cons(void* head, LinkedList* tail);
114 ++LinkedList* list_cons(void* head, LinkedList* tail);
115 +
116 +-inline int list_length(LinkedList* list);
117 ++int list_length(LinkedList* list);
118 +
119 +-inline void* list_nth(int index, LinkedList* list);
120 ++void* list_nth(int index, LinkedList* list);
121 +
122 +-inline void list_remove_head(LinkedList** list);
123 ++void list_remove_head(LinkedList** list);
124 +
125 +-inline LinkedList *list_remove_elem(LinkedList* list, void* elem);
126 ++LinkedList *list_remove_elem(LinkedList* list, void* elem);
127 +
128 +-inline void list_mapcar(LinkedList* list, void(*function)(void*));
129 ++void list_mapcar(LinkedList* list, void(*function)(void*));
130 +
131 +-inline LinkedList*list_find(LinkedList* list, void* elem);
132 ++LinkedList*list_find(LinkedList* list, void* elem);
133 +
134 +-inline void list_free(LinkedList* list);
135 ++void list_free(LinkedList* list);
136 +
137 + #endif
138
139 diff --git a/x11-plugins/wmpasman/wmpasman-0.8.5.3.ebuild b/x11-plugins/wmpasman/wmpasman-0.8.5.3.ebuild
140 index be2211c..e1e7aca 100644
141 --- a/x11-plugins/wmpasman/wmpasman-0.8.5.3.ebuild
142 +++ b/x11-plugins/wmpasman/wmpasman-0.8.5.3.ebuild
143 @@ -1,8 +1,9 @@
144 -# Copyright 1999-2014 Gentoo Foundation
145 +# Copyright 1999-2016 Gentoo Foundation
146 # Distributed under the terms of the GNU General Public License v2
147 # $Id$
148
149 EAPI=5
150 +inherit eutils
151
152 DESCRIPTION="Password storage/retrieval in a dockapp"
153 HOMEPAGE="http://sourceforge.net/projects/wmpasman/"
154 @@ -22,3 +23,7 @@ DEPEND="${RDEPEND}
155 >=x11-libs/libXpm-3.5.5"
156
157 DOCS="BUGS ChangeLog README TODO WARNINGS"
158 +
159 +src_prepare() {
160 + epatch "${FILESDIR}"/${P}-list.patch
161 +}