public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: x11-plugins/wmpasman/, x11-plugins/wmpasman/files/
@ 2016-01-04 12:57 Bernard Cafarelli
  0 siblings, 0 replies; 2+ messages in thread
From: Bernard Cafarelli @ 2016-01-04 12:57 UTC (permalink / raw
  To: gentoo-commits

commit:     163a04ca2e015ce2c62d48cb0099f78ae374d70a
Author:     Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
AuthorDate: Mon Jan  4 12:21:49 2016 +0000
Commit:     Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
CommitDate: Mon Jan  4 12:56:48 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=163a04ca

x11-plugins/wmpasman: fix compilation with gcc 5, bug #569126

Package-Manager: portage-2.2.26

 .../wmpasman/files/wmpasman-0.8.5.3-list.patch     | 116 +++++++++++++++++++++
 x11-plugins/wmpasman/wmpasman-0.8.5.3.ebuild       |   7 +-
 2 files changed, 122 insertions(+), 1 deletion(-)

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
new file mode 100644
index 0000000..3769d09
--- /dev/null
+++ b/x11-plugins/wmpasman/files/wmpasman-0.8.5.3-list.patch
@@ -0,0 +1,116 @@
+diff -Naur wmgeneral.orig/list.c wmgeneral/list.c
+--- wmgeneral.orig/list.c	2016-01-04 13:18:09.361133006 +0100
++++ wmgeneral/list.c	2016-01-04 13:18:21.789137166 +0100
+@@ -40,7 +40,7 @@
+ 
+ /* Return a cons cell produced from (head . tail) */
+ 
+-inline LinkedList* 
++LinkedList* 
+ list_cons(void* head, LinkedList* tail)
+ {
+   LinkedList* cell;
+@@ -53,7 +53,7 @@
+ 
+ /* Return the length of a list, list_length(NULL) returns zero */
+ 
+-inline int
++int
+ list_length(LinkedList* list)
+ {
+   int i = 0;
+@@ -68,7 +68,7 @@
+ /* Return the Nth element of LIST, where N count from zero.  If N 
+    larger than the list length, NULL is returned  */
+ 
+-inline void*
++void*
+ list_nth(int index, LinkedList* list)
+ {
+   while(index-- != 0)
+@@ -83,7 +83,7 @@
+ 
+ /* Remove the element at the head by replacing it by its successor */
+ 
+-inline void
++void
+ list_remove_head(LinkedList** list)
+ {
+   if (!*list) return;  
+@@ -103,7 +103,7 @@
+ 
+ /* Remove the element with `car' set to ELEMENT */
+ /*
+-inline void
++void
+ list_remove_elem(LinkedList** list, void* elem)
+ {
+   while (*list)
+@@ -114,7 +114,7 @@
+     }
+ }*/
+ 
+-inline LinkedList *
++LinkedList *
+ list_remove_elem(LinkedList* list, void* elem)
+ {
+     LinkedList *tmp;
+@@ -134,7 +134,7 @@
+ 
+ /* Return element that has ELEM as car */
+ 
+-inline LinkedList*
++LinkedList*
+ list_find(LinkedList* list, void* elem)
+ {
+   while(list)
+@@ -148,7 +148,7 @@
+ 
+ /* Free list (backwards recursive) */
+ 
+-inline void
++void
+ list_free(LinkedList* list)
+ {
+   if(list)
+@@ -160,7 +160,7 @@
+ 
+ /* Map FUNCTION over all elements in LIST */
+ 
+-inline void
++void
+ list_mapcar(LinkedList* list, void(*function)(void*))
+ {
+   while(list)
+diff -Naur wmgeneral.orig/list.h wmgeneral/list.h
+--- wmgeneral.orig/list.h	2016-01-04 13:18:09.361133006 +0100
++++ wmgeneral/list.h	2016-01-04 13:18:26.007138577 +0100
+@@ -36,20 +36,20 @@
+   struct LinkedList *tail;
+ } LinkedList;
+ 
+-inline LinkedList* list_cons(void* head, LinkedList* tail);
++LinkedList* list_cons(void* head, LinkedList* tail);
+ 
+-inline int list_length(LinkedList* list);
++int list_length(LinkedList* list);
+ 
+-inline void* list_nth(int index, LinkedList* list);
++void* list_nth(int index, LinkedList* list);
+ 
+-inline void list_remove_head(LinkedList** list);
++void list_remove_head(LinkedList** list);
+ 
+-inline LinkedList *list_remove_elem(LinkedList* list, void* elem);
++LinkedList *list_remove_elem(LinkedList* list, void* elem);
+ 
+-inline void list_mapcar(LinkedList* list, void(*function)(void*));
++void list_mapcar(LinkedList* list, void(*function)(void*));
+ 
+-inline LinkedList*list_find(LinkedList* list, void* elem);
++LinkedList*list_find(LinkedList* list, void* elem);
+ 
+-inline void list_free(LinkedList* list);
++void list_free(LinkedList* list);
+ 
+ #endif

diff --git a/x11-plugins/wmpasman/wmpasman-0.8.5.3.ebuild b/x11-plugins/wmpasman/wmpasman-0.8.5.3.ebuild
index be2211c..e1e7aca 100644
--- a/x11-plugins/wmpasman/wmpasman-0.8.5.3.ebuild
+++ b/x11-plugins/wmpasman/wmpasman-0.8.5.3.ebuild
@@ -1,8 +1,9 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
 EAPI=5
+inherit eutils
 
 DESCRIPTION="Password storage/retrieval in a dockapp"
 HOMEPAGE="http://sourceforge.net/projects/wmpasman/"
@@ -22,3 +23,7 @@ DEPEND="${RDEPEND}
 	>=x11-libs/libXpm-3.5.5"
 
 DOCS="BUGS ChangeLog README TODO WARNINGS"
+
+src_prepare() {
+	epatch "${FILESDIR}"/${P}-list.patch
+}


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: x11-plugins/wmpasman/, x11-plugins/wmpasman/files/
@ 2021-01-02 23:32 Bernard Cafarelli
  0 siblings, 0 replies; 2+ messages in thread
From: Bernard Cafarelli @ 2021-01-02 23:32 UTC (permalink / raw
  To: gentoo-commits

commit:     e69b37d280ac621a146d272f811907c2062bcbce
Author:     Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
AuthorDate: Sat Jan  2 23:20:34 2021 +0000
Commit:     Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
CommitDate: Sat Jan  2 23:32:18 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e69b37d2

x11-plugins/wmpasman: do not call ar directly

Closes: https://bugs.gentoo.org/759760
Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org>

 x11-plugins/wmpasman/files/wmpasman-2.2-ar.patch | 11 +++++++++++
 x11-plugins/wmpasman/wmpasman-2.2.ebuild         | 10 +++++++++-
 2 files changed, 20 insertions(+), 1 deletion(-)

diff --git a/x11-plugins/wmpasman/files/wmpasman-2.2-ar.patch b/x11-plugins/wmpasman/files/wmpasman-2.2-ar.patch
new file mode 100644
index 00000000000..8244fadd7c5
--- /dev/null
+++ b/x11-plugins/wmpasman/files/wmpasman-2.2-ar.patch
@@ -0,0 +1,11 @@
+diff -Naur wmpasman-2.2.orig/configure.ac wmpasman-2.2/configure.ac
+--- wmpasman-2.2.orig/configure.ac	2018-12-16 17:39:47.000000000 +0100
++++ wmpasman-2.2/configure.ac	2021-01-03 00:17:27.934691093 +0100
+@@ -9,6 +9,7 @@
+ AC_SUBST(VERSION)
+ 
+ # Checks for programs.
++AM_PROG_AR
+ AC_PROG_AWK
+ AC_PROG_CC
+ AC_PROG_CC_STDC

diff --git a/x11-plugins/wmpasman/wmpasman-2.2.ebuild b/x11-plugins/wmpasman/wmpasman-2.2.ebuild
index fea3eb77032..04ba57ef095 100644
--- a/x11-plugins/wmpasman/wmpasman-2.2.ebuild
+++ b/x11-plugins/wmpasman/wmpasman-2.2.ebuild
@@ -1,7 +1,8 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
+inherit autotools
 
 DESCRIPTION="Password storage/retrieval in a dockapp"
 HOMEPAGE="https://sourceforge.net/projects/wmpasman/"
@@ -18,3 +19,10 @@ DEPEND="${RDEPEND}
 	virtual/pkgconfig"
 
 DOCS="ChangeLog WARNINGS"
+
+PATCHES=( "${FILESDIR}"/${P}-ar.patch )
+
+src_prepare() {
+	default
+	eautoreconf
+}


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-01-02 23:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-04 12:57 [gentoo-commits] repo/gentoo:master commit in: x11-plugins/wmpasman/, x11-plugins/wmpasman/files/ Bernard Cafarelli
  -- strict thread matches above, loose matches on Subject: below --
2021-01-02 23:32 Bernard Cafarelli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox