[packages/lde] Rel 8
arekm
arekm at pld-linux.org
Mon Mar 9 19:33:45 CET 2026
commit da090a8223f154ebad82e4c6d3050d75297b9cb9
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Mon Mar 9 19:33:32 2026 +0100
Rel 8
lde-x32.patch | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
lde.spec | 4 +++-
2 files changed, 61 insertions(+), 1 deletion(-)
---
diff --git a/lde.spec b/lde.spec
index cf84679..f9d3b50 100644
--- a/lde.spec
+++ b/lde.spec
@@ -2,7 +2,7 @@ Summary: Linux Disk Editor
Summary(pl.UTF-8): Edytor systemów plików
Name: lde
Version: 2.6.1
-Release: 7
+Release: 8
License: GPL
Group: Applications/System
Source0: http://dl.sourceforge.net/lde/%{name}-%{version}.tar.gz
@@ -10,6 +10,7 @@ Source0: http://dl.sourceforge.net/lde/%{name}-%{version}.tar.gz
Patch0: %{name}-fix.patch
# Fixes for format-security, implicit declarations, gpm and GCC 14 compatibility
Patch1: %{name}-modern-fixes.patch
+Patch2: %{name}-x32.patch
URL: http://lde.sourceforge.net/
BuildRequires: bison
BuildRequires: gpm-devel
@@ -32,6 +33,7 @@ zwykły tryb binarny.
%setup -q -n %{name}
%patch -P0 -p1
%patch -P1 -p1
+%patch -P2 -p1
%build
%configure \
diff --git a/lde-x32.patch b/lde-x32.patch
new file mode 100644
index 0000000..bed0827
--- /dev/null
+++ b/lde-x32.patch
@@ -0,0 +1,58 @@
+diff -ur -x .depend -x config.status -x config.log -x Makefile -x swiped.a -x find_ext2_fs lde.orig/src/lde.h lde/src/lde.h
+--- lde.orig/src/lde.h 2026-03-09 19:28:57.179539921 +0100
++++ lde/src/lde.h 2026-03-09 19:28:21.829689715 +0100
+@@ -22,6 +22,8 @@
+ #define bzero(a,b) memset((a),0,(b))
+ #endif
+
++#include <time.h>
++
+ extern char *program_name;
+ extern char *device_name;
+
+@@ -69,15 +71,15 @@
+ unsigned long s_blocks_per_group; /* # Blocks per group */
+ unsigned long s_frags_per_group; /* # Fragments per group */
+ unsigned long s_inodes_per_group; /* # Inodes per group */
+- unsigned long s_mtime; /* Mount time */
+- unsigned long s_wtime; /* Write time */
++ time_t s_mtime; /* Mount time */
++ time_t s_wtime; /* Write time */
+ unsigned short s_mnt_count; /* Mount count */
+ short s_max_mnt_count; /* Maximal mount count */
+ unsigned short s_magic; /* Magic signature */
+ unsigned short s_state; /* File system state */
+ unsigned short s_errors; /* Behaviour when detecting errors */
+ unsigned short s_pad;
+- unsigned long s_lastcheck; /* time of last check */
++ time_t s_lastcheck; /* time of last check */
+ unsigned long s_checkinterval; /* max. time between checks */
+ unsigned long max_size;
+ unsigned long zonesize;
+@@ -102,10 +104,10 @@
+ unsigned short i_mode; /* File mode */
+ unsigned short i_uid; /* Owner Uid */
+ unsigned long i_size; /* Size in bytes */
+- unsigned long i_atime; /* Access time */
+- unsigned long i_ctime; /* Creation time */
+- unsigned long i_mtime; /* Modification time */
+- unsigned long i_dtime; /* Deletion Time */
++ time_t i_atime; /* Access time */
++ time_t i_ctime; /* Creation time */
++ time_t i_mtime; /* Modification time */
++ time_t i_dtime; /* Deletion Time */
+ unsigned short i_gid; /* Group Id */
+ unsigned short i_links_count; /* Links count */
+ unsigned long i_blocks; /* Blocks count */
+diff -ur -x .depend -x config.status -x config.log -x Makefile -x swiped.a -x find_ext2_fs lde.orig/src/main_lde.c lde/src/main_lde.c
+--- lde.orig/src/main_lde.c 2026-03-09 19:28:57.179742728 +0100
++++ lde/src/main_lde.c 2026-03-09 19:28:25.683023049 +0100
+@@ -591,7 +591,7 @@
+ if ((hasdata)&&(check_recover_file(GInode->i_zone, GInode->i_size))) {
+ printf("Inode 0x%lX recovery possible",nr);
+ if (fsc->inode->i_dtime) {
+- thispointer = ctime((time_t *)&(GInode->i_dtime));
++ thispointer = ctime(&(GInode->i_dtime));
+ thispointer[24] = 0;
+ printf(" (deleted %24s)",thispointer);
+ }
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/lde.git/commitdiff/da090a8223f154ebad82e4c6d3050d75297b9cb9
More information about the pld-cvs-commit
mailing list