FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 09-15-2010, 08:42 PM
"Luana C. Rocha"
 
Default Patch Glib

Hi,

I'm new linux user and I need do patch my glib in order to make
pacemaker-gui to work.
I know that i have to apply the following
patch: http://git.gnome.org/browse/glib/commit/?
id=bf2719c815d719d1899b4bdb1b81ff6798471094, but i don't know how to do it.


I tried to do these steps, but didn't work. Can someone give me a
detailed tutorial about how to apply patchs, or point me what i did
wrong?

I've copy the content of the patch to a file named patch:

---a/glib/gatomic.h
+++b/glib/gatomic.h
@@ -64,16 64,16 @@ void g_atomic_pointer_set
(volatile gpointer G_GNUC_MAY_ALI
#else
# define g_atomic_int_get(atomic)
((void) sizeof (gchar [sizeof (*(atomic)) == sizeof (gint) ? 1 : -1]),

- (g_atomic_int_get) ((volatile gint G_GNUC_MAY_ALIAS *) (void *)
(atomic)))
(g_atomic_int_get) ((volatile gint G_GNUC_MAY_ALIAS *) (volatile void
*) (atomic)))
# define g_atomic_int_set(atomic, newval)
((void) sizeof (gchar [sizeof (*(atomic)) == sizeof (gint) ? 1 : -1]),

- (g_atomic_int_set) ((volatile gint G_GNUC_MAY_ALIAS *) (void *)
(atomic), (newval)))
(g_atomic_int_set) ((volatile gint G_GNUC_MAY_ALIAS *) (volatile void
*) (atomic), (newval)))
# define g_atomic_pointer_get(atomic)
((void) sizeof (gchar [sizeof (*(atomic)) == sizeof (gpointer) ? 1 : -
1]),
- (g_atomic_pointer_get) ((volatile gpointer G_GNUC_MAY_ALIAS *) (void
*) (atomic)))
(g_atomic_pointer_get) ((volatile gpointer G_GNUC_MAY_ALIAS *)
(volatile void *) (atomic)))
# define g_atomic_pointer_set(atomic, newval)
((void) sizeof (gchar [sizeof (*(atomic)) == sizeof (gpointer) ? 1 : -
1]),
- (g_atomic_pointer_set) ((volatile gpointer G_GNUC_MAY_ALIAS *) (void
*) (atomic), (newval)))
(g_atomic_pointer_set) ((volatile gpointer G_GNUC_MAY_ALIAS *)
(volatile void *) (atomic), (newval)))
#endif /* G_ATOMIC_OP_MEMORY_BARRIER_NEEDED */

#define g_atomic_int_inc(atomic) (g_atomic_int_add ((atomic), 1))



Then I execute the commands:

diff -uN /usr/include/glib-2.0/glib/gatomic.h /home/luana/patch > glib.patch

patch glib.patch

But didn't solve my problem.
In fact the system "freezes" and looks like the patch wasn't applied.

Thank You.

LCR

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 

Thread Tools




All times are GMT. The time now is 05:04 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org