public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: media-libs/libcddb/files/, media-libs/libcddb/
@ 2024-06-01  3:44 Sam James
  0 siblings, 0 replies; only message in thread
From: Sam James @ 2024-06-01  3:44 UTC (permalink / raw
  To: gentoo-commits

commit:     9200fde5b926191737a8380a08cffa2998013945
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Jun  1 03:43:51 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Jun  1 03:43:51 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9200fde5

media-libs/libcddb: EAPI 8, fix modern C issue

Closes: https://bugs.gentoo.org/919280
Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-libs/libcddb/files/libcddb-1.3.2-c99.patch | 14 ++++++
 media-libs/libcddb/libcddb-1.3.2-r2.ebuild       | 63 ++++++++++++++++++++++++
 2 files changed, 77 insertions(+)

diff --git a/media-libs/libcddb/files/libcddb-1.3.2-c99.patch b/media-libs/libcddb/files/libcddb-1.3.2-c99.patch
new file mode 100644
index 000000000000..20f7b3d8ea3f
--- /dev/null
+++ b/media-libs/libcddb/files/libcddb-1.3.2-c99.patch
@@ -0,0 +1,14 @@
+https://bugs.gentoo.org/919280
+https://src.fedoraproject.org/rpms/libcddb/blob/rawhide/f/pointer-types.patch
+--- a/lib/cddb_net.c
++++ b/lib/cddb_net.c
+@@ -329,7 +329,7 @@
+             default:
+                 /* we got connected, check error condition */
+                 l = sizeof(rv);
+-                getsockopt(sockfd, SOL_SOCKET, SO_ERROR, &rv, &l);
++                getsockopt(sockfd, SOL_SOCKET, SO_ERROR, &rv, (socklen_t * restrict)&l);
+                 if (rv) {
+                     /* something went wrong, simulate normal connect behaviour */
+                     errno = rv;
+

diff --git a/media-libs/libcddb/libcddb-1.3.2-r2.ebuild b/media-libs/libcddb/libcddb-1.3.2-r2.ebuild
new file mode 100644
index 000000000000..63506b46fe3b
--- /dev/null
+++ b/media-libs/libcddb/libcddb-1.3.2-r2.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools multilib-minimal
+
+DESCRIPTION="Library for accessing a CDDB server"
+HOMEPAGE="https://libcddb.sourceforge.net/"
+SRC_URI="https://downloads.sourceforge.net/${PN}/${P}.tar.bz2"
+
+LICENSE="LGPL-2+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc static-libs"
+
+RDEPEND=">=virtual/libiconv-0-r1[${MULTILIB_USEDEP}]"
+DEPEND="${RDEPEND}"
+BDEPEND="doc? ( app-text/doxygen )"
+
+RESTRICT="test"
+
+DOCS=( AUTHORS ChangeLog NEWS README THANKS TODO )
+
+MULTILIB_WRAPPED_HEADERS=( /usr/include/cddb/version.h )
+
+PATCHES=(
+	"${FILESDIR}"/${PN}-1.3.2-c99.patch
+)
+
+src_prepare() {
+	default
+	# Required for CONFIG_SHELL != bash (bug #528012)
+	eautoreconf
+}
+
+multilib_src_configure() {
+	local myeconfargs=(
+		--without-cdio
+		$(use_enable static-libs static)
+	)
+	ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
+}
+
+multilib_src_compile() {
+	default
+
+	if use doc ; then
+		cd "${S}"/doc || die
+		doxygen doxygen.conf || die
+	fi
+}
+
+multilib_src_install_all() {
+	default
+
+	find "${ED}" -type f -name "*.la" -delete || die
+
+	if use doc ; then
+		docinto html
+		dodoc "${S}"/doc/html/*
+	fi
+}


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

only message in thread, other threads:[~2024-06-01  3:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-01  3:44 [gentoo-commits] repo/gentoo:master commit in: media-libs/libcddb/files/, media-libs/libcddb/ Sam James

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