summaryrefslogtreecommitdiffstats
path: root/bin/misc-functions.sh
Commit message (Collapse)AuthorAgeFilesLines
* Add a xpak-helper.py script, so that shell code always calls python viaZac Medico2009-10-111-1/+2
| | | | | | a shebang. svn path=/main/trunk/; revision=14575
* Add some more EPYTHON safety.Zac Medico2009-10-111-2/+2
| | | | svn path=/main/trunk/; revision=14570
* Bug #274497 - Misc spelling, grammar, and terminology fixes, includingZac Medico2009-10-091-3/+3
| | | | | | URL -> URI and FOO's -> FOOs. svn path=/main/trunk/; revision=14531
* Fix false positives in gcc QA with debug mode some more. Thanks again toZac Medico2009-09-081-3/+3
| | | | | | Amit Dor-Shifer <amitds@oversi.com> for reporting. svn path=/main/trunk/; revision=14218
* Fix code from previous commit so it's guaranteed to always properly resetZac Medico2009-09-081-2/+6
| | | | | | debug state. svn path=/main/trunk/; revision=14215
* In debug mode, avoid showing gcc QA search strings in the trace, so they won'tZac Medico2009-09-081-0/+4
| | | | | | | trigger false positives. Thanks to Amit Dor-Shifer <amitds@oversi.com> for reporting. svn path=/main/trunk/; revision=14214
* Avoid potential empty lines in warnings about missing SONAMEs or NEEDED ↵Arfrever Frehtes Taifersar Arahesis2009-08-211-0/+2
| | | | | | entries. Found by Zac Medico. svn path=/main/trunk/; revision=14119
* Rename QA_NEEDED to QA_DT_NEEDED.Arfrever Frehtes Taifersar Arahesis2009-08-211-6/+6
| | | | svn path=/main/trunk/; revision=14117
* Add support for QA_SONAME variable (bug #281964). Add support for QA_NEEDED ↵Arfrever Frehtes Taifersar Arahesis2009-08-211-5/+50
| | | | | | variable. svn path=/main/trunk/; revision=14115
* Support QA_DT_HASH_${ARCH} and QA_PRESTRIPPED_${ARCH} (bug #271416).Arfrever Frehtes Taifersar Arahesis2009-08-211-0/+2
| | | | svn path=/main/trunk/; revision=14114
* Bug #277544 - Add missing -c switch in bzip2 arguments. Thanks to Michał GórnyZac Medico2009-08-061-1/+1
| | | | | | <gentoo@mgorny.alt.pl> for the patch. svn path=/main/trunk/; revision=13934
* align with Prefix, also warn on sparcv9 hosts -- 64-bits Solaris/SparcFabian Groffen2009-07-161-1/+1
| | | | svn path=/main/trunk/; revision=13831
* add hppa64 to the 64bit list as pointed out by Michael HaubenwallnerMike Frysinger2009-07-161-1/+1
| | | | svn path=/main/trunk/; revision=13828
* Bug #268929 - Add grep for 'dereferencing pointer' messages produced byZac Medico2009-05-311-0/+1
| | | | | | gcc 4.4. Thanks to ABCD <en.ABCD@gmail.com> for this patch. svn path=/main/trunk/; revision=13626
* Bug #267175 - Instead of "poor code kills airplanes", say "install abortedv2.2_rc32Zac Medico2009-05-011-2/+4
| | | | | | | | due to poor programming practices shown above" in order to help the user link the die message to the related "poor programming practices" messages. Thanks to Jeremy Olexa <darkside@g.o> for the suggestion. svn path=/main/trunk/; revision=13584
* Make portage.bsd_chflags correspond to FEATURES=chflags so that it can beZac Medico2009-04-131-4/+2
| | | | | | used for related conditionals in shell code. svn path=/main/trunk/; revision=13342
* reword the qa execstack notice since it can be triggered by pt_load sections ↵Mike Frysinger2009-03-311-5/+5
| | | | | | and not stacks svn path=/main/trunk/; revision=13257
* Use posix compatible find -perm arguments. Thanks to Timothy RedaelliZac Medico2009-03-121-2/+2
| | | | | | <drizzt@g.o> for reporting. svn path=/main/trunk/; revision=13067
* Move ebuild helpers into an ebuild-helpers subdirectory.Zac Medico2009-03-121-1/+2
| | | | svn path=/main/trunk/; revision=13063
* for pointers cast to 32bit ints, we always want to abort on 64bit systems, ↵Mike Frysinger2009-03-081-7/+11
| | | | | | not just when FEATURES=stricter svn path=/main/trunk/; revision=12793
* reject all set*id binaries that have DT_RPATH:$ORIGIN #260331Mike Frysinger2009-02-261-3/+8
| | | | svn path=/main/trunk/; revision=12712
* Fix headers that contain $Header instead of $Id.Zac Medico2009-02-231-2/+2
| | | | svn path=/main/trunk/; revision=12701
* In dyn_package(), show a more informative die message if an error occurs whenZac Medico2009-02-151-1/+1
| | | | | | creating the tarball. svn path=/main/trunk/; revision=12618
* - hardened gets way to many misfiled bugs related to qa-execstack. Make it ↵Ned Ludd2009-01-281-0/+2
| | | | | | clear that bugs go to the maintainers of the pkg and not hardened for fun and profit svn path=/main/trunk/; revision=12559
* export STRIP_MASK automaticallyMike Frysinger2009-01-011-0/+1
| | | | svn path=/main/trunk/; revision=12374
* scan archives of objects for exec stacksMike Frysinger2008-12-251-3/+3
| | | | svn path=/main/trunk/; revision=12345
* Source bashrc files as late as possible, giving them the opportunity toZac Medico2008-12-021-0/+1
| | | | | | | override as much as possible. Thanks to Ned Ludd <solar@g.o> for the suggestion. svn path=/main/trunk/; revision=12134
* In dyn_package(), use the 'assert' macro (from isolated-functions.sh) die ifZac Medico2008-11-141-2/+2
| | | | | | PIPESTATUS array contains a non-zero exist status. svn path=/main/trunk/; revision=11909
* Bug #186842 - Suppress file merge display, as previously done in --quiet ↵Zac Medico2008-10-211-1/+1
| | | | | | | | | mode, whenever --verbose is not enabled. Also, export PORTAGE_VERBOSE to the ebuild environment and use it to control tar verbosity when creating binary packages. svn path=/main/trunk/; revision=11709
* Remove unneeded quotes from PYTHONPATH assignments and also fix one moreZac Medico2008-09-131-1/+1
| | | | | | potential redundant colon inside misc-functions.sh. svn path=/main/trunk/; revision=11512
* Don't mention log files in $T for eqawarn messages since the logs are likelyZac Medico2008-09-061-6/+3
| | | | | | | to get removed and the user can just use the log from elog anyway. Thanks to Jeremy Olexa <darkside@g.o> for the suggestion. svn path=/main/trunk/; revision=11498
* In the ignored LDFLAGS check, filter out anything under /usr/lib/debug/ inZac Medico2008-09-061-1/+4
| | | | | | | order to avoid duplicate warnings for splitdebug files. Thanks to Cardoe for the suggestion. svn path=/main/trunk/; revision=11497
* Use ${NORMAL} to properly restore color when necessary.Zac Medico2008-07-271-1/+1
| | | | svn path=/main/trunk/; revision=11221
* Fixes from Arfrever:Zac Medico2008-07-271-1/+3
| | | | | | | * Highlight the "Files built without respecting LDFLAGS" QA Notice with red. * Remove scanelf-ignored-LDFLAGS.log when empty. svn path=/main/trunk/; revision=11216
* Temporarily `set -o noglob` when splitting QA_DT_HASH.Zac Medico2008-07-271-0/+4
| | | | svn path=/main/trunk/; revision=11206
* Bug #233077 - Add QA check which verifies that LDFLAGS are respected. For nowZac Medico2008-07-271-0/+31
| | | | | | | | | | | | | this only works when LDFLAGS contains --hash-style=gnu since in this case the the elf files should not contain .hash sections and we can use scanelf to check whether or not the those sections exist. This adds a QA_DT_HASH variable that is analogous to existing QA control variables documented in the ebuild.5 man page. There is also a complementary QA_STRICT_DT_HASH variable that can be set in make.conf in order to ignore QA_DT_HASH settings in ebuilds. Thanks to Arfrever Frehtes Taifersar Arahesis for this patch which I've tweaked in just a few minor ways. svn path=/main/trunk/; revision=11205
* * Use pure bash ${PARAMETER%/*} instead of spawing`dirname`.Zac Medico2008-07-261-2/+2
| | | | | | * Break out of loop as early as possible when searching for libs in ${D}. svn path=/main/trunk/; revision=11199
* Replace hardcoded i386 machine name in dyn_rpm() with the result of `uname -m`.Zac Medico2008-07-261-1/+3
| | | | svn path=/main/trunk/; revision=11195
* * For bug 227625, automatically create the /usr/src/rpm/SOURCES directory whenZac Medico2008-07-261-1/+4
| | | | | | | | | necessary. * Add `cd "${T}"` at the beginning of dyn_rpm() since the spec file is written to $PWD. svn path=/main/trunk/; revision=11194
* Since lots of packages will have to be fixed before stable portage can abortZac Medico2008-07-151-9/+29
| | | | | | | | | with "this code is not 64bit clean", convert the die call to an eerror message instructing the user to file a bug at bugs.gentoo.org. This should allow us to stabilize portage-2.2 without having to ensure that the entire stable tree is 64 bit clean first. svn path=/main/trunk/; revision=11057
* In install_mask(), discard stderr messages from the 'find' commandZac Medico2008-05-061-1/+1
| | | | | | | since some tokens from INSTALL_MASK can trigger lots of warnings and errors that are irrelevant for our purposes. svn path=/main/trunk/; revision=10220
* Use find -path -or -name to match basenames of files in INSTALL_MASKZac Medico2008-05-051-1/+2
| | | | | | as suggested by solar in bug #219286, comment #8. svn path=/main/trunk/; revision=10212
* rename NEEDED.2 to NEEDED.ELF.2 to allow other ABI formats to use a ↵Marius Mauch2008-05-021-2/+2
| | | | | | different syntax svn path=/main/trunk/; revision=10085
* fix logic errorMarius Mauch2008-04-271-1/+1
| | | | svn path=/main/trunk/; revision=9998
* actually use rpath for the internal lib checkMarius Mauch2008-04-271-1/+5
| | | | svn path=/main/trunk/; revision=9997
* some minor code fixesMarius Mauch2008-04-271-3/+3
| | | | svn path=/main/trunk/; revision=9996
* as NEEDED files don't conain enough formation for e.g. preserve-libsto work ↵Marius Mauch2008-04-251-5/+11
| | | | | | properly and we don't want to change the format of existing files create another file including additional information svn path=/main/trunk/; revision=9970
* Bug #214619 - Run dyn_package() and preinst_mask() from ${T} instead ofZac Medico2008-03-291-3/+9
| | | | | | | | | ${D} in order to avoid leaving gmon.out files in ${D} in case any tools were built with -pf in CFLAGS. Also, call preinst_mask() after all other functions so that INSTALL_MASK can be used to wipe out any gmon.out files created during previous functions. svn path=/main/trunk/; revision=9592
* Fix quoting for ${root} in install_mask().Zac Medico2008-03-291-1/+1
| | | | svn path=/main/trunk/; revision=9590
* Bug #214619 - Add support for a PORTAGE_BINPKG_TAR_OPTS variable thatZac Medico2008-03-281-1/+2
| | | | | | | allows the user to specify tar command options for binary package creation. svn path=/main/trunk/; revision=9528