Commit Graph

319 Commits

Author SHA1 Message Date
Roland McGrath c72fc6adba Fix find-debuginfo.sh behavior on cross-directory hardlinks (RhBug:618426)
- The find-debuginfo.sh script makes hard links of .debug files to
  correspond to hard links between install binaries.  It can fail to
  create one of these .debug hard links if it's in a directory that
  didn't exist at that point in the script run. How this happens
  depends on things like the order "find" lists files, so it can
  be hard to reproduce off hand.
2010-08-09 15:29:15 +03:00
Tom Tromey 9570a7f6af Create GDB index from find-debuginfo if possible (RhBug:617166)
- Details in https://fedoraproject.org/wiki/Features/GdbIndex
2010-08-09 15:28:36 +03:00
Panu Matilainen d44d2ec682 Ugh, fix reversed condition on font-provide extractor
- braindamage in commit 53045d5dcd
2010-07-02 13:23:11 +03:00
Panu Matilainen 53045d5dcd Fix potential getOutputFrom() error on font provide extraction (RhBug:609117)
- if fonts are detected in the package being built but fc-query isn't
  present, the script exited without consuming stdin which can break
  getOutputFrom()
2010-06-30 11:57:17 +03:00
Ville Skyttä 7caf820c77 Extract dependencies from "use base qw"..."" and "use base qw'...'". 2010-06-29 13:18:52 +03:00
Till Maas 2d468d2cd9 Search all locale dirs in find-lang.sh, not just those under share/ (#159) 2010-05-20 11:35:16 +03:00
Pavol Rusnak 3b96dfb29a Don't process desktop files without Type=Application and Exec= line 2010-05-04 12:51:21 +03:00
Ville Skyttä bacfca16c3 More here-doc skipping fixes for perl.req (#128). 2010-03-24 10:33:45 +02:00
Panu Matilainen 3c7af7c9ff Lose ancient and bitrotten rpmdiff scripts (ticket #148)
- More modern tools for diffing rpms exist, ones that use librpm
  instead of trying to parse the lowlevel header structures and tags
  by themselves. Nobody appears to use these scripts as they've been
  dysfunctional since eons ago, might as well drop them off.
2010-03-15 12:37:16 +02:00
Panu Matilainen b5b6fae804 Lose useless xinetd service stub (ticket #149)
- this never did anything to begin with, and BDB >= 4.8 doesn't support
  RPC at all so...
2010-03-15 12:30:02 +02:00
Ville Skyttä b8f47a77f5 Emit highest versions of perl module deps, not first versioned ones found.
Requires the "version" module installed (perl >= 5.9 or separately), falls
back to the previous "output first versioned one found" behavior if it is
not available.
2010-03-01 11:52:50 +02:00
Ville Skyttä c4b4a7e712 Fix open POD section leak across different files in perl.req. 2010-03-01 11:51:41 +02:00
Ville Skyttä 0ffc1e9143 Make perl.{req,prov} warn about unreadable files. 2010-03-01 11:50:29 +02:00
Panu Matilainen e7f73133cb Extract #!/usr/bin/env interpreter dependencies, part 1 (ticket #136)
- With "#!/usr/bin/env <interpreter>" shebang directives, rpm previously
  only added a dependency for /usr/bin/env, completely missing the
  actual interpreter. If the interpreter happens to be an absolute path, we
  can just add it as is.
- Patch originally from Ville Skyttä
2010-02-18 15:23:02 +02:00
Panu Matilainen 11ed0f75fe Script/interpreter terminology renaming
- No functional changes, just making more obvious mapping between
  attributes and the dependency extractor names. This also leaves the
  term "interpreter" free for use for the actual interpreters, such
  as interpreter(python) provides if we go that way (ticket #136).
2010-02-18 10:35:21 +02:00
Panu Matilainen 22392d2245 Skip over =for ... perlpod construct (RhBug:477516)
- patch from Ville Skyttä
2010-02-15 08:52:54 +02:00
Ville Skyttä c2b1b54500 Don't trump versioned module dependencies with unversioned ones. 2010-02-15 08:49:15 +02:00
Ville Skyttä a50c3e9d69 Extract dependencies from some usual syntaxes of "use base qw(Foo)". 2010-02-15 08:45:26 +02:00
Ville Skyttä 56e8074b47 Trivial perl.req cleanups.
Drop dead code, comment fixes, weed out duplicate dependencies to perl
(done by rpm itself anyway, but does not hurt to do it already on this
level for cleaner results when testing).
2010-02-15 08:44:51 +02:00
Ville Skyttä 38de3b54f8 Emit dependencies only to interpreters with absolute paths. 2010-02-11 15:45:23 +02:00
Ville Skyttä 06224459a5 Allow whitespace between #! and the interpreter. 2010-02-11 15:44:44 +02:00
Ville Skyttä 398ae27985 Avoid some unnecessary command invocations in scripts. 2010-02-11 15:40:09 +02:00
Ville Skyttä 4302a06700 Avoid some stat() calls. 2010-02-11 15:39:36 +02:00
Ville Skyttä 0f743d36d6 Fix reversed logic in getSystemBundles(). 2010-02-11 15:39:29 +02:00
Panu Matilainen a79822f382 Separate helper for script interpreters, split out of librpmbuild
- permit overriding/customization of script interepreter dependencies
- unlike the C-version, the interpreter.req only looks at the first line
  for shebang: libmagic only looks at the first line too, so anything
  else will never get classified as scripts in the first place
2010-02-10 11:19:49 +02:00
Panu Matilainen 3a3152981c Unbreak python(abi) requires generation (RhBug:562906)
- commit 426a7b6f44 caused pythondeps.sh
  to match too much, undo the damage
- patch from David Malcolm
2010-02-09 09:37:51 +02:00
Panu Matilainen 7617dfec85 brp-python-bytecompile fixes + improvements (RhBug:558997)
- fix incorrect paths (eg /site-packages/filename.py instead of
  /usr/lib/pythonX.Y/site-packages/filename.py) ending up in bytecode
- add a "strict" mode where byte-compilation errors will abort the build
- when in non-strict mode, byte-compile everything we can instead of
  bailing out at first error
- patch originally from Toshio Kuratomi, slightly changed to preserve
  the original order of arguments to avoid unnecessary incompatibilities
2010-02-03 12:26:23 +02:00
Panu Matilainen c18d9f962d Remove misleading leftover comments from ocaml-dep extractors
- ocaml dependency extraction is fully automated, no need to override
  anything (except perhaps options but that's different)
2010-02-01 13:39:42 +02:00
Panu Matilainen 5864f68c10 Eliminate unnecessary processing on scripts/macros.*
- these used to require processing for rpm config dir location
  but not anymore since %{_rpmconfigdir} addition
2010-02-01 13:39:42 +02:00
Panu Matilainen 426a7b6f44 Support multiple parallel python versions in pythondeps.sh
- dont make assumptions about /usr/bin/python, extract the ABI version
  from python libdir version
- patch from David Malcolm
2010-01-30 12:12:02 +02:00
Panu Matilainen bd663944e5 Add brp-python-hardlink script
- hardlink identical .pyc and .pyo files to same some space
- not enabled by default
- originally from Ville Skyttä for redhat-rpm-config but the functionality
  is not specific to Fedora or derivates in any way
2010-01-27 14:03:10 +02:00
Panu Matilainen 79859ff04f Pass %{__strip} and %{__objdump} to brp-strip* scripts
- permits easy overriding of the used tools globally
2010-01-27 09:40:15 +02:00
Panu Matilainen 010b342d62 Make sure brp-compress doesn't go interactive in corner cases
- add --force to uncompressing so in corner cases it'll just overwrite
  instead of stopping to ask interactively
2010-01-27 09:26:36 +02:00
Ville Skyttä fa462d6957 perl.{req,prov} whitespace, backslash and paren cleanups. 2010-01-25 12:35:12 +02:00
Ville Skyttä 7c8d054c1b Do not emit perl(#) dependencies for multiline use/require with comments.
For example:

    use # comment goes here
        Foo::Bar;
2010-01-25 12:29:13 +02:00
Ville Skyttä 79b0ebedc1 Use grep -E and grep -F instead of egrep and fgrep.
egrep and fgrep are deprecated in GNU grep and "historical" in POSIX.
2009-12-17 10:43:52 +02:00
Panu Matilainen d6bda5a166 Avoid noise from python bytecompile on non-python pkgs (RhBug:539635)
- If a pattern doesn't match, we'd prefer an empty list instead of
  unexpanded garbage thank you... nullglob shell option is just what the
  doctor ordered but unfortunately its a bash-specific thing. Otoh there
  are number of other bash-specific scripts in rpm so probably not
  much of an issue...
2009-12-08 16:06:44 +02:00
Panu Matilainen f0f94cc9df Remove pointless message translation from check-buildroot
- these scripts aren't processed for translation and unlikely to ever be...
- fixes the remaining complaint from ticket #62
2009-11-27 15:13:43 +02:00
Panu Matilainen 45e4cca1ea Remove ancient broken scripts from the repository
- also eliminates one more "bashism" complaint of ticket #62
2009-11-27 15:10:57 +02:00
Panu Matilainen 443d4f4d72 Fiddling with ulimit settings does not belong to dep extractor scripts
- fixes one of the bashisms in ticket #62
2009-11-27 14:55:12 +02:00
Panu Matilainen 5463570061 Support multiple python versions in brp-python-bytecompile (RhBug:53117)
- For *.py files in python library path, use matching python interpreter
  version for compiling, this is especially needed for Python 3 which
  is very different from Python 2 code. And even if the code compiled
  with a wrong version, it would be recompiled at run-time when invoked
  with the intended python version, causing verification errors etc.
- For *.py files outside the library path, use "system python" which
  might not be always correct but we dont really know any better.
- Patch from David Malcolm
2009-10-27 16:07:43 +02:00
Panu Matilainen 63175d4d31 Avoid using python's print for Python 3.x compatibility
- print chanced from statement to a function in python 3, for our
  purposes sys.stdout.write() is sufficient and avoids dealing with
  the incompatibilities between Python 2.x and 3.x
- suggested by David Malcolm / Ville Skyttä
2009-10-19 10:30:48 +03:00
Panu Matilainen 733032dd1a Bah, get the new ocaml-scripts into tarballs too
- should've been in commit 82e7dd7020
2009-10-06 13:22:22 +03:00
Panu Matilainen 15fb8ccb41 Teach the internal dep generator about OCaml
- OCaml seems to have fairly well detectable magic in its files, nice
- Dont call the regular find-requires from the scripts now that internal
  is working
2009-10-06 12:34:44 +03:00
Panu Matilainen 82e7dd7020 Add OCaml dependency generator scripts (Richard W.M. Jones) 2009-10-06 12:29:37 +03:00
Ville Skyttä dab575b244 Improve perl.req here-doc skipping.
This version is stricter in finding the end identifier by using equality test
instead of a regex (as a side effect, fixes rhbz#524929) as well as parsing
quoted identifiers, and adds support for identifiers in backticks.
2009-10-06 09:21:31 +03:00
Panu Matilainen a22fda5b5a OSGi dependency generator fixes from Alphonse Van Assche (ticket #101)
- This patch fix some minor bug, remove unused code and increase drastically
  the perf by threading execution of tasks and using zip command instead of
  jar to get meta-data
2009-09-28 11:09:32 +03:00
Roland McGrath b69c5cf90d find-debuginfo.sh: use permissions 444 for all .debug files
Signed-off-by: Roland McGrath <roland@redhat.com>
2009-09-15 10:39:11 +03:00
Jindrich Novy eabfd39c3b Handle .desktop files with spaces in filename (rhbz#520920)
- thanks to Edward Sheldrake
2009-09-03 07:57:34 +02:00
Panu Matilainen 75c0d816a8 Add provide-extractors for fonts and desktop files
- extract mime handler capabilities from application .desktop files
- extract font family names and supported languages from font files
- both are used by PackageKit for on-demand installing of fonts and
  applications, but are useful for other things too
2009-09-01 10:52:12 +03:00