[packages/fatback] Rel 2
arekm
arekm at pld-linux.org
Thu May 21 15:37:07 CEST 2026
commit 623936dde68020f26e7eed43bdcb7221f6cd0c92
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu May 21 15:34:31 2026 +0200
Rel 2
fatback-build.patch | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++
fatback.spec | 13 ++++++++++---
2 files changed, 65 insertions(+), 3 deletions(-)
---
diff --git a/fatback.spec b/fatback.spec
index b7679f4..8166709 100644
--- a/fatback.spec
+++ b/fatback.spec
@@ -2,13 +2,15 @@ Summary: A forensic tool for recovering files from FAT file systems
Summary(pl.UTF-8): Narzędzie do odzyskiwania plików z partycji FAT
Name: fatback
Version: 1.3
-Release: 1
+Release: 2
License: GPL v2+
Group: Applications
Source0: http://dl.sourceforge.net/fatback/%{name}-%{version}.tar.gz
# Source0-md5: 4f1beb13670a7eff5b66cff84e5fd42a
+Patch0: %{name}-build.patch
URL: http://fatback.sourceforge.net/
BuildRequires: autoconf
+BuildRequires: automake
BuildRequires: flex
# Trash BR for configure
BuildRequires: libstdc++-devel
@@ -23,11 +25,16 @@ plików FAT.
%prep
%setup -q
+%patch -P0 -p1
%build
+cp -f /usr/share/automake/config.sub /usr/share/automake/config.guess .
%{__autoconf}
-%configure
-%{__make}
+%configure2_13
+%{__make} \
+ CFLAGS="%{rpmcflags}" \
+ CPPFLAGS="%{rpmcppflags} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE" \
+ LDFLAGS="%{rpmldflags}"
%install
rm -rf $RPM_BUILD_ROOT
diff --git a/fatback-build.patch b/fatback-build.patch
new file mode 100644
index 0000000..04a7777
--- /dev/null
+++ b/fatback-build.patch
@@ -0,0 +1,55 @@
+--- fatback-1.3.orig/output.c 2026-05-21 01:31:29.010729530 +0200
++++ fatback-1.3/output.c 2026-05-21 01:32:12.062242403 +0200
+@@ -54,7 +54,7 @@
+ /* get the verbosity level from the fatback symbol table */
+ if (!(verbose_var = get_fbvar("verbose"))) {
+ printf("Error reading variable\n");
+- return;
++ return -1;
+ } else {
+ verbose = verbose_var->val.ival;
+ free(verbose_var);
+--- fatback-1.3.orig/cmd_ls.c 2026-05-21 01:31:29.012959886 +0200
++++ fatback-1.3/cmd_ls.c 2026-05-21 01:32:12.062488775 +0200
+@@ -5,6 +5,7 @@
+
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <string.h>
+ #include <assert.h>
+ #include <time.h>
+ #include "interface.h"
+--- fatback-1.3.orig/cmd_cp.c 2026-05-21 01:31:29.014965298 +0200
++++ fatback-1.3/cmd_cp.c 2026-05-21 01:32:12.062637335 +0200
+@@ -5,6 +5,7 @@
+
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <string.h>
+ #include <unistd.h>
+ #include <limits.h>
+ #include "getopt.h"
+--- fatback-1.3.orig/cmd_set.c 2026-05-21 01:32:41.354053368 +0200
++++ fatback-1.3/cmd_set.c 2026-05-21 01:32:45.176219021 +0200
+@@ -17,8 +17,8 @@
+
+ void cmd_set(int argc, char *argv[])
+ {
+- extern void yyparse();
+- extern void yy_scan_string();
++ extern int yyparse(void);
++ extern void *yy_scan_string(const char *);
+
+ /* if the user just types 'set', then display the
+ * the current state of all the variables */
+--- fatback-1.3.orig/sety.y 2026-05-21 01:32:41.357670148 +0200
++++ fatback-1.3/sety.y 2026-05-21 01:32:49.546219021 +0200
+@@ -2,6 +2,8 @@
+ #include <stdlib.h>
+ #include "vars.h"
+ #include "interface_data.h"
++extern int yylex(void);
++void yyerror(char *s);
+ %}
+
+ %union {
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/fatback.git/commitdiff/623936dde68020f26e7eed43bdcb7221f6cd0c92
More information about the pld-cvs-commit
mailing list