Gentoo Archives: gentoo-commits

From: "Pacho Ramos (pacho)" <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-admin/gam-server/files: gam-server-0.1.10-armel-features.patch gam-server-0.1.10-G_CONST_RETURN-removal.patch gam-server-0.1.10-crosscompile-fix.patch
Date: Sun, 25 Sep 2011 16:17:47
Message-Id: 20110925161735.26FBC20036@flycatcher.gentoo.org
1 pacho 11/09/25 16:17:35
2
3 Added: gam-server-0.1.10-armel-features.patch
4 gam-server-0.1.10-G_CONST_RETURN-removal.patch
5 gam-server-0.1.10-crosscompile-fix.patch
6 Log:
7 Fix compilation with latest glib, bug #382783 by Maciej Piechotka; fix crosscompilation issues, bug #267604 by Andrei Slavoiu; enable linux specific features on armel, upstream bug #588338; drop DG_DISABLE_DEPRECATED; don't try to even check for python, simplifying ebuild for people running python3 as main interpreter; use gnome.org eclass to set SRC_URI and use bz2 tarball instead of gz.
8
9 (Portage version: 2.1.10.19/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.1 app-admin/gam-server/files/gam-server-0.1.10-armel-features.patch
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/gam-server/files/gam-server-0.1.10-armel-features.patch?rev=1.1&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/gam-server/files/gam-server-0.1.10-armel-features.patch?rev=1.1&content-type=text/plain
16
17 Index: gam-server-0.1.10-armel-features.patch
18 ===================================================================
19 From 05dcfcd69848e119c6a30d363bc41e896029f8af Mon Sep 17 00:00:00 2001
20 From: Sebastian Dröge <slomo@××××××.org>
21 Date: Tue, 15 Dec 2009 12:24:25 +0000
22 Subject: Bug 588338 - Enable linux specific features on armel
23
24 ---
25 diff --git a/configure.in b/configure.in
26 index b0bbaec..e4b684e 100644
27 --- a/configure.in
28 +++ b/configure.in
29 @@ -176,7 +176,7 @@ fi
30
31 dnl check what OS we're on
32 #AM_CONDITIONAL(HAVE_LINUX, test x$target_os = xlinux-gnu)
33 -if test x$target_os = xlinux-gnu; then
34 +if test x$target_os = xlinux-gnu -o x$target_os = xlinux-gnueabi; then
35 AC_DEFINE([HAVE_LINUX],[],[Whether we are using linux or not])
36 fi
37
38 @@ -223,7 +223,7 @@ fi
39 dnl check if inotify backend is enabled
40 AM_CONDITIONAL(ENABLE_INOTIFY, test x$inotify = xtrue)
41
42 -if test x$os = xlinux-gnu; then
43 +if test x$os = xlinux-gnu -o x$os = xlinux-gnueabi; then
44 AC_ARG_ENABLE(dnotify,
45 AC_HELP_STRING([--disable-dnotify], [Disable the DNotify backend]),
46 [dnotify="${enableval}"], [dnotify=true])
47 @@ -297,10 +297,12 @@ else
48 fi
49
50 dnl Use weak symbols on linux/gcc to avoid imposing libpthreads to apps
51 -if test x$os = xlinux-gnu -a x$WITH_THREADS = x1 ; then
52 - if test "${CC}" = "gcc" ; then
53 - echo Use weak symbols !
54 - THREAD_LIBS=
55 +if test x$os = xlinux-gnu -o x$os = xlinux-gnueabi ; then
56 + if test x$WITH_THREADS = x1 ; then
57 + if test "${CC}" = "gcc" ; then
58 + echo Use weak symbols !
59 + THREAD_LIBS=
60 + fi
61 fi
62 fi
63 AC_SUBST(THREAD_LIBS)
64 --
65 cgit v0.9.0.2
66
67
68
69 1.1 app-admin/gam-server/files/gam-server-0.1.10-G_CONST_RETURN-removal.patch
70
71 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/gam-server/files/gam-server-0.1.10-G_CONST_RETURN-removal.patch?rev=1.1&view=markup
72 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/gam-server/files/gam-server-0.1.10-G_CONST_RETURN-removal.patch?rev=1.1&content-type=text/plain
73
74 Index: gam-server-0.1.10-G_CONST_RETURN-removal.patch
75 ===================================================================
76 From 2a9d32734a2e5125ae77de6c75789e1c6ee24dbe Mon Sep 17 00:00:00 2001
77 From: Maciej Piechotka <uzytkownik2@×××××.com>
78 Date: Tue, 13 Sep 2011 09:47:05 +0200
79 Subject: [PATCH] Fix compilation of recent glib removing G_CONST_RETURN
80
81 ---
82 server/gam_node.c | 2 +-
83 server/gam_node.h | 2 +-
84 server/gam_subscription.c | 2 +-
85 server/gam_subscription.h | 2 +-
86 4 files changed, 4 insertions(+), 4 deletions(-)
87
88 diff --git a/server/gam_node.c b/server/gam_node.c
89 index 02358ba..d0302d2 100644
90 --- a/server/gam_node.c
91 +++ b/server/gam_node.c
92 @@ -122,7 +122,7 @@ gam_node_set_is_dir(GamNode * node, gboolean is_dir)
93 * it has finished with the string. If it must keep it longer, it
94 * should makes its own copy. The returned string must not be freed.
95 */
96 -G_CONST_RETURN char *
97 +const char *
98 gam_node_get_path(GamNode * node)
99 {
100 g_assert(node);
101 diff --git a/server/gam_node.h b/server/gam_node.h
102 index 02c8692..83349a8 100644
103 --- a/server/gam_node.h
104 +++ b/server/gam_node.h
105 @@ -58,7 +58,7 @@ gboolean gam_node_is_dir (GamNode *node);
106 void gam_node_set_is_dir (GamNode *node,
107 gboolean is_dir);
108
109 -G_CONST_RETURN char *gam_node_get_path (GamNode *node);
110 +const char *gam_node_get_path (GamNode *node);
111
112 GList *gam_node_get_subscriptions (GamNode *node);
113
114 diff --git a/server/gam_subscription.c b/server/gam_subscription.c
115 index dfa3273..4675b34 100644
116 --- a/server/gam_subscription.c
117 +++ b/server/gam_subscription.c
118 @@ -141,7 +141,7 @@ gam_subscription_pathlen(GamSubscription * sub)
119 * @param sub the GamSubscription
120 * @returns The path being monitored. It should not be freed.
121 */
122 -G_CONST_RETURN char *
123 +const char *
124 gam_subscription_get_path(GamSubscription * sub)
125 {
126 if (sub == NULL)
127 diff --git a/server/gam_subscription.h b/server/gam_subscription.h
128 index d894fbe..e6b4e15 100644
129 --- a/server/gam_subscription.h
130 +++ b/server/gam_subscription.h
131 @@ -21,7 +21,7 @@ int gam_subscription_pathlen (GamSubscription *sub);
132
133 int gam_subscription_get_reqno (GamSubscription *sub);
134
135 -G_CONST_RETURN char *gam_subscription_get_path (GamSubscription *sub);
136 +const char *gam_subscription_get_path (GamSubscription *sub);
137
138 GamListener *gam_subscription_get_listener (GamSubscription *sub);
139
140 --
141 1.7.6.1
142
143
144
145
146 1.1 app-admin/gam-server/files/gam-server-0.1.10-crosscompile-fix.patch
147
148 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/gam-server/files/gam-server-0.1.10-crosscompile-fix.patch?rev=1.1&view=markup
149 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/gam-server/files/gam-server-0.1.10-crosscompile-fix.patch?rev=1.1&content-type=text/plain
150
151 Index: gam-server-0.1.10-crosscompile-fix.patch
152 ===================================================================
153 --- configure.in.orig 2009-04-26 23:00:43.445135823 +0300
154 +++ configure.in 2009-04-26 23:25:04.042489243 +0300
155 @@ -389,8 +389,7 @@
156
157 AC_MSG_CHECKING(abstract socket namespace)
158 AC_LANG_PUSH(C)
159 -AC_RUN_IFELSE([AC_LANG_PROGRAM(
160 -[[
161 +AC_TRY_RUN([
162 #include <sys/types.h>
163 #include <stdlib.h>
164 #include <string.h>
165 @@ -398,8 +397,8 @@
166 #include <sys/socket.h>
167 #include <sys/un.h>
168 #include <errno.h>
169 -]],
170 -[[
171 +
172 +int main() {
173 int listen_fd;
174 struct sockaddr_un addr;
175
176 @@ -424,9 +423,11 @@
177 }
178 else
179 exit (0);
180 -]])],
181 - [have_abstract_sockets=yes],
182 - [have_abstract_sockets=no])
183 +}
184 +],
185 +have_abstract_sockets=yes,
186 +have_abstract_sockets=no,
187 +have_abstract_sockets=no)
188 AC_LANG_POP(C)
189 AC_MSG_RESULT($have_abstract_sockets)