summaryrefslogtreecommitdiffstats
path: root/bin
Commit message (Collapse)AuthorAgeFilesLines
* Simplify the userland detection code in portage.data and addZac Medico2007-12-291-0/+11
| | | | | | a bash version of it to isolated-functions.sh. svn path=/main/trunk/; revision=9100
* Move XARGS initialization from portage.data to isolated-functions.sh.Zac Medico2007-12-291-0/+11
| | | | svn path=/main/trunk/; revision=9096
* Bug #202697 - Add / to the default initial SANDBOX_READ in order toZac Medico2007-12-281-1/+1
| | | | | | | avoid a situation where attempts to read arbitrary files trigger sandbox violations. svn path=/main/trunk/; revision=9085
* 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
* Fixes for logic related to FEATURES=test to USE=test mapping:Zac Medico2007-12-283-9/+10
| | | | | | | | | | | | | | | * Add EBUILD_FORCE_TEST to the environment whitelist and filter it from the saved environment in save_ebuild_env(). * Tweak logic inside the ebuild command and config.regenerate() so that EBUILD_FORCE_TEST works even in odd cases like when USE=test is masked. * Only make FEATURES=test map to USE=test when "test" is actually in IUSE. * Remove USE=test from the set of implicit IUSE so that useq() calls in ebuild.sh properly generate a QA Notice when "test" is missing from IUSE. svn path=/main/trunk/; revision=9064
* Always make sure that the depend phase triggers a source ${EBUILD}Zac Medico2007-12-281-1/+5
| | | | | | call, even if "${T}"/environment happens to exist for some reason. svn path=/main/trunk/; revision=9062
* 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
* Minor code readablity enhancements:Zac Medico2007-12-281-6/+8
| | | | | | | | | * Use relative_path and full_path variables for files being checked instead of spreading code like x+"/files/"+y all over the place. * Use stat.S_IMODE with octal 0111 instead of hex 0x0248 in the file.executable checks. svn path=/main/trunk/; revision=9060
* Bug #201498 - Use desktop-file-validate to validate *.desktopZac Medico2007-12-281-1/+27
| | | | | | | | files inside ${FILESDIR} and generate a "desktop.invalid" qa warning if an error is detected. Thanks to Betelgeuse for the initial patch. svn path=/main/trunk/; revision=9059
* Fix broken handling of the tuple that's returned from Zac Medico2007-12-261-1/+1
| | | | | | verify_all(). Thanks to Betelgeuse. svn path=/main/trunk/; revision=9056
* Fix sync_local() to return 0 when a appropriate. Thanks toZac Medico2007-12-261-0/+1
| | | | | | Alon Bar-Lev" <alonbl@gentoo.org> svn path=/main/trunk/; revision=9055
* Bug #203239 - With FEATURES=noauto, always source ${EBUILD}.Zac Medico2007-12-251-4/+5
| | | | | | | This will load the ${T}/environment file if available and then source ${EBUILD} to overwrite any functions that have changed. svn path=/main/trunk/; revision=9051
* Remove redundant find_binary import.Zac Medico2007-12-231-1/+0
| | | | svn path=/main/trunk/; revision=9046
* Implement a `portageq contents <root> <category/package>` commandZac Medico2007-12-211-0/+25
| | | | | | | that lists all the files that are installed for a given package, with one file listed on each line. svn path=/main/trunk/; revision=9035
* Typo: remove bogus argument.Zac Medico2007-12-211-1/+1
| | | | svn path=/main/trunk/; revision=9034
* Enhance the portageq match command to list all installed packagesZac Medico2007-12-211-9/+14
| | | | | | when given an empty string. svn path=/main/trunk/; revision=9033
* Eliminate redundant "notadded" error filtering.Zac Medico2007-12-211-7/+1
| | | | svn path=/main/trunk/; revision=9023
* Bug #202566 - Move the 'global portage' statement to avoidZac Medico2007-12-211-1/+2
| | | | | | | | "SyntaxWarning: name 'portage' is assigned to before global declaration" messages produced by earlier python-2.4. svn path=/main/trunk/; revision=9004
* Hardcode #!/bin/bash for consistency with other scripts.Zac Medico2007-12-201-1/+1
| | | | svn path=/main/trunk/; revision=9002
* Bug #140180 - Ignore missing HOMEPAGE and LICENSE variables forZac Medico2007-12-191-1/+2
| | | | | | new-style virtual packages. svn path=/main/trunk/; revision=8965
* Only enable the PORTAGE_IUSE check during build time phasesZac Medico2007-12-181-1/+6
| | | | | | since that's the only time it's valid for now. svn path=/main/trunk/; revision=8951
* Create a PORTAGE_IUSE variable containing an egrep patternZac Medico2007-12-181-10/+6
| | | | | | | | for use by the QA check that's built into useq(). This allows the IUSE logic for this check to be isolated in the python code. svn path=/main/trunk/; revision=8945
* Fix typo: %% -> ##.Zac Medico2007-12-181-1/+1
| | | | svn path=/main/trunk/; revision=8943
* Generalize the sed -> gsed wrapper script so that it'sZac Medico2007-12-181-10/+12
| | | | | | | | | possible to create awk, make, and patch symlinks that behave analogously. These symlinks will make it unnecessary for default-bsd profiles to define profile.bashrc aliases for these commands. svn path=/main/trunk/; revision=8942
* Fix setconfig.getSets() api breakage.Zac Medico2007-12-171-1/+1
| | | | svn path=/main/trunk/; revision=8937
* 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
* Move the reusable ConsoleStyleFile and StyleWriter classes intoZac Medico2007-12-151-52/+1
| | | | | | the ouput module. svn path=/main/trunk/; revision=8934
* Split out a format_qa_output() function to eliminate duplicate code.Zac Medico2007-12-151-59/+57
| | | | svn path=/main/trunk/; revision=8930
* Instead of all modes, only in commit mode save an extra copy of QAZac Medico2007-12-151-1/+3
| | | | | | output for display in $EDITOR. svn path=/main/trunk/; revision=8928
* Replace hardcoded green, yellow, and red with GOOD, WARN, and BAD.Zac Medico2007-12-151-3/+3
| | | | svn path=/main/trunk/; revision=8927
* Save QA output so that it can be conveniently displayedZac Medico2007-12-151-13/+99
| | | | | | | | | | | | | | in $EDITOR while the user creates a commit message. Otherwise, the user would not be able to see this output once the editor has taken over the screen. Output is done through a formatter object where it is captured for later use. A file-like object that behaves something like the portage.output.colorize() function is used to transfor style identifiers from the formatter framework into actual console codes. svn path=/main/trunk/; revision=8925
* Prompt the user before letting the editorZac Medico2007-12-141-0/+5
| | | | | | | take over the screen so there is an opportunity to review any QA warnings. svn path=/main/trunk/; revision=8923
* Add support for getting a commit message using an editor definedZac Medico2007-12-141-8/+81
| | | | | | by the EDITOR environment variable. svn path=/main/trunk/; revision=8921
* Add support for multi-line commit message input by using EOFZac Medico2007-12-141-6/+10
| | | | | | as a delimiter (Ctrl-d) instead of a new line. svn path=/main/trunk/; revision=8920
* Disable the "QA Notice: Pre-stripped files" message when RESTRICTZac Medico2007-12-131-6/+9
| | | | | | | | contains "strip" or "binchecks". This is needed at least for the glibc ebuild since it calls prepallstrip directly, resulting in it being called twice. Thanks to loki_val for reporting. svn path=/main/trunk/; revision=8915
* Make sure that PORTAGE_SANDBOX_* variables can never be setZac Medico2007-12-131-1/+1
| | | | | | by "${T}"/environment. svn path=/main/trunk/; revision=8911
* Allow FEATURES to persist between phases since the user mightZac Medico2007-12-132-4/+15
| | | | | | | | | | | want to modify it via bashrc to enable things like splitdebug and installsources for specific packages. They should be able to modify it in pre_pkg_setup() and have it persist all the way through the install phase. However, if FEATURES exist inside environment.bz2 then they should be overridden by current settings. svn path=/main/trunk/; revision=8909
* Remove extra _ typo.Zac Medico2007-12-131-2/+2
| | | | svn path=/main/trunk/; revision=8907
* Properly filter SANDBOX_ON from the environment. When sourcingZac Medico2007-12-131-1/+16
| | | | | | | | | ${T}/environment it's a bit tricky because we have to temporarily disable sandbox since the SANDBOX_{DENY,READ,PREDICT,_WRITE} values we've just loaded may be unusable (triggering in spurious sandbox violations) until we've merged them with our current values. svn path=/main/trunk/; revision=8906
* Use the BAD color class instead of hardcoded red.Zac Medico2007-12-131-1/+1
| | | | svn path=/main/trunk/; revision=8904
* Do the sanity check for bug #198398 as early as possible.Zac Medico2007-12-131-15/+18
| | | | svn path=/main/trunk/; revision=8897
* Bug #201771 - Make unpack() detect common errors such as absoluteZac Medico2007-12-131-5/+6
| | | | | | | paths that start with ${DISTDIR} and die an appropriate error message. Thanks to grobian for this patch. svn path=/main/trunk/; revision=8896
* Use the sed -r option to enable extended regular expressions so thatZac Medico2007-12-131-3/+3
| | | | | | commonly used characters like (, ), and + don't have to be escaped. svn path=/main/trunk/; revision=8893
* Bug #202068 - In order to filter unwanted variable assignments outZac Medico2007-12-132-1/+53
| | | | | | | | of the bash environment, use a filter-bash-environment.py script that behaves similar to egrep -v except that it leaves bash here- documents intact. svn path=/main/trunk/; revision=8892
* In filter_readonly_variables(), replace 'declare -r ' with 'declare 'Zac Medico2007-12-131-1/+1
| | | | | | instead of removing it completely. svn path=/main/trunk/; revision=8891
* Fix the check for bug #198398 so that it works even when runningZac Medico2007-12-121-1/+2
| | | | | | repoman from the root of the repo. svn path=/main/trunk/; revision=8888
* Bug #198398 - Make repoman bail out if support for RMD160 hashZac Medico2007-12-121-0/+14
| | | | | | creation appears to be missing. svn path=/main/trunk/; revision=8887
* Instead of calling sys.exit when a ParseError occurs in the configZac Medico2007-12-112-1/+7
| | | | | | | | | constructor, raise a ParseError and make emerge and portageq handle the error. This way consumers of the portage api can handle the ParseError rather than have their application exit. Thanks to lxnay for reporting. svn path=/main/trunk/; revision=8884
* First import the main portage module without legacy globals since itZac Medico2007-12-111-1/+10
| | | | | | | | | is almost certain to succeed in that case. This provides access to the portage.exception namespace which is needed for later exception handling, like if portage.exception.PermissionDenied is raised when constructing the legacy global config instance. svn path=/main/trunk/; revision=8882
* * When installing a binary package, export the file name of the packageZac Medico2007-12-111-1/+6
| | | | | | | | | | | | | | as PORTAGE_BINPKG_FILE in order to give bashrc users an opportunity to do various things such as remove binary packages after they're installed. * Add a note in ebuild.sh explaining why hardcoded bash lists are needed for backward compatibility with <portage-2.1.4 since they assume that a newly installed version of ebuild.sh will work for pkg_postinst, pkg_prerm, and pkg_postrm when portage is upgrading itself. svn path=/main/trunk/; revision=8878