rpm/fileattrs
Panu Matilainen 8901a6be16 Generate requires for "pure" ELF DSO's regardless of executable bit
ELF ET_DYN files can be shared libraries, executable files or both.
Requiring shared libraries that cannot actually be executed (or segfault
when you do so) is dumb, but rpm has traditionally required executable
bit to be set for requires to be generated.

Refine the definition of "executable" to mean files that actually *can*
be executed, ie those with PT_INTERP and whose actual behavior depends
on whether the executable bit is set or not.

In other words, pure shared libraries will have requires generated
regardless of their permission, but executable files can still disable
that by disabling the on-disk executable bit because unlike shared
libraries, they only require anything when being executed.

Also add rudimentary testcases for the scenarios involving a shared
library, traditional binary and a PIE binary. The test material needs
to be pre-built as we cannot predict what dependencies building on an
arbitrary compiler on arbitrary platform may have, but source is
included for manually regenerating as needed.
2020-11-24 14:47:12 +02:00
..
Makefile.am Drop outdated and unmaintained Mono dependency generators 2019-04-24 13:43:01 +03:00
debuginfo.attr Convert debuginfo generator to a parametric generator 2020-04-21 14:49:19 +03:00
desktop.attr Convert desktop generator to a parametric generator 2020-04-21 14:49:19 +03:00
elf.attr Generate requires for "pure" ELF DSO's regardless of executable bit 2020-11-24 14:47:12 +02:00
font.attr Tweak font magic regex a bit (yet again) 2012-05-07 14:54:13 +03:00
libtool.attr Rename pattern -> path for, duh, path patterns 2010-12-10 12:33:46 +02:00
metainfo.attr metainfo.attr: Fix execution of the generator 2020-06-08 10:47:12 +03:00
ocaml.attr Fix regression causing all ELF files classified as OCaml 2020-04-09 14:59:12 +03:00
perl.attr Adapt perl and python fileattrs to file 5.10 magics 2012-01-10 10:48:13 +02:00
perllib.attr Only consider files with .pm suffix as perl modules (RhBug:927211) 2013-05-22 08:38:53 +03:00
pkgconfig.attr Rename pattern -> path for, duh, path patterns 2010-12-10 12:33:46 +02:00
python.attr Fix python(abi) requires generator, it picked files from almost good directories 2020-07-10 15:55:24 +02:00
pythondist.attr fileattrs: Tighten pythondist path regex for metadata (RhBug:1618949) 2018-10-03 14:19:01 +03:00
script.attr Adjust script detection rules to work with file >= 5.07 too (RhBug:712251) 2011-06-10 12:11:55 +03:00