Code Monkey home page Code Monkey logo

Comments (6)

ppisar avatar ppisar commented on August 22, 2024 1

I found that file at https://download.copr.fedorainfracloud.org/results/audron/dexed/fedora-38-aarch64/repodata/af12533499469117e3824bc938bfc3208539deb44bbf56ec2612fc383b28a1f4-primary.xml.gz. Supplying the whole file reveals the failure:

$ gzip -tv af12533499469117e3824bc938bfc3208539deb44bbf56ec2612fc383b28a1f4-primary.xml.gz 
af12533499469117e3824bc938bfc3208539deb44bbf56ec2612fc383b28a1f4-primary.xml.gz:         OK
$ file af12533499469117e3824bc938bfc3208539deb44bbf56ec2612fc383b28a1f4-primary.xml.gz 
af12533499469117e3824bc938bfc3208539deb44bbf56ec2612fc383b28a1f4-primary.xml.gz: DOS/MBR boot sector; partition 1 : ID=0x4b, active 0xd0, start-CHS (0x63,239,44), end-CHS (0x33d,134,0), startsector 316955931, 1708404748 sectors; partition 3 : ID=0x53, active 0xaa, start-CHS (0x33a,156,2), end-CHS (0x22c,176,51), startsector 1315648692, 2595702924 sectors; partition 4 : ID=0x3a, active 0xca, start-CHS (0x1d5,97,37), end-CHS (0x28b,241,55), startsector 2173204403, 2875341233 sectors
$ rpm -q file-libs
file-libs-5.44-3.fc39.x86_64

That's a clear failure of file tool (libmagic database).

Please understand that the detection is always only approximate. For createrepo_c, please always keep a suffix in the file name. It's a way how YUM repository metadata delivers the compression algorithm. And it's the only way which avoids the detection.

I recommend closing this createrepo_c issues as we cannot fix it on createrepo_c side.

from createrepo_c.

ppisar avatar ppisar commented on August 22, 2024

createrepo_c uses file (magic) library underneath. Hence it's correct that both crearerepo_c and file tool agree. I suspect that's an regression in an update of file-libs RPM package. Could you try an older file-libs version? Or share with us the misdetected archive?

from createrepo_c.

ppisar avatar ppisar commented on August 22, 2024

createrepo_c uses file (magic) library underneath. Hence it's correct that both crearerepo_c and file tool agree. I suspect that's an regression in an update of file-libs RPM package. Could you try an older file-libs version? Or share with us the misdetected archive?

from createrepo_c.

ppisar avatar ppisar commented on August 22, 2024

Sorry, for the double post.
I reversed your af12533499469117e3824bc938bfc3208539deb44bbf56ec2612fc383b28a1f4 sample into a binary file and I cannot reproduce the misdetection. I tried file-libs-5.41-4.fc36.x86_64 and file-libs-5.44-3.fc39.x86_64. What's your file-libs version?

from createrepo_c.

dralley avatar dralley commented on August 22, 2024

I'm on Fedora 36 but I believe this can also be reproduced on EL8

from createrepo_c.

dralley avatar dralley commented on August 22, 2024

I looped in @vmihalko on Slack as the maintainer of the file library

from createrepo_c.

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.