public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: app-pda/libusbmuxd/files/, app-pda/libusbmuxd/
@ 2023-02-12 10:21 Matthew Smith
  0 siblings, 0 replies; only message in thread
From: Matthew Smith @ 2023-02-12 10:21 UTC (permalink / raw
  To: gentoo-commits

commit:     bd85cb926a5d1c7f88eefcb22fa3272a40637f9c
Author:     Matthew Smith <matthew <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 12 10:20:32 2023 +0000
Commit:     Matthew Smith <matthew <AT> gentoo <DOT> org>
CommitDate: Sun Feb 12 10:20:32 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bd85cb92

app-pda/libusbmuxd: fix configure breakage with clang-16

Closes: https://bugs.gentoo.org/893910
Signed-off-by: Matthew Smith <matthew <AT> gentoo.org>

 .../files/libusbmuxd-2.0.2-configure.patch         | 32 +++++++++++++++++
 app-pda/libusbmuxd/libusbmuxd-2.0.2-r2.ebuild      | 40 ++++++++++++++++++++++
 2 files changed, 72 insertions(+)

diff --git a/app-pda/libusbmuxd/files/libusbmuxd-2.0.2-configure.patch b/app-pda/libusbmuxd/files/libusbmuxd-2.0.2-configure.patch
new file mode 100644
index 000000000000..e8db338d65b7
--- /dev/null
+++ b/app-pda/libusbmuxd/files/libusbmuxd-2.0.2-configure.patch
@@ -0,0 +1,32 @@
+From 84fb81483703dfcc26e784256b6a19d75e8e58ee Mon Sep 17 00:00:00 2001
+From: Matthew Smith <matthew@gentoo.org>
+Date: Sun, 12 Feb 2023 10:18:02 +0000
+Subject: [PATCH] autoconf: Fix -Wint-conversion in test
+
+-Wint-conversion becomes an error by default in clang-16, causing the
+program_invocation_short_name test to fail.
+
+Bug: https://bugs.gentoo.org/893910
+--- a/configure.ac
++++ b/configure.ac
+@@ -87,7 +87,7 @@ case ${host_os} in
+     ])
+     AC_CHECK_FUNCS([pselect])
+     AC_CACHE_CHECK(for program_invocation_short_name, ac_cv_program_invocation_short_name,[
+-        AC_TRY_LINK([extern char* program_invocation_short_name;],[return program_invocation_short_name;],
++        AC_TRY_LINK([extern char* program_invocation_short_name;],[return program_invocation_short_name[0];],
+             [ac_cv_program_invocation_short_name=yes],
+             [ac_cv_program_invocation_short_name=no]
+         )
+@@ -95,7 +95,7 @@ case ${host_os} in
+     if test "x$ac_cv_program_invocation_short_name" = "xyes"; then
+         AC_DEFINE(HAVE_PROGRAM_INVOCATION_SHORT_NAME, 1, [Define if you have program_invocation_short_name])
+         AC_CACHE_CHECK(if program_invocation_short_name is declared in errno.h, ac_cv_program_invocation_short_name_errno_h,[
+-            AC_TRY_LINK([#include <errno.h>],[return program_invocation_short_name;],
++            AC_TRY_LINK([#include <errno.h>],[return program_invocation_short_name[0];],
+                 [ac_cv_program_invocation_short_name_errno_h=yes],
+                 [ac_cv_program_invocation_short_name_errno_h=no]
+             )
+-- 
+2.39.1
+

diff --git a/app-pda/libusbmuxd/libusbmuxd-2.0.2-r2.ebuild b/app-pda/libusbmuxd/libusbmuxd-2.0.2-r2.ebuild
new file mode 100644
index 000000000000..ecc027368941
--- /dev/null
+++ b/app-pda/libusbmuxd/libusbmuxd-2.0.2-r2.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools
+
+DESCRIPTION="USB multiplex daemon for use with Apple iPhone/iPod Touch devices"
+HOMEPAGE="https://www.libimobiledevice.org/"
+SRC_URI="https://cgit.libimobiledevice.org/${PN}.git/snapshot/${P}.tar.bz2"
+LICENSE="GPL-2+ LGPL-2.1+" # tools/*.c is GPL-2+, rest is LGPL-2.1+
+SLOT="0/2.0-6" # based on SONAME of libusbmuxd-2.0.so
+KEYWORDS="amd64 ~arm ~arm64 ~loong ppc ~ppc64 ~riscv x86"
+IUSE="static-libs"
+
+RDEPEND="
+	>=app-pda/libplist-2.2.0:=
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+	virtual/pkgconfig
+"
+
+PATCHES=( "${FILESDIR}"/libusbmuxd-2.0.2-configure.patch )
+
+src_prepare() {
+	default
+	eautoreconf
+}
+
+src_configure() {
+	econf \
+		$(use_enable static-libs static) \
+		$(usex kernel_linux '' --without-inotify)
+}
+
+src_install() {
+	default
+	find "${D}" -name '*.la' -type f -delete || die
+}


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2023-02-12 10:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-12 10:21 [gentoo-commits] repo/gentoo:master commit in: app-pda/libusbmuxd/files/, app-pda/libusbmuxd/ Matthew Smith

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox