[arch-commits] Commit in dleyna-server/trunk (PKGBUILD gupnp-1.2.diff)

Jan Steffens heftig at archlinux.org
Thu Mar 14 12:34:36 UTC 2019


    Date: Thursday, March 14, 2019 @ 12:34:35
  Author: heftig
Revision: 347973

0.6.0-2

Added:
  dleyna-server/trunk/gupnp-1.2.diff
Modified:
  dleyna-server/trunk/PKGBUILD

----------------+
 PKGBUILD       |   13 +++++++++----
 gupnp-1.2.diff |   34 ++++++++++++++++++++++++++++++++++
 2 files changed, 43 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-03-14 12:28:12 UTC (rev 347972)
+++ PKGBUILD	2019-03-14 12:34:35 UTC (rev 347973)
@@ -2,7 +2,7 @@
 
 pkgname=dleyna-server
 pkgver=0.6.0
-pkgrel=1
+pkgrel=2
 pkgdesc="Library to discover, browse and manipulate Digital Media Servers"
 arch=(x86_64)
 url="http://01.org/dleyna"
@@ -10,8 +10,10 @@
 depends=(dleyna-connector-dbus gupnp-av gupnp-dlna libsoup)
 makedepends=(git)
 _commit=776950d5d96ac9dbf5c5c47bde8ac06f50a3cf46  # tags/0.6.0
-source=("git+https://github.com/01org/dleyna-server#commit=$_commit")
-sha256sums=('SKIP')
+source=("git+https://github.com/01org/dleyna-server#commit=$_commit"
+        gupnp-1.2.diff)
+sha256sums=('SKIP'
+            '9954e8f8c46ad9ee42359b53332264821b27470dac6617e30f44e8961e1599d0')
 
 pkgver() {
   cd $pkgname
@@ -20,13 +22,16 @@
 
 prepare() {
   cd $pkgname
+  patch -Np1 -i ../gupnp-1.2.diff
   NOCONFIGURE=1 ./autogen.sh
 }
 
 build() {
   cd $pkgname
+  CFLAGS+=" -Wno-deprecated-declarations"
   ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
-    --disable-static --libexecdir=/usr/lib/$pkgname
+    --disable-static --libexecdir=/usr/lib
+  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
   make
 }
 

Added: gupnp-1.2.diff
===================================================================
--- gupnp-1.2.diff	                        (rev 0)
+++ gupnp-1.2.diff	2019-03-14 12:34:35 UTC (rev 347973)
@@ -0,0 +1,34 @@
+ configure.ac            | 4 ++--
+ libdleyna/server/upnp.c | 4 ++--
+ 2 files changed, 4 insertions(+), 4 deletions(-)
+
+diff --git c/configure.ac i/configure.ac
+index 11879e7..329294a 100644
+--- c/configure.ac
++++ i/configure.ac
+@@ -38,8 +38,8 @@ LT_LANG([C])
+ PKG_PROG_PKG_CONFIG(0.16)
+ PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.28])
+ PKG_CHECK_MODULES([GIO], [gio-2.0 >= 2.28])
+-PKG_CHECK_MODULES([GSSDP], [gssdp-1.0 >= 0.13.2])
+-PKG_CHECK_MODULES([GUPNP], [gupnp-1.0 >= 0.20.3])
++PKG_CHECK_MODULES([GSSDP], [gssdp-1.2 >= 1.2.0])
++PKG_CHECK_MODULES([GUPNP], [gupnp-1.2 >= 1.2.0])
+ PKG_CHECK_MODULES([GUPNPAV], [gupnp-av-1.0 >= 0.11.5])
+ PKG_CHECK_MODULES([GUPNPDLNA], [gupnp-dlna-2.0 >= 0.9.4])
+ PKG_CHECK_MODULES([SOUP], [libsoup-2.4 >= 2.28.2])
+diff --git c/libdleyna/server/upnp.c i/libdleyna/server/upnp.c
+index 9913a76..d04efb8 100755
+--- c/libdleyna/server/upnp.c
++++ i/libdleyna/server/upnp.c
+@@ -351,8 +351,8 @@ static void prv_device_unavailable_cb(GUPnPControlPoint *cp,
+ 
+ 	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;


More information about the arch-commits mailing list