Skip to contentSkip to conversation

RPM spec file for reiser4progs

PATCH David T Hollis 2 participants 2 messages Aug 28, 2003 – Aug 29, 2003

lore
Share & tools
lore
#0 lore raw

This is an RPM spec file to allow reiser4progs to be easily built. The patch currently included will most likely not be needed by further revisions. It fixes three warnings that GCC 3.3.1 aborted on and at the same time fixes a pointer bug.

This file can be included in the distribution tar balls to allow people to build a package using rpmbuild -ta reiser4progs-XXXXXX.tar.gz.

%define file_version 20030826
%define enable_debug 1

%define _sbindir /sbin

Name: reiser4progs
Version: 0.4.12
Release: 1
Summary: Utilities for reiser4 filesystems
License: GPL
Group: System Environment/Base
URL: http://www.namesys.com/
Source: reiser4progs-%{file_version}.tar.gz
Patch0: reiser4progs-init-warnings.patch
BuildRequires: libaal-devel
BuildRequires: e2fsprogs-devel >= 1.34
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

%description
Utilities for manipulating reiser4 filesystems.

%package devel
Summary: Development libraries and headers for developing reiser4 tools.
Group: Development/Libraries

%description devel
Development libraries and headers for developing reiser4 tools.

%prep
%setup -q
%patch0

%build
%configure \
%if %{enable_debug}

	--enable-debug \
%else
	--disable-debug \
%endif
	--enable-stand-alone \
	--disable-collisions-handling \
	--disable-plugins-check \
	--disable-fnv1-hash \
	--disable-rupasov-hash \
	--disable-tea-hash

make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall

%clean
rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc AUTHORS BUGS COPYING CREDITS INSTALL NEWS README THANKS TODO %{_libdir}/libreiser4-0.4.so.* %{_libdir}/libreiser4-alone-0.4.so.* %{_libdir}/librepair-0.4.so.*
%{_sbindir}/cpfs.reiser4
%{_sbindir}/debugfs.reiser4
%{_sbindir}/fsck.reiser4
%{_sbindir}/make_reiser4
%{_sbindir}/measurefs.reiser4
%{_sbindir}/mkfs.reiser4
%{_sbindir}/resizefs.reiser4
%{_mandir}/man8/*.gz

%files devel
%{_includedir}/aux/*.h
%dir %{_includedir}/reiser4
%{_includedir}/reiser4/*.h
%{_includedir}/repair/*.h
%{_datadir}/aclocal/libreiser4.m4
%{_libdir}/libreiser4.*a
%{_libdir}/libreiser4-alone.*a
%{_libdir}/librepair.*a

%changelog
* Wed Aug 27 2003 David T Hollis <[email protected]>
- RPM package created

format/format40/format40.c renamed from format/format40/format40.c.orig +1 -1
@@ -220,7 +220,7 @@
 static errno_t callback_clobber_block(void *entity, blk_t start,
 				      count_t width, void *data) 
 {
-	blk_t blk;
+	blk_t blk=0;
 	errno_t res;
 	aal_block_t block;
 	format40_t *format;
filter.c renamed from filter.c.orig +1 -1
@@ -560,7 +560,7 @@
 errno_t repair_filter(repair_filter_t *fd) {
 	repair_progress_t progress;
 	reiser4_fs_t *fs;
-	errno_t res;
+	errno_t res = 0;
 
 	aal_assert("vpf-536", fd != NULL);
 	aal_assert("vpf-814", fd->repair != NULL);
object/obj40/obj40_repair.c renamed from object/obj40/obj40_repair.c.orig +2 -0
@@ -40,6 +40,8 @@
 	errno_t res;
 
 	aal_assert("vpf-1200", obj != NULL);
+
+	info = &obj->info;
 	
 	if (!info->start.plug) {
 		if (!obj->core->tree_ops.valid(info->tree, &info->start))
#1 lore raw
Quoted 93 lines · David T Hollis

This is an RPM spec file to allow reiser4progs to be easily built. The patch currently included will most likely not be needed by further revisions. It fixes three warnings that GCC 3.3.1 aborted on and at the same time fixes a pointer bug.

This file can be included in the distribution tar balls to allow people to build a package using rpmbuild -ta reiser4progs-XXXXXX.tar.gz.

______________________________________________________________________
%define file_version 20030826
%define enable_debug 1

%define _sbindir /sbin

Name: reiser4progs
Version: 0.4.12
Release: 1
Summary: Utilities for reiser4 filesystems
License: GPL
Group: System Environment/Base
URL: http://www.namesys.com/
Source: reiser4progs-%{file_version}.tar.gz
Patch0: reiser4progs-init-warnings.patch
BuildRequires: libaal-devel
BuildRequires: e2fsprogs-devel >= 1.34
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

%description
Utilities for manipulating reiser4 filesystems.

%package devel
Summary: Development libraries and headers for developing reiser4 tools.
Group: Development/Libraries

%description devel
Development libraries and headers for developing reiser4 tools.

%prep
%setup -q
%patch0

%build
%configure \
%if %{enable_debug}

	--enable-debug \
%else
	--disable-debug \
%endif
	--enable-stand-alone \
	--disable-collisions-handling \
	--disable-plugins-check \
	--disable-fnv1-hash \
	--disable-rupasov-hash \
	--disable-tea-hash

make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall

%clean
rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc AUTHORS BUGS COPYING CREDITS INSTALL NEWS README THANKS TODO %{_libdir}/libreiser4-0.4.so.* %{_libdir}/libreiser4-alone-0.4.so.* %{_libdir}/librepair-0.4.so.*
%{_sbindir}/cpfs.reiser4
%{_sbindir}/debugfs.reiser4
%{_sbindir}/fsck.reiser4
%{_sbindir}/make_reiser4
%{_sbindir}/measurefs.reiser4
%{_sbindir}/mkfs.reiser4
%{_sbindir}/resizefs.reiser4
%{_mandir}/man8/*.gz

%files devel
%{_includedir}/aux/*.h
%dir %{_includedir}/reiser4
%{_includedir}/reiser4/*.h
%{_includedir}/repair/*.h
%{_datadir}/aclocal/libreiser4.m4
%{_libdir}/libreiser4.*a
%{_libdir}/libreiser4-alone.*a
%{_libdir}/librepair.*a

Quoted 3 lines

%changelog
* Wed Aug 27 2003 David T Hollis <[email protected]>
- RPM package created

Thanks a lot. We will use it.

Quoted 27 lines

______________________________________________________________________

format/format40/format40.c renamed from format/format40/format40.c.orig +1 -1
@@ -220,7 +220,7 @@
 static errno_t callback_clobber_block(void *entity, blk_t start,
 				      count_t width, void *data) 
 {
-	blk_t blk;
+	blk_t blk=0;
 	errno_t res;
 	aal_block_t block;
 	format40_t *format;
filter.c renamed from filter.c.orig +1 -1
@@ -560,7 +560,7 @@
 errno_t repair_filter(repair_filter_t *fd) {
 	repair_progress_t progress;
 	reiser4_fs_t *fs;
-	errno_t res;
+	errno_t res = 0;
 
 	aal_assert("vpf-536", fd != NULL);
 	aal_assert("vpf-814", fd->repair != NULL);

object/obj40/obj40_repair.c line 47

Quoted 8 lines
object/obj40/obj40_repair.c renamed from object/obj40/obj40_repair.c.orig +2 -0
@@ -40,6 +40,8 @@
 	errno_t res;
 
 	aal_assert("vpf-1200", obj != NULL);
+
+	info = &obj->info;
 
 	if (!info->start.plug) {
 		if (!obj->core->tree_ops.valid(info->tree, &info->start))

This is fixed already.

Thanks a lot.