17
0

- fixed build: unspecify port and address family

OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby:extensions/rubygem-ruby-dbus?expand=0&rev=11
This commit is contained in:
Martin Vidner
2013-04-29 21:39:26 +00:00
committed by Git OBS Bridge
parent 5ee39ffbc4
commit 0dc59d146e
3 changed files with 38 additions and 1 deletions

View File

@@ -0,0 +1,27 @@
From d341995f6c3bf19be3bf7038e82d6cd6ff868a5c Mon Sep 17 00:00:00 2001
From: Martin Vidner <martin@vidner.net>
Date: Mon, 29 Apr 2013 23:23:32 +0200
Subject: [PATCH] test: fix OBS build
If I leave the port and family unspecified for the testing bus
then it starts to work in the openSUSE Build Service. I don't know why.
---
test/dbus-limited-session.conf | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/dbus-limited-session.conf b/test/dbus-limited-session.conf
index 9f1cf02..3ade98b 100644
--- a/test/dbus-limited-session.conf
+++ b/test/dbus-limited-session.conf
@@ -8,7 +8,7 @@
<type>session</type>
<listen>unix:tmpdir=/tmp</listen>
- <listen>tcp:host=127.0.0.1,port=0,family=ipv4</listen>
+ <listen>tcp:host=127.0.0.1</listen>
<standard_session_servicedirs />
--
1.8.1.4

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Apr 29 21:31:03 UTC 2013 - mvidner@suse.cz
- fixed build: unspecify port and address family
-------------------------------------------------------------------
Tue Apr 23 15:25:17 UTC 2013 - mvidner@suse.cz

View File

@@ -41,6 +41,7 @@ BuildRequires: ruby-devel >= 1.8.7
#
Url: https://trac.luon.net/ruby-dbus
Source: %{mod_full_name}.gem
Source1: 0001-test-fix-OBS-build.patch
#
Summary: Ruby module for interaction with D-Bus
%description
@@ -62,9 +63,13 @@ Requires: %{name} = %{version}
Test::Unit or RSpec files, useful for developers.
%prep
%gem_unpack
patch -p1 < %{S:1}
%gem_build
%build
%install
%gem_install %{S:0}
%gem_install -f
%check
cd %{buildroot}/%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_name}-%{version}/test