From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E4548158020 for ; Fri, 16 Dec 2022 05:11:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CF313E086F; Fri, 16 Dec 2022 05:11:10 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 96007E086C for ; Fri, 16 Dec 2022 05:11:10 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C762F340ECB for ; Fri, 16 Dec 2022 05:11:09 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EFF0C7CE for ; Fri, 16 Dec 2022 05:11:06 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1671167330.6ab939e7cafa7b560904b3839eaeabb3adafca7e.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libgpod/files/, media-libs/libgpod/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/libgpod/files/libgpod-0.8.3-implicit-int.patch media-libs/libgpod/libgpod-0.8.3-r6.ebuild X-VCS-Directories: media-libs/libgpod/ media-libs/libgpod/files/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 6ab939e7cafa7b560904b3839eaeabb3adafca7e X-VCS-Branch: master Date: Fri, 16 Dec 2022 05:11:06 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: d7dd6ccc-7f36-426a-9118-3ea0ded68be9 X-Archives-Hash: 98de34476bd050fd129cc9c5e61c927f commit: 6ab939e7cafa7b560904b3839eaeabb3adafca7e Author: Pascal Jäger leimstift de> AuthorDate: Sun Dec 11 19:47:29 2022 +0000 Commit: Sam James gentoo org> CommitDate: Fri Dec 16 05:08:50 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ab939e7 media-libs/libgpod: fix build for clang16, fix other bugs - rm /tmp only when USE=udev - call udev_reload when USE=udev - fix implicit int Closes: https://bugs.gentoo.org/822144 Closes: https://bugs.gentoo.org/847415 Closes: https://bugs.gentoo.org/885349 Signed-off-by: Pascal Jäger leimstift.de> Closes: https://github.com/gentoo/gentoo/pull/28640 Signed-off-by: Sam James gentoo.org> .../libgpod/files/libgpod-0.8.3-implicit-int.patch | 19 ++++++ media-libs/libgpod/libgpod-0.8.3-r6.ebuild | 78 ++++++++++++++++++++++ 2 files changed, 97 insertions(+) diff --git a/media-libs/libgpod/files/libgpod-0.8.3-implicit-int.patch b/media-libs/libgpod/files/libgpod-0.8.3-implicit-int.patch new file mode 100644 index 000000000000..91219dd64a4f --- /dev/null +++ b/media-libs/libgpod/files/libgpod-0.8.3-implicit-int.patch @@ -0,0 +1,19 @@ +Clang16 will not allow implicit integers by default. + +Bug: https://bugs.gentoo.org/885349 +Patch has been sent upstream here: https://sourceforge.net/p/gtkpod/patches/47/ + +Pascal Jäger (2022-12-11) + +--- a/tools/generic-callout.c ++++ b/tools/generic-callout.c +@@ -663,8 +663,7 @@ static gboolean write_sysinfo_extended (const char *mountpoint, + return success; + } + +- +-static char *get_info_from_usb (usb_bus_number, usb_device_number) ++static char *get_info_from_usb (guint usb_bus_number,guint usb_device_number) + { + #ifdef HAVE_LIBUSB + return read_sysinfo_extended_from_usb (usb_bus_number, diff --git a/media-libs/libgpod/libgpod-0.8.3-r6.ebuild b/media-libs/libgpod/libgpod-0.8.3-r6.ebuild new file mode 100644 index 000000000000..32255f4daaf5 --- /dev/null +++ b/media-libs/libgpod/libgpod-0.8.3-r6.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools udev + +DESCRIPTION="Shared library to access the contents of an iPod" +HOMEPAGE="http://www.gtkpod.org/libgpod/" +SRC_URI="mirror://sourceforge/gtkpod/${P}.tar.bz2" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~riscv ~x86" +IUSE="+gtk ios +udev" + +RDEPEND=" + >=app-pda/libplist-1.0:= + >=dev-db/sqlite-3:3 + >=dev-libs/glib-2.16:2 + dev-libs/libxml2:2 + sys-apps/sg3_utils:0= + gtk? ( x11-libs/gdk-pixbuf:2 ) + ios? ( app-pda/libimobiledevice:= ) + udev? ( virtual/udev ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + dev-libs/libxslt + dev-util/intltool + dev-util/gtk-doc-am + sys-devel/gettext + virtual/pkgconfig +" + +DOCS=( AUTHORS NEWS README{,.overview,.sqlite,.SysInfo} TROUBLESHOOTING ) + +PATCHES=( + "${FILESDIR}"/${P}-comment.patch # bug 537968 + "${FILESDIR}"/${P}-segfault.patch # bug 565052 + "${FILESDIR}"/${P}-pkgconfig_overlinking.patch + "${FILESDIR}"/${P}-implicit-int.patch +) + +src_prepare() { + default + eautoreconf +} + +src_configure() { + local myeconfargs=( + --disable-pygobject + --disable-static + --without-hal + --without-mono + --without-python + --with-udev-dir="$(get_udevdir)" + $(use_enable gtk gdk-pixbuf) + $(use_with ios libimobiledevice) + $(use_enable udev) + ) + econf "${myeconfargs[@]}" +} + +src_install() { + default + rm "${ED}"/usr/$(get_libdir)/pkgconfig/libgpod-sharp.pc || die + use udev && rmdir "${ED}"/tmp || die + find "${ED}" -name '*.la' -type f -delete || die +} + +pkg_postinst() { + use udev && udev_reload +} + +pkg_postrm() { + use udev && udev_reload +}