libgpod rebuild

This commit is contained in:
Rmys
2020-06-24 15:29:40 +03:00
committed by GitHub
parent 829feb1ab9
commit f7f40098a4
4 changed files with 47 additions and 0 deletions
+1
View File
@@ -10,6 +10,7 @@ from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
def setup():
autotools.autoreconf("-fiv")
autotools.configure("\
--with-html-dir=/usr/share/doc/%s/html \
--with-temp-mount-dir=/run/libgpod \
@@ -0,0 +1,27 @@
From 46d147703337b5ab9e81266869e41c89e6481e08 Mon Sep 17 00:00:00 2001
From: Bastien Nocera <hadess@hadess.net>
Date: Wed, 17 Jun 2020 11:52:43 +0200
Subject: [PATCH] configure.ac: Add support for libplist 2.2
---
configure.ac | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index c4ffeaf..c3a7a9d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -42,7 +42,9 @@ AC_CHECK_FUNCS([localtime_r])
AC_CHECK_MEMBERS([struct tm.tm_gmtoff],,,[#include <time.h>])
dnl sqlite3 is needed for newer ipod models (nano5g), and libplist is needed
dnl by libgpod sqlite code
-PKG_CHECK_MODULES(LIBGPOD, glib-2.0 >= 2.16.0 gobject-2.0 sqlite3 libplist >= 1.0 gmodule-2.0)
+LIBPLIST_DEP=libplist
+PKG_CHECK_EXISTS(libplist-2.0, LIBPLIST_DEP=libplist-2.0)
+PKG_CHECK_MODULES(LIBGPOD, glib-2.0 >= 2.16.0 gobject-2.0 sqlite3 $LIBPLIST_DEP >= 1.0 gmodule-2.0)
dnl ***************************************************
dnl The following functions are only available starting
--
2.26.2
@@ -0,0 +1,15 @@
--- tools/90-libgpod.rules.in~ 2011-07-24 06:03:29.000000000 -0500
+++ tools/90-libgpod.rules.in 2019-10-15 15:50:28.279770507 -0500
@@ -16,10 +16,10 @@
# "iPods" using the afc protocol (iPhone, iPod Touch, ...)
-ACTION=="add|change", ENV{USBMUX_SUPPORTED}=="1", IMPORT{program}+="@udevdir@/iphone-set-info", GOTO="libgpod_end"
+ACTION=="add|change", ENV{USBMUX_SUPPORTED}=="1", IMPORT{program}=="@udevdir@/iphone-set-info", GOTO="libgpod_end"
# with a new enough usbmuxd, the rule below is not useful since it will
# take care of setting USBMUX_SUPPORTED for all supported devices. Keep
# this rule for now until distros ship a new enough usbmuxd
-ACTION=="add|change", SUBSYSTEM=="usb", ATTR{idVendor}=="05ac", ATTR{idProduct}=="129[0-9a]", IMPORT{program}+="@udevdir@/iphone-set-info"
+ACTION=="add|change", SUBSYSTEM=="usb", ATTR{idVendor}=="05ac", ATTR{idProduct}=="129[0-9a]", IMPORT{program}=="@udevdir@/iphone-set-info"
LABEL="libgpod_end"
+4
View File
@@ -15,6 +15,7 @@
<Archive sha1sum="5b5f692fef880d714dad71aa21e1737258fa878c" type="tarbz2">mirrors://sourceforge/gtkpod/libgpod-0.8.3.tar.bz2</Archive>
<BuildDependencies>
<Dependency>intltool</Dependency>
<Dependency>libusb-devel</Dependency>
<Dependency>sqlite-devel</Dependency>
<Dependency>python-devel</Dependency>
<Dependency>gtk-doc</Dependency>
@@ -32,6 +33,8 @@
<Patch level="1">0001-323-Segmentation-fault-when-opening-ipod.patch</Patch>
<Patch level="1">libgpod-0.8.2-pkgconfig_overlinking.patch</Patch>
<Patch level="1">libgpod-fixswig.patch</Patch>
<Patch>libgpod-udev.patch</Patch>
<Patch level="1">0001-configure.ac-Add-support-for-libplist-2.2.patch</Patch>
</Patches>
</Source>
@@ -41,6 +44,7 @@
<Dependency>zlib</Dependency>
<Dependency>glib2</Dependency>
<Dependency>sqlite</Dependency>
<Dependency>libusb</Dependency>
<Dependency>libxml2</Dependency>
<Dependency>libplist</Dependency>
<Dependency>sg3_utils</Dependency>