Menu

#19 RPM?

open
nobody
rpm (1)
5
2025-05-08
2025-04-30
Todd
No

Is there a Fedora friendly rpm of the latest version somewhere?

Discussion

  • Tim Woodall

    Tim Woodall - 2025-05-04

    I managed to build this in a fedora 40 chroot on a debian host fairly trivially so I think it should be straight forwards to do it for a newer version (for reasons I don't understand, trying to build a package on fedora 42 using the method below to create a chroot on debian failed with a missing /sbin/ldconfig and I'm not prepared to spend time debugging it but I assume when run on a RPM system it would "just work)

    I think the following will allow you to build an up to date rpm

    dnf install rpmdevtools
    dnf install yum-utils
    rpmdev-setuptree
    cd ~/rpmbuild
    # from whereever you downloaded this from
    # cp /tmp/dump-0.4-0.59.b52.fc40.src.rpm .
    yum-builddep dump-0.4-0.59.b52.fc40.src.rpm
    rpm2cpio dump-0.4-0.59.b52.fc40.src.rpm | cpio -idmv
    mv dump-0.4b52.tar.gz SOURCES/
    rpmbuild -ba dump.spec
    

    --- I did the following to get to the point where I could build the SRPM as above ---
    To setup a fedora40 on debian:
    setup rinse

    root@dirac:/mnt/nobackup/rinse# diff -u /etc/rinse/fedora-37.packages /etc/rinse/fedora-40.packages
    --- /etc/rinse/fedora-37.packages       2022-11-27 15:45:35.000000000 +0000
    +++ /etc/rinse/fedora-40.packages       2025-05-04 08:22:14.000000000 +0100
    @@ -149,6 +149,7 @@
     rpm-build-libs
     rpm-libs
     rpm-plugin-selinux
    +rpm-sequoia
     rpm-sign-libs
     sed
     setup
    @@ -162,4 +163,4 @@
     util-linux
     xz-libs
     zchunk-libs
    -zlib
    +zlib-ng-compat
    
    
    /etc/rinse/rinse.conf
    [fedora-40]
    mirror.amd64 = http://fedora.mirrorservice.org/fedora/linux/releases/40/Everything/x86_64/os/Packages/
    mirror.arm64 = http://fedora.mirrorservice.org/fedora/linux/releases/42/Everything/aarch64/os/Packages/
    

    Install and update.

    tim@dirac:~ (none)$ unshare --user --mount --pid --fork --map-users=auto --map-groups=auto --setuid 0 --setgid 0 /bin/bash --rcfile ~/.bashrc.lxc
    
    export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    export HOME=/root
    
    root@dirac:/mnt/nobackup/rinse (none)# rinse --distribution fedora-40 --directory fedora-40 --cache-dir fedora-40-cache/ --arch amd64 --cache 1
    
    chroot fedora-40
    
    export PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
    
    echo sslverify=0 >>/etc/dnf/dnf.conf 
    dnf update
    sed -i '/sslverify=0/d' /etc/dnf/dnf.conf
    

    (There are all sorts of warnings about /proc not being mounted as rinse doesn't seem unshare friendly but they don't seem to matter for this process)

     
  • Todd

    Todd - 2025-05-07

    downstream just announced that he will be posting b52 in the repos shortly

     

    Last edit: Todd 2025-05-07
  • Tim Woodall

    Tim Woodall - 2025-05-07

    That's good to hear.
    The spec file I used can be extracted using the attached src.rpm
    rpm2cpio dump-0.4-0.59.b52.fc40.src.rpm | cpio -idmv

    It's the spec file for the existing version with all the patches removed.

     
    • Todd

      Todd - 2025-05-08

      The new rpm core dumps. See https://sourceforge.net/p/dump/bugs/185/
      Bummer.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.