[packages/eb] Rel 6
arekm
arekm at pld-linux.org
Thu May 21 15:25:01 CEST 2026
commit e0b9556c6bb2faafec96d28f42e118c6a6406f15
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu May 21 15:24:44 2026 +0200
Rel 6
eb-c99.patch | 31 +++++++++++++++++++++++++++++++
eb-lock.patch | 11 +++++++++++
eb.spec | 7 ++++++-
3 files changed, 48 insertions(+), 1 deletion(-)
---
diff --git a/eb.spec b/eb.spec
index befb923..9a7da45 100644
--- a/eb.spec
+++ b/eb.spec
@@ -7,12 +7,14 @@ Summary: Library for accessing CD-ROM books
Summary(pl.UTF-8): Biblioteka dostępu do książek na płytach CD-ROM
Name: eb
Version: 4.4.3
-Release: 5
+Release: 6
License: BSD
Group: Libraries
Source0: ftp://ftp.sra.co.jp/pub/misc/eb/%{name}-%{version}.tar.bz2
# Source0-md5: 17dd1fade7ba0b82ce6e60f19fcbc823
Patch0: %{name}-link.patch
+Patch1: %{name}-lock.patch
+Patch2: %{name}-c99.patch
URL: https://github.com/yasuhirokimura/eb
BuildRequires: autoconf >= 2.54
BuildRequires: automake
@@ -85,6 +87,8 @@ Dokumentacja API biblioteki EB.
%prep
%setup -q
%patch -P0 -p1
+%patch -P1 -p1
+%patch -P2 -p1
%build
%{__libtoolize}
@@ -93,6 +97,7 @@ Dokumentacja API biblioteki EB.
%{__autoheader}
%{__automake}
%configure \
+ CPPFLAGS="%{rpmcppflags}" \
--enable-samples \
--enable-pthread \
--enable-ebnet \
diff --git a/eb-c99.patch b/eb-c99.patch
new file mode 100644
index 0000000..9c64193
--- /dev/null
+++ b/eb-c99.patch
@@ -0,0 +1,31 @@
+--- eb-4.4.3/libebutils/getopt.c.orig
++++ eb-4.4.3/libebutils/getopt.c
+@@ -87,8 +87,6 @@
+
+ #define EMSG ""
+
+-extern char *getenv();
+-
+ static int getopt_internal(int nargc, char * const *nargv,
+ const char *options);
+ static int gcd(int a, int b);
+--- eb-4.4.3/libebutils/puts_eucjp.c.orig
++++ eb-4.4.3/libebutils/puts_eucjp.c
+@@ -59,7 +59,7 @@ fputs_eucjp_to_locale(const char *string
+ char *buffer = NULL;
+ size_t buffer_size;
+ iconv_t cd = (iconv_t)-1;
+- const char *in_p;
++ char *in_p;
+ char *out_p;
+ size_t in_left;
+ size_t out_left;
+@@ -89,7 +89,7 @@ fputs_eucjp_to_locale(const char *string
+ if (buffer == NULL)
+ goto failed;
+
+- in_p = string;
++ in_p = (char *)string;
+ in_left = string_length + 1;
+ out_p = buffer;
+ out_left = buffer_size;
diff --git a/eb-lock.patch b/eb-lock.patch
new file mode 100644
index 0000000..340725f
--- /dev/null
+++ b/eb-lock.patch
@@ -0,0 +1,11 @@
+--- eb-4.4.3/eb/readtext.c.orig 2010-03-08 13:18:28.000000000 +0100
++++ eb-4.4.3/eb/readtext.c
+@@ -1560,7 +1560,7 @@ eb_is_text_stopped(EB_Book *book)
+ {
+ int is_stopped = 0;
+
+- eb_lock(book);
++ eb_lock(&book->lock);
+ LOG(("in: eb_is_text_stopped(book=%d)", (int)book->code));
+
+ if (book->subbook_current != NULL) {
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/eb.git/commitdiff/e0b9556c6bb2faafec96d28f42e118c6a6406f15
More information about the pld-cvs-commit
mailing list