Rev openSUSE:Factory/12 Md5 08d5a32322165b1c052cebffa6c4a80f 2007-07-05 16:28:31 unknown None

This commit is contained in:
OBS User unknown 2007-07-05 16:28:31 +00:00 committed by Git OBS Bridge
parent 263505664e
commit fe4ef6f36b
9 changed files with 254 additions and 241 deletions

9
README.SUSE Normal file
View File

@ -0,0 +1,9 @@
Since the e2fsprogs libraries has been split out into own packages,
each having its own devel package
libext2fs-devel
libblkid-devel
libuuid-devel
libcom_err-devel
the e2fsprogs-devel package is deprecated and is provided for temporary
backwards compatibility only.

View File

@ -1,14 +1,16 @@
--- configure.in
Index: configure.in
===================================================================
--- configure.in.orig
+++ configure.in
@@ -553,6 +553,7 @@
@@ -569,6 +569,7 @@ if test $cross_compiling = no; then
else
AC_CHECK_PROGS(BUILD_CC, gcc cc)
fi
+AC_HEADER_TIME
AC_CHECK_HEADERS(stdlib.h unistd.h stdarg.h stdint.h errno.h malloc.h mntent.h paths.h dirent.h getopt.h setjmp.h signal.h termios.h linux/fd.h linux/major.h sys/disklabel.h sys/ioctl.h sys/mkdev.h sys/prctl.h sys/queue.h sys/sockio.h sys/socket.h sys/sysmacros.h sys/time.h sys/stat.h sys/types.h sys/wait.h sys/resource.h net/if_dl.h netinet/in.h)
AC_CHECK_HEADERS(stdlib.h unistd.h stdarg.h stdint.h errno.h malloc.h mntent.h paths.h dirent.h getopt.h setjmp.h signal.h termios.h linux/fd.h linux/major.h sys/disklabel.h sys/ioctl.h sys/mman.h sys/mkdev.h sys/prctl.h sys/queue.h sys/sockio.h sys/socket.h sys/sysmacros.h sys/time.h sys/stat.h sys/types.h sys/wait.h sys/resource.h net/if_dl.h netinet/in.h utime.h)
AC_CHECK_HEADERS(sys/disk.h sys/mount.h,,,
[[
@@ -751,7 +752,7 @@
@@ -778,7 +779,7 @@ if test "$root_prefix" = NONE ; then
else
root_bindir='${root_prefix}/bin'
root_sbindir='${root_prefix}/sbin'

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:af96554d169704fd7338ad5f05d590b9af61d27357327c7cb3a6c3344648fc55
size 3597330

3
e2fsprogs-1.40.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:46d1fb8e2b6ed5f078923e6f659ff69b34db720a0a929d5864e3b9e535bcd0a3
size 3718339

View File

@ -1,7 +1,7 @@
Index: e2fsprogs-1.39+1.40_WIP_20061114/lib/blkid/probe.c
Index: e2fsprogs-1.40/lib/blkid/probe.c
===================================================================
--- e2fsprogs-1.39+1.40_WIP_20061114.orig/lib/blkid/probe.c
+++ e2fsprogs-1.39+1.40_WIP_20061114/lib/blkid/probe.c
--- e2fsprogs-1.40.orig/lib/blkid/probe.c
+++ e2fsprogs-1.40/lib/blkid/probe.c
@@ -148,6 +148,39 @@ static void get_ext2_info(blkid_dev dev,
set_uuid(dev, es->s_uuid, 0);
}
@ -42,18 +42,18 @@ Index: e2fsprogs-1.39+1.40_WIP_20061114/lib/blkid/probe.c
static int probe_ext3(struct blkid_probe *probe,
struct blkid_magic *id __BLKID_ATTR((unused)),
unsigned char *buf)
@@ -710,6 +743,7 @@ static struct blkid_magic type_array[] =
@@ -830,6 +863,7 @@ static struct blkid_magic type_array[] =
/* type kboff sboff len magic probe */
{ "oracleasm", 0, 32, 8, "ORCLDISK", probe_oracleasm },
{ "ntfs", 0, 3, 8, "NTFS ", 0 },
{ "ntfs", 0, 3, 8, "NTFS ", probe_ntfs },
+ { "ext4dev", 1, 0x38, 2, "\123\357", probe_ext4 },
{ "jbd", 1, 0x38, 2, "\123\357", probe_jbd },
{ "ext3", 1, 0x38, 2, "\123\357", probe_ext3 },
{ "ext2", 1, 0x38, 2, "\123\357", probe_ext2 },
Index: e2fsprogs-1.39+1.40_WIP_20061114/lib/blkid/probe.h
Index: e2fsprogs-1.40/lib/blkid/probe.h
===================================================================
--- e2fsprogs-1.39+1.40_WIP_20061114.orig/lib/blkid/probe.h
+++ e2fsprogs-1.39+1.40_WIP_20061114/lib/blkid/probe.h
--- e2fsprogs-1.40.orig/lib/blkid/probe.h
+++ e2fsprogs-1.40/lib/blkid/probe.h
@@ -87,6 +87,8 @@ struct ext2_super_block {
#define EXT3_FEATURE_COMPAT_HAS_JOURNAL 0x00000004
#define EXT3_FEATURE_INCOMPAT_RECOVER 0x00000004

View File

@ -1,175 +0,0 @@
--- debugfs/debugfs.c
+++ debugfs/debugfs.c
@@ -42,6 +42,9 @@
ext2_filsys current_fs = NULL;
ext2_ino_t root, cwd;
+extern int debugfs_read_inode_full(ext2_ino_t, struct ext2_inode *,
+ const char *, int);
+
static void open_filesystem(char *device, int open_flags, blk_t superblock,
blk_t blocksize, int catastrophic,
char *data_filename)
@@ -377,10 +380,10 @@
else
fprintf(lb->f, ", ");
if (lb->first_block == lb->last_block)
- fprintf(lb->f, "(%lld):%u", lb->first_bcnt, lb->first_block);
+ fprintf(lb->f, "(%lld):%u", lb->first_bcnt, (long long)lb->first_block);
else
fprintf(lb->f, "(%lld-%lld):%u-%u", lb->first_bcnt,
- lb->last_bcnt, lb->first_block, lb->last_block);
+ (long long)lb->last_bcnt, (long long)lb->first_block, lb->last_block);
lb->first_block = 0;
}
@@ -507,7 +510,7 @@
list_blocks_proc, (void *)&lb);
finish_range(&lb);
if (lb.total)
- fprintf(f, "\n%sTOTAL: %lld\n", prefix, lb.total);
+ fprintf(f, "\n%sTOTAL: %lld\n", prefix, (long long)lb.total);
fprintf(f,"\n");
}
@@ -538,7 +541,7 @@
__u64 i_size = (inode->i_size |
((unsigned long long)inode->i_size_high << 32));
- fprintf(out, "%lld\n", i_size);
+ fprintf(out, "%lld\n", (long long)i_size);
} else
fprintf(out, "%d\n", inode->i_size);
if (current_fs->super->s_creator_os == EXT2_OS_HURD)
--- debugfs/ls.c
+++ debugfs/ls.c
@@ -92,8 +92,8 @@
if (LINUX_S_ISDIR(inode.i_mode))
fprintf(ls->f, "%5d", inode.i_size);
else
- fprintf(ls->f, "%5lld", inode.i_size |
- ((__u64)inode.i_size_high << 32));
+ fprintf(ls->f, "%5lld", (long long) (inode.i_size |
+ ((__u64)inode.i_size_high << 32)));
fprintf (ls->f, " %s %s\n", datestr, name);
} else {
sprintf(tmp, "%c%u%c (%d) %s ", lbr, dirent->inode, rbr,
--- debugfs/lsdel.c
+++ debugfs/lsdel.c
@@ -190,7 +190,7 @@
for (i = 0; i < num_delarray; i++) {
fprintf(out, "%6u %6d %6o %6llu %4d/%4d %s", delarray[i].ino,
delarray[i].uid, delarray[i].mode, delarray[i].size,
- delarray[i].free_blocks, delarray[i].num_blocks,
+ (unsigned long long)delarray[i].free_blocks, delarray[i].num_blocks,
time_to_string(delarray[i].dtime));
}
fprintf(out, "%d deleted inodes found.\n", num_delarray);
--- e2fsck/message.c
+++ e2fsck/message.c
@@ -263,7 +263,7 @@
else
printf("%u", inode->i_size);
#else
- printf("%llu", (inode->i_size |
+ printf("%llu", (unsigned long long)(inode->i_size |
((__u64) inode->i_size_high << 32)));
#endif
}
@@ -376,7 +376,7 @@
#ifdef EXT2_NO_64_TYPE
printf("%d", ctx->blkcount);
#else
- printf("%lld", ctx->blkcount);
+ printf("%lld", (long long)ctx->blkcount);
#endif
break;
case 'c':
@@ -401,7 +401,7 @@
#ifdef EXT2_NO_64_TYPE
printf("%u", ctx->num);
#else
- printf("%llu", ctx->num);
+ printf("%llu", (unsigned long long)ctx->num);
#endif
break;
case 'p':
@@ -427,7 +427,7 @@
#ifdef EXT2_NO_64_TYPE
printf("0x%x", ctx->num);
#else
- printf("0x%llx", ctx->num);
+ printf("0x%llx", (unsigned long long)ctx->num);
#endif
break;
default:
--- e2fsck/pass1.c
+++ e2fsck/pass1.c
@@ -55,6 +55,9 @@
#define _INLINE_ inline
#endif
+extern void e2fsck_write_inode_full(e2fsck_t, unsigned long,
+ struct ext2_inode *, int, const char *);
+
static int process_block(ext2_filsys fs, blk_t *blocknr,
e2_blkcnt_t blockcnt, blk_t ref_blk,
int ref_offset, void *priv_data);
--- lib/et/error_message.c
+++ lib/et/error_message.c
@@ -35,7 +35,6 @@
int offset;
struct et_list *et;
errcode_t table_num;
- int started = 0;
char *cp;
offset = (int) (code & ((1<<ERRCODE_RANGE)-1));
--- lib/ss/error.c
+++ lib/ss/error.c
@@ -19,11 +19,10 @@
#include <stdarg.h>
-char * ss_name(sci_idx)
- int sci_idx;
+char * ss_name(int sci_idx)
{
- register char *ret_val;
- register ss_data *infop;
+ char *ret_val;
+ ss_data *infop;
infop = ss_info(sci_idx);
if (infop->current_request == (char const *)NULL) {
@@ -36,8 +35,8 @@
return(ret_val);
}
else {
- register char *cp;
- register char const *cp1;
+ char *cp;
+ char const *cp1;
ret_val = malloc((unsigned)sizeof(char) *
(strlen(infop->subsystem_name)+
strlen(infop->current_request)+
@@ -59,7 +58,7 @@
void ss_error (int sci_idx, long code, const char * fmt, ...)
{
- register char *whoami;
+ char *whoami;
va_list pvar;
va_start (pvar, fmt);
--- resize/sim_progress.c
+++ resize/sim_progress.c
@@ -87,7 +87,7 @@
return retval;
memset(prog, 0, sizeof(struct ext2_sim_progress));
- retval = ext2fs_get_mem(strlen(label)+1, (void **) &prog->label);
+ retval = ext2fs_get_mem(strlen(label)+1, &prog->label);
if (retval) {
free(prog);
return retval;

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:45a0261858864128f48a1b516b67b1210a7023fc4fca35058cc9ebc5fb3ca956
size 57423
oid sha256:6b4228bb3934b0b1f944e0b3e1177c051c2ddbe1a96d52646f13ba48e83c8266
size 58355

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Wed Jul 4 19:02:51 CEST 2007 - mkoenig@suse.de
- update to version 1.40
- branch off libraries:
libblkid1
libuuid1
libext2fs2
- renaming libcom_err to libcom_err2
-------------------------------------------------------------------
Tue Jun 19 11:06:52 CEST 2007 - mkoenig@suse.de

View File

@ -1,5 +1,5 @@
#
# spec file for package e2fsprogs (Version 1.39+1.40_WIP_20061114+PATCH20070329)
# spec file for package e2fsprogs (Version 1.40)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
@ -13,25 +13,25 @@
Name: e2fsprogs
%define no_command_hiding 1
BuildRequires: libvolume_id-devel
License: GNU General Public License (GPL)
License: GPL v2 or later
Group: System/Filesystems
Provides: e2fsbn ext2fs
Supplements: filesystem(ext2) filesystem(ext3)
Obsoletes: ext2fs
PreReq: %install_info_prereq
Autoreqprov: on
Version: 1.39+1.40_WIP_20061114+PATCH20070329
Release: 23
Version: 1.40
Release: 2
Summary: Utilities for the Second Extended File System
URL: http://e2fsprogs.sourceforge.net
Source: %{name}-%{version}.tar.bz2
Source1: de.po
Source2: README.SUSE
Patch0: elf.diff
Patch1: %{name}-1.35-libdir.diff
Patch2: %{name}-1.33-fsckdevdisplay.diff
Patch3: %{name}-1.33-codecleanup.diff
Patch4: e2fsprogs-blkid.diff
Patch5: e2fsprogs-codecleanup.diff
Patch6: e2fsprogs-mdraid.patch
Patch7: e2fsprogs-probe_reiserfs-fpe.patch
Patch8: e2fsprogs-base_devt.patch
@ -52,7 +52,8 @@ Patch31: libcom_err-no-init_error_table.patch
Patch32: libcom_err-no-e2fsck.static.patch
Patch33: libcom_err-mutex.patch
Patch34: libcom_err-compile_et_permissions.patch
Patch35: e2fsprogs-no_cmd_hiding.patch
# Do not suppress make commands
Patch99: e2fsprogs-no_cmd_hiding.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@ -68,16 +69,13 @@ Authors:
Theodore Ts'o <tytso@mit.edu>
%package devel
Summary: Include Files and Libraries mandatory for Development.
Summary: Dummy development package
Group: Development/Libraries/C and C++
Autoreqprov: on
Obsoletes: ext2fs_d
Provides: ext2fs_d
Requires: e2fsprogs == %version libcom_err
Requires: libext2fs-devel = %version libblkid-devel = %version libuuid-devel = %version
%description devel
This package contains all necessary include files and libraries needed
to develop applications that require these.
Dummy development package for backwards compatibility.
@ -86,17 +84,129 @@ Authors:
Remy Card <card@masi.ibp.fr>
Theodore Ts'o <tytso@mit.edu>
%package -n libcom_err
Summary: com_err library
Group: System/Libraries
Provides: libcom_err-devel = %{version}
%package -n libext2fs2
Summary: Ext2fs libray
Group: System/Filesystems
Autoreqprov: on
%description -n libcom_err
%description -n libext2fs2
The basic Ext2fs library.
Authors:
--------
Remy Card <card@masi.ibp.fr>
Theodore Ts'o <tytso@mit.edu>
%package -n libext2fs-devel
Summary: Development files for libext2fs
Group: System/Filesystems
Autoreqprov: on
Requires: libext2fs2 = %version libcom_err-devel
%description -n libext2fs-devel
Development files for libext2fs.
Authors:
--------
Remy Card <card@masi.ibp.fr>
Theodore Ts'o <tytso@mit.edu>
%package -n libcom_err2
Summary: E2fsprogs error reporting library
Group: System/Filesystems
Provides: libcom_err = %{version}
Obsoletes: libcom_err < %{version}
Autoreqprov: on
%description -n libcom_err2
com_err is an error message display library.
Authors:
--------
Remy Card <card@masi.ibp.fr>
Theodore Ts'o <tytso@mit.edu>
%package -n libcom_err-devel
Summary: Development files for libcom_err
Group: System/Filesystems
Autoreqprov: on
Requires: libcom_err2 = %version
%description -n libcom_err-devel
Development files for the com_err error message display library.
Authors:
--------
Remy Card <card@masi.ibp.fr>
Theodore Ts'o <tytso@mit.edu>
%package -n libblkid1
Summary: Filesystem detection library
Group: System/Filesystems
Autoreqprov: on
%description -n libblkid1
Library for filesystem detection.
Authors:
--------
Remy Card <card@masi.ibp.fr>
Theodore Ts'o <tytso@mit.edu>
%package -n libblkid-devel
Summary: Development files for the filesystem detection library
Group: System/Filesystems
Autoreqprov: on
Requires: libblkid1 = %version libuuid-devel
%description -n libblkid-devel
Files needed to develop applications using the library for filesystem
detection.
Authors:
--------
Remy Card <card@masi.ibp.fr>
Theodore Ts'o <tytso@mit.edu>
%package -n libuuid1
Summary: Library to generate UUIDs
Group: System/Filesystems
Autoreqprov: on
%description -n libuuid1
A library to generate universally unique IDs (UUIDs).
Authors:
--------
Remy Card <card@masi.ibp.fr>
Theodore Ts'o <tytso@mit.edu>
%package -n libuuid-devel
Summary: Development files for libuuid1
Group: System/Filesystems
Autoreqprov: on
Requires: libuuid1 = %version
%description -n libuuid-devel
Files to develop applications using the library to generate universally
unique IDs (UUIDs).
Authors:
--------
Remy Card <card@masi.ibp.fr>
@ -110,7 +220,6 @@ Authors:
%patch2
%patch3
%patch4
%patch5
%patch6
%patch7
%patch8 -p1
@ -131,9 +240,10 @@ Authors:
%patch33 -p1
%patch34 -p1
%if no_command_hiding
%patch35
%patch99
%endif
cp %{S:1} po
cp %{SOURCE2} .
%build
%{?suse_update_config:%{suse_update_config -f}}
@ -164,6 +274,39 @@ rm $RPM_BUILD_ROOT%{_libdir}/e2initrd_helper
%clean
rm -rf $RPM_BUILD_ROOT
%post
/sbin/ldconfig
%install_info --info-dir=%{_infodir} %{_infodir}/libext2fs.info.gz
%postun
/sbin/ldconfig
%install_info_delete --info-dir=%{_infodir} %{_infodir}/libext2fs.info.gz
%post -n libext2fs2
/sbin/ldconfig
%postun -n libext2fs2
/sbin/ldconfig
%post -n libcom_err2
/sbin/ldconfig
%postun -n libcom_err2
/sbin/ldconfig
%post -n libblkid1
/sbin/ldconfig
%postun -n libblkid1
/sbin/ldconfig
%post -n libuuid1
/sbin/ldconfig
%postun -n libuuid1
/sbin/ldconfig
# e2fsprogs
%files -f %{name}.lang
%defattr(-, root, root)
%doc RELEASE-NOTES ChangeLog README doc/libblkid.txt
@ -190,10 +333,6 @@ rm -rf $RPM_BUILD_ROOT
/usr/bin/uuidgen
/usr/sbin/mklost+found
/usr/sbin/filefrag
/%{_lib}/libblkid.so.*
/%{_lib}/libe2p.so.*
/%{_lib}/libext2fs.so.*
/%{_lib}/libuuid.so.*
%{_infodir}/libext2fs.info.gz
%{_mandir}/man1/chattr.1.gz
%{_mandir}/man1/lsattr.1.gz
@ -201,45 +340,67 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man5/e2fsck.conf.5.gz
%{_mandir}/man5/mke2fs.conf.5.gz
%{_mandir}/man8/*.8.gz
%post
/sbin/ldconfig
%install_info --info-dir=%{_infodir} %{_infodir}/libext2fs.info.gz
%postun
/sbin/ldconfig
%install_info_delete --info-dir=%{_infodir} %{_infodir}/libext2fs.info.gz
# dummy devel package
%files devel
%defattr(-,root,root)
%doc README.SUSE
# libblkid
%files -n libblkid1
%defattr(-, root, root)
/%{_lib}/libblkid.so.*
%files -n libblkid-devel
%defattr(-, root, root)
%{_libdir}/libblkid.a
%{_libdir}/libe2p.a
%{_libdir}/libext2fs.a
%{_libdir}/libuuid.a
%{_libdir}/libblkid.so
%{_libdir}/libe2p.so
%{_libdir}/libext2fs.so
%{_libdir}/libuuid.so
/usr/include/e2p
/usr/include/ext2fs
/usr/include/uuid
/usr/include/blkid
%_libdir/pkgconfig/blkid.pc
%{_mandir}/man3/libblkid.3.gz
# libuuid
%files -n libuuid1
%defattr(-, root, root)
/%{_lib}/libuuid.so.*
%files -n libuuid-devel
%defattr(-, root, root)
%{_libdir}/libuuid.a
%{_libdir}/libuuid.so
/usr/include/uuid
%_libdir/pkgconfig/uuid.pc
%{_mandir}/man3/uuid*
# libext2fs
%files -n libext2fs2
%defattr(-, root, root)
/%{_lib}/libext2fs.so.*
/%{_lib}/libe2p.so.*
%files -n libext2fs-devel
%defattr(-, root, root)
%{_libdir}/libext2fs.so
%{_libdir}/libext2fs.a
%{_libdir}/libe2p.a
%{_libdir}/libe2p.so
/usr/include/ext2fs
/usr/include/e2p
%_libdir/pkgconfig/e2p.pc
%_libdir/pkgconfig/ext2fs.pc
%_libdir/pkgconfig/uuid.pc
%{_mandir}/man3/*.3.gz
# libcom_err
%files -n libcom_err
%files -n libcom_err2
%defattr(-, root, root)
/%{_lib}/libcom_err.so.*
/%{_lib}/libss.so.*
%_datadir/et
%_datadir/ss
%files -n libcom_err-devel
%defattr(-, root, root)
%_bindir/compile_et
%_bindir/mk_cmds
%{_mandir}/man1/compile_et.1.gz
%{_mandir}/man1/mk_cmds.1.gz
%{_libdir}/libcom_err.so
%{_libdir}/libcom_err.a
%{_libdir}/libss.a
@ -248,12 +409,18 @@ rm -rf $RPM_BUILD_ROOT
%_libdir/pkgconfig/ss.pc
%_includedir/et
%_includedir/ss
%post -n libcom_err -p /sbin/ldconfig
%postun -n libcom_err -p /sbin/ldconfig
%{_mandir}/man1/compile_et.1.gz
%{_mandir}/man1/mk_cmds.1.gz
%{_mandir}/man3/com_err.3.gz
%changelog
* Wed Jul 04 2007 - mkoenig@suse.de
- update to version 1.40
- branch off libraries:
libblkid1
libuuid1
libext2fs2
- renaming libcom_err to libcom_err2
* Tue Jun 19 2007 - mkoenig@suse.de
- fix e2fsprogs-1.39-uuid_duplicates.patch [#189640]
* detach shm segment after use