Hello community,

here is the log from the commit of package rpcbind for openSUSE:Factory checked 
in at 2012-11-30 12:26:37
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rpcbind (Old)
 and      /work/SRC/openSUSE:Factory/.rpcbind.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rpcbind", Maintainer is "o...@suse.com"

Changes:
--------
--- /work/SRC/openSUSE:Factory/rpcbind/rpcbind.changes  2012-11-08 
21:52:53.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.rpcbind.new/rpcbind.changes     2012-11-30 
12:30:45.000000000 +0100
@@ -1,0 +2,6 @@
+Wed Nov 28 14:44:15 UTC 2012 - rmila...@suse.com
+
+- Move rpcbind.sock and rpcbind.lock to /run to not interfere with
+  systemd. 
+
+-------------------------------------------------------------------

New:
----
  move-lock-file-to-run-fs.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ rpcbind.spec ++++++
--- /var/tmp/diff_new_pack.P2POLK/_old  2012-11-30 12:30:46.000000000 +0100
+++ /var/tmp/diff_new_pack.P2POLK/_new  2012-11-30 12:30:46.000000000 +0100
@@ -43,6 +43,7 @@
 Patch1:         socket-activation-don-t-unlink-socket-we-didn-t-create
 Patch2:         socket-activation-fix-rpcbind-service-to-use-separate-sockets
 Patch3:         rpcbind-journal.patch
+Patch4:         move-lock-file-to-run-fs.patch
 %define statefile /var/lib/portmap.state
 %if 0%{?suse_version} > 1140
 BuildRequires:  systemd-devel
@@ -71,6 +72,8 @@
 %patch1 -p1
 %patch2 -p1
 %patch3
+%patch4 -p1
+
 %build
 autoreconf -fiv
 export  CFLAGS="$RPM_OPT_FLAGS -fpie"

++++++ move-lock-file-to-run-fs.patch ++++++
Index: rpcbind-0.2.0_git201103171419/src/rpcbind.c
===================================================================
--- rpcbind-0.2.0_git201103171419.orig/src/rpcbind.c
+++ rpcbind-0.2.0_git201103171419/src/rpcbind.c
@@ -93,7 +93,7 @@ char *rpcbinduser = NULL;
 /* who to suid to if -s is given */
 #define RUN_AS  "daemon"
 
-#define RPCBINDDLOCK "/var/run/rpcbind.lock"
+#define RPCBINDDLOCK "/run/rpcbind.lock"
 
 int runasdaemon = 0;
 int insecure = 0;

++++++ socket-activation-fix-rpcbind-service-to-use-separate-sockets ++++++
--- /var/tmp/diff_new_pack.P2POLK/_old  2012-11-30 12:30:46.000000000 +0100
+++ /var/tmp/diff_new_pack.P2POLK/_new  2012-11-30 12:30:46.000000000 +0100
@@ -16,8 +16,10 @@
  systemd/rpcbind.socket |    9 +++++++--
  2 files changed, 38 insertions(+), 3 deletions(-)
 
---- a/src/rpcbind.c
-+++ b/src/rpcbind.c
+Index: rpcbind-0.2.0_git201103171419/src/rpcbind.c
+===================================================================
+--- rpcbind-0.2.0_git201103171419.orig/src/rpcbind.c
++++ rpcbind-0.2.0_git201103171419/src/rpcbind.c
 @@ -50,6 +50,7 @@
  #include <sys/file.h>
  #include <sys/socket.h>
@@ -26,7 +28,7 @@
  #include <rpc/rpc.h>
  #include <rpc/rpc_com.h>
  #ifdef PORTMAP
-@@ -262,6 +264,32 @@ main(int argc, char *argv[])
+@@ -263,6 +264,32 @@ main(int argc, char *argv[])
  }
  
  /*
@@ -59,7 +61,7 @@
   * Adds the entry into the rpcbind database.
   * If PORTMAP, then for UDP and TCP, it adds the entries for version 2 also
   * Returns 0 if succeeds, else fails
-@@ -313,7 +341,7 @@ init_transport(struct netconfig *nconf)
+@@ -314,7 +341,7 @@ init_transport(struct netconfig *nconf)
  #ifdef SYSTEMD
        n = sd_listen_fds(0);
        if (n < 0) {
@@ -68,7 +70,7 @@
                return 1;
        }
  
-@@ -347,6 +375,9 @@ init_transport(struct netconfig *nconf)
+@@ -348,6 +375,9 @@ init_transport(struct netconfig *nconf)
                        goto error;
                }
  
@@ -78,14 +80,18 @@
                /* Copy the address */
                taddr.addr.maxlen = taddr.addr.len = addrlen;
                taddr.addr.buf = malloc(addrlen);
---- a/systemd/rpcbind.socket
-+++ b/systemd/rpcbind.socket
-@@ -5,8 +5,13 @@ Before=rpcbind.target
+Index: rpcbind-0.2.0_git201103171419/systemd/rpcbind.socket
+===================================================================
+--- rpcbind-0.2.0_git201103171419.orig/systemd/rpcbind.socket
++++ rpcbind-0.2.0_git201103171419/systemd/rpcbind.socket
+@@ -4,9 +4,14 @@ Wants=rpcbind.target
+ Before=rpcbind.target
  
  [Socket]
- ListenStream=/var/run/rpcbind.sock
+-ListenStream=/var/run/rpcbind.sock
 -ListenStream=111
 -ListenDatagram=111
++ListenStream=/run/rpcbind.sock
 +
 +# RPC netconfig can't handle ipv6/ipv4 dual sockets
 +BindIPv6Only=ipv6-only
@@ -96,4 +102,3 @@
  
  [Install]
  WantedBy=sockets.target
-

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org

Reply via email to