summaryrefslogtreecommitdiffstats
path: root/bin/misc-functions.sh
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Remove references to ${O} in dyn_spec() since antarusZac Medico2007-11-061-1/+1
| | | | | | made that variable mutable. svn path=/main/trunk/; revision=8444
* Avoid an error message from find when "${D}"/usr/shareZac Medico2007-10-131-1/+1
| | | | | | does not exist. svn path=/main/trunk/; revision=8117
* add QA check for .pyc/.pyo files in /usr/shareMike Frysinger2007-10-071-0/+10
| | | | svn path=/main/trunk/; revision=7990
* Bug #190214 - Make the rpm phase use /usr/src/rpm instead of /usr/src/redhat.Zac Medico2007-08-251-4/+8
| | | | | | Bug #190144 - Use the realpath of DISTDIR so that things like subversion.eclass are compatible with sandbox. svn path=/main/trunk/; revision=7700
* filter out kernel modules from ELF QA checks #184443Mike Frysinger2007-08-171-4/+5
| | | | svn path=/main/trunk/; revision=7645
* Move ecompressdir and ecompress --dequeue after prepall.Zac Medico2007-08-041-1/+2
| | | | svn path=/main/trunk/; revision=7570
* Call ecompressdir and ecompress --dequeue outside of prepall since ↵Zac Medico2007-08-041-0/+2
| | | | | | ruby.eclass overrides prepall. svn path=/main/trunk/; revision=7568
* Use PF in dyn_package. Thanks to swegener.Zac Medico2007-07-171-1/+1
| | | | svn path=/main/trunk/; revision=7300
* Provide a default value for PORTAGE_BINPKG_TMPFILE in case the package phase ↵Zac Medico2007-06-241-0/+2
| | | | | | is called by the ebuild command. svn path=/main/trunk/; revision=6985
* Pass a temporary file name to the package phase in the environment variable ↵Zac Medico2007-05-231-15/+4
| | | | | | PORTAGE_BINPKG_TMPFILE and move the temporary file into place inside binarytree.inject(). This allows binarytree.inject() to perform the move while holding a lock. svn path=/main/trunk/; revision=6591
* When ${PKGDIR}/All/ doesn't exist, put packages in ${PKGDIR}/${CATEGORY}/ ↵Zac Medico2007-05-221-3/+11
| | | | | | instead. This new layout is backward compatible with portage-2.1.2 and it will be a requirement for new PORTAGE_BINHOST support that is comming. svn path=/main/trunk/; revision=6568