[Rpm-maint] [rpm-software-management/rpm] Some script interpreter dependencies are not created due to wrong libmagic results (Issue #2936)
Florian Festi
notifications at github.com
Wed Feb 28 08:30:03 UTC 2024
Moved from https://bugzilla.redhat.com/show_bug.cgi?id=2255474
For instance, flatseal doesn't get a /usr/bin/gjs dependency despite having an executable /usr/bin/com.github.tchx84.Flatseal script with #!/usr/bin/gjs :
https://koji.fedoraproject.org/koji/rpminfo?rpmID=36557976
FWIW, file(1) identifies this script as "Java source", apparently because of the following rule in magic(4) which seems overly broad:
```
# Java source
0 regex \^import.*;$ Java source
!:mime text/x-java
```
Shouldn't RPM identify any executable text file starting with a shebang as a script and generate a dependency accordingly?
Reproducible: Always
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/2936
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/issues/2936 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20240228/3a51eda2/attachment.html>
More information about the Rpm-maint
mailing list