summaryrefslogtreecommitdiffstats
path: root/bin/misc-functions.sh
Commit message (Collapse)AuthorAgeFilesLines
* Use posix compatible find -perm arguments. Thanks to Timothy RedaelliZac Medico2009-03-121-2/+2
| | | | | | <drizzt@g.o> for reporting. (trunk r13067) svn path=/main/branches/2.1.6/; revision=13081
* Move ebuild helpers into an ebuild-helpers subdirectory. (trunk r13063)Zac Medico2009-03-121-1/+2
| | | | svn path=/main/branches/2.1.6/; revision=13077
* for pointers cast to 32bit ints, we always want to abort on 64bit systems, ↵Zac Medico2009-03-111-7/+11
| | | | | | | | not just when FEATURES=stricter (trunk r12793) svn path=/main/branches/2.1.6/; revision=13027
* reject all set*id binaries that have DT_RPATH:$ORIGIN #260331 (trunk r12712)Zac Medico2009-03-111-3/+8
| | | | svn path=/main/branches/2.1.6/; revision=12967
* Fix headers that contain $Header instead of $Id. (trunk r12701)Zac Medico2009-03-111-2/+2
| | | | svn path=/main/branches/2.1.6/; revision=12956
* In dyn_package(), show a more informative die message if an error occurs whenZac Medico2009-03-111-1/+1
| | | | | | creating the tarball. (trunk r12618) svn path=/main/branches/2.1.6/; revision=12893
* (trunk r12559)Zac Medico2009-03-111-0/+2
| | | | svn path=/main/branches/2.1.6/; revision=12845
* (trunk r12374)Zac Medico2009-01-121-0/+1
| | | | svn path=/main/branches/2.1.6/; revision=12444
* (trunk r12345)Zac Medico2008-12-271-3/+3
| | | | svn path=/main/branches/2.1.6/; revision=12353
* 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. (trunk r12134) svn path=/main/branches/2.1.6/; revision=12135
* 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. (trunk r11907) svn path=/main/branches/2.1.6/; revision=11910
* 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
* tell rpmbuild to clean it's working files after completion, bug #97776Marius Mauch2008-03-031-1/+1
| | | | svn path=/main/trunk/; revision=9428
* Buf #210372 - Fix FEATURES=suidctl so that it really works again.Zac Medico2008-03-031-7/+8
| | | | svn path=/main/trunk/; revision=9423
* In the suidctl code, move the addwrite call out of the loop. Thanks to ferringb.Zac Medico2008-02-291-4/+4
| | | | svn path=/main/trunk/; revision=9399
* Bug #210372 - Fix suidctl.conf parser to look for paths with a leading slash.Zac Medico2008-02-191-1/+1
| | | | svn path=/main/trunk/; revision=9355
* don't record internal providers in NEEDED records as they are pointless for ↵Marius Mauch2008-02-051-2/+21
| | | | | | all useful applications in portage and complicate them instead (e.g. bug #205531) svn path=/main/trunk/; revision=9275
* Bug #205718 - Fix quoting of ${INSTALL_MASK} where appropriate. ThanksZac Medico2008-01-311-3/+3
| | | | | | to Ed Catmur <ed@catmur.co.uk> for this patch. svn path=/main/trunk/; revision=9256
* Fix a typo.Zac Medico2008-01-111-1/+1
| | | | svn path=/main/trunk/; revision=9184
* Bug #162450 - Try to avoid having so many bugs marked UPSTREAM byZac Medico2008-01-111-0/+7
| | | | | | | encouraging users to report 'poor programming practices' QA issues upstream and show them the $HOMEPAGE for convenience. svn path=/main/trunk/; revision=9176
* Make the FEATURES=sfperms loops safe for whitespace in pathsZac Medico2007-12-281-2/+4
| | | | | | by using find -print0 | while read -d $'\0'. svn path=/main/trunk/; revision=9083
* Bug #203323 - Fix the FEATURES=sfperms code so that it doesn't chmodZac Medico2007-12-281-6/+19
| | | | | | | g-r on binaries that are both setuid and setgid. In that case, just chmod o-r. svn path=/main/trunk/; revision=9061
* In "QA Notice: Precompiled python" messages, use sed to strip theZac Medico2007-12-151-1/+2
| | | | | | leading ${D} from file paths. svn path=/main/trunk/; revision=8935
* Check if ${EBUILD_EXIT_STATUS_FILE} is empty beforeZac Medico2007-11-261-1/+2
| | | | | | attempting to use it. svn path=/main/trunk/; revision=8686
* Bug #200313 - Detect and report when an ebuild phaseZac Medico2007-11-261-0/+2
| | | | | | | | | | | | | | | | exits unexpectedly. This is type of behavior is known to be triggered by things such as failed variable assignments (bug #190128) or bad substitution errors (bug #200313). We use a EBUILD_EXIT_STATUS_FILE environment variable to specify a file that the shell code is supposed to create when it exits in a normal manner. If the file does not get created like it's supposed to be then we can conclude that the shell has exited in some unexpected way. svn path=/main/trunk/; revision=8682
* Use `md5` if `md5sum` is not available (useful for FreeBSD users).Zac Medico2007-11-241-2/+10
| | | | svn path=/main/trunk/; revision=8643
* Use %% instead of % parameter expansion where appropriateZac Medico2007-11-231-1/+1
| | | | | | for md5sum output. svn path=/main/trunk/; revision=8613
* Make dyn_package() create a /var/db/pkg/*/*/BINPKGMD5 entriesZac Medico2007-11-221-0/+2
| | | | | | | so that packages installed via --buildpkg have a BINPKGMD5 entry matching the package built. svn path=/main/trunk/; revision=8597
* * Replace references to deprecated ${IMAGE} with equivalent ${D}.Zac Medico2007-11-141-23/+23
| | | | | | * Remove redundant trailing slashes and fix quoting. svn path=/main/trunk/; revision=8501