1Name: e2fsprogs 2Version: 1.46.4 3Release: 24 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 10Patch1: 0001-e2fsprogs-set-hugefile-from-4T-to-1T-in-hugefile-tes.patch 11Patch2: 0002-libss-add-newer-libreadline.so.8-to-dlopen-path.patch 12Patch3: 0003-tests-update-expect-files-for-f_mmp_garbage.patch 13Patch4: 0004-tests-update-expect-files-for-f_large_dir-and-f_larg.patch 14Patch5: 0005-resize2fs-resize2fs-disk-hardlinks-will-be-error.patch 15Patch6: 0006-e2fsck-exit-journal-recovery-when-find-EIO-ENOMEM-er.patch 16Patch7: 0007-e2fsck-exit-journal-recovery-when-jounral-superblock.patch 17Patch8: 0008-e2fsck-add-env-param-E2FS_UNRELIABLE_IO-to-fi.patch 18Patch9: 0009-e2mmpstatus.8.in-detele-filesystem-can-be-UUID-or-LA.patch 19Patch10: 0010-tests-update-expect-file-for-u_direct_io.patch 20Patch11: 0011-libext2fs-don-t-old-the-CACHE_MTX-while-doing-I-O.patch 21Patch12: 0012-tests-fix-ACL-printing-tests.patch 22Patch13: 0013-e2fsck-do-not-clean-up-file-acl-if-the-inode-is-trun.patch 23Patch14: 0014-e2fsck-handle-level-is-overflow-in-ext2fs_extent_get.patch 24Patch15: 0015-libext2fs-add-sanity-check-to-extent-manipulation.patch 25Patch16: 0016-e2fsprogs-add-sw64.patch 26Patch17: 0017-tune2fs-do-not-change-j_tail_sequence-in-journal-sup.patch 27Patch18: 0018-debugfs-teach-logdump-the-n-num_trans-option.patch 28Patch19: 0019-tune2fs-fix-tune2fs-segfault-when-ext2fs_run_ext3_jo.patch 29Patch20: 0020-tune2fs-tune2fs_main-should-return-rc-when-some-erro.patch 30Patch21: 0021-tune2fs-exit-directly-when-fs-freed-in-ext2fs_run_ext3_journal.patch 31Patch22: 0022-unix_io.c-fix-deadlock-problem-in-unix_write_blk64.patch 32Patch23: 0023-debugfs-fix-repeated-output-problem-with-logdump-O-n.patch 33Patch24: 0024-tune2fs-check-return-value-of-ext2fs_mmp_update2-in-.patch 34Patch25: 0025-mmp-fix-wrong-comparison-in-ext2fs_mmp_stop.patch 35Patch26: 0026-misc-fsck.c-Processes-may-kill-other-processes.patch 36Patch27: 0027-dumpe2fs-resize2fs-avoid-memory-leak-on-error-path.patch 37Patch28: 0028-libext2fs-fix-memory-leak-in-error-path-while-openin.patch 38Patch29: 0029-e2fsck-avoid-theoretical-null-dereference-in-end_pro.patch 39Patch30: 0030-e2fsck-fix-potential-out-of-bounds-read-in-inc_ea_in.patch 40Patch31: 0031-e2fsck-avoid-out-of-bounds-write-for-very-deep-exten.patch 41Patch32: 0032-e2fsck-fix-potential-fencepost-error-in-e2fsck_shoul.patch 42Patch33: 0033-libext2fs-fix-potential-integer-overflow-in-bitmap-a.patch 43Patch34: 0034-tune2fs-fix-an-error-message.patch 44Patch35: 0035-e2fsck-don-t-allow-journal-inode-to-have-encrypt-fla.patch 45Patch36: 0036-lib-ext2fs-fix-unbalanced-mutex-unlock-for-BOUNCE_MT.patch 46Patch37: 0037-libext2fs-fix-ext2fs_compare_generic_bmap-logic.patch 47Patch38: 0038-Quiet-unused-variable-warnings.patch 48Patch39: 0039-ext2fs-Use-64bit-lseek-when-_FILE_OFFSET_BITS-is-64.patch 49Patch40: 0040-e2fsck-fix-bad-htree-checksums-in-preen-mode.patch 50Patch41: 0041-debugfs-Fix-infinite-loop-when-dump-log.patch 51 52BuildRequires: gcc pkgconfig texinfo 53BuildRequires: fuse-devel libblkid-devel libuuid-devel 54BuildRequires: audit 55Recommends: %{name}-help = %{version}-%{release} 56 57Provides: e2fsprogs-libs%{?_isa} = %{version}-%{release} e2fsprogs-libs = %{version}-%{release} 58Obsoletes: e2fsprogs-libs < %{version} 59Provides: libcom_err%{?_isa} = %{version}-%{release} libcom_err = %{version}-%{release} 60Obsoletes: libcom_err < %{version} 61Provides: libss%{?_isa} = %{version}-%{release} libss = %{version}-%{release} 62Obsoletes: libss < %{version} 63 64%description 65The e2fsprogs package consists of a lot of tools for users to create, 66check, modify, and correct any inconsistencies in second extended file 67system. 68 69%package devel 70Summary: Second extended file system libraries and headers 71License: GPLv2 and LGPLv2 and MIT 72Requires: e2fsprogs = %{version}-%{release} 73Requires: gawk 74Requires: pkgconfig 75Requires(post): info 76Requires(preun): info 77Provides: libcom_err-devel%{?_isa} = %{version}-%{release} libcom_err-devel = %{version}-%{release} 78Obsoletes: libcom_err-devel < %{version} 79Provides: libss-devel%{?_isa} = %{version}-%{release} libss-devel = %{version}-%{release} 80Obsoletes: libss-devel < %{version} 81Provides: e2fsprogs-static{?_isa} = %{version}-%{release} e2fsprogs-static = %{version}-%{release} 82Obsoletes: e2fsprogs-static < %{version} 83 84%description devel 85This package provides libraries and header files to develop 86second extended file system userspace programs. 87 88%package help 89Summary: man files for e2fsprogs 90Requires: man 91BuildArch: noarch 92 93%description help 94This packages includes man files for e2fsprogs. 95 96%prep 97%autosetup -n %{name}-%{version} -p1 98 99 100%build 101%configure CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \ 102 --enable-elf-shlibs --enable-nls --disable-uuidd --disable-fsck \ 103 --disable-e2initrd-helper --disable-libblkid --disable-libuuid \ 104 --enable-quota --with-root-prefix=/usr 105%make_build V=1 106 107%install 108make install install-libs DESTDIR=%{buildroot} INSTALL="%{__install} -p" \ 109 root_sbindir=%{_sbindir} root_libdir=%{_libdir} 110chmod +w %{buildroot}%{_libdir}/*.a 111 112# Replace arch-dependent header file with arch-independent stub (when needed). 113#%multilib_fix_c_header --file %{_includedir}/ext2fs/ext2_types.h 114# ugly hack to allow parallel install of 32-bit and 64-bit -devel packages: 115%define multilib_arches %{ix86} x86_64 116 117%ifarch %{multilib_arches} 118mv -f %{buildroot}%{_includedir}/ext2fs/ext2_types.h \ 119 %{buildroot}%{_includedir}/ext2fs/ext2_types-%{_arch}.h 120 121install -p -m 644 %{SOURCE1} %{buildroot}%{_includedir}/ext2fs/ext2_types.h 122 123%endif 124 125%find_lang %{name} 126 127rm -f %{buildroot}/etc/cron.d/e2scrub_all 128rm -f %{buildroot}%{_libdir}/e2fsprogs/e2scrub_all_cron 129 130%ifarch i686 131rm -rf %{buildroot}%{_unitdir}/e2scrub* 132%endif 133 134%check 135make fullcheck 136 137%ldconfig_scriptlets 138 139%post devel 140if [ -f %{_infodir}/libext2fs.info.gz ]; then 141 /sbin/install-info %{_infodir}/libext2fs.info.gz %{_infodir}/dir || : 142fi 143 144%preun devel 145if [ $1 = 0 -a -f %{_infodir}/libext2fs.info.gz ]; then 146 /sbin/install-info --delete %{_infodir}/libext2fs.info.gz %{_infodir}/dir || : 147fi 148exit 0 149 150%files -f %{name}.lang 151%doc README 152%license NOTICE 153%config(noreplace) /etc/mke2fs.conf 154%config(noreplace) /etc/e2scrub.conf 155%{_bindir}/chattr 156%{_bindir}/fuse2fs 157%{_bindir}/lsattr 158%{_libdir}/e2fsprogs/e2scrub_fail 159%{_libdir}/libe2p.so.* 160%{_libdir}/libcom_err.so.* 161%{_libdir}/libss.so.* 162%{_sbindir}/* 163%{_udevrulesdir}/*.rules 164%ifnarch i686 165%{_unitdir}/e2scrub* 166%endif 167 168%files devel 169%{_bindir}/compile_et 170%{_bindir}/mk_cmds 171%{_datadir}/et 172%{_datadir}/ss 173%{_infodir}/libext2fs.info* 174%{_includedir}/e2p 175%{_includedir}/ext2fs 176%{_includedir}/et 177%{_includedir}/com_err.h 178%{_includedir}/ss 179%{_libdir}/pkgconfig/*.pc 180%{_libdir}/*.so 181%{_libdir}/*.a 182 183%files help 184%{_mandir}/man1/* 185%{_mandir}/man3/* 186%{_mandir}/man5/* 187%{_mandir}/man8/* 188 189%changelog 190* Tue Dec 19 2023 haowenchao <haowenchao2@huawei.com> - 1.46.4-24 191- debugfs: Fix infinite loop when dump log 192 193* Thu Nov 09 2023 Xinliang Liu <xinliang.liu@linaro.org> - 1.46.4-23 194- Fix rpmlint Provides/Obsoletes unversioned warnings to fix dnf update 195 196* Mon Oct 30 2023 volcanodragon <linfeilong@huawei.com> - 1.46.4-22 197- e2fsck fix bad htree checksum in preen mode 198 199* Sun Jun 25 2023 suweifeng <suweifeng1@huawei.com> - 1.46.4-21 200- backport patches from upstream 201 202* Fri Jun 9 2023 tangyuchen <tangyuchen5@huawei.com> - 1.46.4-20 203- delete invalid link for ext4 204 205* Thu Mar 30 2023 Zhiqiang Liu <liuzhiqiang26@huawei.com> - 1.46.4-19 206- backport one patch to fix: processes may kill other processes in misc/fsck.c 207 208* Thu Feb 9 2023 lihaoxiang <lihaoxiang9@huawei.com> - 1.46.4-18 209- Upstream patches regress for debugfs, tune2fs and mmp. 210 211* Thu Dec 1 2022 Zhiqiang Liu <liuzhiqiang26@huawei.com> - 1.46.4-17 212- fix deadlock problem in unix_write_blk64 213 214* Fri Oct 14 2022 Zhiqiang Liu <liuzhiqiang26@huawei.com> - 1.46.4-16 215- tune2fs: fix segfault problem 216 217* Fri Sep 23 2022 zhanchengbin <zhanchengbin1@huawei.com> - 1.46.4-15 218- test: fix ACL-printing tests from community 219 220* Sat Aug 20 2022 Zhiqiang Liu <liuzhiqiang26@huawei.com> - 1.46.4-14 221- debugfs: teach logdump the -n <num_trans> option 222 223* Fri Aug 12 2022 zhanchengbin <zhanchengbin1@huawei.com> - 1.46.4-13 224- tune2fs: do not change j_tail_sequence in journal superblock 225 226* Fri Jun 24 2022 wuzx<wuzx1226@qq.com> - 1.46.4-12 227- add sw64 patch 228 229* Tue Jun 21 2022 lihaoxiang <lihaoxiang9@huawei.com> - 1.46.4-11 230- DESC:add wrapper header file for i686 and x86_64 then fix conflicts when intall i686 rpms. 231 232* Sat May 28 2022 Zhiqiang Liu <liuzhiqiang26@huawei.com> - 1.46.4-10 233- fix CVE-2022-1304 234 235* Fri May 20 2022 zhanchengbin <zhanchengbin1@huawei.com> - 1.46.4-9 236- e2fsck: handle->level is overflow in ext2fs_extent_get. 237 238* Wed May 18 2022 zhanchengbin <zhanchengbin1@huawei.com> - 1.46.4-8 239- e2fsck: do not clean up file acl if the inode is truncating type 240 241* Thu Mar 17 2022 zhanchengbin <zhanchengbin1@huawei.com> - 1.46.4-7 242- tests: skip m_rootdir_acl if selinux is not disabled 243 244* Wed Mar 9 2022 zhanchengbin <zhanchengbin1@huawei.com> - 1.46.4-6 245- libext2fs: don't old the CACHE_MTX while doing I/O 246 247* Tue Mar 8 2022 zhanchengbin <zhanchengbin1@huawei.com> - 1.46.4-5 248- tests: update expect file for u_direct_io 249 250* Wed Mar 2 2022 zhanchengbin <zhanchengbin1@huawei.com> - 1.46.4-4 251- e2mmpstatus.8.in: detele filesystem can be UUID or LABEL in manpage 252 253* Thu Feb 24 2022 zhanchengbin <zhanchengbin1@huawei.com> - 1.46.4-3 254- adapt patchs from openEuler-20.03-LTS 255 256* Thu Jan 27 2022 zhanchengbin <zhanchengbin1@huawei.com> - 1.46.4-2 257- replace License in spec 258 259* Sat Nov 27 2021 zhanchengbin <zhanchengbin1@huawei.com> - 1.46.4-1 260- update package to v1.46.4. 261 262* Mon Nov 15 2021 zhanchengbin <zhanchengbin1@huawei.com> - 1.45.6-7 263- DESC: integrate community patches. 264 265* Mon Sep 13 2021 lixiaokeng <lixiaokeng@huawei.com> - 1.45.6-6 266- DESC: add newer libreadline.so.8 to dlopen path 267 268* Fri Aug 20 2021 chenyanpanHW <chenyanpan@huawei.com> - 1.45.6-5 269- DESC: add necessary BuildRequires audit 270 271* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 1.45.6-4 272- DESC: delete -Sgit from %autosetup, and delete BuildRequires git 273 274* Wed Dec 16 2020 yanglongkang <yanglongkang@huawei.com> - 1.45.6-3 275- Set help package as install require 276 277* Fri Oct 30 2020 Zhiqiang Liu <lzhq28@mail.ustc.edu.cn> - 1.45.6-2 278- backport upstream patches-epoch2 to fix some problems 279 280* Wed Jul 15 2020 Zhiqiang Liu <lzhq28@mail.ustc.edu.cn> - 1.45.6-1 281- rebuild package 282 283* Wed Jul 1 2020 Wu Bo <wubo009@163.com> - 1.45.3-5 284- rebuild package 285 286* Mon Feb 3 2020 luoshijie <luoshijie1@huawei.com> - 1.45.3-4 287- Type:cves 288- ID:CVE-2019-5094 289- SUG:restart 290- DESC:backport patch to fix CVE-2019-5094. 291 292* Wed Jan 22 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.45.3-3 293- Type:bugfix 294- ID:NA 295- SUG:NA 296- DESC:change path to remove no used file. 297 298* Wed Jan 22 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.45.3-2 299- Type:bugfix 300- ID:NA 301- SUG:NA 302- DESC:fix local rpmbuild error. 303 304* Tue Jan 14 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.45.3-1 305- Type:cves 306- ID:CVE-2019-5188 307- SUG:restart 308- DESC:backport patch to fix CVE-2019-5188. 309 310* Tue Jan 14 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.45.3-0 311- Type:enhancement 312- ID:NA 313- SUG:NA 314- DESC:update package from 1.44.3 to 1.45.3. 315 316* Mon Jan 13 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.44.3-8 317- Type:enhancement 318- ID:NA 319- SUG:NA 320- DESC:update spec. 321 322* Wed Sep 18 2019 luoshijie <luoshijie1@huawei.com> - 1.44.3-7 323- Type:bugfix 324- ID:NA 325- SUG:NA 326- DESC:modify spec file to follow spec rules. 327 328* Fri Sep 6 2019 luoshijie <luoshijie1@huawei.com> - 1.44.3-6 329- Type:bugfix 330- ID:NA 331- SUG:NA 332- DESC:openEuler Debranding 333 334* Tue Aug 20 2019 luoshijie <luoshijie1@huawei.com> - 1.44.3-5 335- Type:bugfix 336- ID:NA 337- SUG:NA 338- DESC:rename patch name 339 340* Wed Jul 10 2019 zhangyujing <zhangyujing1@huawei.com> - 1.44.3-4 341- Type:bugfix 342- ID:NA 343- SUG:NA 344- DESC:e2freefrag: fix memory leak in scan_online() 345 create_inode: fix potential memory leak in path_append() 346 mke2fs: fix check for absurdly large devices 347 348* Fri Mar 15 2019 zhangyujing <zhangyujing1@huawei.com> - 1.44.3-3 349- Type:bugfix 350- ID:NA 351- SUG:NA 352- DESC:blkid avoid FPE crash when probing a HFS superblock 353 AOSP e2fsdroid Fix crash with invalid command line a 354 e2fsck fix fd leak in reserve_stdio_fds 355 libext2fs fix uninitialized length in rep_strdup 356 tune2fs fix dereference of freed memory after journa 357 libe2p avoid segfault when s_nr_users is too high 358 e2freefrag fix free blocks count during live scan 359 360* Wed Jan 23 2019 wangxiao <wangxiao65@huawei.com> - 1.44.3-2 361- Type:bugfix 362- ID:NA 363- SUG:NA 364- DESC:disable the metadata_csum creat by mke2fs -t ext4 by default 365- Package init 366 367