1Name: e2fsprogs 2Version: 1.47.2 3Release: 1 4Summary: Second extended file system management tools 5License: GPLv2+ and LGPLv2 and MIT 6URL: http://e2fsprogs.sourceforge.net/ 7Source0: https://www.kernel.org/pub/linux/kernel/people/tytso/%{name}/v%{version}/%{name}-%{version}.tar.xz 8Source1: ext2_types-wrapper.h 9 10BuildRequires: gcc pkgconfig texinfo 11BuildRequires: fuse-devel libblkid-devel libuuid-devel 12BuildRequires: audit 13Recommends: %{name}-help = %{version}-%{release} 14 15Provides: e2fsprogs-libs%{?_isa} = %{version}-%{release} e2fsprogs-libs = %{version}-%{release} 16Obsoletes: e2fsprogs-libs < %{version} 17Provides: libcom_err%{?_isa} = %{version}-%{release} libcom_err = %{version}-%{release} 18Obsoletes: libcom_err < %{version} 19Provides: libss%{?_isa} = %{version}-%{release} libss = %{version}-%{release} 20Obsoletes: libss < %{version} 21 22%description 23The e2fsprogs package consists of a lot of tools for users to create, 24check, modify, and correct any inconsistencies in second extended file 25system. 26 27%package devel 28Summary: Second extended file system libraries and headers 29License: GPLv2 and LGPLv2 and MIT 30Requires: e2fsprogs = %{version}-%{release} 31Requires: gawk 32Requires: pkgconfig 33Requires(post): info 34Requires(preun): info 35Provides: libcom_err-devel%{?_isa} = %{version}-%{release} libcom_err-devel = %{version}-%{release} 36Obsoletes: libcom_err-devel < %{version} 37Provides: libss-devel%{?_isa} = %{version}-%{release} libss-devel = %{version}-%{release} 38Obsoletes: libss-devel < %{version} 39Provides: e2fsprogs-static{?_isa} = %{version}-%{release} e2fsprogs-static = %{version}-%{release} 40Obsoletes: e2fsprogs-static < %{version} 41 42%description devel 43This package provides libraries and header files to develop 44second extended file system userspace programs. 45 46%package help 47Summary: man files for e2fsprogs 48Requires: man 49BuildArch: noarch 50 51%description help 52This packages includes man files for e2fsprogs. 53 54%prep 55%autosetup -n %{name}-%{version} -p1 56 57 58%build 59%configure CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \ 60 --enable-elf-shlibs --enable-nls --disable-uuidd --disable-fsck \ 61 --disable-e2initrd-helper --disable-libblkid --disable-libuuid \ 62 --enable-quota --with-root-prefix=/usr 63%make_build V=1 64 65%install 66make install install-libs DESTDIR=%{buildroot} INSTALL="%{__install} -p" \ 67 root_sbindir=%{_sbindir} root_libdir=%{_libdir} 68chmod +w %{buildroot}%{_libdir}/*.a 69 70# Replace arch-dependent header file with arch-independent stub (when needed). 71#%multilib_fix_c_header --file %{_includedir}/ext2fs/ext2_types.h 72# ugly hack to allow parallel install of 32-bit and 64-bit -devel packages: 73%define multilib_arches %{ix86} x86_64 74 75%ifarch %{multilib_arches} 76mv -f %{buildroot}%{_includedir}/ext2fs/ext2_types.h \ 77 %{buildroot}%{_includedir}/ext2fs/ext2_types-%{_arch}.h 78 79install -p -m 644 %{SOURCE1} %{buildroot}%{_includedir}/ext2fs/ext2_types.h 80 81%endif 82 83%find_lang %{name} 84 85rm -f %{buildroot}/etc/cron.d/e2scrub_all 86rm -f %{buildroot}%{_libdir}/e2fsprogs/e2scrub_all_cron 87 88%ifarch i686 89rm -rf %{buildroot}%{_unitdir}/e2scrub* 90%endif 91 92%check 93make fullcheck 94 95%ldconfig_scriptlets 96 97%post devel 98if [ -f %{_infodir}/libext2fs.info.gz ]; then 99 /sbin/install-info %{_infodir}/libext2fs.info.gz %{_infodir}/dir || : 100fi 101 102%preun devel 103if [ $1 = 0 -a -f %{_infodir}/libext2fs.info.gz ]; then 104 /sbin/install-info --delete %{_infodir}/libext2fs.info.gz %{_infodir}/dir || : 105fi 106exit 0 107 108%files -f %{name}.lang 109%doc README 110%license NOTICE 111%config(noreplace) /etc/mke2fs.conf 112%config(noreplace) /etc/e2scrub.conf 113%{_bindir}/chattr 114%{_bindir}/fuse2fs 115%{_bindir}/lsattr 116%{_libdir}/e2fsprogs/e2scrub_fail 117%{_libdir}/libe2p.so.* 118%{_libdir}/libcom_err.so.* 119%{_libdir}/libss.so.* 120%{_sbindir}/* 121%{_udevrulesdir}/*.rules 122%ifnarch i686 123%{_unitdir}/e2scrub* 124%endif 125 126%files devel 127%{_bindir}/compile_et 128%{_bindir}/mk_cmds 129%{_datadir}/et 130%{_datadir}/ss 131%{_infodir}/libext2fs.info* 132%{_includedir}/e2p 133%{_includedir}/ext2fs 134%{_includedir}/et 135%{_includedir}/com_err.h 136%{_includedir}/ss 137%{_libdir}/pkgconfig/*.pc 138%{_libdir}/*.so 139%{_libdir}/*.a 140 141%files help 142%{_mandir}/man1/* 143%{_mandir}/man3/* 144%{_mandir}/man5/* 145%{_mandir}/man8/* 146 147%changelog 148* Sun May 11 2025 zhangdaiyue <zhangdaiyue1@huawei.com> - 1.47.2-1 149- Switch openEuler:e2fsprogs to e2fsprogs, and update package to v1.47.2 150* Tue Dec 19 2023 haowenchao <haowenchao2@huawei.com> - 1.46.4-24 151- debugfs: Fix infinite loop when dump log 152 153* Thu Nov 09 2023 Xinliang Liu <xinliang.liu@linaro.org> - 1.46.4-23 154- Fix rpmlint Provides/Obsoletes unversioned warnings to fix dnf update 155 156* Mon Oct 30 2023 volcanodragon <linfeilong@huawei.com> - 1.46.4-22 157- e2fsck fix bad htree checksum in preen mode 158 159* Sun Jun 25 2023 suweifeng <suweifeng1@huawei.com> - 1.46.4-21 160- backport patches from upstream 161 162* Fri Jun 9 2023 tangyuchen <tangyuchen5@huawei.com> - 1.46.4-20 163- delete invalid link for ext4 164 165* Thu Mar 30 2023 Zhiqiang Liu <liuzhiqiang26@huawei.com> - 1.46.4-19 166- backport one patch to fix: processes may kill other processes in misc/fsck.c 167 168* Thu Feb 9 2023 lihaoxiang <lihaoxiang9@huawei.com> - 1.46.4-18 169- Upstream patches regress for debugfs, tune2fs and mmp. 170 171* Thu Dec 1 2022 Zhiqiang Liu <liuzhiqiang26@huawei.com> - 1.46.4-17 172- fix deadlock problem in unix_write_blk64 173 174* Fri Oct 14 2022 Zhiqiang Liu <liuzhiqiang26@huawei.com> - 1.46.4-16 175- tune2fs: fix segfault problem 176 177* Fri Sep 23 2022 zhanchengbin <zhanchengbin1@huawei.com> - 1.46.4-15 178- test: fix ACL-printing tests from community 179 180* Sat Aug 20 2022 Zhiqiang Liu <liuzhiqiang26@huawei.com> - 1.46.4-14 181- debugfs: teach logdump the -n <num_trans> option 182 183* Fri Aug 12 2022 zhanchengbin <zhanchengbin1@huawei.com> - 1.46.4-13 184- tune2fs: do not change j_tail_sequence in journal superblock 185 186* Fri Jun 24 2022 wuzx<wuzx1226@qq.com> - 1.46.4-12 187- add sw64 patch 188 189* Tue Jun 21 2022 lihaoxiang <lihaoxiang9@huawei.com> - 1.46.4-11 190- DESC:add wrapper header file for i686 and x86_64 then fix conflicts when intall i686 rpms. 191 192* Sat May 28 2022 Zhiqiang Liu <liuzhiqiang26@huawei.com> - 1.46.4-10 193- fix CVE-2022-1304 194 195* Fri May 20 2022 zhanchengbin <zhanchengbin1@huawei.com> - 1.46.4-9 196- e2fsck: handle->level is overflow in ext2fs_extent_get. 197 198* Wed May 18 2022 zhanchengbin <zhanchengbin1@huawei.com> - 1.46.4-8 199- e2fsck: do not clean up file acl if the inode is truncating type 200 201* Thu Mar 17 2022 zhanchengbin <zhanchengbin1@huawei.com> - 1.46.4-7 202- tests: skip m_rootdir_acl if selinux is not disabled 203 204* Wed Mar 9 2022 zhanchengbin <zhanchengbin1@huawei.com> - 1.46.4-6 205- libext2fs: don't old the CACHE_MTX while doing I/O 206 207* Tue Mar 8 2022 zhanchengbin <zhanchengbin1@huawei.com> - 1.46.4-5 208- tests: update expect file for u_direct_io 209 210* Wed Mar 2 2022 zhanchengbin <zhanchengbin1@huawei.com> - 1.46.4-4 211- e2mmpstatus.8.in: detele filesystem can be UUID or LABEL in manpage 212 213* Thu Feb 24 2022 zhanchengbin <zhanchengbin1@huawei.com> - 1.46.4-3 214- adapt patchs from openEuler-20.03-LTS 215 216* Thu Jan 27 2022 zhanchengbin <zhanchengbin1@huawei.com> - 1.46.4-2 217- replace License in spec 218 219* Sat Nov 27 2021 zhanchengbin <zhanchengbin1@huawei.com> - 1.46.4-1 220- update package to v1.46.4. 221 222* Mon Nov 15 2021 zhanchengbin <zhanchengbin1@huawei.com> - 1.45.6-7 223- DESC: integrate community patches. 224 225* Mon Sep 13 2021 lixiaokeng <lixiaokeng@huawei.com> - 1.45.6-6 226- DESC: add newer libreadline.so.8 to dlopen path 227 228* Fri Aug 20 2021 chenyanpanHW <chenyanpan@huawei.com> - 1.45.6-5 229- DESC: add necessary BuildRequires audit 230 231* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 1.45.6-4 232- DESC: delete -Sgit from %autosetup, and delete BuildRequires git 233 234* Wed Dec 16 2020 yanglongkang <yanglongkang@huawei.com> - 1.45.6-3 235- Set help package as install require 236 237* Fri Oct 30 2020 Zhiqiang Liu <lzhq28@mail.ustc.edu.cn> - 1.45.6-2 238- backport upstream patches-epoch2 to fix some problems 239 240* Wed Jul 15 2020 Zhiqiang Liu <lzhq28@mail.ustc.edu.cn> - 1.45.6-1 241- rebuild package 242 243* Wed Jul 1 2020 Wu Bo <wubo009@163.com> - 1.45.3-5 244- rebuild package 245 246* Mon Feb 3 2020 luoshijie <luoshijie1@huawei.com> - 1.45.3-4 247- Type:cves 248- ID:CVE-2019-5094 249- SUG:restart 250- DESC:backport patch to fix CVE-2019-5094. 251 252* Wed Jan 22 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.45.3-3 253- Type:bugfix 254- ID:NA 255- SUG:NA 256- DESC:change path to remove no used file. 257 258* Wed Jan 22 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.45.3-2 259- Type:bugfix 260- ID:NA 261- SUG:NA 262- DESC:fix local rpmbuild error. 263 264* Tue Jan 14 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.45.3-1 265- Type:cves 266- ID:CVE-2019-5188 267- SUG:restart 268- DESC:backport patch to fix CVE-2019-5188. 269 270* Tue Jan 14 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.45.3-0 271- Type:enhancement 272- ID:NA 273- SUG:NA 274- DESC:update package from 1.44.3 to 1.45.3. 275 276* Mon Jan 13 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.44.3-8 277- Type:enhancement 278- ID:NA 279- SUG:NA 280- DESC:update spec. 281 282* Wed Sep 18 2019 luoshijie <luoshijie1@huawei.com> - 1.44.3-7 283- Type:bugfix 284- ID:NA 285- SUG:NA 286- DESC:modify spec file to follow spec rules. 287 288* Fri Sep 6 2019 luoshijie <luoshijie1@huawei.com> - 1.44.3-6 289- Type:bugfix 290- ID:NA 291- SUG:NA 292- DESC:openEuler Debranding 293 294* Tue Aug 20 2019 luoshijie <luoshijie1@huawei.com> - 1.44.3-5 295- Type:bugfix 296- ID:NA 297- SUG:NA 298- DESC:rename patch name 299 300* Wed Jul 10 2019 zhangyujing <zhangyujing1@huawei.com> - 1.44.3-4 301- Type:bugfix 302- ID:NA 303- SUG:NA 304- DESC:e2freefrag: fix memory leak in scan_online() 305 create_inode: fix potential memory leak in path_append() 306 mke2fs: fix check for absurdly large devices 307 308* Fri Mar 15 2019 zhangyujing <zhangyujing1@huawei.com> - 1.44.3-3 309- Type:bugfix 310- ID:NA 311- SUG:NA 312- DESC:blkid avoid FPE crash when probing a HFS superblock 313 AOSP e2fsdroid Fix crash with invalid command line a 314 e2fsck fix fd leak in reserve_stdio_fds 315 libext2fs fix uninitialized length in rep_strdup 316 tune2fs fix dereference of freed memory after journa 317 libe2p avoid segfault when s_nr_users is too high 318 e2freefrag fix free blocks count during live scan 319 320* Wed Jan 23 2019 wangxiao <wangxiao65@huawei.com> - 1.44.3-2 321- Type:bugfix 322- ID:NA 323- SUG:NA 324- DESC:disable the metadata_csum creat by mke2fs -t ext4 by default 325- Package init 326 327