Fix net/dleyna/server on sparc64

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Fix net/dleyna/server on sparc64

Kurt Mosiejczuk-9
Based on a pointer from charlene this pulls a patch from upstream that
makes dleyna-server build on sparc64.

This should get a number of ports working that need dleyna server.
(rhythmbox and a number of gnome ports)

ok?

--Kurt

Index: Makefile
===================================================================
RCS file: /cvs/ports/net/dleyna/server/Makefile,v
retrieving revision 1.5
diff -u -p -r1.5 Makefile
--- Makefile 10 Feb 2019 12:57:13 -0000 1.5
+++ Makefile 24 Mar 2020 02:10:03 -0000
@@ -3,7 +3,7 @@
 COMMENT= service for interacting with DMSes
 
 GH_PROJECT= dleyna-server
-REVISION= 0
+REVISION= 1
 
 SHARED_LIBS += dleyna-server-1.0         0.0 # 1.3
 
Index: patches/patch-libdleyna_server_upnp_c
===================================================================
RCS file: patches/patch-libdleyna_server_upnp_c
diff -N patches/patch-libdleyna_server_upnp_c
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-libdleyna_server_upnp_c 24 Mar 2020 02:10:03 -0000
@@ -0,0 +1,20 @@
+$OpenBSD$
+
+Stop using deprecated gupnp_context_get_host_ip
+
+https://github.com/intel/dleyna-server/pull/161
+
+Index: libdleyna/server/upnp.c
+--- libdleyna/server/upnp.c.orig
++++ libdleyna/server/upnp.c
+@@ -351,8 +351,8 @@ static void prv_device_unavailable_cb(GUPnPControlPoin
+
+ udn = gupnp_device_info_get_udn((GUPnPDeviceInfo *)proxy);
+
+- ip_address = gupnp_context_get_host_ip(
+- gupnp_control_point_get_context(cp));
++ ip_address = gssdp_client_get_host_ip(
++ GSSDP_CLIENT(gupnp_control_point_get_context(cp)));
+
+ if (!udn || !ip_address)
+ goto on_error;
Index: patches/patch-test_dbus_dms-info_c
===================================================================
RCS file: patches/patch-test_dbus_dms-info_c
diff -N patches/patch-test_dbus_dms-info_c
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-test_dbus_dms-info_c 24 Mar 2020 02:10:03 -0000
@@ -0,0 +1,16 @@
+$OpenBSD$
+
+https://github.com/intel/dleyna-server/pull/161
+
+Index: test/dbus/dms-info.c
+--- test/dbus/dms-info.c.orig
++++ test/dbus/dms-info.c
+@@ -360,8 +360,6 @@ int main(int argc, char *argv[])
+ if (sigprocmask(SIG_BLOCK, &mask, NULL) == -1)
+ goto on_error;
+
+- g_type_init();
+-
+ /* Create proxy for com.intel.dLeynaServer.Manager.  The Manager
+ object has no properties.  We will create the proxy asynchronously
+ and use G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES to ensure that

Reply | Threaded
Open this post in threaded view
|

Re: Fix net/dleyna/server on sparc64

Jeremie Courreges-Anglas-2
On Tue, Mar 24 2020, Kurt Mosiejczuk <[hidden email]> wrote:
> Based on a pointer from charlene this pulls a patch from upstream that
> makes dleyna-server build on sparc64.
>
> This should get a number of ports working that need dleyna server.
> (rhythmbox and a number of gnome ports)
>
> ok?

ok jca@

--
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE

Reply | Threaded
Open this post in threaded view
|

Re: Fix net/dleyna/server on sparc64

Antoine Jacoutot-7
In reply to this post by Kurt Mosiejczuk-9
On Tue, Mar 24, 2020 at 10:14:12AM -0400, Kurt Mosiejczuk wrote:
> Based on a pointer from charlene this pulls a patch from upstream that
> makes dleyna-server build on sparc64.
>
> This should get a number of ports working that need dleyna server.
> (rhythmbox and a number of gnome ports)
>
> ok?

Sure.

>
> --Kurt
>
> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/net/dleyna/server/Makefile,v
> retrieving revision 1.5
> diff -u -p -r1.5 Makefile
> --- Makefile 10 Feb 2019 12:57:13 -0000 1.5
> +++ Makefile 24 Mar 2020 02:10:03 -0000
> @@ -3,7 +3,7 @@
>  COMMENT= service for interacting with DMSes
>  
>  GH_PROJECT= dleyna-server
> -REVISION= 0
> +REVISION= 1
>  
>  SHARED_LIBS += dleyna-server-1.0         0.0 # 1.3
>  
> Index: patches/patch-libdleyna_server_upnp_c
> ===================================================================
> RCS file: patches/patch-libdleyna_server_upnp_c
> diff -N patches/patch-libdleyna_server_upnp_c
> --- /dev/null 1 Jan 1970 00:00:00 -0000
> +++ patches/patch-libdleyna_server_upnp_c 24 Mar 2020 02:10:03 -0000
> @@ -0,0 +1,20 @@
> +$OpenBSD$
> +
> +Stop using deprecated gupnp_context_get_host_ip
> +
> +https://github.com/intel/dleyna-server/pull/161
> +
> +Index: libdleyna/server/upnp.c
> +--- libdleyna/server/upnp.c.orig
> ++++ libdleyna/server/upnp.c
> +@@ -351,8 +351,8 @@ static void prv_device_unavailable_cb(GUPnPControlPoin
> +
> + udn = gupnp_device_info_get_udn((GUPnPDeviceInfo *)proxy);
> +
> +- ip_address = gupnp_context_get_host_ip(
> +- gupnp_control_point_get_context(cp));
> ++ ip_address = gssdp_client_get_host_ip(
> ++ GSSDP_CLIENT(gupnp_control_point_get_context(cp)));
> +
> + if (!udn || !ip_address)
> + goto on_error;
> Index: patches/patch-test_dbus_dms-info_c
> ===================================================================
> RCS file: patches/patch-test_dbus_dms-info_c
> diff -N patches/patch-test_dbus_dms-info_c
> --- /dev/null 1 Jan 1970 00:00:00 -0000
> +++ patches/patch-test_dbus_dms-info_c 24 Mar 2020 02:10:03 -0000
> @@ -0,0 +1,16 @@
> +$OpenBSD$
> +
> +https://github.com/intel/dleyna-server/pull/161
> +
> +Index: test/dbus/dms-info.c
> +--- test/dbus/dms-info.c.orig
> ++++ test/dbus/dms-info.c
> +@@ -360,8 +360,6 @@ int main(int argc, char *argv[])
> + if (sigprocmask(SIG_BLOCK, &mask, NULL) == -1)
> + goto on_error;
> +
> +- g_type_init();
> +-
> + /* Create proxy for com.intel.dLeynaServer.Manager.  The Manager
> + object has no properties.  We will create the proxy asynchronously
> + and use G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES to ensure that

--
Antoine