From 90eaa3a4696baf45d80c08cfc5aa4daf939aa4f6 Mon Sep 17 00:00:00 2001 From: Mateusz Sylwestrzak Date: Tue, 13 Oct 2026 20:23:09 +0200 Subject: [PATCH] libcdio-paranoia: update to 10.2+2.0.2 --- srcpkgs/libcdio-paranoia/patches/musl.patch | 60 +++++++++++++++++++++ srcpkgs/libcdio-paranoia/template | 8 +-- 2 files changed, 65 insertions(+), 3 deletions(-) create mode 100644 srcpkgs/libcdio-paranoia/patches/musl.patch diff --git a/srcpkgs/libcdio-paranoia/patches/musl.patch b/srcpkgs/libcdio-paranoia/patches/musl.patch new file mode 100644 index 00000000000000..b6ef64b623f081 --- /dev/null +++ b/srcpkgs/libcdio-paranoia/patches/musl.patch @@ -0,0 +1,60 @@ +From c12e48edc5660c70509142349f4020d3f9e36218 Mon Sep 17 00:00:00 2001 +From: "R. Bernstein" +Date: Wed, 1 Oct 2025 15:32:52 -0400 +Subject: [PATCH] Remove a GCC-15 error on getopt.c + +Fixes Issue #54 +--- + src/getopt.c | 4 ++-- + src/getopt.h | 11 +++++++++-- + 2 files changed, 11 insertions(+), 4 deletions(-) + +diff --git a/src/getopt.c b/src/getopt.c +index e51c35b..dce7144 100644 +--- a/src/getopt.c ++++ b/src/getopt.c +@@ -2,7 +2,7 @@ + NOTE: getopt is part of the C library, so if you don't know what + "Keep this file name-space clean" means, talk to drepper@gnu.org + before changing it! +- Copyright (C) 1987-2014 Free Software Foundation, Inc. ++ Copyright (C) 1987-2015 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or +@@ -147,7 +147,7 @@ + whose names are inconsistent. */ + + #ifndef getenv +-extern char *getenv (); ++extern char *getenv (const char *); + #endif + + #endif /* not __GNU_LIBRARY__ */ +diff --git a/src/getopt.h b/src/getopt.h +index 7cc9167..0a6c1b3 100644 +--- a/src/getopt.h ++++ b/src/getopt.h +@@ -1,5 +1,5 @@ + /* Declarations for getopt. +- Copyright (C) 1989-2014 Free Software Foundation, Inc. ++ Copyright (C) 1989-2015 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or +@@ -141,7 +141,14 @@ struct option { + arguments to the option '\0'. This behavior is specific to the GNU + `getopt'. */ + +-#ifdef __GNU_LIBRARY__ ++/* Check for musl C library ( is musl specific). */ ++#if !defined __GLIBC__ && __has_include() ++# ifndef __MUSL__ ++# define __MUSL__ 1 ++# endif ++#endif ++ ++#if defined __GLIBC__ || defined __MUSL__ + /* Many other libraries have conflicting prototypes for getopt, with + differences in the consts, in stdlib.h. To avoid compilation + errors, only prototype getopt for the GNU C library. */ diff --git a/srcpkgs/libcdio-paranoia/template b/srcpkgs/libcdio-paranoia/template index ea6865e9de3c7f..fea4b35b2f32cf 100644 --- a/srcpkgs/libcdio-paranoia/template +++ b/srcpkgs/libcdio-paranoia/template @@ -1,6 +1,6 @@ # Template file for 'libcdio-paranoia' pkgname=libcdio-paranoia -version=10.2+2.0.1 +version=10.2+2.0.2 revision=1 build_style=gnu-configure configure_args="--enable-cpp-progs --disable-example-progs" @@ -10,8 +10,10 @@ short_desc="CD paranoia utility/libraries from libcdio" maintainer="Orphaned " license="GPL-3.0-or-later" homepage="https://www.gnu.org/software/libcdio/" -distfiles="${GNU_SITE}/libcdio/$pkgname-$version.tar.bz2" -checksum=33b1cf305ccfbfd03b43936975615000ce538b119989c4bec469577570b60e8a +changelog="https://github.com/libcdio/libcdio-paranoia/releases" +distfiles="${GNU_SITE}/libcdio/libcdio-paranoia-$version.tar.bz2" +checksum=186892539dedd661276014d71318c8c8f97ecb1250a86625256abd4defbf0d0c +make_check=no # the official tarball does not include .BIN test data pre_configure() { autoreconf -fi