Merged from trunk 7792:7838
| 7793 | When --with-bdeps=y is enabled for built packages, pull in |
| zmedico | build time deps as requested, but marked them as |
| | "satisfied" since they are not strictly required. This |
| | allows more freedom in the merge order calculation for |
| | solving circular dependencies. Don't convert to PDEPEND |
| | since that could make --with-bdeps=y less effective if it |
| | is used to adjust merge order to prevent built_with_use() |
| | calls from failing. |
| 7794 | Flush stdout before calling pkg_info() to ensure that |
| zmedico | output always shows in the correct order. |
| 7795 | Flush stderr and stdout if their file descriptors are in |
| zmedico | fd_pipes at the beginning of spawn(). |
| 7796 | In spawn(), initialize default fd_pipes before doing the |
| zmedico | stdout/stderr flush. |
| 7797 | When --deep is not enabled, many dependencies are dicarded |
| zmedico | and left out of the digraph. This patch prevents |
| | dependencies from being discarded in some cases where the |
| | are needed in order to optimize merge order. It also |
| | modifies the DepPriority.rebuild attribute so that it only |
| | applies to build time dependencies. This leads to better |
| | merge order in some cases when --deep is not enabled. For |
| | example, `emerge xf86-input-keyboard xorg-server` will now |
| | properly merge xorg-server before xf86-input-keyboard |
| | (problem from bug #192254, comment #5). |
| 7798 | tweak get_config() so that it only executes one external |
| SpankMan | binary (sed) instead of chaining multiple ones |
| 7799 | fix possible information leak vulnerability when doing a |
| SpankMan | merge of configuration files and be better about handling |
| | of whitespace in $TMP in a few places |
| 7800 | s/note/not/ reported by p-y. |
| zmedico | |
| 7801 | Bug #190179 - Use `prelink --verify filename` to write the |
| zmedico | temp file via stdout since --undo fails when run as a |
| | normal non-superuser because it tries to chown the output |
| | file. Also, use mkstemp() to eliminate the need for locking |
| | the temp file. Thanks to Israel G. Lugo |
| | <israel.lugo@lugosys.com> for the initial patch. |
| 7802 | Initialize ${TMP} before registering the die trap so that |
| zmedico | we're sure which directory die will clean up. |
| 7803 | Bug #74615 - Quote all file paths inside dispatch-conf |
| zmedico | shell commands. |
| 7804 | Bugs #168772 and #193695 - During unmerge, only ignore |
| zmedico | specific exceptions raised from unlink() and rmdir() calls. |
| 7805 | Bug #193695 - Add support for FreeBSD chflags during |
| zmedico | unmerge. This code is adapted from the code that already |
| | exists in movefile() for the merge phase. |
| 7806 | In movefile() FreeBSD chflags handling, use chflags instead |
| zmedico | of lchflags when temporarily adjusting the flags on the |
| | parent directory since we want to follow any symlinks to |
| | the real parent directory. |
| 7807 | Bug #193695 - Add FreeBSD chflags support for rmdir() calls |
| zmedico | during unmerge. |
| 7808 | Bug #192341 - Eliminate the dependency on py-freebsd by |
| zmedico | implementing it's chflags() and lchflags() functions as |
| | wrappers around the chflags command (which should always be |
| | available in any case). The functions are only called when |
| | merging/unmerging files that actually have flags set so the |
| | performance difference should be negligible. |
| 7834 | Bug #192341 - When the chflags command does not exit |
| zmedico | successfully, try to generate an informative error. First, |
| | use stat or lstat to try and generate an ENOENT error. It |
| | the path exists, verify that the chflags binary exists and |
| | raise CommandNotFound if necessary. Finally, simply |
| | generate an EPERM OSError with the output of the command |
| | since we're not sure exactly why it failed or what the real |
| | errno was. |
| 7835 | Set non-blocking mode on the pty master file descriptor |
| zmedico | while the slave file descriptor is still held open since |
| | otherwise the fcntl call can fail on FreeBSD (the child |
| | process might have already exited and closed the slave file |
| | descriptor so we have to keep it open in order to avoid |
| | FreeBSD potentially generating an EAGAIN exception). This |
| | appoach is cleaner than triggering the exception and being |
| | forced to handle it somehow. |
| 7838 | Bug #192706 - Do not print a summary at the end of |
| zmedico | --depclean if there is nothing to clean and --quiet is |
| | enabled. |
svn path=/main/branches/prefix/; revision=7882