[packages/libkarma] Rel 2
arekm
arekm at pld-linux.org
Sun Mar 15 10:50:46 CET 2026
commit 2c5f14965144f51191b91151a18d1ebb022484fc
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sun Mar 15 10:50:39 2026 +0100
Rel 2
libkarma-gcc14.patch | 31 +++++++++++++++++++++++++++++++
libkarma-mcs.patch | 10 ++++++++++
libkarma.spec | 8 +++++++-
3 files changed, 48 insertions(+), 1 deletion(-)
---
diff --git a/libkarma.spec b/libkarma.spec
index 3719196..4ebf271 100644
--- a/libkarma.spec
+++ b/libkarma.spec
@@ -1,12 +1,14 @@
Summary: Rio Karma access library
Name: libkarma
Version: 0.1.2
-Release: 1
+Release: 2
License: GPL v2+
Group: Libraries
Source0: http://www.freakysoft.de/libkarma/%{name}-%{version}.tar.gz
# Source0-md5: 2fe636b011dca1cd2a78cd189b891ed8
Patch0: %{name}-makefile.patch
+Patch1: %{name}-gcc14.patch
+Patch2: %{name}-mcs.patch
URL: http://www.freakysoft.de/libkarma/
BuildRequires: mono-csharp
BuildRequires: taglib-devel
@@ -69,8 +71,12 @@ Pliki programistyczne karma#.
%prep
%setup -q
%patch -P0 -p1
+%patch -P1 -p1
+%patch -P2 -p1
%build
+CFLAGS="%{rpmcflags}" \
+LDFLAGS="%{rpmldflags}" \
%{__make} -j1 \
CC="%{__cc}"
diff --git a/libkarma-gcc14.patch b/libkarma-gcc14.patch
new file mode 100644
index 0000000..b48961b
--- /dev/null
+++ b/libkarma-gcc14.patch
@@ -0,0 +1,31 @@
+--- libkarma-0.1.2/src/karma.c.orig 2011-03-26 10:23:43.000000000 +0100
++++ libkarma-0.1.2/src/karma.c 2026-03-15 02:05:35.136571351 +0100
+@@ -29,16 +29,14 @@
+ #ifdef __USE_ISOC99
+ #define set_usb_ptr(x) .lk_karma_ ##x = lk_karmaUsb_ ##x
+ #define set_lan_ptr(x) .lk_karma_ ##x = lk_karmaLan_ ##x
+-#define set_unimpl(x) .lk_karma_ ##x = unimpl
+-#define set_unimpl_cast(x,y) (y) unimpl
++#define set_unimpl(x) .lk_karma_ ##x = (typeof(((struct lk_ops *)0)->lk_karma_ ##x)) (void (*)(void)) unimpl
+ #else
+ #define set_usb_ptr(x) lk_karmaUsb_ ##x
+ #define set_lan_ptr(x) lk_karmaLan_ ##x
+-#define set_unimpl(x) unimpl
+-#define set_unimpl_cast(x,y) (y) unimpl
++#define set_unimpl(x) (typeof(((struct lk_ops *)0)->lk_karma_ ##x)) (void (*)(void)) unimpl
+ #endif
+
+-static int unimpl()
++static int unimpl(void)
+ {
+ lk_errors_set(E_UNIMPLEM);
+ return 0;
+@@ -68,7 +66,7 @@
+ set_unimpl(format_storage),
+ set_unimpl(device_operation),
+ set_usb_ptr(load_database),
+- set_unimpl_cast(update_database, void (*)()),
++ set_unimpl(update_database),
+ set_usb_ptr(write_smalldb),
+ set_usb_ptr(fidToPath),
+ };
diff --git a/libkarma-mcs.patch b/libkarma-mcs.patch
new file mode 100644
index 0000000..0d9cf03
--- /dev/null
+++ b/libkarma-mcs.patch
@@ -0,0 +1,10 @@
+--- libkarma-0.1.2/karma-sharp/Makefile.orig 2011-03-26 10:23:43.000000000 +0100
++++ libkarma-0.1.2/karma-sharp/Makefile 2026-03-15 02:06:56.935267208 +0100
+@@ -1,6 +1,6 @@
+ ASSEMBLY_SOURCES=Song.cs Device.cs
+ ASSEMBLY_RESOURCES=
+-MCS=$(shell which gmcs)
++MCS=$(shell which mcs)
+ MCS_FLAGS = -debug
+
+ ifeq ($(MCS),)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libkarma.git/commitdiff/2c5f14965144f51191b91151a18d1ebb022484fc
More information about the pld-cvs-commit
mailing list