e2fsprogs
e2fsprogs copied to clipboard
RPM build failure
In my project, i am going to integrate e2fsprogs1.45.5 version to support Project Quota functionality, so i download the source code from sourceforge website, and use "make rpm" to build the corresponding rpm package, but encountered following errors. i also tried the same procedure for 1.43.8 source code, but the same issue was observed. Before "make rpm", i used "./configure" to setup the env, and use "make clean" for clean up in advance.
extracting debug info from /root/rpmbuild/BUILDROOT/e2fsprogs-1.45.4-0.x86_64/lib64/libcom_err.so.2.1 /usr/lib/rpm/sepdebugcrcfix: Updated 28 CRC32s, 0 CRC32s did match. symlinked /usr/lib/debug/lib64/libcom_err.so.2.1.debug to /usr/lib/debug/lib64/libcom_err.so.2.debug symlinked /usr/lib/debug/lib64/libe2p.so.2.3.debug to /usr/lib/debug/lib64/libe2p.so.2.debug symlinked /usr/lib/debug/lib64/libss.so.2.0.debug to /usr/lib/debug/lib64/libss.so.2.debug symlinked /usr/lib/debug/lib64/libblkid.so.1.0.debug to /usr/lib/debug/lib64/libblkid.so.1.debug symlinked /usr/lib/debug/lib64/libuuid.so.1.2.debug to /usr/lib/debug/lib64/libuuid.so.1.debug symlinked /usr/lib/debug/lib64/libext2fs.so.2.4.debug to /usr/lib/debug/lib64/libext2fs.so.2.debug 7388 blocks
- /usr/lib/rpm/check-buildroot
- /usr/lib/rpm/redhat/brp-compress
- /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
- /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1
- /usr/lib/rpm/redhat/brp-python-hardlink
- /usr/lib/rpm/redhat/brp-java-repack-jars Processing files: e2fsprogs-1.45.4-0.x86_64 error: File not found: /root/rpmbuild/BUILDROOT/e2fsprogs-1.45.4-0.x86_64/sbin/fsck.ext4dev error: File not found: /root/rpmbuild/BUILDROOT/e2fsprogs-1.45.4-0.x86_64/sbin/mkfs.ext4dev error: File not found by glob: /root/rpmbuild/BUILDROOT/e2fsprogs-1.45.4-0.x86_64/usr/share/man/man8/fsck.ext4dev.8* error: File not found by glob: /root/rpmbuild/BUILDROOT/e2fsprogs-1.45.4-0.x86_64/usr/share/man/man8/mkfs.ext4dev.8* Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.6VzOgF
- umask 022
- cd /root/rpmbuild/BUILD
- cd e2fsprogs-1.45.4
- DOCDIR=/root/rpmbuild/BUILDROOT/e2fsprogs-1.45.4-0.x86_64/usr/share/doc/e2fsprogs-1.45.4
- export DOCDIR
- /usr/bin/mkdir -p /root/rpmbuild/BUILDROOT/e2fsprogs-1.45.4-0.x86_64/usr/share/doc/e2fsprogs-1.45.4
- cp -pr README /root/rpmbuild/BUILDROOT/e2fsprogs-1.45.4-0.x86_64/usr/share/doc/e2fsprogs-1.45.4
- cp -pr RELEASE-NOTES /root/rpmbuild/BUILDROOT/e2fsprogs-1.45.4-0.x86_64/usr/share/doc/e2fsprogs-1.45.4
- exit 0
RPM build errors: line 14: prereq is deprecated: Prereq: /sbin/ldconfig line 39: prereq is deprecated: Prereq: /sbin/install-info File not found: /root/rpmbuild/BUILDROOT/e2fsprogs-1.45.4-0.x86_64/sbin/fsck.ext4dev File not found: /root/rpmbuild/BUILDROOT/e2fsprogs-1.45.4-0.x86_64/sbin/mkfs.ext4dev File not found by glob: /root/rpmbuild/BUILDROOT/e2fsprogs-1.45.4-0.x86_64/usr/share/man/man8/fsck.ext4dev.8* File not found by glob: /root/rpmbuild/BUILDROOT/e2fsprogs-1.45.4-0.x86_64/usr/share/man/man8/mkfs.ext4dev.8* make: *** [rpm] Error 1
here is output complaining missed files, and no suffixed dev related files there. not sure why?
[root@henry-ip6-dev ~]# ls -l /root/rpmbuild/BUILDROOT/e2fsprogs-1.45.4-0.x86_64/sbin total 2492 -rwxr-xr-x. 1 root root 28368 Feb 29 12:17 badblocks -rwxr-xr-x. 1 root root 15760 Feb 29 12:17 blkid -rwxr-xr-x. 1 root root 200904 Feb 29 12:17 debugfs -rwxr-xr-x. 2 root root 28440 Feb 29 12:17 dumpe2fs -rwxr-xr-x. 4 root root 309136 Feb 29 12:17 e2fsck -rwxr-xr-x. 1 root root 32696 Feb 29 12:17 e2image -rwxr-xr-x. 3 root root 105088 Feb 29 12:17 e2label -rwxr-xr-x. 2 root root 28440 Feb 29 12:17 e2mmpstatus -rwxr-xr-x. 1 root root 7314 Feb 29 12:17 e2scrub -rwxr-xr-x. 1 root root 5401 Feb 29 12:17 e2scrub_all -rwxr-xr-x. 1 root root 19768 Feb 29 12:17 e2undo -rwxr-xr-x. 3 root root 105088 Feb 29 12:17 findfs -rwxr-xr-x. 1 root root 28640 Feb 29 12:17 fsck -rwxr-xr-x. 4 root root 309136 Feb 29 12:17 fsck.ext2 -rwxr-xr-x. 4 root root 309136 Feb 29 12:17 fsck.ext3 -rwxr-xr-x. 4 root root 309136 Feb 29 12:17 fsck.ext4 -rwxr-xr-x. 1 root root 11536 Feb 29 12:17 logsave -rwxr-xr-x. 4 root root 125632 Feb 29 12:17 mke2fs -rwxr-xr-x. 4 root root 125632 Feb 29 12:17 mkfs.ext2 -rwxr-xr-x. 4 root root 125632 Feb 29 12:17 mkfs.ext3 -rwxr-xr-x. 4 root root 125632 Feb 29 12:17 mkfs.ext4 -rwxr-xr-x. 1 root root 57984 Feb 29 12:17 resize2fs -rwxr-xr-x. 3 root root 105088 Feb 29 12:17 tune2fs
here was the evn.
[root@henry-ip6-dev ~]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.6 (Maipo) [root@henry-ip6-dev ~]# uname -a Linux henry-ip6-dev 3.10.0-1062.1.1.el7.x86_64 #1 SMP Tue Aug 13 18:39:59 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
The spec file that's included in the e2fsprogs sources is terribly obsolete. Sorry about that. I package e2fsprogs for Debian, so the Debian packaging is very up to date. Unfortunately, the approach which Red Hat and SuSE use have diverged over time, and providing an updated spec file that would work well for Fedora, RHEL, Open SuSE, and SLES, is extremely challenging. The Lustre folks have found a way to do this, but it's kinda of ugly, and it wasn't something I wanted to pull into the e2fsprogs upstream. You can see that in their fork of e2fsprogs:
https://git.whamcloud.com/tools/e2fsprogs.git git://git.whamcloud.com/tools/e2fsprogs.git
Anyway, at some point it might be nice to get a good, clean support for building RPM packages for the RPM distros, but that's not super-high-priority for me, especially since Red Hat, Fedora, SuSE, etc. have their own (incompatible) spec files.
thanks for the response!
tried but can not access the git repo (git://git.whamcloud.com/tools/e2fsprogs.git) here. Was it still accessable?
$ ping git.whamcloud.com
Pinging web-2.whamcloud.com [138.197.209.17] with 32 bytes of data: Request timed out. Request timed out. Request timed out. Request timed out.
Ping statistics for 138.197.209.17: Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
"git clone" works for me:
% git clone git://git.whamcloud.com/tools/e2fsprogs.git /tmp/e2fsprogs Cloning into '/tmp/e2fsprogs'... remote: Counting objects: 56324, done. remote: Compressing objects: 100% (10627/10627), done. remote: Total 56324 (delta 45786), reused 55743 (delta 45226) Receiving objects: 100% (56324/56324), 51.16 MiB | 3.76 MiB/s, done. Resolving deltas: 100% (45786/45786), done.
Pinging git.whamcloud.com doesn't work for me either.
Edit: If "git clone" doesn't work for you, perhaps that could be due to some kind of firewall issue? It could be that the git protocol is a port blocked by some firewall, or maybe the firewall has blacklisted git.whamcloud.com for some reason?
is there possible to put it into github for short usage for me?
https://git.whamcloud.com/tools/e2fsprogs.git git://git.whamcloud.com/tools/e2fsprogs.git
i could clone it from github without any issue here.
i could git clone from github, and compare the change history between github and git.whamcloud, both are the same for master.
was there the specific branch for so-called ugly change in git://git.whamcloud.com/tools/e2fsprogs.git?
[root@dev e2fsprogs]# git branch -r origin/HEAD -> origin/master origin/debian-1.42.9 origin/debian-branch origin/debian-packaging origin/debian-squeeze origin/debian/backports origin/debian/master origin/debian/stable origin/e2fsprogs-interim origin/fix-for-756922 origin/maint origin/master origin/next origin/old-maint origin/pristine-tar origin/pu origin/retry-write origin/test_maint origin/web
Hi, I'm trying to build a RPM for a newer version 1.47.0, but I seem to be running into this same issue on AlmaLinux 8 (RHEL 8)
When I run make rpm
I run into this error, as these files do not exist,
RPM build errors:
line 14: prereq is deprecated: Prereq: /sbin/ldconfig
line 39: prereq is deprecated: Prereq: /sbin/install-info
File not found: /root/rpmbuild/BUILDROOT/e2fsprogs-1.47.0-0.x86_64/sbin/fsck.ext4dev
File not found: /root/rpmbuild/BUILDROOT/e2fsprogs-1.47.0-0.x86_64/sbin/mkfs.ext4dev
File not found: /root/rpmbuild/BUILDROOT/e2fsprogs-1.47.0-0.x86_64/usr/share/man/man8/fsck.ext4dev.8*
File not found: /root/rpmbuild/BUILDROOT/e2fsprogs-1.47.0-0.x86_64/usr/share/man/man8/mkfs.ext4dev.8*
make: *** [Makefile:392: rpm] Error 1
when I comment out these lines I run into another error,
RPM build errors:
line 14: prereq is deprecated: Prereq: /sbin/ldconfig
line 39: prereq is deprecated: Prereq: /sbin/install-info
Installed (but unpackaged) file(s) found:
/etc/cron.d/e2scrub_all
/etc/e2scrub.conf
/sbin/e2scrub
/sbin/e2scrub_all
/usr/lib/debug/usr/sbin/e4crypt-1.47.0-0.x86_64.debug
/usr/lib/debug/usr/sbin/e4defrag-1.47.0-0.x86_64.debug
/usr/lib/systemd/system/[email protected]
/usr/lib/systemd/system/e2scrub_all.service
/usr/lib/systemd/system/e2scrub_all.timer
/usr/lib/systemd/system/[email protected]
/usr/lib/systemd/system/e2scrub_reap.service
/usr/lib/udev/rules.d/96-e2scrub.rules
/usr/lib64/e2fsprogs/e2scrub_all_cron
/usr/lib64/e2fsprogs/e2scrub_fail
/usr/sbin/e4crypt
/usr/sbin/e4defrag
/usr/share/man/man5/ext2.5.gz
/usr/share/man/man5/ext3.5.gz
/usr/share/man/man5/ext4.5.gz
/usr/share/man/man8/e2scrub.8.gz
/usr/share/man/man8/e2scrub_all.8.gz
/usr/share/man/man8/e4crypt.8.gz
/usr/share/man/man8/e4defrag.8.gz
make: *** [Makefile:392: rpm] Error 1
any help would be appreciated :)