Zac Medico [Sat, 18 Mar 2006 02:10:56 +0000 (02:10 -0000)]
Catch a possible SyntaxError from the eval function when parsing PORTAGE_WORKDIR_MODE. Thanks to solar for reporting.
svn path=/main/trunk/; revision=2929
Zac Medico [Sat, 18 Mar 2006 01:58:21 +0000 (01:58 -0000)]
Use apply_recursive_permissions for DISTCC_DIR.
svn path=/main/trunk/; revision=2928
Zac Medico [Sat, 18 Mar 2006 01:33:41 +0000 (01:33 -0000)]
Use apply_recursive_permissions for CCACHE_DIR. Also fix a typo in error handling for CONFCACHE_DIR from r2912.
svn path=/main/trunk/; revision=2927
Zac Medico [Sat, 18 Mar 2006 00:36:35 +0000 (00:36 -0000)]
Use apply_recursive_permissions for CONFCACHE_DIR.
svn path=/main/trunk/; revision=2926
Zac Medico [Sat, 18 Mar 2006 00:18:57 +0000 (00:18 -0000)]
Add a generic apply_recursive_permissions function and use is for $DISTDIR/cvs-src.
svn path=/main/trunk/; revision=2925
Zac Medico [Fri, 17 Mar 2006 23:00:05 +0000 (23:00 -0000)]
Fix deprecated emerge syntax in emerge-webrsync for bug #126558.
svn path=/main/trunk/; revision=2924
Zac Medico [Fri, 17 Mar 2006 22:57:26 +0000 (22:57 -0000)]
Merge emerge-webrsync uid and gid fixes from the prefix branch.
svn path=/main/trunk/; revision=2923
Zac Medico [Fri, 17 Mar 2006 22:41:48 +0000 (22:41 -0000)]
For better handling of $DISTDIR/cvs-src permissions, use os.walk instead of spawning chgrp and chmod.
svn path=/main/trunk/; revision=2922
Zac Medico [Fri, 17 Mar 2006 21:24:49 +0000 (21:24 -0000)]
Fix error handling for $DISTDIR/cvs-src creation and permissions in doebuild.
svn path=/main/trunk/; revision=2919
Zac Medico [Fri, 17 Mar 2006 21:11:52 +0000 (21:11 -0000)]
Fix typo in variable name from last revision.
svn path=/main/trunk/; revision=2918
Zac Medico [Fri, 17 Mar 2006 21:04:45 +0000 (21:04 -0000)]
Fix the apply_permissions XOR logic so that mask removes mode bits correctly.
svn path=/main/trunk/; revision=2917
Zac Medico [Fri, 17 Mar 2006 08:48:22 +0000 (08:48 -0000)]
Improve error handling in prepare_build_dirs for PORT_LOGDIR. Fix doebuild 'logfile' which has caused broken logging since r2894.
svn path=/main/trunk/; revision=2915
Zac Medico [Fri, 17 Mar 2006 07:26:03 +0000 (07:26 -0000)]
Error handling in prepare_build_dirs for DISTCC_DIR.
svn path=/main/trunk/; revision=2914
Zac Medico [Fri, 17 Mar 2006 06:25:09 +0000 (06:25 -0000)]
Disable confcache when it's not possible to apply correct group permissions to an existing file in CONFCACHE_DIR.
svn path=/main/trunk/; revision=2913
Zac Medico [Fri, 17 Mar 2006 06:14:55 +0000 (06:14 -0000)]
Improve error handling in the CONFCACHE_DIR section of prepare_build_dirs. Thanks to solar for reporting this issue.
svn path=/main/trunk/; revision=2912
Zac Medico [Fri, 17 Mar 2006 03:58:53 +0000 (03:58 -0000)]
Use `mv -f` to make sure mv does not prompt for confirmation.
svn path=/main/trunk/; revision=2911
Zac Medico [Fri, 17 Mar 2006 02:38:09 +0000 (02:38 -0000)]
Fix permissions functions so that error messages tell exactly which call failed.
svn path=/main/trunk/; revision=2910
Zac Medico [Fri, 17 Mar 2006 01:53:47 +0000 (01:53 -0000)]
Use the built-in bool() function to convert 1 or 0 to True or False as recommended by marienz.
svn path=/main/trunk/; revision=2909
Zac Medico [Thu, 16 Mar 2006 21:00:14 +0000 (21:00 -0000)]
Add package atom validation to the `emerge --config` action. Thanks to sekretarz for reporting and providing an initial patch.
svn path=/main/trunk/; revision=2908
Zac Medico [Thu, 16 Mar 2006 09:37:59 +0000 (09:37 -0000)]
Implement __contains__ for portage.config so that it calls has_key, enabling membership test operators (in and not in) to work as expected.
svn path=/main/trunk/; revision=2907
Zac Medico [Thu, 16 Mar 2006 06:39:10 +0000 (06:39 -0000)]
Revert a hunk from r2834 because PORTAGE_SANDBOX_T is used incorrectly where PORTAGE_FETCH_T should be used for selinux fetch. Thanks to spb for reporting.
svn path=/main/trunk/; revision=2906
Mike Frysinger [Thu, 16 Mar 2006 05:11:25 +0000 (05:11 -0000)]
touchup some more misc bits of bash code
svn path=/main/trunk/; revision=2905
Zac Medico [Thu, 16 Mar 2006 04:57:48 +0000 (04:57 -0000)]
Move environment variables WORKDIR, D, and T from prepare_build_dirs to doebuild_environment.
svn path=/main/trunk/; revision=2904
Mike Frysinger [Thu, 16 Mar 2006 04:18:53 +0000 (04:18 -0000)]
cleanup bash code in use*() and has*() functions with the help of agriffis
svn path=/main/trunk/; revision=2903
Mike Frysinger [Thu, 16 Mar 2006 03:54:54 +0000 (03:54 -0000)]
add support for unpacking .tbz, .a, and .deb files
svn path=/main/trunk/; revision=2902
Zac Medico [Thu, 16 Mar 2006 03:30:26 +0000 (03:30 -0000)]
Add a new PORTAGE_WORKDIR_MODE config variable so that the mode of WORKDIR is no longer hard coded. See bug #8688.
svn path=/main/trunk/; revision=2901
Mike Frysinger [Thu, 16 Mar 2006 03:11:27 +0000 (03:11 -0000)]
declare more local variables to prevent env pollution
svn path=/main/trunk/; revision=2900
Mike Frysinger [Thu, 16 Mar 2006 01:26:03 +0000 (01:26 -0000)]
- dont allow people to call `install` with -s via insopts/diropts/exeopts/libopts and simplify them in general
- fix "nostrip" usage and DEBUGBUILD
svn path=/main/trunk/; revision=2898
Zac Medico [Wed, 15 Mar 2006 13:48:17 +0000 (13:48 -0000)]
Check the return value of prepare_build_dirs and return early from doebuild if necessary.
svn path=/main/trunk/; revision=2895
Zac Medico [Wed, 15 Mar 2006 13:36:23 +0000 (13:36 -0000)]
Split the bulk of directory preparation out of doebuild into a new prepare_build_dirs function.
svn path=/main/trunk/; revision=2894
Zac Medico [Wed, 15 Mar 2006 13:06:36 +0000 (13:06 -0000)]
Split the bulk of ebuild environment setup out of doebuild into a new doebuild_environment function.
svn path=/main/trunk/; revision=2893
Zac Medico [Wed, 15 Mar 2006 01:17:09 +0000 (01:17 -0000)]
Use writemsg_stdout for update_ents and move_ent routines. See bug #126111.
svn path=/main/trunk/; revision=2892
Mike Frysinger [Wed, 15 Mar 2006 00:36:20 +0000 (00:36 -0000)]
add --quiet support to --cols
svn path=/main/trunk/; revision=2891
Zac Medico [Wed, 15 Mar 2006 00:03:15 +0000 (00:03 -0000)]
Generate depgraph.applied_useflags in the display method as necessary for use with --resume. See bug #126120.
svn path=/main/trunk/; revision=2890
Zac Medico [Tue, 14 Mar 2006 22:42:34 +0000 (22:42 -0000)]
Remove bin/dopython because it's not either used or useful. Thanks to Brian Harring for noticing.
svn path=/main/trunk/; revision=2889
Zac Medico [Tue, 14 Mar 2006 21:59:20 +0000 (21:59 -0000)]
Send a global updates messages to stdout for bug #126111.
svn path=/main/trunk/; revision=2888
Alec Warner [Tue, 14 Mar 2006 17:07:52 +0000 (17:07 -0000)]
Comma's are for pussies ( fixing regression from last reivision )
svn path=/main/trunk/; revision=2887
Alec Warner [Tue, 14 Mar 2006 16:30:49 +0000 (16:30 -0000)]
marienz pointed out that 'raise e' actually raises a new exception, which is not intended here, so we raise instead of raising e
svn path=/main/trunk/; revision=2886
Alec Warner [Tue, 14 Mar 2006 16:18:27 +0000 (16:18 -0000)]
Catch keyboardinterrupt during imports, don't print nasty tracebacks there, later on we have signal handlers for control C
svn path=/main/trunk/; revision=2885
Alec Warner [Tue, 14 Mar 2006 16:17:40 +0000 (16:17 -0000)]
Remove SystemExit's from portage imports, raise on the correct exception, don't die if imports fail.
svn path=/main/trunk/; revision=2884
Alec Warner [Tue, 14 Mar 2006 15:46:14 +0000 (15:46 -0000)]
Remove some SystemExit exceptions, make portage behave during a ctrl+c
svn path=/main/trunk/; revision=2883
Zac Medico [Tue, 14 Mar 2006 09:05:03 +0000 (09:05 -0000)]
One more 'mode & 07777' in apply_permissions.
svn path=/main/trunk/; revision=2882
Zac Medico [Tue, 14 Mar 2006 08:46:23 +0000 (08:46 -0000)]
Make that 'mode & 07777' for the previous commit.
svn path=/main/trunk/; revision=2881
Zac Medico [Tue, 14 Mar 2006 08:39:46 +0000 (08:39 -0000)]
Use 'mode & 0777' to protect ourselves from unwanted mode bits in apply_permissions.
svn path=/main/trunk/; revision=2880
Zac Medico [Tue, 14 Mar 2006 07:00:25 +0000 (07:00 -0000)]
Move the "noclean" feature check into clean phase part of doebuild.
svn path=/main/trunk/; revision=2879
Zac Medico [Tue, 14 Mar 2006 06:39:10 +0000 (06:39 -0000)]
Use a separate PORTAGE_BUILDDIR for overlapping install and unmerge phases in order to prevent interference between {pre,post}inst and {pre,post}rm phases. See bug #125942.
svn path=/main/trunk/; revision=2878
Zac Medico [Tue, 14 Mar 2006 04:32:40 +0000 (04:32 -0000)]
Use apply_secpass_permissions for all permissions in doebuild.
svn path=/main/trunk/; revision=2877
Zac Medico [Tue, 14 Mar 2006 04:26:56 +0000 (04:26 -0000)]
Make mode=-1 the default parameter for apply_permissions in order to distinguish the behavior from mode=0.
svn path=/main/trunk/; revision=2876
Zac Medico [Tue, 14 Mar 2006 03:39:36 +0000 (03:39 -0000)]
Fix some typos in the DISTDIR permissions handling.
svn path=/main/trunk/; revision=2875
Zac Medico [Tue, 14 Mar 2006 02:31:59 +0000 (02:31 -0000)]
Make the apply_permissions function default to exact matching of mode bits and add a "mask" parameter that allows for XOR restriction of mode bits.
svn path=/main/trunk/; revision=2874
Zac Medico [Tue, 14 Mar 2006 00:57:36 +0000 (00:57 -0000)]
Handle FileNotFound errors instead of ENOENT errors when doing permissions for the distlocks subdir.
svn path=/main/trunk/; revision=2873
Zac Medico [Tue, 14 Mar 2006 00:47:15 +0000 (00:47 -0000)]
Wrap possible exceptions raised by stat call in apply_secpass_permissions.
svn path=/main/trunk/; revision=2872
Zac Medico [Tue, 14 Mar 2006 00:38:24 +0000 (00:38 -0000)]
Add a new OperationNotPermitted exception and use it to wrap apply_permissions exceptions.
svn path=/main/trunk/; revision=2871
Zac Medico [Tue, 14 Mar 2006 00:08:20 +0000 (00:08 -0000)]
Use apply_secpass_permissions for DISTDIR permissions.
svn path=/main/trunk/; revision=2870
Zac Medico [Mon, 13 Mar 2006 23:59:28 +0000 (23:59 -0000)]
Make portage_util.apply_stat_permissions() wrap apply_secpass_permissions instead of plain old apply_permissions.
svn path=/main/trunk/; revision=2869
Zac Medico [Mon, 13 Mar 2006 23:49:56 +0000 (23:49 -0000)]
Add a new portage_util.apply_secpass_permissions() function that intelligently attempts to apply as much of the requested permissions as possible without generating an exception.
svn path=/main/trunk/; revision=2868
Zac Medico [Mon, 13 Mar 2006 21:24:48 +0000 (21:24 -0000)]
Simplify emerge's secpass logic.
svn path=/main/trunk/; revision=2867
Zac Medico [Mon, 13 Mar 2006 19:59:23 +0000 (19:59 -0000)]
Document portage_data.secpass and give secpass=0 to users that are not in the "portage" group.
svn path=/main/trunk/; revision=2866
Zac Medico [Mon, 13 Mar 2006 02:27:23 +0000 (02:27 -0000)]
Do not clean shared ${T} after the unmerge phase when the new and old package are the same version (regression from r2844). See bug #125942.
svn path=/main/trunk/; revision=2865
Zac Medico [Mon, 13 Mar 2006 00:15:49 +0000 (00:15 -0000)]
Fix KeyError: 'mergelist' error (regression from r2847). See bug #125993.
svn path=/main/trunk/; revision=2864
Zac Medico [Sun, 12 Mar 2006 13:30:12 +0000 (13:30 -0000)]
Use find -path instead of -name for compatibility with both gnu and bsd userlands. See bug #125919.
svn path=/main/trunk/; revision=2863
Zac Medico [Sun, 12 Mar 2006 11:22:14 +0000 (11:22 -0000)]
Make portage.unmerge return 0 on success in order to make `ebuild unmerge` exit nicely. Thanks to kosmikus for reporting the "Could not run the required binary?" message.
svn path=/main/trunk/; revision=2862
Zac Medico [Sun, 12 Mar 2006 09:39:32 +0000 (09:39 -0000)]
Fix misuse of dict.fromkeys class method so that cache cleansing works during `emerge --metadata` runs.
svn path=/main/trunk/; revision=2861
Mike Frysinger [Sun, 12 Mar 2006 09:31:53 +0000 (09:31 -0000)]
ppc64 isnt ok just yet, so dont scan for exec stacks
svn path=/main/trunk/; revision=2860
Zac Medico [Sun, 12 Mar 2006 08:37:30 +0000 (08:37 -0000)]
Use the ** operator for better unpacking of actionmap args in spawnebuild.
svn path=/main/trunk/; revision=2859
Zac Medico [Sun, 12 Mar 2006 07:00:07 +0000 (07:00 -0000)]
Add the command (ebuild.sh or misc-functions.sh) to the actionmap for spawnebuild.
svn path=/main/trunk/; revision=2858
Zac Medico [Sun, 12 Mar 2006 04:11:33 +0000 (04:11 -0000)]
Add --tree to the blacklist when --resume is used. See bug #54040.
svn path=/main/trunk/; revision=2857
Zac Medico [Sat, 11 Mar 2006 19:24:32 +0000 (19:24 -0000)]
Make the clean phase obey keeptemp in FEATURES.
svn path=/main/trunk/; revision=2854
Mike Frysinger [Sat, 11 Mar 2006 17:47:26 +0000 (17:47 -0000)]
default CCACHE_DIR doesnt use PORTAGE_TMPDIR, it just happens to also reside there by default
svn path=/main/trunk/; revision=2851
Mike Frysinger [Sat, 11 Mar 2006 10:36:17 +0000 (10:36 -0000)]
backport portage-pkg path change from savior branch
svn path=/main/trunk/; revision=2850
Mike Frysinger [Sat, 11 Mar 2006 10:33:26 +0000 (10:33 -0000)]
dont reset spinner for non-ttys if --quiet is in use
svn path=/main/trunk/; revision=2849
Zac Medico [Sat, 11 Mar 2006 07:25:07 +0000 (07:25 -0000)]
Do automatic backup the resume list when it's length is greater than 1 for bug #122527.
svn path=/main/trunk/; revision=2847
Zac Medico [Sat, 11 Mar 2006 07:14:24 +0000 (07:14 -0000)]
Move PORTAGE_INST_UID and PORTAGE_INST_GID from ebuild.sh to make.globals so they can be overridden.
svn path=/main/trunk/; revision=2846
Zac Medico [Sat, 11 Mar 2006 02:42:34 +0000 (02:42 -0000)]
Make dobin and dosbin use PORTAGE_INST_UID and PORTAGE_INST_GID.
svn path=/main/trunk/; revision=2845
Zac Medico [Sat, 11 Mar 2006 01:27:48 +0000 (01:27 -0000)]
Trigger the clean phase at the end of dblink.unmerge() in order to remove cruft left by the pkg_*rm phases.
svn path=/main/trunk/; revision=2844
Zac Medico [Sat, 11 Mar 2006 01:03:30 +0000 (01:03 -0000)]
Do the clean phase at the end of dblink.treewalk() to ensure that it is triggered when both source and binary packages are merged. See bug #105706.
svn path=/main/trunk/; revision=2843
Zac Medico [Sat, 11 Mar 2006 00:28:12 +0000 (00:28 -0000)]
Consolidate duplicate "myebuild" logic in the dblink.treewalk() method.
svn path=/main/trunk/; revision=2842
Zac Medico [Fri, 10 Mar 2006 23:53:02 +0000 (23:53 -0000)]
Do cleanup of cruft prior to the setup phase for binary packages. See bug #85803.
svn path=/main/trunk/; revision=2841
Zac Medico [Fri, 10 Mar 2006 12:01:21 +0000 (12:01 -0000)]
Fix dyn_clean in ebuild.sh so that it removes the builddir correctly (if it is empty). See bug #105706.
svn path=/main/trunk/; revision=2840
Zac Medico [Fri, 10 Mar 2006 11:52:26 +0000 (11:52 -0000)]
Fix emerge's "Post-Build Cleaning" so that it works with --buildpkgonly in FEATURES. See bug #105706.
svn path=/main/trunk/; revision=2839
Zac Medico [Fri, 10 Mar 2006 08:17:02 +0000 (08:17 -0000)]
Move dyn_rpm and dyn_spec from ebuild.sh to misc-functions.sh.
svn path=/main/trunk/; revision=2838
Zac Medico [Thu, 9 Mar 2006 21:51:40 +0000 (21:51 -0000)]
Move the install phase qa checks from ebuild.sh to misc-functions.sh and add the necessary support to spawnebuild.
svn path=/main/trunk/; revision=2837
Zac Medico [Thu, 9 Mar 2006 21:39:11 +0000 (21:39 -0000)]
Remove "myarg" from the ebuild.sh env before it is saved so that it doesn't interfere when ebuild.sh is sourced by other scripts.
svn path=/main/trunk/; revision=2836
Zac Medico [Thu, 9 Mar 2006 10:58:07 +0000 (10:58 -0000)]
Add sesandbox to the spawnebuild actionmap.
svn path=/main/trunk/; revision=2835
Zac Medico [Thu, 9 Mar 2006 09:54:41 +0000 (09:54 -0000)]
Add a "sesandbox" flag to the spawn function so that it can handle selinux context for the exec call (prevents code duplication).
svn path=/main/trunk/; revision=2834
Zac Medico [Thu, 9 Mar 2006 04:48:28 +0000 (04:48 -0000)]
Remove install_mask from ebuild.sh since it's in misc-functions.sh now.
svn path=/main/trunk/; revision=2833
Zac Medico [Thu, 9 Mar 2006 04:15:19 +0000 (04:15 -0000)]
Split install_mask and parts of dyn_preinst from ebuild.sh to misc-functions.sh and add the necessary support to doebuild.
svn path=/main/trunk/; revision=2832
Zac Medico [Thu, 9 Mar 2006 04:07:49 +0000 (04:07 -0000)]
Split dyn_package from ebuild.sh to misc-functions.sh and add MISC_SH_BINARY support to spawnebuild.
svn path=/main/trunk/; revision=2831
Mike Frysinger [Thu, 9 Mar 2006 01:10:29 +0000 (01:10 -0000)]
add support for ebuild authors to mark stuff as ignorable
svn path=/main/trunk/; revision=2830
Mike Frysinger [Thu, 9 Mar 2006 00:28:18 +0000 (00:28 -0000)]
misc updates
svn path=/main/trunk/; revision=2829
Mike Frysinger [Thu, 9 Mar 2006 00:21:54 +0000 (00:21 -0000)]
document new --no-ldconfig option
svn path=/main/trunk/; revision=2828
Mike Frysinger [Thu, 9 Mar 2006 00:16:13 +0000 (00:16 -0000)]
update copyrights
svn path=/main/trunk/; revision=2827
Zac Medico [Wed, 8 Mar 2006 08:18:09 +0000 (08:18 -0000)]
Move PKG_INSTALL_MASK functionality (see bug #81025) from dyn_install to dyn_package because we don't want PKG_INSTALL_MASK to affect the install phase (INSTALL_MASK is in dyn_preinst).
svn path=/main/trunk/; revision=2826
Ned Ludd [Wed, 8 Mar 2006 03:39:54 +0000 (03:39 -0000)]
- commit initial split install masking code. this commits adds new portage variable PKG_INSTALL_MASK for fine tuning what gets added to the binary .tbz2 and xpak data. This function will probably be later split out into a misc-functions.sh by zac
svn path=/main/trunk/; revision=2825
Zac Medico [Tue, 7 Mar 2006 19:27:37 +0000 (19:27 -0000)]
Make the parallel-fetch process sleep for 3 seconds at the beginning in order to allow the parent process to have the first fetch (rather than display a 'waiting for a lock' message). Suggestion by Brian Harring.
svn path=/main/trunk/; revision=2824
Zac Medico [Tue, 7 Mar 2006 01:53:44 +0000 (01:53 -0000)]
Catch ENOENT errors when $PORTDIR/profiles/updates does not exist.
svn path=/main/trunk/; revision=2821
Ned Ludd [Tue, 7 Mar 2006 01:10:49 +0000 (01:10 -0000)]
- make portage display the ROOT when unmerging a selected package
svn path=/main/trunk/; revision=2820
Mike Frysinger [Mon, 6 Mar 2006 02:53:38 +0000 (02:53 -0000)]
only scan for exec stacks on linux/glibc hosts
svn path=/main/trunk/; revision=2819
Zac Medico [Mon, 6 Mar 2006 00:38:34 +0000 (00:38 -0000)]
Remove the leading / from WORLD_FILE for better cooperation with os.path.join (see bug #124471).
svn path=/main/trunk/; revision=2818
Mike Frysinger [Sun, 5 Mar 2006 22:30:18 +0000 (22:30 -0000)]
fix BASH_ARGV walking
svn path=/main/trunk/; revision=2817