On Wed, 2021-09-29 at 13:53 +0200, Miro Hrončok wrote: > On 25. 09. 21 11:12, Fabio Valentini wrote: > > So, if I understand correctly, the problem is that right now there's > > no *existing* tool that reliably detects if a given "executable" (has > > mode +x) is an actual executable "script" with a valid shebang? > > - We need to detect "scripts" that are executable but have no shebnag. > - We need to detect "scripts" that are executable and have a shebnag to > mangle. > - We might want to detect binary files that are executable but > shouldn't be > (such as images), but this was not the original purpose of the BRP > script. > instead use `file --mime-type` you may use `file --mime-encoding` or `file` none option file /usr/lib/node_modules/yarn/bin/yarn.js -b Node.js script, ASCII text executable file /usr/lib/node_modules/yarn/bin/yarn.js --mime-encoding -b us-ascii if mime-encoding that is not binary is text , I think > -- > Miro Hrončok > -- > Phone: +420777974800 > IRC: mhroncok > _______________________________________________ > packaging mailing list -- packaging@xxxxxxxxxxxxxxxxxxxxxxx > To unsubscribe send an email to > packaging-leave@xxxxxxxxxxxxxxxxxxxxxxx > Fedora Code of Conduct: > https://docs.fedoraproject.org/en-US/project/code-of-conduct/ > List Guidelines: > https://fedoraproject.org/wiki/Mailing_list_guidelines > List Archives: > https://lists.fedoraproject.org/archives/list/packaging@xxxxxxxxxxxxxxxxxxxxxxx > Do not reply to spam on the list, report it: > https://pagure.io/fedora-infrastructure -- Sérgio M. B. _______________________________________________ packaging mailing list -- packaging@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to packaging-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/packaging@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure