add wrapper header file for i686 and x86_64 then fix conflicts when intall i686 rpms.
This commit is contained in:
parent
192cb786ab
commit
1dd866f5d9
@ -1,10 +1,11 @@
|
|||||||
Name: e2fsprogs
|
Name: e2fsprogs
|
||||||
Version: 1.46.4
|
Version: 1.46.4
|
||||||
Release: 10
|
Release: 11
|
||||||
Summary: Second extended file system management tools
|
Summary: Second extended file system management tools
|
||||||
License: GPLv2+ and LGPLv2 and MIT
|
License: GPLv2+ and LGPLv2 and MIT
|
||||||
URL: http://e2fsprogs.sourceforge.net/
|
URL: http://e2fsprogs.sourceforge.net/
|
||||||
Source0: https://www.kernel.org/pub/linux/kernel/people/tytso/%{name}/v%{version}/%{name}-%{version}.tar.xz
|
Source0: https://www.kernel.org/pub/linux/kernel/people/tytso/%{name}/v%{version}/%{name}-%{version}.tar.xz
|
||||||
|
Source1: ext2_types-wrapper.h
|
||||||
|
|
||||||
Patch1: 0001-e2fsprogs-set-hugefile-from-4T-to-1T-in-hugefile-tes.patch
|
Patch1: 0001-e2fsprogs-set-hugefile-from-4T-to-1T-in-hugefile-tes.patch
|
||||||
Patch2: 0002-libss-add-newer-libreadline.so.8-to-dlopen-path.patch
|
Patch2: 0002-libss-add-newer-libreadline.so.8-to-dlopen-path.patch
|
||||||
@ -83,11 +84,28 @@ make install install-libs DESTDIR=%{buildroot} INSTALL="%{__install} -p" \
|
|||||||
root_sbindir=%{_sbindir} root_libdir=%{_libdir}
|
root_sbindir=%{_sbindir} root_libdir=%{_libdir}
|
||||||
chmod +w %{buildroot}%{_libdir}/*.a
|
chmod +w %{buildroot}%{_libdir}/*.a
|
||||||
|
|
||||||
|
# Replace arch-dependent header file with arch-independent stub (when needed).
|
||||||
|
#%multilib_fix_c_header --file %{_includedir}/ext2fs/ext2_types.h
|
||||||
|
# ugly hack to allow parallel install of 32-bit and 64-bit -devel packages:
|
||||||
|
%define multilib_arches %{ix86} x86_64
|
||||||
|
|
||||||
|
%ifarch %{multilib_arches}
|
||||||
|
mv -f %{buildroot}%{_includedir}/ext2fs/ext2_types.h \
|
||||||
|
%{buildroot}%{_includedir}/ext2fs/ext2_types-%{_arch}.h
|
||||||
|
|
||||||
|
install -p -m 644 %{SOURCE1} %{buildroot}%{_includedir}/ext2fs/ext2_types.h
|
||||||
|
|
||||||
|
%endif
|
||||||
|
|
||||||
%find_lang %{name}
|
%find_lang %{name}
|
||||||
|
|
||||||
rm -f %{buildroot}/etc/cron.d/e2scrub_all
|
rm -f %{buildroot}/etc/cron.d/e2scrub_all
|
||||||
rm -f %{buildroot}%{_libdir}/e2fsprogs/e2scrub_all_cron
|
rm -f %{buildroot}%{_libdir}/e2fsprogs/e2scrub_all_cron
|
||||||
|
|
||||||
|
%ifarch i686
|
||||||
|
rm -rf %{buildroot}%{_unitdir}/e2scrub*
|
||||||
|
%endif
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make fullcheck
|
make fullcheck
|
||||||
|
|
||||||
@ -119,7 +137,9 @@ exit 0
|
|||||||
%{_libdir}/libss.so.*
|
%{_libdir}/libss.so.*
|
||||||
%{_sbindir}/*
|
%{_sbindir}/*
|
||||||
%{_udevrulesdir}/*.rules
|
%{_udevrulesdir}/*.rules
|
||||||
|
%ifnarch i686
|
||||||
%{_unitdir}/e2scrub*
|
%{_unitdir}/e2scrub*
|
||||||
|
%endif
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%{_bindir}/compile_et
|
%{_bindir}/compile_et
|
||||||
@ -143,6 +163,9 @@ exit 0
|
|||||||
%{_mandir}/man8/*
|
%{_mandir}/man8/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jun 21 2022 lihaoxiang <lihaoxiang9@huawei.com> - 1.46.4-11
|
||||||
|
- DESC:add wrapper header file for i686 and x86_64 then fix conflicts when intall i686 rpms.
|
||||||
|
|
||||||
* Sat May 28 2022 Zhiqiang Liu <liuzhiqiang26@huawei.com> - 1.46.4-10
|
* Sat May 28 2022 Zhiqiang Liu <liuzhiqiang26@huawei.com> - 1.46.4-10
|
||||||
- fix CVE-2022-1304
|
- fix CVE-2022-1304
|
||||||
|
|
||||||
|
|||||||
14
ext2_types-wrapper.h
Normal file
14
ext2_types-wrapper.h
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
/* This file is here to prevent a file conflict on multiarch systems. A
|
||||||
|
* conflict will occur because ext2_types.h has arch-specific definitions.
|
||||||
|
*
|
||||||
|
* DO NOT INCLUDE THE NEW FILE DIRECTLY -- ALWAYS INCLUDE THIS ONE INSTEAD. */
|
||||||
|
|
||||||
|
#if defined(__i386__)
|
||||||
|
#include "ext2_types-i386.h"
|
||||||
|
#elif defined(__x86_64__)
|
||||||
|
#include "ext2_types-x86_64.h"
|
||||||
|
#elif defined(__arm__)
|
||||||
|
#include "ext2_types-arm.h"
|
||||||
|
#else
|
||||||
|
#error "This e2fsprogs-devel package does not work your architecture?"
|
||||||
|
#endif
|
||||||
Loading…
x
Reference in New Issue
Block a user