Re: [gentoo-portage-dev] Move PORTAGE_INST_UID and PORTAGE_INST_GID to make.globals?

2006-03-10 Thread Kito


On Mar 10, 2006, at 10:01 PM, Jason Stubbs wrote:


On Saturday 11 March 2006 06:48, Kito wrote:


On Mar 10, 2006, at 4:26 AM, Zac Medico wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello,

What do people think about moving PORTAGE_INST_UID and
PORTAGE_INST_GID to make.globals?


Would the profiles not be a more logical place to set these? If not,
can we twist the logic to make it so? :p


The profiles would be able to override it. In the case of non- 
incrementals

the first definition found is the winner in the order of:

env -> make.conf -> make.defaults (profile) -> make.globals


err, right..should've known that. Thanks for answering a silly question.

--Kito




--
gentoo-portage-dev@gentoo.org mailing list



Re: [gentoo-portage-dev] Move PORTAGE_INST_UID and PORTAGE_INST_GID to make.globals?

2006-03-10 Thread Jason Stubbs
On Saturday 11 March 2006 06:48, Kito wrote:
> 
> On Mar 10, 2006, at 4:26 AM, Zac Medico wrote:
> 
> > -BEGIN PGP SIGNED MESSAGE-
> > Hash: SHA1
> >
> > Hello,
> >
> > What do people think about moving PORTAGE_INST_UID and  
> > PORTAGE_INST_GID to make.globals?
> 
> Would the profiles not be a more logical place to set these? If not,  
> can we twist the logic to make it so? :p

The profiles would be able to override it. In the case of non-incrementals
the first definition found is the winner in the order of:

env -> make.conf -> make.defaults (profile) -> make.globals

--
Jason Stubbs
-- 
gentoo-portage-dev@gentoo.org mailing list



Re: [gentoo-portage-dev] Enabling RSYNC_OPTIONS to be set in make.conf

2006-03-10 Thread Ned Ludd
On Fri, 2006-03-10 at 14:38 -0600, Robert Larson wrote:
> Hello list,
> 
> I am needing to allow for further configuration of rsync for syncing portage. 
>  
> The addition of RSYNC_OPTIONS in make.conf could alleviate this need for me, 
> but what do you guys think?
[snip]

I think genone has a more complete patch for this already. If he has not
committed it already I'm sure he will soon.



-- 
Ned Ludd <[EMAIL PROTECTED]>
Gentoo Linux

-- 
gentoo-portage-dev@gentoo.org mailing list



Re: [gentoo-portage-dev] Move PORTAGE_INST_UID and PORTAGE_INST_GID to make.globals?

2006-03-10 Thread Kito


On Mar 10, 2006, at 4:26 AM, Zac Medico wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello,

What do people think about moving PORTAGE_INST_UID and  
PORTAGE_INST_GID to make.globals?


Would the profiles not be a more logical place to set these? If not,  
can we twist the logic to make it so? :p


--Kito




--
gentoo-portage-dev@gentoo.org mailing list



[gentoo-portage-dev] Enabling RSYNC_OPTIONS to be set in make.conf

2006-03-10 Thread Robert Larson
Hello list,

I am needing to allow for further configuration of rsync for syncing portage.  
The addition of RSYNC_OPTIONS in make.conf could alleviate this need for me, 
but what do you guys think?

In my case, the local rsync mirror needs to be password protected to meet our 
company's security requirements.  The patch allows me to add to make.conf:
RSYNC_OPTIONS="--password-file=/etc/portage/some.passwd.file.name"

On another note, I was wondering if it was completely necessary to have the 
'--exclude="..."' options built directly into the emerge script?  It's 
excluding /distfiles, /local, and /packages.  I could see a use in being able 
to modify these.  What about a default --exclude-from file that could exclude 
those dirs, but allow the administrator to modify them?

I'm not very familiar with the process of submitting patches.  Would someone 
point me in a direction where I should be headed next?  Maybe submit a bug 
report as a feature request..?

Thanks!

Robert Larson
--- /usr/lib/portage/bin/emerge	2006-01-23 11:02:45.0 -0600
+++ /usr/lib/portage/bin/emerge	2006-03-10 13:30:50.0 -0600
@@ -2456,6 +2456,9 @@
 			else:
 print "!!! RSYNC_EXCLUDEFROM specified, but file does not exist."
 
+		if portage.settings.has_key("RSYNC_OPTIONS"):
+			rsync_flags.append(portage.settings["RSYNC_OPTIONS"])
+
 		if portage.settings.has_key("RSYNC_RATELIMIT"):
 			rsync_flags.append("--bwlimit="+portage.settings["RSYNC_RATELIMIT"])
 


[gentoo-portage-dev] Move PORTAGE_INST_UID and PORTAGE_INST_GID to make.globals?

2006-03-10 Thread Zac Medico
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello,

What do people think about moving PORTAGE_INST_UID and PORTAGE_INST_GID to 
make.globals?  The variables are currently hard coded in ebuild.sh and it might 
be useful to override the uid and gid via make.conf.

Zac 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.1 (GNU/Linux)

iD8DBQFEEVRp/ejvha5XGaMRAmjQAKDVdPpgHH90AGQaZecSj/vMLatWOACdF8NR
9jcL5KUT9LRndtPZ+i3TKrE=
=BqTq
-END PGP SIGNATURE-
Index: cnf/make.globals
===
--- cnf/make.globals	(revision 2838)
+++ cnf/make.globals	(working copy)
@@ -60,6 +60,10 @@
 # Disable auto-use
 USE_ORDER="env:pkg:conf:defaults"
 
+PORTAGE_INST_UID="0"
+PORTAGE_INST_GID="0"
+
+
 #*
 #**  DO NOT EDIT THIS FILE  **
 # ***
Index: bin/dosbin
===
--- bin/dosbin	(revision 2838)
+++ bin/dosbin	(working copy)
@@ -16,7 +16,7 @@
 
 for x in "$@" ; do
 	if [[ -e ${x} ]] ; then
-		install -m0755 -o 0 -g 0 "${x}" "${D}${DESTTREE}/sbin"
+		install -m0755 -o ${PORTAGE_INST_UID} -g ${PORTAGE_INST_GID} "${x}" "${D}${DESTTREE}/sbin"
 	else
 		echo "!!! ${0##*/}: ${x} does not exist" 1>&2
 		false
Index: bin/dobin
===
--- bin/dobin	(revision 2838)
+++ bin/dobin	(working copy)
@@ -16,7 +16,7 @@
 
 for x in "$@" ; do
 	if [[ -e ${x} ]] ; then
-		install -m0755 -o 0 -g 0 "${x}" "${D}${DESTTREE}/bin"
+		install -m0755 -o ${PORTAGE_INST_UID} -g ${PORTAGE_INST_GID} "${x}" "${D}${DESTTREE}/bin"
 	else
 		echo "!!! ${0##*/}: ${x} does not exist" 1>&2
 		false
Index: bin/ebuild.sh
===
--- bin/ebuild.sh	(revision 2838)
+++ bin/ebuild.sh	(working copy)
@@ -1017,10 +1017,6 @@
 	trap SIGINT SIGQUIT
 }
 
-
-PORTAGE_INST_UID="0"
-PORTAGE_INST_GID="0"
-
 dyn_install() {
 	[ -z "$PORTAGE_BUILDDIR" ] && die "${FUNCNAME}: PORTAGE_BUILDDIR is unset"
 	trap "abort_install" SIGINT SIGQUIT