Fabian Groffen [Thu, 10 Apr 2008 16:41:19 +0000 (16:41 -0000)]
Merged from trunk 9668:9697
| 9669 | Remove some boolean logic that is obsolete now that the |
| zmedico | "selective" parameter is passed into dep_zapdeps(). |
| 9672 | Use pkgcmp() instead of == and best() for correctness in |
| zmedico | case of implicit -r0. |
| 9674 | Bug #215673 - Make ebuild.sh leave IUSE defaults intact |
| zmedico | instead of filtering them out. The built_with_use() function |
| | in eutils.eclass needs to be updated for compatibility. |
| 9675 | Remove the digraph._parent_child_digraph since it's no |
| zmedico | longer needed. It's main purpose was to track PDEPEND |
| | relationships but those are handled just like the other deps |
| | now. |
| 9677 | Handle a potential FileNotFound exception in |
| zmedico | new_protect_filename() when the last ._cfg* file happens to |
| | be a broken symlink. Thanks to bonsaikitten for reporting. |
| 9678 | Eliminate a redundant os.path.join() call. |
| zmedico | |
| 9680 | Use Package.cp instead of dep_getkey(cpv). |
| zmedico | |
| 9681 | Fix the previous commit so that the Package instance is |
| zmedico | created in the correct scope. |
| 9683 | In cpv_expand(), if the virtuals file contains a versioned |
| zmedico | atom (like the base profile currently has for virtual/pam), |
| | properly remove the operator and version from the atom |
| | before it is passed into dbapi.cp_list(). |
| 9685 | For old-style virtuals, we need to repeat the |
| zmedico | package.provided check against the selected package. |
| 9687 | Implement a PORTAGE_FETCH_RESUME_MIN_SIZE variable that is |
| zmedico | useful for helping to ensure that small garbage files such |
| | as html 404 pages are properly discarded. |
| 9689 | If PORTAGE_FETCH_RESUME_MIN_SIZE is undefined or empty, |
| zmedico | silently use the default. |
| 9691 | Add missing str.upper() call for |
| zmedico | PORTAGE_FETCH_RESUME_MIN_SIZE. |
| 9693 | Fix package selection logic so that it always properly finds |
| zmedico | the highest available version in a new slot even though the |
| | graph already contains a matching version in a lower slot. |
| 9695 | Eliminate a redundant atom from the --update greedy slot |
| zmedico | expansion code. |
| 9696 | Add missing DepPriority instances to the graph so that the |
| zmedico | --buildpkgonly hasallzeros() calculation works correctly |
| | again. |
| 9697 | Decrease priority on --onlydpes dependencies so that |
| zmedico | --buildpkgonly hasallzeros() works correctly. |
svn path=/main/branches/prefix/; revision=9803
Fabian Groffen [Thu, 10 Apr 2008 12:53:50 +0000 (12:53 -0000)]
Fix a bug where hard links would cause imaginary paths due to not properly cleaning up
svn path=/main/branches/prefix/; revision=9801
Fabian Groffen [Tue, 1 Apr 2008 18:27:32 +0000 (18:27 -0000)]
Merged from trunk 9637:9665
| 9643 | Pass Package instances into visible() so that the package |
| zmedico | instance can be used to cache relevant visibility |
| | information such as whether or not the package is corrupt or |
| | otherwise invalid. |
| 9644 | Replace an package tuple with a real Package instance. |
| zmedico | |
| 9645 | Make depgraph creation more tolerant of missing or masked |
| zmedico | packages when the relevant deps are satisfied by installed |
| | packages. This kind of friendliness is especially desired in |
| | cases such as --emptytree where it might not be possible to |
| | reinstall every single package. Also, it allows multislot |
| | atoms from the world file (that are necessary to prevent |
| | them from being removed by depclean) trigger warning |
| | messages while still allowing a --emptytree to proceed. |
| 9646 | Bug #197810 - Fix package selection logic so that it will |
| zmedico | always fall back to an installed package when necessary. |
| 9648 | When selecting packages and there is a mixture of old-style |
| zmedico | and new-style virtual matches, filter out the old-style |
| | virtual matches. |
| 9650 | Remove some redundant and obsolete code for warning about |
| zmedico | installed packages pulled into the graph. |
| 9652 | Fix package selection logic to always properly reject the |
| zmedico | installed package when another is available and the user |
| | wants to reinstall. |
| 9654 | In the package selection loop, move the installed package |
| zmedico | rejection code as early as possible. |
| 9656 | When deps are forced to be satisfied by installed packages |
| zmedico | due to masking or unavailability, only tolerate it when the |
| | atom comes from either the system or world set since |
| | otherwise it's a good idea to bail so that the user can |
| | correct the problem. |
| 9658 | Bug #215308 - Cache the paths of known bad manifests to |
| zmedico | ensure that the same broken manifest is never checked twice. |
| 9660 | When identifying a sys-apps/portage node, compare category |
| zmedico | too (not just "portage". |
| 9662 | Handle missing LICENSE in the Packages index since that's |
| zmedico | allowed for virtual packages. |
| 9665 | Exploid ascending order returned from dbapi.match() calls to |
| zmedico | avoid the need to call best(). |
svn path=/main/branches/prefix/; revision=9668
Fabian Groffen [Tue, 1 Apr 2008 18:22:48 +0000 (18:22 -0000)]
Merged from trunk 9619:9637
| 9621 | Move the AUTOCLEAN code into dblink.treewalk since it's |
| zmedico | already partially supported there anyway (for replacement of |
| | identical cpv). This has the benefit of guaranteeing that |
| | the order of installation and removal phases is always the |
| | same. |
| 9623 | Bug #211365 - Use catpkgsplit() instead of pkgsplit() for a |
| zmedico | cpv. |
| 9625 | Bug #211365 - Use catpkgsplit() instead of pkgsplit() for a |
| zmedico | cpv. |
| 9628 | Make doins clean up it's own temp files. This solves an odd |
| zmedico | issue in dyn_package() when portage 2.1.x is installing |
| | portage-2.2 and temp python module files from doins are |
| | imported instead of the expected ones. |
| 9630 | Fix display code that can triger a 'Invalid category' |
| zmedico | exception when it is given a blocker. It's only supposed to |
| | execute for normal packages. |
| 9632 | Fix typos. Thanks to Arfrever Frehtes Taifersar Arahesis |
| zmedico | <Arfrever.FTA@GMail.Com>. |
| 9634 | * Fix broken return value for doins. * Make newins cleanup |
| zmedico | temp files after itself. |
| 9636 | Make sure the all resume lists are deleted when a stale one |
| zmedico | is encountered. |
| 9637 | When dblink.treewalk() queries for other packages in the |
| zmedico | same slot, filter out old-style virtual matches since they |
| | are not desired. |
svn path=/main/branches/prefix/; revision=9667
Fabian Groffen [Tue, 1 Apr 2008 18:13:57 +0000 (18:13 -0000)]
Merged from trunk 9583:9619
| 9584 | Bug #214691 - Move the "slot collision" display so that it |
| zmedico | is shown after the merge list where it is most likely to be |
| | seen (along with other depgraph problems). |
| 9585 | Add a new "java.eclassesnotused" check for cases where |
| zmedico | DEPEND contains virtual/jdk and and the appropriate java |
| | eclass has not been inherited (a violation of the java |
| | team's policy). Thanks to Betelgeuse for the initial patch. |
| 9586 | Don't trigger the 'java.eclassesnotused' on blocker atoms. |
| zmedico | |
| 9587 | Add a new "ebuild.patches" check for the PATCHES variable |
| zmedico | that's used by base_src_unpack() from base.eclass. This |
| | generates a warning if the variable is not defined as an |
| | array, since this is required for white space safety. Thanks |
| | to Betelgeuse for the initial patch. |
| 9588 | Bug #215240 - Use an alarm signal to implement a 60 second |
| zmedico | timeout in finalize() in case send_mail() blocks |
| | indefinitely. |
| 9589 | When a resume list contains packages that are no longer |
| zmedico | available, automatically delete it. |
| 9590 | Fix quoting for ${root} in install_mask(). |
| zmedico | |
| 9591 | Add a note about PKG_INSTALL_MASK. |
| zmedico | |
| 9592 | Bug #214619 - Run dyn_package() and preinst_mask() from ${T} |
| zmedico | instead of ${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. |
| 9606 | When dyn_unpack() automatically cleans ${WORKDIR}, also |
| zmedico | remove things like .unpacked and .compiled so that the state |
| | is consistent. |
| 9607 | Bug #215308 - Simplify the greedy atoms logic so that it |
| zmedico | behaves more like StaticFileSet and won't pull in lower |
| | slots. |
| 9611 | For bugs #197810 and #215308, pass the depgraph's |
| zmedico | "selective" parameter down into dep_check() for better atom |
| | preference selection when handling virtuals and other |
| | disjunctive || dependencies. (branches/2.1.2 r9610) |
| 9613 | Use enumerate() it iterate over an array. |
| zmedico | |
| 9615 | Bug #211365 - Use catpkgsplit() instead of pkgsplit() for a |
| zmedico | cpv. |
| 9616 | Make code a bit less prone to potentially hidden TypeError |
| zmedico | like bugs. |
| 9619 | Do not allow commit mode together with the --without-mask |
| zmedico | options. |
svn path=/main/branches/prefix/; revision=9666
Fabian Groffen [Fri, 28 Mar 2008 21:25:26 +0000 (21:25 -0000)]
Merged from trunk 9509:9538
| 9510 | Support ${HOST} substitution in "From" field. Thanks to |
| zmedico | wschlich. |
| 9511 | Move the default empty compiler flag settings from ebuild.sh |
| zmedico | to make.globals (bug #214499). |
| 9512 | Bug #214879 - In fetch(), only parse the Manifest when |
| zmedico | FEATURES=strict is enabled. |
| 9513 | Make --noreplace take precedence over --newuse, as suggested |
| zmedico | by wolf31o2. |
| 9514 | Fix the noreplace logic to break out of the cpv loop early |
| zmedico | since there's no point in examining any lower versions from |
| | the same repo. |
| 9519 | Bug #214879 - Fix FEATURES=-strict behavior so that |
| zmedico | distfiles digests are always checked. |
| 9520 | Bug #212509 - Implement a new --without-mask option that |
| zmedico | causes repoman to behave as if there are no package.mask |
| | entries. |
| 9521 | Bug #212509 - Display a note about the --without-mask option |
| zmedico | when there are masked packages. |
| 9522 | Bug #209418 - Add a new KEYWORDS.dropped check that compares |
| zmedico | keywords against the keywords of earlier ebuild versions |
| | within a slot. |
| 9523 | Remove redundant info from the KEYWORDS.dropped message. |
| zmedico | |
| 9524 | Bug #213629 - Create an EAPI.incompatible category and use |
| zmedico | it in cases where EAPI=0 and a slot atom is encountered. |
| 9525 | Bug #213629 - Use EAPI.incompatible in cases where EAPI=0 |
| zmedico | and a default IUSE is encountered. |
| 9526 | Bug #213698 - Make FEAUTURES=keepwork and keeptemp preserve |
| zmedico | ${T}/environment since it may contain essential state. |
| 9527 | Make dyn_clean() consistent wrt removal of |
| zmedico | ${PORTAGE_BUILDDIR}/image and ${PORTAGE_BUILDDIR}/.installed |
| | since otherwise with FEATURES=keepwork dyn_install() will |
| | not call src_install() as necessary to repopulate |
| | ${PORTAGE_BUILDDIR}/image (resulting in install_qa_check |
| | failure due to absence of ${PORTAGE_BUILDDIR}/image). |
| 9528 | Bug #214619 - Add support for a PORTAGE_BINPKG_TAR_OPTS |
| zmedico | variable that allows the user to specify tar command options |
| | for binary package creation. |
| 9537 | Disable tarsync when using lzma compression since it doesn't |
| zmedico | seem to be supported. |
| 9538 | * Skip the recusive chown call if it fails on the top level |
| zmedico | directory since it's possible that emerge-webrsync is not |
| | run by root. * Just chown to portage:portage instead of |
| | using PORTAGE_INST_{UID,GID}. Prefix: use PORTAGE_USER and |
| | PORTAGE_GROUP instead. |
svn path=/main/branches/prefix/; revision=9583
Fabian Groffen [Fri, 28 Mar 2008 21:18:04 +0000 (21:18 -0000)]
Fix cause of bug #215116. Properly read input from scanelf such that we don't interpret rpath info as needed info
svn path=/main/branches/prefix/; revision=9582
Fabian Groffen [Tue, 25 Mar 2008 20:55:55 +0000 (20:55 -0000)]
Nuke eselect compiler usage, since eselect compiler has been nuked from the tree a while ago. Should probably be merged with the trunk.
svn path=/main/branches/prefix/; revision=9509
Fabian Groffen [Tue, 25 Mar 2008 20:33:41 +0000 (20:33 -0000)]
Merged from trunk 9501:9507
| 9502 | Check is os.statvfs() is implemented before trying to us it. |
| zmedico | (branches/prefix r9500) |
| 9503 | Bug #214499 - When compiler flags are unset, many packages |
| zmedico | will substitute their own implicit flags. For uniformity, |
| | use an empty string as the default. |
| 9504 | Bug #211294 - Make repoman bail out if arch.list contains |
| zmedico | unrecognized lines since we don't want people to commit with |
| | old versions of portage that don't support the current |
| | arch.list format. |
| 9505 | Bug #212152 - Account pre-existing files when calculating |
| zmedico | whether there is enough space for a download. |
| 9506 | Fix typo. |
| zmedico | |
| 9507 | Bug #212621 - Make the EbuildQuote check do quoting |
| zmedico | validation for misc variables from games.eclass. |
svn path=/main/branches/prefix/; revision=9508
Fabian Groffen [Mon, 24 Mar 2008 15:09:50 +0000 (15:09 -0000)]
Merged from trunk 9494:9496
| 9495 | Fix depgraph._select_package() to make sure the installed |
| zmedico | package is a real match before rejecting other available |
| | packages. |
| 9496 | Improve logic from the previous commit. |
| zmedico | |
svn path=/main/branches/prefix/; revision=9501
Fabian Groffen [Mon, 24 Mar 2008 14:36:16 +0000 (14:36 -0000)]
Before using statvfs, check it is actually available on the current host (OS). This commit is eligable for merging with the trunk
svn path=/main/branches/prefix/; revision=9500
Fabian Groffen [Mon, 24 Mar 2008 09:58:07 +0000 (09:58 -0000)]
It took some time for me to figure this out, but yay!
Fix preserve-libs immediately unmerging a just preserved (copied over)
lib, because it is no longer needed (!needed).
The problem was/is that the Darwin library naming is
lib<name>.<ver>.dylib instead of lib<name>.so.<ver>. This results in
doing a simple sort() over the list a wrong order of the files, such
that the actual file (libneon.27.1.11.dylib) is seen before it's "soname"
symlink, which is recorded in the reverse NEEDED map. Result, the code
thinks libneon.27.1.11.dylib is no longer needed, and unmerges it.
I now implemented a naive comparator which puts symlinks on top, as this
was implied order for the loop, which by coincidence works for .so
objects with sort().
I think this commit (or an improved version of it) is eligable for
merging in the trunk, as it is a safer (and more explicit) way of
ensuring that symlinks are seen before the actual files.
svn path=/main/branches/prefix/; revision=9499
Fabian Groffen [Sun, 23 Mar 2008 23:19:09 +0000 (23:19 -0000)]
It helps when you reference a correct object, this fix is eligable for merging to trunk
svn path=/main/branches/prefix/; revision=9498
Fabian Groffen [Sun, 23 Mar 2008 22:31:57 +0000 (22:31 -0000)]
Genone's preserve-libs is a bit Linux/ELF tuned, make sure the keys of the reverse map contain basenames only, so we get a little bit more functioning on Darwin.
svn path=/main/branches/prefix/; revision=9497
Fabian Groffen [Thu, 20 Mar 2008 20:54:58 +0000 (20:54 -0000)]
I was too enthusiastic with adding dashes
svn path=/main/branches/prefix/; revision=9494
Fabian Groffen [Thu, 20 Mar 2008 20:44:13 +0000 (20:44 -0000)]
Align root user flag with portage user flag
svn path=/main/branches/prefix/; revision=9493
Fabian Groffen [Thu, 20 Mar 2008 20:32:23 +0000 (20:32 -0000)]
Merged from trunk 9468:9491
| 9469 | add a placeholder for repository paths in 'filename' and |
| genone | 'directory' options for StaticFileSet |
| 9470 | avoid importing portage to improve performance |
| genone | |
| 9471 | When in strict mode, make paren_reduce() detect missing |
| zmedico | whitespace around parenthesis tokens and raise an |
| | InvalidDependString exception. Strict mode is not enabled |
| | when handling installed packages, so this will only affect |
| | repoman and packages that haven't been installed yet. Thanks |
| | to zlin for reporting. |
| 9472 | Bug #213540 - Make sure DESTTREE=/usr is set before inherit |
| zmedico | calls. |
| 9473 | Bug #213592 - Fix --onlydeps breakage. |
| zmedico | |
| 9474 | Bug #212882 - For compatibility with ENOENT exceptions |
| zmedico | raised from fstat calls with CIFS, wrap fstat calls with an |
| | appropriate exception handler. |
| 9475 | Bug #174634 - Fix ebuild 'digest' and 'manifest' behave 100% |
| zmedico | identically and update the docs to reflect this. |
| 9476 | Bug #149745 - Generate an eqawarn message if dohtml is |
| zmedico | called on a directory without the recursive option. Thanks |
| | to brad walker <bradmwalker@cableone.net> for reporting. |
| 9477 | use a dict with CP keys in unmerge() to avoid double |
| genone | unmerges if a package is matched by multiple atoms |
| 9478 | fix artifact from r9477 |
| genone | |
| 9479 | add @ to the list of invalid atom chars so sets with prefix |
| genone | aren't considered as atoms accidentally |
| 9480 | add unmerge protection for packages still referenced by |
| genone | installed package sets |
| 9481 | make filesets non-greedy by default |
| genone | |
| 9482 | Bug #139023 - When the --digest option is enabled, advise |
| zmedico | the user that `repoman manifest` is the preferred way to |
| | generate manifests. |
| 9483 | Bug #201045 - Fix unmerge() to preserve unmerge order so |
| zmedico | that dependencies are respected. Also, eliminate duplicate |
| | package selections since the same package may be selected by |
| | multiple atoms but we can only unmerge it once. |
| 9484 | Only show the eqawarn from bug #149745 when nothing is found |
| zmedico | to install. Also, exit successfully unless nothing is found |
| | to install. |
| 9485 | Bug #210575 - Optimize doins -r so that it doesn't call |
| zmedico | itself recursively, since it's faster to handle the |
| | recursion internally. Thanks to Benedikt Böhm |
| | <hollow@gentoo.org> for the initial patch. |
| 9486 | Bug #210690 - Fix --help output to show the leading slash on |
| zmedico | the path to the world file. |
| 9487 | Strip trailing slashes from directory paths if necessary. |
| zmedico | |
| 9488 | display versions of other slots for new-slot installs (bug |
| genone | #213790) |
| 9489 | Fix quoting. |
| zmedico | |
| 9491 | readd digestentry.unused category as it's still relevant |
| genone | |
svn path=/main/branches/prefix/; revision=9492
Fabian Groffen [Sat, 15 Mar 2008 10:26:36 +0000 (10:26 -0000)]
Merged from trunk 9461:9467
| 9462 | * Optimize parallel-fetch to avoid redundant checksum |
| zmedico | verification. * Add parallel-fetch to the default FEATURES |
| | since it is more efficient now. |
| 9463 | Bug #42456 - When a checksum failure occurs during fetch, |
| zmedico | use a new PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS config variable |
| | to control how many mirrors should be tried before aborting |
| | the download. This type of behavior used to be enabled only |
| | in --fetchonly mode but now it's enabled for all fetch() |
| | calls. |
| 9466 | Fix grammar. |
| zmedico | |
| 9467 | Fix an UnboundLocalError for 'pkgindex'. |
| zmedico | |
svn path=/main/branches/prefix/; revision=9468
Fabian Groffen [Thu, 13 Mar 2008 18:12:17 +0000 (18:12 -0000)]
Merged from trunk 9450:9460
| 9451 | Make --prune and --depclean operate with missing |
| zmedico | dependencies when only asked to remove specific packages |
| | since it's relatively safe in this case. |
| 9452 | Convert PackageIndex.packages from a dict to a list so that |
| zmedico | in the future it will be possible to support multiple |
| | packages with the same cpv. |
| 9453 | Make readpkgindex() and writepkgindex() private methods of |
| zmedico | PackageIndex. |
| 9455 | add some status messages, try to copy the tarball into |
| genone | DISTDIR, use getopt for option parsing |
| 9456 | Fix var_assign_re to recognize a call to the 'declare' |
| zmedico | builtin even when no options are given. |
| 9457 | When all available ebuilds are masked, avoid producing |
| zmedico | warning message when the package does not need to be |
| | reinstalled and the installed version is not masked. |
| 9458 | Bug #212882 - Fix lockfile() to handle errno.EACCES raised |
| zmedico | from the fcntl call since the spec says that it's equivalent |
| | to EAGAIN and it appears that CIFS returns EACCES in this |
| | case. |
| 9459 | - news bugfix from ferringb |
| solar | |
| 9460 | Make strip_empty() return a nedw list instead of working |
| zmedico | in-place. Thanks to René Neumann <rene.neumann@necoro.net> |
| | for the suggestion. |
svn path=/main/branches/prefix/; revision=9461
Fabian Groffen [Fri, 7 Mar 2008 20:16:47 +0000 (20:16 -0000)]
Merged from trunk 9428:9448
| 9429 | Bug #211949 - Fix the regex so that it won't match the = |
| zmedico | character (equals sign). |
| 9431 | Add support for idendification of function definitions since |
| zmedico | it's needed in some cases in order to prevent some odd |
| | function contents from being mistakenly identified as |
| | invalid variable assignments. For example, this line from |
| | _gcc-specs-directive_raw() is commonly found in |
| | environment.bz2 files: $1=="*"directive":" { pspec=spec; |
| | spec=""; outside=0; next } |
| 9432 | Bug #211949 - Temporarily revert back to a less strict regex |
| zmedico | in order to avoid false positives with multi-line variable |
| | definitions that can be produced by the 'export' builtin. |
| 9433 | Tighten the funct_start_re so that it doesn't match leading |
| zmedico | whitespace since that's not needed. |
| 9434 | Fix func_start_re so that it requires at least one |
| zmedico | alphanumeric character. |
| 9435 | Remove redundant CUSTOM_PROFILE_PATH from the PROFILE_PATHS |
| zmedico | variable so that /etc/portage/profile/profile.bashrc will |
| | only be sourced once if it exists. |
| 9436 | Implement variable assignment handling in python so that we |
| zmedico | can eventually make it more flexible and robust. |
| 9437 | Update description to reflect the new meaning of the PATTERN |
| zmedico | argument. |
| 9438 | TODO: Move variable name validation and declare -r filtering |
| zmedico | into filter-bash-environment.py. |
| 9439 | As requested by wolf31o2, use the ROOT setting from |
| zmedico | make.conf as long as it's not overridden by the calling |
| | environment. |
| 9440 | Handle multi-line quoted variable assignments. |
| zmedico | |
| 9441 | Bug #211949 - Tighten the variable name filter to exclude |
| zmedico | any variables with names containing any non-alphanumeric |
| | characters. |
| 9442 | Fix have_end_quote() to compare the quote against the |
| zmedico | correct group. |
| 9443 | Pass a space-separated list of variables into |
| zmedico | filter-bash-environment.py and generate the final regex on |
| | the python side instead of in bash. Also, properly anchor |
| | the regex so that it actually works. |
| 9444 | Update the description to reflect the new meaning of |
| zmedico | PATTERN. |
| 9445 | Move the variable name validation regexes (for bug 211949) |
| zmedico | into filter-bash-environment.py instead of passing them in |
| | from bash. |
| 9446 | Implement the sed-based declare -r filter in python. |
| zmedico | |
| 9447 | Remove egrep syntax emulation since it's not really needed. |
| zmedico | |
| 9448 | Use os.environ["SANDBOX_ON"] = "0" to make portageq exempt |
| zmedico | from sandbox for things like writing metadata cache. Thanks |
| | to ferringb for the suggestion. |
svn path=/main/branches/prefix/; revision=9450
Fabian Groffen [Fri, 7 Mar 2008 20:13:48 +0000 (20:13 -0000)]
Merged from trunk 9405:9428
| 9406 | undo registrations of preserved libraries if the merge |
| genone | fails, bug #210501 |
| 9407 | ensure that global variables are used to prevent confusing |
| genone | issues like bug #212055 |
| 9408 | stack use flags from package.use for multiple matching atoms |
| genone | (bug #200385) |
| 9409 | remove FEATURES=livecvsportage |
| genone | |
| 9410 | apply r9408 also for profile-base package.*use* files |
| genone | |
| 9411 | Fix typo. |
| zmedico | |
| 9412 | change stacking order of r9408 so more specific atoms |
| genone | override generic ones |
| 9413 | fix indentation screwup from r9412 |
| genone | |
| 9414 | one more fix to restore correct order for usemask/useforce |
| genone | |
| 9415 | Make profile stacking of default USE and package.* slightly |
| zmedico | more efficient by skipping list.insert() calls when |
| | possible. |
| 9416 | Bug #211949 - As suggested by vapier, tighten the variable |
| zmedico | filter to also exclude variable names that begin with a |
| | digit or that contain any non-alphanumeric characters that |
| | are not be supported by bash. |
| 9418 | Quote the file path and uri inside FETCHCOMMAND and |
| zmedico | RESUMECOMMAND. Thanks to igli for suggesting. |
| 9419 | Fix the regex for bug #211949 so that it correctly matches |
| zmedico | variable names that contain more than one non-alphanumeric |
| | character. |
| 9421 | Bug #211949 - Tweak the regex so that a leading whitespace |
| zmedico | character cannot match the required non-alphanumeric group. |
| 9423 | Buf #210372 - Fix FEATURES=suidctl so that it really works |
| zmedico | again. |
| 9425 | check available space in DISTDIR before trying to fetch/copy |
| genone | a file, bug #212152 |
| 9426 | don't list files as being merged when they are ignored due |
| genone | to confmem, bug #212080 |
| 9427 | fix message on ValueError to not sound like crap |
| genone | |
| 9428 | tell rpmbuild to clean it's working files after completion, |
| genone | bug #97776 |
svn path=/main/branches/prefix/; revision=9449
Fabian Groffen [Sat, 1 Mar 2008 17:55:34 +0000 (17:55 -0000)]
Add xterm-color and interix as legal termins such that title setting by Portage works on those terminals. For interix, bug #211875, thanks Markus Duft
svn path=/main/branches/prefix/; revision=9405
Fabian Groffen [Sat, 1 Mar 2008 17:36:46 +0000 (17:36 -0000)]
Merged from trunk 9386:9402
| 9387 | Bug #211554 - Replace references to config["USE"] with |
| zmedico | references to config["PORTAGE_USE"] (which is filtered for |
| | intersection with IUSE) so that dependency calculations at |
| | installation time are consistent with those at depclean |
| | time. |
| 9388 | Don't filter USE flags in emerge --info output. |
| zmedico | |
| 9389 | Bug #211294 - Make repoman ignore profiles labeled with |
| zmedico | anything other than "stable" or "dev" in profiles.desc so |
| | that we can extend it with new labels such as "exp". |
| 9391 | Revert r9387 (the fix for bug #211554) until I figure out |
| zmedico | why it's messing up USE calculations for world updates. |
| 9392 | Bug #211554 - Replace references to config["USE"] with |
| zmedico | references to config["PORTAGE_USE"] (which is filtered for |
| | intersection with IUSE) so that dependency calculations at |
| | installation time are consistent with those at depclean |
| | time. |
| 9393 | Fix some references to config["PORTAGE_USE"] to prevent |
| zmedico | potential KeyErrors. |
| 9394 | separate different messages with newlines in post-emerge |
| genone | output |
| 9395 | remove obsolete information from preserve-libs post-emerge |
| genone | message |
| 9397 | supress stupid line echo in deprecation notices |
| genone | |
| 9398 | remove code for manifest1 support |
| genone | |
| 9399 | In the suidctl code, move the addwrite call out of the loop. |
| zmedico | Thanks to ferringb. |
| 9400 | Make 'import portage' statements more tolerant to broken |
| zmedico | source statements in make.conf since exceptions thrown |
| | during 'import portage' statements can practically render |
| | the api unusable for api consumers. Thanks to lxnay for the |
| | suggestion. |
| 9402 | Bug #211949 - Make filter_readonly_variables() remove any |
| zmedico | variables with names containing a hyphen since bash does not |
| | allow them. |
svn path=/main/branches/prefix/; revision=9404
Fabian Groffen [Tue, 26 Feb 2008 08:25:02 +0000 (08:25 -0000)]
Merged from trunk 9383:9385
| 9384 | Bug #211365 - Use catpkgsplit() instead of pkgsplit() on the |
| zmedico | cpv in the dblink constructor since otherwise weird |
| | categories containing numbers can make pkgsplit() return |
| | None (likely related to version regex handling). |
| | (branches/2.1.2 r9383) |
| 9385 | For depclean/prune unmerge order, if there are no |
| zmedico | dependencies between package then just unmerge them |
| | alphabetically. |
svn path=/main/branches/prefix/; revision=9386
Fabian Groffen [Mon, 25 Feb 2008 16:38:02 +0000 (16:38 -0000)]
Merged from trunk 9380:9381
| 9381 | Double import, thanks grobian :) |
| WarnerBro | |
svn path=/main/branches/prefix/; revision=9382
Fabian Groffen [Sun, 24 Feb 2008 09:43:50 +0000 (09:43 -0000)]
Another getstatusoutput without 'commands.'
svn path=/main/branches/prefix/; revision=9380
Fabian Groffen [Sun, 24 Feb 2008 09:34:00 +0000 (09:34 -0000)]
Merged from trunk 9376:9377
| 9377 | Various repoman fixes, plus a weird lockfile tracekback in |
| WarnerBro | news. |
svn path=/main/branches/prefix/; revision=9379
Fabian Groffen [Sun, 24 Feb 2008 09:31:23 +0000 (09:31 -0000)]
Align visible() with get_masking_status() as per zmedico's comment in bug #209538
svn path=/main/branches/prefix/; revision=9378
Fabian Groffen [Sun, 24 Feb 2008 00:09:42 +0000 (00:09 -0000)]
getstatusoutput comes from commands
svn path=/main/branches/prefix/; revision=9376
Fabian Groffen [Sat, 23 Feb 2008 23:46:25 +0000 (23:46 -0000)]
Merged from trunk 9351:9372
| 9352 | Revert back to some known working code from the 2.1.2 |
| zmedico | branch. |
| 9353 | Use parse_use_local_desc() from the repoman.utilities |
| zmedico | module. |
| 9354 | Make PreservedLibsRegistry.store() use atomic_ofstream so |
| zmedico | that we don't lose the whole registry if an error such as |
| | 'out of space' occurs. |
| 9355 | Bug #210372 - Fix suidctl.conf parser to look for paths |
| zmedico | with a leading slash. |
| 9357 | Bug #210449 - Reset exeinto(), docinto(), insinto(), and |
| zmedico | into() state variables in case the user is running the |
| | install phase multiple times consecutively via the ebuild |
| | command. |
| 9358 | - outsource logic for boolean options into a central |
| genone | function - enable support for greedy behavior in |
| | StaticFileSet |
| 9359 | For greedy slot behavior, in addition to any installed |
| zmedico | slots also try to pull in the latest new slot that may be |
| | available. |
| 9360 | When showing an unsatisfied dep, never include installed |
| zmedico | packages. |
| 9361 | Make stack_dicts() treat an empty variable assignment just |
| zmedico | like a non-empty assignment. This allows the profile to set |
| | and empty variable in make.defaults and have it override a |
| | non-empty value as one would expect. |
| 9362 | In the circular dependency display, drop PDEPEND (aka |
| zmedico | MEDIUM_SOFT) from the graph so there's less noise. |
| 9363 | Optimize dblink.isowner() to use fewer stat calls by doing |
| zmedico | a basename comparison to try and eliminate the file before |
| | resorting to inode comparison. This speeds up the `portageq |
| | owners` command as well as the search that is done when |
| | collision-protect finds a collision. |
| 9364 | Make LibraryPackageMap.update() sort the contents of the |
| zmedico | library_consumers cache so that it's nice and orderly. |
| 9365 | Bug #211067 - Make the "portdir_overlay" and "mydir" |
| zmedico | variables contain paths that are consistent wrt eachother |
| | regardless of any path irregularities that can be induced |
| | by symlinks. Consistency is achieved by regenerating one of |
| | the paths to ensure that both paths have the exact same |
| | mapping between inodes and paths. This consistency ensures |
| | that the path manipulations used to calculate "repolevel" |
| | will work as intended. |
| 9367 | Add support for file paths as arguments to emerge. If an |
| zmedico | argument starts with / and it's not recognized as a tbz2 or |
| | ebuild then we try to find and owner in the vdb and |
| | generate a slot atom from it. Thanks to solar for the |
| | suggestion. |
| 9368 | Revert portdbapi category auto-detection code since it's |
| zmedico | not really needed and can cause problems if we need to add |
| | new non-category directories in the future. We only really |
| | need the category auto-detection for bindbapi and vardbapi |
| | anyway. |
| 9369 | cleanup main option parsing |
| SpankMan | |
| 9370 | tighten up output from script |
| SpankMan | |
| 9371 | add support for lzma/gz snapshots |
| SpankMan | |
| 9372 | only try to fetch compression schemes which the host |
| SpankMan | supports |
svn path=/main/branches/prefix/; revision=9375
Fabian Groffen [Sat, 23 Feb 2008 23:37:49 +0000 (23:37 -0000)]
Merged from trunk 9335:9351
| 9336 | Fix package selection logic in order to prevent downgrade in |
| zmedico | cases when selective is True and the currently installed |
| | version does not have a matching ebuild in the tree. For |
| | example, this type of situation is likely to occur if the |
| | user somehow obtains a binary package that has a newer |
| | version than any of the ebuilds in the portage tree. If |
| | package maintainers want to encourage a downgrade in a case |
| | like this then they should use package.mask so that the user |
| | receives a warning about the installed package being masked. |
| 9337 | Fix --newuse reinstall logic broken by the previous commit. |
| zmedico | |
| 9338 | Update the DepPriority documentation so that the table shows |
| zmedico | all the currently supported priorities and categories. |
| 9339 | Bug #201045 - Use a topological sort to create an unmerge |
| zmedico | order such that each package is unmerged before it's |
| | dependencies. This is necessary to avoid breaking things |
| | that may need to run during pkg_prerm or pkg_postrm phases. |
| 9340 | Make depclean code filter out blocker atoms where |
| zmedico | appropriate. |
| 9341 | Fix depclean breakage so that it doesn't clean some packages |
| zmedico | that shouldn't be cleaned. |
| 9342 | Add missing % x (bug #208946, comment #2). |
| zmedico | |
| 9343 | Fix reversed order of parent/child parameders to |
| zmedico | digraph.add(). |
| 9344 | Remove IUSE.invalid from qawarnings since there's no reason |
| zmedico | for it not to be fatal. Thanks to Betelgeuse. |
| 9345 | In the action_depclean() topological sort, only add packages |
| zmedico | to the graph if they are being removed. |
| 9346 | Bug #201045 - Make unmerge() preserve the unmerge order of |
| zmedico | packages given to it by the user or depclean. |
| 9347 | Make sure all packages to be pruned or depcleaned are added |
| zmedico | to the graph, even when they don't have any dependencies. |
| 9348 | Now that unmerge() preserves the order that it's given, if |
| zmedico | two different slots of the same package are being unmerged |
| | then they are not necessarily unmerged consecutively. To |
| | make the display less confusing, never display packages as |
| | "protected" or "omitted" when they actually belong to the |
| | overall set of "selected" packages to be unmerged. |
| 9349 | Fix unmerge() breakage from due to pkgmap being changed from |
| zmedico | a dict to a list. |
| 9350 | Fix the --depclean/--prune code to use visible() for |
| zmedico | visibility checks instead of the old portdbapi hack. |
| 9351 | Make LibraryConsumerSet.mapPathsToAtoms() produce slot atoms |
| zmedico | so that atoms aren't restricted to the currently installed |
| | version, making upgrades possible. |
svn path=/main/branches/prefix/; revision=9374
Fabian Groffen [Sat, 23 Feb 2008 23:33:46 +0000 (23:33 -0000)]
Merged from trunk 9300:9333
| 9301 | Bug #208708 - Show informative warning messages for |
| zmedico | installed packages that are masked. |
| 9307 | removing obsolete cruft |
| genone | |
| 9308 | new script for creating release tarballs |
| genone | (Deleted in Prefix as we have a working tarball.sh) |
| 9309 | minor documentation updates |
| genone | |
| 9310 | more minor doc updates regarding package sets |
| genone | |
| 9311 | add preserve-libs info to make.conf.example |
| genone | |
| 9312 | add tagging capabilities and cli options |
| genone | |
| 9313 | Bug #208743 - Update dosed docs to indicate that |
| zmedico | "s:${D}::g" is used as the default expression if none |
| | other is given. |
| 9316 | fix nasty typo |
| genone | (Prefix already had most of this fix) |
| 9318 | Fix get_mask_info() to properly pass the "installed" |
| zmedico | attribute into the Package constructor. |
| 9320 | Fix the exitcode logic for bug #209144 so that when the |
| zmedico | server is out of date it's not interpreted like an actual |
| | rsync exitcode (to avoid a misleading exitcode |
| | interpretation message). |
| 9321 | Bug #209144 - For emerge --sync, show an informative error |
| zmedico | and don't return 1 when PORTAGE_RSYNC_RETRIES is exceeded. |
| 9324 | Fix CHOST masking logic wrt installed packages so that |
| zmedico | it's consistent between visible() and |
| | get_masking_status(). |
| 9326 | Fix rejects. |
| zmedico | |
| 9327 | Remove the killparent() function and associated SIGINT |
| zmedico | trap since this should already be handled on the python |
| | side and it won't work with dropped privileges anyway. |
| 9328 | fix more trivial issues breaking repoman |
| genone | |
| 9330 | Bug #209538 - Disable annoying "masked by keyword" |
| zmedico | warnings for installed packages. We can assume that if the |
| | user accepted the keywords at merge time then they never |
| | want to be bothered again. |
| 9332 | Add bits about namespace pollution, add whitespacing |
| WarnerBro | comments after looking at some new code I wrote and |
| | realizing I was not following the current style. Fix typos |
| 9333 | Bug #209768 - Fix --search "Size of files:" handling so |
| zmedico | that it properly shows the "Unknown (missing digest)" |
| | message instead of a traceback. |
svn path=/main/branches/prefix/; revision=9373
Fabian Groffen [Fri, 8 Feb 2008 16:00:54 +0000 (16:00 -0000)]
Merged from trunk 9280:9299
| 9281 | Bug #155993 - Update environment.bz2 after postinst in case |
| zmedico | installation phases need to pass some variables to |
| | uninstallation phases. |
| 9283 | Bug #209144 - For emerge --sync, don't return 0 when the |
| zmedico | server is out of date. |
| 9285 | Bug #208782 - Consistently use double quotes rather than |
| zmedico | mixining in single quotes. |
| 9287 | Bug #208743 - Clarify dosed docs to indicate that sed is |
| zmedico | performed in place of a file in ${D}. |
| 9289 | Bug #208708 - Fix warnings for system or world packages that |
| zmedico | are masked. |
| 9290 | Add DISTDIR to the EbuildQuote.var_names. Thanks to |
| zmedico | Betelgeuse. |
| 9292 | Don't show unmasked packages (currently installed packages) |
| zmedico | in the masking display. |
| 9293 | Bug #208708 - Fix masked package display some more: - Warn |
| zmedico | if all matching ebuilds are masked or the installed package |
| | itself is masked. - Do not warn if there are simply no |
| | matching ebuilds since that would be annoying in some cases. |
| 9299 | Fix some broken variable references found by pyflakes. |
| zmedico | |
svn path=/main/branches/prefix/; revision=9300
Fabian Groffen [Wed, 6 Feb 2008 22:26:20 +0000 (22:26 -0000)]
Merged from trunk 9274:9279
| 9275 | don't record internal providers in NEEDED records as they |
| genone | are pointless for all useful applications in portage and |
| | complicate them instead (e.g. bug #205531) |
| 9276 | display errors that occured during package set initalization |
| genone | |
| 9277 | don't try to copy manually removed libraries (bug #208946) |
| genone | |
| 9278 | Make qa_source and qa_call save the return value and return |
| zmedico | it. Thanks to igli for suggesting. |
| 9279 | For the useq() IUSE qa check, use [[ $u =~ $PORTAGE_IUSE ]] |
| zmedico | instead of egrep since apparently it's compatible in this |
| | case. Thanks to igli for this. |
svn path=/main/branches/prefix/; revision=9280
Fabian Groffen [Tue, 5 Feb 2008 18:01:06 +0000 (18:01 -0000)]
Merged from trunk 9272:9273
| 9273 | Use local time for elog summaries |
| genone | |
svn path=/main/branches/prefix/; revision=9274
Fabian Groffen [Fri, 1 Feb 2008 22:22:20 +0000 (22:22 -0000)]
Variables work pretty bad between subshells, so use a file instead
svn path=/main/branches/prefix/; revision=9271
Fabian Groffen [Fri, 1 Feb 2008 21:42:05 +0000 (21:42 -0000)]
Save full paths for needed objects on Darwin, and store prefixed path as well
svn path=/main/branches/prefix/; revision=9270
Fabian Groffen [Fri, 1 Feb 2008 21:37:05 +0000 (21:37 -0000)]
Store the true path instead of the unprefixed path, such that the paths in NEEDED match what's in CONTENTS, thanks vapier
svn path=/main/branches/prefix/; revision=9269
Fabian Groffen [Fri, 1 Feb 2008 19:33:43 +0000 (19:33 -0000)]
Merged from trunk 9234:9264
| 9235 | - Remove ebuild.autotools repoman check since it produces |
| zmedico | lots of false positives (bug #207104) and its hard to parse |
| | bash - Use QA_INTERCEPTORS in ebuild.sh to implement a |
| | runtime 'QA Notice' when autotools is called directly |
| 9236 | Remove the last traces of the ebuild.autotools check. |
| zmedico | |
| 9238 | * Bug #205966 - Don't show binhost password when displaying |
| zmedico | the uri. * Fix a cpv variable name typo. |
| 9241 | Add 'local' to the list of non_category_dirs since it's |
| zmedico | commonly used for layman overlays. |
| 9249 | Make the autotools.eclass functions exempt from the |
| zmedico | autotools QA Notice. |
| 9252 | Unconditionally disable manifest1 compatibility since it's |
| zmedico | been dropped from the main tree and nobody needs it anymore. |
| 9254 | Disable manifest1_compat for ebuild --force digest. |
| zmedico | |
| 9256 | Bug #205718 - Fix quoting of ${INSTALL_MASK} where |
| zmedico | appropriate. Thanks to Ed Catmur <ed@catmur.co.uk> for this |
| | patch. |
| 9258 | Make the manifest1_compat constructor parameter default to |
| zmedico | False to prevent potential interference from stale old |
| | digest files in overlays. |
| 9260 | Remove the manifest1 digest filter from PORTAGE_RSYNC_OPTS |
| zmedico | since it's no longer needed. |
| 9262 | Remove the manifest1 digest file removal code since it's no |
| zmedico | longer needed. |
| 9264 | portage-2.1.4.1 ================================== * If you |
| zmedico | have an overlay then you should remove **/files/digest-* |
| | files (Manifest1) because they are no longer supported. * If |
| | earlier versions of portage will be used to generate |
| | manifests for your overlay then you should add a file named |
| | manifest1_obsolete to the root of the repository in order to |
| | disable generation of the Manifest1 digest files. |
svn path=/main/branches/prefix/; revision=9268
Fabian Groffen [Fri, 1 Feb 2008 19:25:49 +0000 (19:25 -0000)]
First shot at storing NEEDED info for Darwin hosts. We simulate the scanelf output to the max, by stripping of (valuable) path information and storing the filenames of the dynamic libs only.
svn path=/main/branches/prefix/; revision=9267
Fabian Groffen [Wed, 30 Jan 2008 19:56:30 +0000 (19:56 -0000)]
Fix two small issues
svn path=/main/branches/prefix/; revision=9233
Fabian Groffen [Wed, 30 Jan 2008 19:45:49 +0000 (19:45 -0000)]
de-typo
svn path=/main/branches/prefix/; revision=9232
Fabian Groffen [Wed, 30 Jan 2008 19:28:08 +0000 (19:28 -0000)]
Merged from trunk 9225:9227
| 9226 | Pull more functions out of repoman proper and into |
| WarnerBro | repoman.utilities |
| 9227 | Pull more functions out of repoman proper and into |
| WarnerBro | repoman.utilities, correct a typo, clean up imports |
svn path=/main/branches/prefix/; revision=9231
Fabian Groffen [Wed, 30 Jan 2008 18:18:48 +0000 (18:18 -0000)]
Merged from trunk 9224:9225
| 9225 | import ordering, prevent errors from mucking up module |
| WarnerBro | namespace in checks, fix typo from last commit, rename 'm' |
| | to autotools_match, fix spacing between classes |
svn path=/main/branches/prefix/; revision=9229
Fabian Groffen [Wed, 30 Jan 2008 18:13:29 +0000 (18:13 -0000)]
This commit should probably be merged into the trunk.
Fix a bug in preserve libs backtracing.
Issue: copy2 raised an error because the destination path didn't exist
Cause: os.path.join was used with absolute paths on the 2nd arguments,
which results in not a join, but the 2nd argument only.
Result: the os.path.exists/makedirs was only called based on the
existing installation (x), causing no directory ever to be made in the
image dir. Because x is absolute the join always returned x, hence when
preserve libs was run for a lib in a dir not yet existing in the image
it bailed out.
I caught this issue on FreeBSD when upgrading binutils from
18.whatever.2 to 18.whatever.3, when preserve libs tried to preserve
libopcodes.18.whatever.2.so which is in a directory 18.whatever.2,
whereas only 18.whatever.3 existed.
svn path=/main/branches/prefix/; revision=9228
Fabian Groffen [Sun, 27 Jan 2008 09:37:10 +0000 (09:37 -0000)]
Merged from trunk 9219:9222
| 9220 | Bug #206772 - Enable bashrc once again for the clean |
| zmedico | phase. |
| 9221 | Move random functions out of repoman and into utilties.py |
| WarnerBro | |
| 9222 | Restore desktop.invalid as a warning; was an intergration |
| WarnerBro | error |
svn path=/main/branches/prefix/; revision=9224
Fabian Groffen [Sun, 27 Jan 2008 09:29:43 +0000 (09:29 -0000)]
Move paths to the bottom, be more dense and print ${S} as it's often necessary when a package fails
svn path=/main/branches/prefix/; revision=9223
Fabian Groffen [Mon, 21 Jan 2008 19:43:18 +0000 (19:43 -0000)]
Merged from trunk 9215:9217
| 9216 | Replace the current diefunc() and die alias with a single |
| zmedico | die() function. The previous arguments to diefunc() weren't |
| | used anyway. The result is that the die message looks better |
| | because it doesn't show the alias and all of it's arguments |
| | which are totally irrelevant. (branches/prefix r9212) |
| 9217 | We need to implement diefunc() since environment.bz2 files |
| zmedico | contain calls to it (due to alias expansion). |
svn path=/main/branches/prefix/; revision=9219
Fabian Groffen [Sun, 20 Jan 2008 21:03:57 +0000 (21:03 -0000)]
Haubi is with us now, sort by name
svn path=/main/branches/prefix/; revision=9215
Fabian Groffen [Sun, 20 Jan 2008 19:51:10 +0000 (19:51 -0000)]
Merged from trunk 9208:9209
| 9209 | Add a note that PORTDIR is a repository of software and |
| WarnerBro | that users should not add random directories in it. |
svn path=/main/branches/prefix/; revision=9214
Fabian Groffen [Sun, 20 Jan 2008 19:05:05 +0000 (19:05 -0000)]
Change the die func to produce a readable message where the actual die message isn't hidden away between many other messages that don't add much. This commit is based on my and others in #gentoo-alt their taste, so may very well not be eligable for merging in the trunk.
svn path=/main/branches/prefix/; revision=9213
Fabian Groffen [Sun, 20 Jan 2008 19:01:26 +0000 (19:01 -0000)]
Get rid of die alias to diefunc, since diefunc does nothing with the first three arguments that the die alias inserts. This commit /might/ be merged in the trunk.
svn path=/main/branches/prefix/; revision=9212
Fabian Groffen [Sun, 20 Jan 2008 18:58:37 +0000 (18:58 -0000)]
Only calculate the space (width) for functions/line numbers that are actually going to be printed in the stack. This commit is eligable for merging in the trunk.
svn path=/main/branches/prefix/; revision=9211
Fabian Groffen [Sat, 19 Jan 2008 12:44:51 +0000 (12:44 -0000)]
Add support for svn+https:// and svn:// schemes
svn path=/main/branches/prefix/; revision=9208
Fabian Groffen [Sat, 19 Jan 2008 10:46:59 +0000 (10:46 -0000)]
Merged from trunk 9205:9206
| 9206 | Check for quoted ${A}. Thanks to maekke for this patch. |
| zmedico | |
svn path=/main/branches/prefix/; revision=9207
Fabian Groffen [Sun, 13 Jan 2008 12:23:38 +0000 (12:23 -0000)]
Fix inter-revision code that apparently has never been triggered before, all comparisons were done using floats in pkgcmp...
svn path=/main/branches/prefix/; revision=9205
Fabian Groffen [Sun, 13 Jan 2008 12:04:35 +0000 (12:04 -0000)]
Fix the regexp with regard to detecting inter-revisions
svn path=/main/branches/prefix/; revision=9204
Fabian Groffen [Sun, 13 Jan 2008 11:07:32 +0000 (11:07 -0000)]
Merged from trunk 9179:9201
| 9184 | Fix a typo. |
| zmedico | |
| 9186 | Adjust the max DESCRIPTION.toolong length to 100 |
| zmedico | characters so that it's not too small and only about 3% of |
| | packages will trigger it. |
| 9188 | Bug #205318 - Handle errno.ENOTDIR thrown from the lstat |
| zmedico | call inside dblink._security_check(). |
| 9190 | Bug #203887 - Make repoman recognize |
| zmedico | RESTRICT="installsources". |
| 9192 | Replace hardcoded value with max_desc_len. |
| zmedico | |
| 9194 | In preprocess_ebuild_env(), move a |
| zmedico | filter_readonly_variables call out of a subshell since |
| | FreeBSD and prefix users have reported apparent corruption |
| | of the PATH environment variable that triggers calls to |
| | the wrong version of sed (one that does not support the -r |
| | option). An example of what users have observed: >>> |
| | Source compiled. sed: illegal option -- r usage: sed |
| | script [-Ealn] [-i extension] [file ...] sed [-Ealn] [-i |
| | extension] [-e script] ... [-f script_file] ... [file ...] |
| | Traceback (most recent call last): File |
| | "/usr/lib/portage/bin/filter-bash-environment.py", line |
| | 51, in compile_egrep_pattern(args[0]), file_in, file_out) |
| | File "/usr/lib/portage/bin/filter-bash-environment.py", |
| | line 34, in filter_bash_environment file_out.write(line) |
| | IOError: [Errno 32] Broken pipe |
| 9195 | Remove redundant return statement. |
| zmedico | |
| 9197 | Add some notes about enhancements related to binary |
| zmedico | package support that's now in 2.1.4. |
| 9200 | style fixes (imports), add support for --version (bug |
| WarnerBro | 138159) |
| 9201 | fix typo in emerge-webrsync from r9118 |
| WarnerBro | |
svn path=/main/branches/prefix/; revision=9203
Fabian Groffen [Sun, 13 Jan 2008 11:05:32 +0000 (11:05 -0000)]
Merged from trunk 9159:9179
| 9160 | Bug #162542 - When dropping privileges for |
| zmedico | FEATURES=userpriv, automatically detect permission problems |
| | with CCACHE_DIR and recursively adjust permissions only when |
| | necessary. |
| 9162 | Bug#204668 - Fix WORKDIR quoting in econf() when updating |
| zmedico | config.guess and config.sub. |
| 9163 | Bug #204425 - Remove --delete-after from the default |
| zmedico | PORTAGE_RSYNC_OPTS. This allows the rsync program to choose |
| | the preferred --delete algorithm, or the user can choose one |
| | via PORTAGE_RSYNC_EXTRA_OPTS. |
| 9164 | Make sure that portdb.findname() returns the correct ebuild. |
| zmedico | |
| 9165 | Fix the "Appending to PORTDIR_OVERLAY..." feature which was |
| zmedico | broken by the previous commit. |
| 9166 | Bug #203316 - Fix isvalidatom() to properly detect invalid |
| zmedico | operators used together with slot atoms. Thanks to Arfrever |
| | Frehtes Taifersar Arahesis <Arfrever.FTA@GMail.Com> for the |
| | patch. |
| 9167 | Bug #203887 - Implement RESTRICT=installsources for binaries |
| zmedico | that are not compatible with debugedit. |
| 9176 | Bug #162450 - Try to avoid having so many bugs marked |
| zmedico | UPSTREAM by encouraging users to report 'poor programming |
| | practices' QA issues upstream and show them the $HOMEPAGE |
| | for convenience. |
| 9177 | Add a DESCRIPTION.toolong warning for when the DESCRIPTION |
| zmedico | line is over 80 characters long. Thanks to Betelgeuse for |
| | the patch. |
| 9178 | * Make pkgcmp() pass the ebuild revision directly into |
| zmedico | vercmp() since there is code there to handle it already. |
| | This eliminates some redundant revision comparison code. |
| | Thanks to peper for the patch. * Add some vercmp() test |
| | cases for comparison of ebuild revisions. |
| 9179 | Add a new "ebuild.autotools" check for when ebuilds call |
| zmedico | autotools directly instead of using autotools.eclass. Thanks |
| | to Betelgeuse for the initial patch. |
svn path=/main/branches/prefix/; revision=9202
Fabian Groffen [Tue, 8 Jan 2008 17:09:54 +0000 (17:09 -0000)]
Merged from trunk 9154:9158
| 9155 | Bug #204753 - Add "distfiles" and "packages" to the list of |
| zmedico | non-category directories. |
| 9157 | When spawing the "depend" phase, use file descriptors from |
| zmedico | sys.std* streams. |
| 9158 | After loading the environment, make sure the color variables |
| zmedico | are in sync with the current NOCOLOR setting. |
svn path=/main/branches/prefix/; revision=9159
Fabian Groffen [Mon, 7 Jan 2008 20:59:07 +0000 (20:59 -0000)]
Merged from trunk 9150:9151
| 9151 | Bug #204651 - Make repoman respect NOCOLOR=true. |
| zmedico | |
svn path=/main/branches/prefix/; revision=9154
Fabian Groffen [Mon, 7 Jan 2008 20:56:54 +0000 (20:56 -0000)]
When installing a binpkg make sure we record our own prefix, not the one of the binpkg, as we adjusted the package accordingly. (rebinpkging should work, though not really sensible)
svn path=/main/branches/prefix/; revision=9153
Fabian Groffen [Sat, 5 Jan 2008 22:34:14 +0000 (22:34 -0000)]
Merged from trunk 9143:9147
| 9144 | per bug 204468, remove old check from repoman (all ebuilds |
| WarnerBro | in gentoo-x86 are migrated). |
| 9145 | Filter PATH along with FEATURES when loading |
| zmedico | environment.bz2. |
| 9147 | Make filter_readonly_variables() filter PATH in any case |
| zmedico | since we never want to save of reload it. |
svn path=/main/branches/prefix/; revision=9150
Fabian Groffen [Sat, 5 Jan 2008 22:32:51 +0000 (22:32 -0000)]
Fix a bug where we would get a stat failure on dead symlinks. (should
have used lstat all over the place)
Optimise performance by removing two needless stat calls.
svn path=/main/branches/prefix/; revision=9149
Fabian Groffen [Sat, 5 Jan 2008 13:49:22 +0000 (13:49 -0000)]
Merged from trunk 9139:9140
| 9140 | Send eerror and ewarn messages to stderr. This is important |
| zmedico | in case somebody calls portageq inside a global scope |
| | command substitution. The output needs to go to stderr so |
| | that the die message from the subshell is visible. |
svn path=/main/branches/prefix/; revision=9143
Fabian Groffen [Sat, 5 Jan 2008 13:44:18 +0000 (13:44 -0000)]
Implemented support for restoring hardlinks in chpathtool.
svn path=/main/branches/prefix/; revision=9142
Fabian Groffen [Thu, 3 Jan 2008 18:56:57 +0000 (18:56 -0000)]
Merged from trunk 9134:9137
| 9135 | Bug #204020 - Make grabfile() properly raise |
| zmedico | PermissionDenied when appropriate instead of silently |
| | ignoring permission errors. |
| 9137 | Recognize export statements when filtering the environment. |
| zmedico | This is needed for compatibility with environment.bz2 files |
| | generated by paludis. |
svn path=/main/branches/prefix/; revision=9139
Fabian Groffen [Wed, 2 Jan 2008 11:18:26 +0000 (11:18 -0000)]
Hundreds of die messages suck and completely jungle up the terminal, and actually obstruct the cause, use a file to 'talk' between parent and sub-processes
svn path=/main/branches/prefix/; revision=9134
Fabian Groffen [Tue, 1 Jan 2008 22:06:30 +0000 (22:06 -0000)]
Python doesn't like me, and I don't like Python
svn path=/main/branches/prefix/; revision=9133
Fabian Groffen [Tue, 1 Jan 2008 21:55:01 +0000 (21:55 -0000)]
Merged from trunk 9125:9128
| 9126 | Fix config.setcpv() to properly call config.regenerate() in |
| zmedico | cases when USE needs to be regenerated due to FEATURES=test |
| | to USE=test mapping. |
| 9128 | When searching for "test" in IUSE, account for IUSE |
| zmedico | defaults. |
svn path=/main/branches/prefix/; revision=9132
Fabian Groffen [Tue, 1 Jan 2008 21:53:02 +0000 (21:53 -0000)]
Ignore relative install_names. Since it's hard to figure out what the executable would be (for a lib) we can't easily check it, and hence ignore it for now.
svn path=/main/branches/prefix/; revision=9131
Fabian Groffen [Sun, 30 Dec 2007 19:16:00 +0000 (19:16 -0000)]
Zac's USERLAND guessing yields in big problems for Prefix. Prefix users
/always/ have a GNU userland. I could reliably make this the case in
portage/data.py. In isolated-functions.sh I couldn't. It looks strange
to me it's being set there as well.
I personally hope that USERLAND can go away some day. Prefix could
cater for this in the current FreeBSD case, by simply having an
alternative EPREFIX for a number of packages that Portage needs (bash,
coreutils, findutils, sed, gawk ...).
svn path=/main/branches/prefix/; revision=9125
Fabian Groffen [Sun, 30 Dec 2007 17:19:05 +0000 (17:19 -0000)]
Merged from trunk 9094:9118
| 9096 | Move XARGS initialization from portage.data to |
| zmedico | isolated-functions.sh. |
| 9097 | Move XARGS initialization from portage.data to |
| zmedico | isolated-functions.sh. |
| 9099 | Remove redundant lchown() compatibility code since the |
| zmedico | getattr(os, "lchown", None) call already handles it. |
| 9100 | Simplify the userland detection code in portage.data and add |
| zmedico | a bash version of it to isolated-functions.sh. |
| 9101 | Add back support for silent definition of the dummy lchown() |
| zmedico | function when ostype == Darwin. |
| 9103 | Remove redundant USERLAND sanity check code from doebuild() |
| zmedico | since it's handled in isolated-functions.sh now. |
| 9105 | Make the global counter file correspond to the total number |
| zmedico | of installation actions that have occurred in the history of |
| | this package database. |
| 9107 | Rely on USERLAND since it's automatically generated by |
| zmedico | isolated-functions.sh when necessary. |
| 9109 | Document that docinto works for dohtml. |
| zmedico | |
| 9111 | Make the ecompressdir vecho output show a leading / on the |
| zmedico | directory path. Thanks to armin76. |
| 9112 | Fix handling of leading / charactes some more. |
| zmedico | |
| 9114 | Add PKGDIR to the config.environ() whitelist so that |
| zmedico | people's bashrc's don't break. |
| 9116 | Fix broken Darwin USERLAND detection. |
| zmedico | |
| 9117 | Fix USERLAND references to handle Darwin like BSD. |
| zmedico | |
| 9118 | As suggested by grobian, treat Darwin just like USERLAND=gnu |
| zmedico | since they seem to be switching commands to gnu anyway. |
svn path=/main/branches/prefix/; revision=9124
Fabian Groffen [Sun, 30 Dec 2007 17:08:29 +0000 (17:08 -0000)]
Merged from trunk 9063:9094
| 9064 | Fixes for logic related to FEATURES=test to USE=test |
| zmedico | mapping: * 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. |
| 9065 | Show the EBUILD_FORCE_TEST "Forcing test" message even when |
| zmedico | "test" is not in IUSE. |
| 9066 | In action_regen(), use writemsg() to send error messages to |
| zmedico | stderr. |
| 9078 | Just ignore it when the global counter file does not match |
| zmedico | the highest installed COUNTER since it's normal for them to |
| | differ in some cases. For example, the global counter file |
| | will contain a higher value if the user merges a package and |
| | then immediately unmerges it (unmerge does not update the |
| | global counter file, but merge does). |
| 9080 | Make dep_expand() stop relying on having a categories list: |
| zmedico | * Create and use a dbapi.categories property that is |
| | automatically generated from dbapi.cp_all(). * Make mutable |
| | dbapi instances delete the invalidate the cached categories |
| | when they need to be regenerated. |
| 9081 | Make key_expand() use dbapi.categories. |
| zmedico | |
| 9083 | Make the FEATURES=sfperms loops safe for whitespace in paths |
| zmedico | by using find -print0 | while read -d $'\0'. |
| 9085 | Bug #202697 - Add / to the default initial SANDBOX_READ in |
| zmedico | order to avoid a situation where attempts to read arbitrary |
| | files trigger sandbox violations. |
| 9087 | Bug #121584 - Make the automatic USERLAND detection code |
| zmedico | recognize GNU/kFreeBSD. |
| 9089 | Make the ARCH and USERLAND sanity check use the autodetected |
| zmedico | USERLAND from the portage.data module if necessary. |
| 9090 | Make doebuild() check XARGS together with ARCH and USERLAND. |
| zmedico | |
| 9092 | * Initialize dbapi._categories = None so that we can compare |
| zmedico | with None instead of using hasattr. * Remove unwanted |
| | self._categories initialization from the portdbapi |
| | constructor. |
| 9094 | Add support for showing binary package file sizes in emerge |
| zmedico | --search output. |
svn path=/main/branches/prefix/; revision=9123
Fabian Groffen [Sun, 30 Dec 2007 16:39:41 +0000 (16:39 -0000)]
Add some more missing man-pages, and sort the list.
svn path=/main/branches/prefix/; revision=9122
Fabian Groffen [Sun, 30 Dec 2007 16:37:54 +0000 (16:37 -0000)]
Also install this manpage :(
svn path=/main/branches/prefix/; revision=9121
Fabian Groffen [Sun, 30 Dec 2007 16:33:01 +0000 (16:33 -0000)]
Because pipping doesn't understand C-code, I wrote a man-page for chpathtool so he can also understand what the tool does (try to accomplish)
svn path=/main/branches/prefix/; revision=9120
Fabian Groffen [Fri, 28 Dec 2007 13:39:30 +0000 (13:39 -0000)]
Merged from trunk 9058:9062
| 9059 | Bug #201498 - Use desktop-file-validate to validate |
| zmedico | *.desktop files inside ${FILESDIR} and generate a |
| | "desktop.invalid" qa warning if an error is detected. Thanks |
| | to Betelgeuse for the initial patch. |
| 9060 | Minor code readablity enhancements: * Use relative_path and |
| zmedico | 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. |
| 9061 | Bug #203323 - Fix the FEATURES=sfperms code so that it |
| zmedico | doesn't chmod g-r on binaries that are both setuid and |
| | setgid. In that case, just chmod o-r. |
| 9062 | Always make sure that the depend phase triggers a source |
| zmedico | ${EBUILD} call, even if "${T}"/environment happens to exist |
| | for some reason. |
svn path=/main/branches/prefix/; revision=9063
Fabian Groffen [Thu, 27 Dec 2007 19:48:54 +0000 (19:48 -0000)]
Merged from trunk 9049:9056
| 9050 | - small UI cleanups. *should* not cause problems with lack |
| solar | of missing newlines. |
| 9051 | Bug #203239 - With FEATURES=noauto, always source ${EBUILD}. |
| zmedico | This will load the ${T}/environment file if available and |
| | then source ${EBUILD} to overwrite any functions that have |
| | changed. |
| 9052 | Bug #203090 - Do not trust the global counter file that can |
| zmedico | lead to invalid COUNTER generation. |
| 9053 | Fix "Initializing counter" message to show the correct |
| zmedico | value. |
| 9054 | In getconfig(), pass the infile attribute into the shlex |
| zmedico | constructor so that shlex.sourcehook() properly joins |
| | relative paths. |
| 9055 | Fix sync_local() to return 0 when a appropriate. Thanks to |
| zmedico | Alon Bar-Lev" <alonbl@gentoo.org> |
| 9056 | Fix broken handling of the tuple that's returned from |
| zmedico | verify_all(). Thanks to Betelgeuse. |
svn path=/main/branches/prefix/; revision=9058
Fabian Groffen [Thu, 27 Dec 2007 19:41:40 +0000 (19:41 -0000)]
properly end the string such that we don't get garbage in symlinks
svn path=/main/branches/prefix/; revision=9057
Fabian Groffen [Mon, 24 Dec 2007 13:57:12 +0000 (13:57 -0000)]
Python doesn't like imports after references ... even if the import was already done in global scope
svn path=/main/branches/prefix/; revision=9049
Fabian Groffen [Mon, 24 Dec 2007 13:42:43 +0000 (13:42 -0000)]
fix import logic, to hopefully not break this time
svn path=/main/branches/prefix/; revision=9048
Fabian Groffen [Mon, 24 Dec 2007 13:13:52 +0000 (13:13 -0000)]
Merged from trunk 9045:9046
| 9046 | Remove redundant find_binary import. |
| zmedico | |
svn path=/main/branches/prefix/; revision=9047
Fabian Groffen [Sat, 22 Dec 2007 23:07:33 +0000 (23:07 -0000)]
Portage module path logic (Prefix way)
In principle we don't want to be dependant on the environment
(PYTHONPATH) and/or python hardcoded default search path. (PYTHONPATH).
Since Gentoo patches Python to include Portage's python modules in the
default search path, any Gentoo python interpreter is an enemy for
Portage once it is not installed in the path hardcoded during Python
compilation. This is the case when bootstrapping Prefix Portage on a
Gentoo Linux system, or when bootstrapping Prefix Portage using another
Prefix instance on the same system. For this reason we ignore the
entire search path, and allow a backdoor for developers via the
PORTAGE_PYTHONPATH variable.
svn path=/main/branches/prefix/; revision=9045
Fabian Groffen [Sat, 22 Dec 2007 13:45:14 +0000 (13:45 -0000)]
Make sure EPREFIX is stored in xpak as a file for binary packages. Patch from zmedico via pipping.
svn path=/main/branches/prefix/; revision=9044
Fabian Groffen [Sat, 22 Dec 2007 13:34:00 +0000 (13:34 -0000)]
Fix regression I introduced in r9041
svn path=/main/branches/prefix/; revision=9043
Fabian Groffen [Sat, 22 Dec 2007 13:31:17 +0000 (13:31 -0000)]
Merged from trunk 9029:9038
| 9031 | Make vardbapi cache DESCRIPTION and HOMEPAGE in order to |
| zmedico | optimize emerge --searchdesc. |
| 9033 | Enhance the portageq match command to list all installed |
| zmedico | packages when given an empty string. |
| 9034 | Typo: remove bogus argument. |
| zmedico | |
| 9035 | Implement a `portageq contents ` command that lists all the |
| zmedico | files that are installed for a given package, with one file |
| | listed on each line. |
| 9038 | Add support for --usepkg and --usepkgonly options together |
| zmedico | with emerge --search. |
svn path=/main/branches/prefix/; revision=9042
Fabian Groffen [Sat, 22 Dec 2007 13:29:47 +0000 (13:29 -0000)]
Merged from trunk 9001:9029
| 9002 | Hardcode #!/bin/bash for consistency with other scripts. |
| zmedico | |
| 9004 | Bug #202566 - Move the 'global portage' statement to avoid |
| zmedico | "SyntaxWarning: name 'portage' is assigned to before global |
| | declaration" messages produced by earlier python-2.4. |
| 9005 | Fix a reference to an undefined "mykey" variable. |
| zmedico | |
| 9006 | Slightly improved the masked package check inside |
| zmedico | dep_zapdeps(). |
| 9008 | Add "metadata" and "licenses" to _non_category_dirs. |
| zmedico | |
| 9010 | Use a regex to validate package directory names in |
| zmedico | portdbapi.cp_list() and also simplify the catagory regex a |
| | bit. |
| 9012 | Use regex category validation in binarytree.populate(). |
| zmedico | |
| 9013 | Fix references to dbapi._category_re. |
| zmedico | |
| 9015 | Tweak profile validation and warning logic a bit. |
| zmedico | |
| 9016 | In portage.spawn(), make the default fd_pipes value get file |
| zmedico | descriptors from sys.std{in,out,err} so that they can be |
| | overridden. |
| 9018 | In portage.process.spawn(), make the default fd_pipes value |
| zmedico | get file descriptors from sys.std{in,out,err} so that they |
| | can be overridden. |
| 9020 | Fix xmatch "match-all" typo. |
| zmedico | |
| 9023 | Eliminate redundant "notadded" error filtering. |
| zmedico | |
| 9025 | Make the "test" flag that's enabled by FEATURES=test into an |
| zmedico | implicit iuse member. |
| 9027 | Implement emerge --search support for installed packages, so |
| zmedico | it works even without a portage tree or binary packages. |
| 9028 | Don't show "Size of files: 0 kB" in emerge --search output |
| zmedico | for installed packages that have no available ebuild in the |
| | tree. |
| 9029 | Implement binary package visibility filtering for emerge |
| zmedico | --search. |
svn path=/main/branches/prefix/; revision=9041
Fabian Groffen [Sat, 22 Dec 2007 13:21:21 +0000 (13:21 -0000)]
Fix copy and paste error as pointed out by pipping
svn path=/main/branches/prefix/; revision=9040
Fabian Groffen [Thu, 20 Dec 2007 18:35:39 +0000 (18:35 -0000)]
Merged from trunk 8968:8997
| 8969 | Whitespace only: remove extra indentation. |
| zmedico | |
| 8971 | Bug #202748 - When merging a binary package, only clean up |
| zmedico | temp files on success. Otherwise, leave the temp files |
| | intact for debugging purposes. |
| 8973 | Make some adjustments so that it's possible to install |
| zmedico | binary packages without having a portage tree: * Make |
| | portdbapi.aux_get() return early by raising a KeyError if it |
| | detects that there is no portage tree. * Move the ARCH and |
| | USERLAND sanity check to the last moment in doebuild() and |
| | only require these variables if an existing environment |
| | (such as environment.bz2) is unavailable. * Make the |
| | NewsManager constructor cope with a broken make.profile |
| | symlink. |
| 8974 | Convert messages about missing portage tree to debug level |
| zmedico | warnings since quite often it's possible to function without |
| | a portage tree now. |
| 8975 | Make binarytree.populate() stop relying on having a |
| zmedico | categories list since it may not be available if there is no |
| | portage tree. |
| 8976 | Pass a valid phase into eerror so that it works. |
| zmedico | |
| 8978 | Fix a type: eclasses -> eclass. |
| zmedico | |
| 8980 | Enable emerge search actions for binary packages when there |
| zmedico | is no portage tree available. |
| 8982 | Make vartree.cpv_all() stop relying on having a categories |
| zmedico | list since it may not be available if there is no portage |
| | tree. |
| 8985 | Fix binarytree._update_pkgindex_header() so that it can cope |
| zmedico | with a missing profile. |
| 8988 | Make dep_zapdeps() fall back to installed packages in it's |
| zmedico | availability test in cases where the package does not appear |
| | to be masked. This solves dep selection preference issues |
| | when working without a portage tree. |
| 8990 | Fix portdbapi.cp_list() so that it can cope with a missing |
| zmedico | profile. |
| 8992 | For simplicity and consistency, always use a regular |
| zmedico | expression for category validation instead of using a list. |
| 8993 | Filter out some non-category directories in |
| zmedico | portdbapi.cp_all(). |
| 8997 | Fix a typo in the _non_category_dirs regex. |
| zmedico | |
svn path=/main/branches/prefix/; revision=9001
Fabian Groffen [Thu, 20 Dec 2007 18:32:15 +0000 (18:32 -0000)]
Merged from trunk 8941:8967
| 8942 | Generalize the sed -> gsed wrapper script so that it's |
| zmedico | 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. |
| 8943 | Fix typo: %% -> ##. |
| zmedico | |
| 8944 | Bug #176467 - Filter out USE flags that aren't part of IUSE. |
| zmedico | Some flags are considered to be implicit members of IUSE: * |
| | Flags derived from ARCH * Flags derived from |
| | USE_EXPAND_HIDDEN variables * Forced flags, such as those |
| | from {,package}use.force |
| 8945 | Create a PORTAGE_IUSE variable containing an egrep pattern |
| zmedico | 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. |
| 8949 | Include masked flags in PORTAGE_IUSE to avoid more false |
| zmedico | positives in the useq() IUSE check. |
| 8951 | Only enable the PORTAGE_IUSE check during build time phases |
| zmedico | since that's the only time it's valid for now. |
| 8953 | Display the merge list with blockers any time that there are |
| zmedico | blockers, instead of telling the user to try again with |
| | --pretend. |
| 8955 | Make special build and bootstrap flags into implicit members |
| zmedico | of IUSE so that stage builds will work again. |
| 8957 | Fix USE filtering code so that it doesn't rely on |
| zmedico | config.setcpv() calling config.regenerate(). |
| 8959 | Store filtered USE for config.environ() calls in a special |
| zmedico | attribute so that the normal global USE is still available |
| | for things like emerge --info output. |
| 8961 | Trigger a config.regenerate() call inside setcpv() when the |
| zmedico | EBUILD_PHASE variable is defined. It's too expensive to do |
| | the regenerate() call every time. Do in when EBUILD_PHASE is |
| | defined since it's needed to create the filtered USE that |
| | environ() passes to the ebuild environment. |
| 8963 | Keep filtered USE in the PORTAGE_USE variable to keep it |
| zmedico | separate from the global USE that's shown by emerge --info. |
| 8965 | Bug #140180 - Ignore missing HOMEPAGE and LICENSE variables |
| zmedico | for new-style virtual packages. |
| 8967 | Always add ARCH to USE without relying on it being listed in |
| zmedico | PORTAGE_ARCHLIST. |
svn path=/main/branches/prefix/; revision=9000
Fabian Groffen [Mon, 17 Dec 2007 18:35:50 +0000 (18:35 -0000)]
I probably got somehow annoyed by the ${D} in the output in the past
here. However, since zmedico solved it using a sed, remove my bash
version of it to be more in sync with the trunk.
svn path=/main/branches/prefix/; revision=8941
Fabian Groffen [Mon, 17 Dec 2007 18:28:23 +0000 (18:28 -0000)]
Merged from trunk 8900:8937
| 8901 | Make portdbapi.visible() mask ebuilds that do not define |
| zmedico | SLOT. (branches/2.1.2 r8900) |
| 8904 | Use the BAD color class instead of hardcoded red. |
| zmedico | |
| 8906 | Properly filter SANDBOX_ON from the environment. When |
| zmedico | sourcing ${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. |
| 8907 | Remove extra _ typo. |
| zmedico | |
| 8909 | Allow FEATURES to persist between phases since the user |
| zmedico | might 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. |
| 8911 | Make sure that PORTAGE_SANDBOX_* variables can never be set |
| zmedico | by "${T}"/environment. |
| 8913 | Bug #202126 - Replace an obsolete reference to `emerge |
| zmedico | --help config` with a reference to the CONFIGURATION FILES |
| | section of emerge(1). |
| 8915 | Disable the "QA Notice: Pre-stripped files" message when |
| zmedico | RESTRICT 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. |
| 8917 | Add --buildpkgonly to the options lists that exempt from |
| zmedico | slot collisions and world file updates. |
| 8920 | Add support for multi-line commit message input by using EOF |
| zmedico | as a delimiter (Ctrl-d) instead of a new line. |
| 8921 | Add support for getting a commit message using an editor |
| zmedico | defined by the EDITOR environment variable. |
| 8923 | Prompt the user before letting the editor take over the |
| zmedico | screen so there is an opportunity to review any QA warnings. |
| 8925 | Save QA output so that it can be conveniently displayed in |
| zmedico | $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. |
| 8927 | Replace hardcoded green, yellow, and red with GOOD, WARN, |
| zmedico | and BAD. |
| 8928 | Instead of all modes, only in commit mode save an extra copy |
| zmedico | of QA output for display in $EDITOR. |
| 8930 | Split out a format_qa_output() function to eliminate |
| zmedico | duplicate code. |
| 8932 | Fix punctuation and spelling. Thanks to Arfrever Frehtes |
| zmedico | Taifersar Arahesis <arfrever.fta@gmail.com>. |
| 8934 | Move the reusable ConsoleStyleFile and StyleWriter classes |
| zmedico | into the ouput module. |
| 8935 | In "QA Notice: Precompiled python" messages, use sed to |
| zmedico | strip the leading ${D} from file paths. |
| 8937 | Fix setconfig.getSets() api breakage. |
| zmedico | |
svn path=/main/branches/prefix/; revision=8940
Fabian Groffen [Mon, 17 Dec 2007 18:14:25 +0000 (18:14 -0000)]
merge from trunk r8897 and fix up for SVN support
svn path=/main/branches/prefix/; revision=8939
Fabian Groffen [Mon, 17 Dec 2007 18:02:15 +0000 (18:02 -0000)]
Merged from trunk 8873:8896
| 8874 | Do an EBUILD_EXIT_STATUS_FILE sanity check in spawnebuild() |
| zmedico | where it spawns misc-functions.sh after the install phase. |
| 8876 | Add some documentation for ebuild phases and pre/post phase |
| zmedico | hooks that can be defined via bashrc. |
| 8877 | Add a "Quality Assurance" tag so that all chapters are |
| zmedico | consistently nested inside tags. |
| 8878 | * When installing a binary package, export the file name of |
| zmedico | the package 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. |
| 8882 | First import the main portage module without legacy globals |
| zmedico | since it 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. |
| 8883 | * Raise PermissionDenied from getconfig() when appropriate. |
| zmedico | * When available, make getconfig() include an invalid token |
| | in a ParseError message. |
| 8884 | Instead of calling sys.exit when a ParseError occurs in the |
| zmedico | config 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. |
| 8887 | Bug #198398 - Make repoman bail out if support for RMD160 |
| zmedico | hash creation appears to be missing. |
| 8888 | Fix the check for bug #198398 so that it works even when |
| zmedico | running repoman from the root of the repo. |
| 8889 | Bug #202036 - In case of blockers, bail out earlier so that |
| zmedico | later code can assume there are no blockers. |
| 8891 | In filter_readonly_variables(), replace 'declare -r ' with |
| zmedico | 'declare ' instead of removing it completely. |
| 8892 | Bug #202068 - In order to filter unwanted variable |
| zmedico | assignments out 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. |
| 8893 | Use the sed -r option to enable extended regular expressions |
| zmedico | so that commonly used characters like (, ), and + don't have |
| | to be escaped. |
| 8894 | Bug #201848 - Mask ebuilds that do not define SLOT. |
| zmedico | |
| 8895 | Bug #201848 - Make the ebuild command reject ebuilds that do |
| zmedico | not define SLOT. |
| 8896 | Bug #201771 - Make unpack() detect common errors such as |
| zmedico | absolute paths that start with ${DISTDIR} and die an |
| | appropriate error message. Thanks to grobian for this patch. |
svn path=/main/branches/prefix/; revision=8938
Fabian Groffen [Sat, 8 Dec 2007 17:34:45 +0000 (17:34 -0000)]
ED is readonly
svn path=/main/branches/prefix/; revision=8872
Fabian Groffen [Sat, 8 Dec 2007 17:27:09 +0000 (17:27 -0000)]
Don't forget PORTAGE_USER and PORTAGE_GROUP as Prefix additions
svn path=/main/branches/prefix/; revision=8871
Fabian Groffen [Sat, 8 Dec 2007 16:47:08 +0000 (16:47 -0000)]
Make portage work in Prefix again by whitelisting the Prefix special
variables.
svn path=/main/branches/prefix/; revision=8870
Fabian Groffen [Sat, 8 Dec 2007 16:28:14 +0000 (16:28 -0000)]
Merged from trunk 8843:8867
| 8844 | In order to know exactly which atoms/sets should be added to |
| zmedico | the world file, the depgraph performs set expansion later. |
| | It will get confused about where the atoms came from if it's |
| | not allowed to expand them itself. |
| 8845 | bootstrap.sh expects that the "system" set always exists, so |
| zmedico | create it automatically if necessary. |
| 8846 | Show ? if the installed package is missing a repository |
| zmedico | label. The stable version of portage creates these labels |
| | now, so false positives won't be as common as they used to |
| | be. |
| 8848 | - repository configuration file and `emerge --sync |
| zmedico | [repo_set]... [repo]...` support for overlays and binhosts |
| | (zmedico) |
| 8849 | Make SetConfig.getSets() return a copy of the psets |
| zmedico | attribute instead of a direct reference. Fix the to stop |
| | relying on having the direct reference. |
| 8850 | Keep the RootConfig.sets attribute in sync with the |
| zmedico | SetConfig. |
| 8851 | Fix broken timestamp logic in do_snapshot(). Thanks to Alon |
| zmedico | Bar-Lev <alonbl@gentoo.org> for this patch. |
| 8852 | Remove redundant successful exit call from the "depend" |
| zmedico | phase and let it run to the bottom of ebuild.sh just like |
| | the other phases. |
| 8853 | Bug #201506 - Make preprocess_ebuild_env() preserve |
| zmedico | SANDBOX_{DENY,PREDICT,READ,WRITE} between all phases, except |
| | when the environment comes directly from environment.bz2. |
| 8857 | Prevent the filter_opts local variable from leaking into the |
| zmedico | environment in preprocess_ebuild_env(). |
| 8859 | Declare retval as a local variable. |
| zmedico | |
| 8861 | Bug #201513 - Fix typos for preserve-libs and |
| zmedico | PreservedLibraryConsumerSet. Thanks to Arfrever Frehtes |
| | Taifersar Arahesis <Arfrever.FTA@GMail.Com> for this patch. |
| 8862 | Remove automatic "system" and "world" set creation since we |
| zmedico | can probably rely on having a complete config. |
| 8863 | Perform set argument validation in emerge_main() even for |
| zmedico | values actions that need to expland sets themselves. |
| 8864 | Add a TODO note about remaining work for bug #189417. |
| zmedico | |
| 8865 | Bug #189417 - Explicitly whitelist any remaining variables |
| zmedico | that are allowed to leak into the ebuild environment. Also, |
| | fix spawnebuild to properly filter the env when it spawns |
| | misc-functions.sh after the install phase. There is still |
| | some remaining leakage that seems to come from something in |
| | the ebuild environment sourcing /etc/profile. |
| 8866 | Bug #189417 - Whitelist BASH_ENV since we need to have it |
| zmedico | set in order to prevent sandbox from causing env leakage by |
| | sourcing /etc/profile via it's bashrc. |
| 8867 | Bug #189417 - Comment on how the whitelist and BASH_ENV are |
| zmedico | used to prevent environment leakage. |
svn path=/main/branches/prefix/; revision=8869
Fabian Groffen [Tue, 4 Dec 2007 20:35:07 +0000 (20:35 -0000)]
The sets.conf file is expected one level deeper. Having it there might
make Portage functional again ;)
svn path=/main/branches/prefix/; revision=8843