summaryrefslogtreecommitdiff
path: root/scripts
AgeCommit message (Collapse)AuthorFilesLines
2011-09-06Fix brp-python-bytecompile breakage from the recent whitespace patchPanu Matilainen1-1/+1
2011-09-06$RPM_BUILD_ROOT breaks brp-* scripts if it contains spaces (ticket #843)Jeff Tickle10-21/+22
- 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-05-26Add -r flag to find-debuginfo.sh to invoke eu-strip --reloc-debug-sections.Mark Wielaard1-2/+11
- 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-04-29Remove unneeded regex grouping.Ville Skyttä1-2/+2
Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
2011-04-29Comment spelling fix.Ville Skyttä1-1/+1
Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
2011-04-27Fix find-lang so that it finds *@*.qm QT i18n files (RhBug:699945)Jindrich Novy1-3/+3
2011-04-13Extract perl dependecies from "use parent qw(Foo)".Ville Skyttä1-2/+2
parent is a successor to base, with similar functionality. Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
2011-04-13Honor $TMPDIR in various scripts.Ville Skyttä3-7/+7
Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
2011-02-12Avoid emitting empty perl() module deps.Ville Skyttä1-1/+1
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-01-28Comment spelling fix.Ville Skyttä1-1/+1
Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
2010-12-03Require pkg-config 0.24 for creating pkgconfig() dependenciesPanu Matilainen1-1/+6
- 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-08-09Fix find-debuginfo.sh behavior on cross-directory hardlinks (RhBug:618426)Roland McGrath1-1/+1
- 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-09Create GDB index from find-debuginfo if possible (RhBug:617166)Tom Tromey1-0/+2
- Details in https://fedoraproject.org/wiki/Features/GdbIndex
2010-07-02Ugh, fix reversed condition on font-provide extractorPanu Matilainen1-1/+1
- braindamage in commit 53045d5dcdce3988e2586cb315b35e6a675a8152
2010-06-30Fix potential getOutputFrom() error on font provide extraction (RhBug:609117)Panu Matilainen1-1/+4
- 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-29Extract dependencies from "use base qw"..."" and "use base qw'...'".Ville Skyttä1-2/+2
2010-05-20Search all locale dirs in find-lang.sh, not just those under share/ (#159)Till Maas1-3/+3
2010-05-04Don't process desktop files without Type=Application and Exec= linePavol Rusnak1-4/+6
2010-03-24More here-doc skipping fixes for perl.req (#128).Ville Skyttä1-2/+2
2010-03-15Lose ancient and bitrotten rpmdiff scripts (ticket #148)Panu Matilainen3-1497/+3
- 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-15Lose useless xinetd service stub (ticket #149)Panu Matilainen2-18/+2
- this never did anything to begin with, and BDB >= 4.8 doesn't support RPC at all so...
2010-03-01Emit highest versions of perl module deps, not first versioned ones found.Ville Skyttä1-4/+20
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-01Fix open POD section leak across different files in perl.req.Ville Skyttä1-4/+4
2010-03-01Make perl.{req,prov} warn about unreadable files.Ville Skyttä2-2/+8
2010-02-18Extract #!/usr/bin/env interpreter dependencies, part 1 (ticket #136)Panu Matilainen1-1/+4
- 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-18Script/interpreter terminology renamingPanu Matilainen2-2/+2
- 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-15Skip over =for ... perlpod construct (RhBug:477516)Panu Matilainen2-2/+2
- patch from Ville Skyttä
2010-02-15Don't trump versioned module dependencies with unversioned ones.Ville Skyttä1-4/+4
2010-02-15Extract dependencies from some usual syntaxes of "use base qw(Foo)".Ville Skyttä1-1/+17
2010-02-15Trivial perl.req cleanups.Ville Skyttä1-8/+10
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-11Emit dependencies only to interpreters with absolute paths.Ville Skyttä1-1/+1
2010-02-11Allow whitespace between #! and the interpreter.Ville Skyttä1-1/+1
2010-02-11Avoid some unnecessary command invocations in scripts.Ville Skyttä2-3/+2
2010-02-11Avoid some stat() calls.Ville Skyttä1-3/+3
2010-02-11Fix reversed logic in getSystemBundles().Ville Skyttä1-1/+1
2010-02-10Separate helper for script interpreters, split out of librpmbuildPanu Matilainen2-2/+8
- 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-09Unbreak python(abi) requires generation (RhBug:562906)Panu Matilainen1-1/+1
- commit 426a7b6f44c6a0e1633693575c7bb6fcc76cf8a5 caused pythondeps.sh to match too much, undo the damage - patch from David Malcolm
2010-02-03brp-python-bytecompile fixes + improvements (RhBug:558997)Panu Matilainen1-8/+22
- 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-01Remove misleading leftover comments from ocaml-dep extractorsPanu Matilainen2-14/+4
- ocaml dependency extraction is fully automated, no need to override anything (except perhaps options but that's different)
2010-02-01Eliminate unnecessary processing on scripts/macros.*Panu Matilainen4-22/+4
- these used to require processing for rpm config dir location but not anymore since %{_rpmconfigdir} addition
2010-01-30Support multiple parallel python versions in pythondeps.shPanu Matilainen1-5/+15
- dont make assumptions about /usr/bin/python, extract the ABI version from python libdir version - patch from David Malcolm
2010-01-27Add brp-python-hardlink scriptPanu Matilainen2-2/+21
- 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-27Pass %{__strip} and %{__objdump} to brp-strip* scriptsPanu Matilainen4-5/+14
- permits easy overriding of the used tools globally
2010-01-27Make sure brp-compress doesn't go interactive in corner casesPanu Matilainen1-3/+3
- add --force to uncompressing so in corner cases it'll just overwrite instead of stopping to ask interactively
2010-01-25perl.{req,prov} whitespace, backslash and paren cleanups.Ville Skyttä2-59/+59
2010-01-25Do not emit perl(#) dependencies for multiline use/require with comments.Ville Skyttä1-1/+1
For example: use # comment goes here Foo::Bar;
2009-12-17Use grep -E and grep -F instead of egrep and fgrep.Ville Skyttä6-18/+18
egrep and fgrep are deprecated in GNU grep and "historical" in POSIX.
2009-12-08Avoid noise from python bytecompile on non-python pkgs (RhBug:539635)Panu Matilainen1-1/+2
- 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-11-27Remove pointless message translation from check-buildrootPanu Matilainen1-1/+1
- these scripts aren't processed for translation and unlikely to ever be... - fixes the remaining complaint from ticket #62
2009-11-27Remove ancient broken scripts from the repositoryPanu Matilainen3-206/+1
- also eliminates one more "bashism" complaint of ticket #62