rpms/synce-hal/F-10 synce-hal-sock.patch,NONE,1.1
Andreas Bierfert
awjb at fedoraproject.org
Tue Aug 18 04:49:12 UTC 2009
Author: awjb
Update of /cvs/pkgs/rpms/synce-hal/F-10
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv21573/F-10
Added Files:
synce-hal-sock.patch
Log Message:
- add patch
synce-hal-sock.patch:
Makefile.am | 3 ++-
Makefile.in | 4 +++-
synce-connection-broker.c | 2 +-
3 files changed, 6 insertions(+), 3 deletions(-)
--- NEW FILE synce-hal-sock.patch ---
diff -Nurp hal.orig/src/Makefile.am hal/src/Makefile.am
--- hal.orig/src/Makefile.am 2009-02-06 18:41:55.000000000 +0000
+++ hal/src/Makefile.am 2009-08-01 11:28:00.000000000 +0100
@@ -1,4 +1,5 @@
-AM_CFLAGS = -Wall
+AM_CFLAGS = -Wall \
+ -DLOCALSTATEDIR=\""$(localstatedir)"\"
libexec_PROGRAMS = hal-dccm synce-serial-chat
diff -Nurp hal.orig/src/Makefile.in hal/src/Makefile.in
--- hal.orig/src/Makefile.in 2009-08-01 11:30:09.000000000 +0100
+++ hal/src/Makefile.in 2009-08-01 11:28:42.000000000 +0100
@@ -211,7 +211,9 @@ target_alias = @target_alias@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
-AM_CFLAGS = -Wall
+AM_CFLAGS = -Wall \
+ -DLOCALSTATEDIR=\""$(localstatedir)"\"
+
BUILT_SOURCES = synce-device-signals-marshal.h \
synce-device-signals-marshal.c \
synce-device-glue.h
diff -Nurp hal.orig/src/synce-connection-broker.c hal/src/synce-connection-broker.c
--- hal.orig/src/synce-connection-broker.c 2008-10-28 11:23:00.000000000 +0000
+++ hal/src/synce-connection-broker.c 2009-08-01 11:28:00.000000000 +0100
@@ -236,7 +236,7 @@ _synce_connection_broker_take_connection
priv->conn = conn;
rnd = g_rand_new ();
- priv->filename = g_strdup_printf ("/tmp/synce-%08x%08x%08x%08x.sock",
+ priv->filename = g_strdup_printf ("%s/run/synce-%08x%08x%08x%08x.sock", LOCALSTATEDIR,
g_rand_int (rnd), g_rand_int (rnd), g_rand_int (rnd), g_rand_int (rnd));
g_rand_free (rnd);
More information about the fedora-extras-commits
mailing list