summaryrefslogtreecommitdiff
path: root/fileattrs
AgeCommit message (Collapse)AuthorFilesLines
2016-01-14Change how to add Package Provide to debuginfo package : add Package Provide ↵submit/tizen_common/20160119.101937submit/tizen_base/20160115.000631accepted/tizen/common/20160120.100937accepted/tizen/base/20160115.111010accepted/tizen_commonSoonKyu Park1-1/+2
using addPackageProvides_for_debuginfo_pkg Change-Id: Iee094726b58250b7e86ebd3b508e30eb7c5389c9
2013-02-02File attributesAnas Nashif9-4/+22
2012-05-07Simplify mono file magic regexPanu Matilainen1-1/+1
- Begin/end restrictions with wildcards on both ends dont make much sense, just match on the plain (sub)string
2012-05-07Relax python file magic regex somewhatPanu Matilainen1-1/+1
- libmagic sometimes adds trailing descriptions about encodings, line terminators and whatnot, we dont want to care about those (RhBug:796218) - not all python-related strings start with [pP]ython either, sometimes libmagic says "a python script" or "a /usr/bin/python script" and whatnot, so loose the start-of-line restriction as well
2012-05-07Tweak font magic regex a bit (yet again)Panu Matilainen1-1/+1
- Lose the pointless begin/end restrictions, take the optional space into account for both optional parts (one of the later issues in RhBug:757105)
2012-01-10Adapt perl and python fileattrs to file 5.10 magicsVille Skyttä2-2/+2
- file 5.10 has changed magics at least for perl and python scripts, samples: 5.09: a /usr/bin/perl -w script, ASCII text executable, with very long lines 5.10: Perl script, ASCII text executable, with very long lines 5.09: a /usr/bin/python script, ASCII text executable 5.10: Python script, ASCII text executable Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
2011-11-28Fix classification of ELF binaries with setuid/setgid bit, oops...Panu Matilainen1-1/+1
2011-11-25Identify "font collection" (data etc) as fonts also (RhBug:757105)Panu Matilainen1-1/+1
2011-06-10Adjust script detection rules to work with file >= 5.07 too (RhBug:712251)Panu Matilainen1-1/+1
- Somewhere between file 5.05 and 5.07 it started adding encoding to script descriptions, eg "<mumble> script text executable" became "<mumble> script, <encoding> text executable" breaking what had been working for 10+ years in the case of old find-requires. - Permit either comma or space after "script", this works for both old and new file.
2011-03-22Fix classification of ELF binaries with sticky bit (RhBug:689182)Panu Matilainen1-1/+1
2011-02-06Adjust OCaml detection rule for libmagic 5.04 -> 5.05 string changePanu Matilainen1-1/+1
2011-01-31Argh, yet more mono dependency generation braindamagePanu Matilainen1-2/+2
- Unlike some other scripts, mono-find-foo do not have .sh suffix, meh
2011-01-31Eww, mono rules both buggy AND missing from tarballs, doh.Panu Matilainen2-2/+2
2010-12-10Rename pattern -> path for, duh, path patternsPanu Matilainen4-4/+4
- 4.9 alpha used "pattern" but better fix the stupid name now than have to live with the non-obvious name forever
2010-12-01Oops, mono dependency extractors need a bunch of argumentsPanu Matilainen1-2/+2
- Regression from the initial conversion to the new system in commit 8c7e53ec80e84f48bfc67181f3d5dd81ecdb7523 - The buildroot doesn't need passing as arg anymore but for now, just keep it compatible
2010-12-01Unbreak perl module dependency extractionPanu Matilainen1-3/+3
- Dumb attribute vs macro name thinko/typo preventing it from working at all, duh. - At least for now, revert back to magic based pattern: we dont really know where all the perl modules might live. OTOH this relies on the ugly "all .pm files are perl modules for now" hack inside rpmfc.c. We could of course use a loose /.*\\.pm path rule too for the same effect and eliminate the hack, but that'd leave strange stuff into fileclass tags when libmagic fails to detect its actually perl. Need to figure out something better here... maybe allow overriding libmagic detected strings from foo.attr or such.
2010-10-05Require file attribute config to have .attr suffixPanu Matilainen12-2/+2
- Allows for more precise globbing, avoiding potential issues from leftover / accidentally placed files in the fileattrs directory.
2010-10-05Replace __foo_exeonly attribute with a more generic mechanismPanu Matilainen3-3/+3
- Use a list of text keyword tokens to allow for more flags without requiring adding special processing for every new flag we make
2010-03-23First take at pluggable file attribute + dependency extraction systemPanu Matilainen12-0/+45
- move most of the hardwired classification logic from rpmfc C-code to macro-based configuration, supporting drop-in addition of arbitrary new attributes + dependency extractors based on regex matching of libmagic file types and paths - just the initial rough conversion of our built-in dependency types, various open questions + todo-items remain, plus likely fair amount of more-or-less subtle breakage