Commit Graph

341 Commits

Author SHA1 Message Date
Panu Matilainen c0e95f1ced Avoid locale issues in rpm2cpio.sh (RhBug:878363)
- In gawk >= 4.0.x printf() "adjusts" things according to current locale,
  but we need the data as it is. Forcing C locale prevents gawk from
  getting funny ideas about character conversions...
2012-11-22 12:22:06 +02:00
Panu Matilainen 66ed9fc616 Fix (well, loosen up) the valgrind suppression rules
- The previous rules far too specific to glibc + gcc with certain
  optimization levels, eg relying on parse_auxv() getting inlined
  and when it does not, the suppression rules would no longer match.
2012-07-30 17:29:47 +03:00
Panu Matilainen da01eb98c1 Add valgrind suppression file
- valgrind is not happy about us now processing /proc/self/auxv on Linux,
  this can be used to suppress the false positives when running
  rpm under valgrind. At least until a better solution is found or
  valgrind is taught to treat /proc/self/auxv specially (see
  https://bugs.kde.org/show_bug.cgi?id=253519)
2012-06-19 10:35:31 +03:00
Panu Matilainen 94eefb1128 Fix quoting in brp-python-hardlink (patch from Jon Nelson) 2012-04-23 15:35:29 +03:00
Vincent Untz 9ba41db49f Fix find-lang to correctly detect all translations for new gnome help
This was not working for locales with a territory (fr_FR, for instance).

Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
2012-03-19 10:04:47 +02:00
Panu Matilainen 1220f6642a Fix rpm2cpio.sh error exit on unrecognized compression
- This is not a function so it needs to be exit, not return.
  Reported as a side-note in RhBug:803421.
2012-03-15 11:41:40 +02:00
Panu Matilainen c3f3696742 Teach rpm2cpio.sh about xz compression (RhBug:674348 & others) 2012-03-12 15:26:01 +02:00
Panu Matilainen 6047ddf6aa Teach find-lang about the new gnome help layout (RhBug:736523) 2012-03-07 11:31:15 +02:00
Jan Kratochvil a5076ad258 Generate debug symlinks for all filenames sharing a build-id (RhBug:641377)
Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
2012-03-07 11:30:19 +02:00
Richard W.M. Jones 778442263e Correctly quote tr [:blank:] in OCaml dependency scripts.
This fixes: https://bugzilla.redhat.com/show_bug.cgi?id=796149

Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
2012-03-07 09:03:32 +02:00
Joshua Megerman d936230973 Fix brace matching on multiline constructs in perl.req (RhBug:752119)
- /usr/lib/rpm/perl.req scans for the opening brace type on lines, but
  then only scans for closing curly braces ('}') instead of the proper
  losing brace type when that closing brace occures on a different line.
  This means that any use/require statements that occur after the
  multi-line q{} statement but before the first closing curly brace in
  the file will be ignored.

Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
2011-12-14 17:19:12 +02:00
Panu Matilainen 547badd6ce Fix brp-python-bytecompile breakage from the recent whitespace patch 2011-09-06 22:37:42 +03:00
Jeff Tickle 31d807ffa8 $RPM_BUILD_ROOT breaks brp-* scripts if it contains spaces (ticket #843)
- This patch adds quotes around $RPM_BUILD_ROOT in places that I noticed
  they were missing, and attempts to handle some of the problems that can
  occur when looping over the output of find.

Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
2011-09-06 09:52:19 +03:00
Mark Wielaard 40a7e19fbe Add -r flag to find-debuginfo.sh to invoke eu-strip --reloc-debug-sections.
- This is a new option to eu-strip that strips out/resolves relocations
  between .debug_* elf sections in ET_REL files. This can save a lot of
  space for kernel module.

Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
2011-05-26 10:30:50 +03:00
Ville Skyttä 5d297141cd Remove unneeded regex grouping.
Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
2011-04-29 08:49:29 +03:00
Ville Skyttä 2974af1466 Comment spelling fix.
Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
2011-04-29 08:49:19 +03:00
Jindrich Novy b19a896ecd Fix find-lang so that it finds *@*.qm QT i18n files (RhBug:699945) 2011-04-27 10:28:43 +02:00
Ville Skyttä 2511b09679 Extract perl dependecies from "use parent qw(Foo)".
parent is a successor to base, with similar functionality.

Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
2011-04-13 14:53:08 +03:00
Ville Skyttä 6331fec6e4 Honor $TMPDIR in various scripts.
Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
2011-04-13 14:49:36 +03:00
Ville Skyttä d3475ef468 Avoid emitting empty perl() module deps.
Test case from DOM.pm (perl-CSS-DOM 0.13):

use   # to keep CPANTS happy :-)
   strict;
use   # same here
   warnings;

Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
2011-02-12 13:11:22 +02:00
Ville Skyttä 8125ca5b5d Comment spelling fix.
Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
2011-01-28 15:17:11 +02:00
Panu Matilainen 0cc5e818a9 Require pkg-config 0.24 for creating pkgconfig() dependencies
- The support for --print-requires|provides was only upstreamed in
  pkg-config 0.24, prior to that it relied on distros patching their
  pkg-config. Rpm relying on non-upstream stuff is not good...
  Now that it's upstream we can make a clean break and simply not
  even try to generate the dependencies with anything older.
- The upstreamed version behaves slightly differently from what distros
  were patching with, for rpm's purposes we also want
  --print-requires-private now.
2010-12-03 12:44:49 +02:00
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