Giter Site home page Giter Site logo

RPM build failure about e2fsprogs HOT 8 OPEN

tytso avatar tytso commented on August 25, 2024
RPM build failure

from e2fsprogs.

Comments (8)

zhoudayongdennis avatar zhoudayongdennis commented on August 25, 2024

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

from e2fsprogs.

zhoudayongdennis avatar zhoudayongdennis commented on August 25, 2024

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

from e2fsprogs.

tytso avatar tytso commented on August 25, 2024

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.

from e2fsprogs.

zhoudayongdennis avatar zhoudayongdennis commented on August 25, 2024

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),

from e2fsprogs.

tytso avatar tytso commented on August 25, 2024

"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?

from e2fsprogs.

zhoudayongdennis avatar zhoudayongdennis commented on August 25, 2024

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.

from e2fsprogs.

zhoudayongdennis avatar zhoudayongdennis commented on August 25, 2024

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

from e2fsprogs.

arjitc avatar arjitc commented on August 25, 2024

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 :)

from e2fsprogs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.