public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] pretend requires root?
@ 2002-04-20 18:52 Yannick Koehler
  2002-04-20 19:55 ` William McArthur
  2002-04-20 22:28 ` Terje Kvernes
  0 siblings, 2 replies; 12+ messages in thread
From: Yannick Koehler @ 2002-04-20 18:52 UTC (permalink / raw
  To: gentoo-dev

Hello,

	Is it possible to make portage not require 'root' level when only doing 
--pretend stuff?

--

Yannick Koehler


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-dev] pretend requires root?
  2002-04-20 18:52 [gentoo-dev] pretend requires root? Yannick Koehler
@ 2002-04-20 19:55 ` William McArthur
  2002-04-20 20:11   ` Yannick Koehler
  2002-04-20 22:28 ` Terje Kvernes
  1 sibling, 1 reply; 12+ messages in thread
From: William McArthur @ 2002-04-20 19:55 UTC (permalink / raw
  To: gentoo-dev

Yannick Koehler wrote:
> Is it possible to make portage not require 'root' level when only doing 
> --pretend stuff?

I'm not an expert on portage but if you change the perms on 
/var/tmp/portage to be world writeable it may work.

# chmod -R a+w /var/tmp/portage

You should be aware that this isn't smart on a multi user box.

Sandy McArthur



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-dev] pretend requires root?
  2002-04-20 19:55 ` William McArthur
@ 2002-04-20 20:11   ` Yannick Koehler
  0 siblings, 0 replies; 12+ messages in thread
From: Yannick Koehler @ 2002-04-20 20:11 UTC (permalink / raw
  To: gentoo-dev

On April 20, 2002 03:55 pm, William McArthur wrote:
> Yannick Koehler wrote:
> > Is it possible to make portage not require 'root' level when only doing
> > --pretend stuff?
>
> I'm not an expert on portage but if you change the perms on
> /var/tmp/portage to be world writeable it may work.
>
> # chmod -R a+w /var/tmp/portage
>
> You should be aware that this isn't smart on a multi user box.
>
> Sandy McArthur

hmm, not acceptable for my idea.  I'd like that kemerge do not require SU to 
do the pretend but requires it for the real emerge.  For now it requires it 
for both.  If we can add this as the 2.x feature of portage I'll be very very 
happy.

Yannick Koehler


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-dev] pretend requires root?
  2002-04-20 18:52 [gentoo-dev] pretend requires root? Yannick Koehler
  2002-04-20 19:55 ` William McArthur
@ 2002-04-20 22:28 ` Terje Kvernes
  2002-04-21  2:05   ` Terje Kvernes
  1 sibling, 1 reply; 12+ messages in thread
From: Terje Kvernes @ 2002-04-20 22:28 UTC (permalink / raw
  To: gentoo-dev

Yannick Koehler <yannick.koehler@colubris.com> writes:

> Is it possible to make portage not require 'root' level when only
> doing --pretend stuff?

  this is hardwired in /usr/bin/emerge.  look at the section starting
  on line 104 and so on.

-- 
Terje


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-dev] pretend requires root?
  2002-04-20 22:28 ` Terje Kvernes
@ 2002-04-21  2:05   ` Terje Kvernes
  2002-04-21  9:47     ` Preston A. Elder
  0 siblings, 1 reply; 12+ messages in thread
From: Terje Kvernes @ 2002-04-21  2:05 UTC (permalink / raw
  To: gentoo-dev

Terje Kvernes <terjekv@math.uio.no> writes:

> Yannick Koehler <yannick.koehler@colubris.com> writes:
> 
> > Is it possible to make portage not require 'root' level when only
> > doing --pretend stuff?
> 
> this is hardwired in /usr/bin/emerge.  look at the section starting
> on line 104 and so on.

  for the record, just adding a clause for --pretend to be allowed for
  non-root users should work.  something like this is all you need:

--- /usr/bin/emerge     Sun Apr 21 03:59:19 2002
+++ /usr/bin/emerge.orig        Sun Apr 21 03:57:53 2002
@@ -102,7 +102,7 @@
                        myfiles.append(x)
 
 # check if root user is the current user for the actions where emerge needs this
-if os.getuid()!=0 and ("--help" not in myopts) and ("--version" not in myopts) and ("search"!=myaction) and ("--pretend" not in myopts):
+if os.getuid()!=0 and ("--help" not in myopts) and ("--version" not in myopts) and ("search"!=myaction):
        print "!!! to be able to perform the requested action, emerge must be run by root."
        sys.exit(1)

-- 
Terje - who was at a party earlier, and was a tad too busy to provide
        more info at that time.  :)


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-dev] pretend requires root?
  2002-04-21  2:05   ` Terje Kvernes
@ 2002-04-21  9:47     ` Preston A. Elder
  2002-04-21 12:55       ` Terje Kvernes
  0 siblings, 1 reply; 12+ messages in thread
From: Preston A. Elder @ 2002-04-21  9:47 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 591 bytes --]

> -if os.getuid()!=0 and ("--help" not in myopts) and ("--version" not in myopts) and ("search"!=myaction) and ("--pretend" not in myopts):
> +if os.getuid()!=0 and ("--help" not in myopts) and ("--version" not in myopts) and ("search"!=myaction):

Would probably work a little better if you switched the '+' and '-' :)

-- 
PreZ
Systems Administrator
GOTH.NET

Goth Code '98:   tSKeba5qaSabsaaaGbaa75KAASWGuajmsvbieqcL4BaaLb3F4
                 nId5mefqmDjmmgm#haxthgzpj4GiysNkycSRGHabiabOkauNSW

GOTH.NET - http://www.goth.net
Free online resource for the gothic community.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-dev] pretend requires root?
  2002-04-21  9:47     ` Preston A. Elder
@ 2002-04-21 12:55       ` Terje Kvernes
  2002-04-22 12:30         ` Yannick Koehler
  0 siblings, 1 reply; 12+ messages in thread
From: Terje Kvernes @ 2002-04-21 12:55 UTC (permalink / raw
  To: gentoo-dev

"Preston A. Elder" <prez@goth.net> writes:

> > -if os.getuid()!=0 and ("--help" not in myopts) and ("--version" not in myopts) and ("search"!=myaction) and ("--pretend" not in myopts):
> > +if os.getuid()!=0 and ("--help" not in myopts) and ("--version" not in myopts) and ("search"!=myaction):
> 
> Would probably work a little better if you switched the '+' and '-' :)

  bah.  just because I make patches at 5am, _someone_ has to point out
  the errors.  thanks.  :)

-- 
Terje


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-dev] pretend requires root?
  2002-04-21 12:55       ` Terje Kvernes
@ 2002-04-22 12:30         ` Yannick Koehler
  2002-04-22 12:38           ` Terje Kvernes
  0 siblings, 1 reply; 12+ messages in thread
From: Yannick Koehler @ 2002-04-22 12:30 UTC (permalink / raw
  To: gentoo-dev

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On April 21, 2002 08:55 am, Terje Kvernes wrote:
> "Preston A. Elder" <prez@goth.net> writes:
> > > -if os.getuid()!=0 and ("--help" not in myopts) and ("--version" not in
> > > myopts) and ("search"!=myaction) and ("--pretend" not in myopts): +if
> > > os.getuid()!=0 and ("--help" not in myopts) and ("--version" not in
> > > myopts) and ("search"!=myaction):
> >
> > Would probably work a little better if you switched the '+' and '-' :)
>
>   bah.  just because I make patches at 5am, _someone_ has to point out
>   the errors.  thanks.  :)

thanks, will someone commit this patch?

- -- 

Yannick Koehler
 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8xAJqfuKOJNEyL1URAi5DAJsGTF6abfyrOsiD09PjOBgPNcLB4gCeJeVF
gyJWSoiwb/PtASRCb5ADlKg=
=TPCb
-----END PGP SIGNATURE-----



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-dev] pretend requires root?
  2002-04-22 12:30         ` Yannick Koehler
@ 2002-04-22 12:38           ` Terje Kvernes
  2002-04-22 12:41             ` [gentoo-dev] pretend requires root? (NEED SOMEONE TO COMMIT PATCH) Yannick Koehler
  0 siblings, 1 reply; 12+ messages in thread
From: Terje Kvernes @ 2002-04-22 12:38 UTC (permalink / raw
  To: gentoo-dev

Yannick Koehler <yannick.koehler@colubris.com> writes:

> On April 21, 2002 08:55 am, Terje Kvernes wrote:
>
> > bah.  just because I make patches at 5am, _someone_ has to point out
> > the errors.  thanks.  :)
> 
> thanks, 

  you're welcome.  :)

> will someone commit this patch?

  ...but I can't help you there.  :/

-- 
Terje


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-dev] pretend requires root? (NEED SOMEONE TO COMMIT PATCH)
  2002-04-22 12:38           ` Terje Kvernes
@ 2002-04-22 12:41             ` Yannick Koehler
  2002-04-22 13:34               ` Preston A. Elder
  0 siblings, 1 reply; 12+ messages in thread
From: Yannick Koehler @ 2002-04-22 12:41 UTC (permalink / raw
  To: gentoo-dev

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> > thanks,
>
>   you're welcome.  :)
>
> > will someone commit this patch?
>
>   ...but I can't help you there.  :/

So we need a CVS Write access capable kind of guy ;-)  How we get that?

- -- 

Yannick Koehler
 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8xATtfuKOJNEyL1URAlSWAJsErXOIBYB+i2PEAccfzPIHsnKr6gCePTqh
/4wdf6fTXIGQ22rPuO6enio=
=1eWN
-----END PGP SIGNATURE-----



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-dev] pretend requires root? (NEED SOMEONE TO COMMIT PATCH)
  2002-04-22 12:41             ` [gentoo-dev] pretend requires root? (NEED SOMEONE TO COMMIT PATCH) Yannick Koehler
@ 2002-04-22 13:34               ` Preston A. Elder
  2002-04-22 15:16                 ` Thilo Bangert
  0 siblings, 1 reply; 12+ messages in thread
From: Preston A. Elder @ 2002-04-22 13:34 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 1149 bytes --]

Hrm, now where oh where would we find a developer on the gentoo
developers list? hrrrrm ... ;P

On Mon, 2002-04-22 at 08:41, Yannick Koehler wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> > > thanks,
> >
> >   you're welcome.  :)
> >
> > > will someone commit this patch?
> >
> >   ...but I can't help you there.  :/
> 
> So we need a CVS Write access capable kind of guy ;-)  How we get that?
> 
> - -- 
> 
> Yannick Koehler
>  
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.6 (GNU/Linux)
> Comment: For info see http://www.gnupg.org
> 
> iD8DBQE8xATtfuKOJNEyL1URAlSWAJsErXOIBYB+i2PEAccfzPIHsnKr6gCePTqh
> /4wdf6fTXIGQ22rPuO6enio=
> =1eWN
> -----END PGP SIGNATURE-----
> 
> _______________________________________________
> gentoo-dev mailing list
> gentoo-dev@gentoo.org
> http://lists.gentoo.org/mailman/listinfo/gentoo-dev
-- 
PreZ
Systems Administrator
GOTH.NET

Goth Code '98:   tSKeba5qaSabsaaaGbaa75KAASWGuajmsvbieqcL4BaaLb3F4
                 nId5mefqmDjmmgm#haxthgzpj4GiysNkycSRGHabiabOkauNSW

GOTH.NET - http://www.goth.net
Free online resource for the gothic community.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-dev] pretend requires root? (NEED SOMEONE TO COMMIT PATCH)
  2002-04-22 13:34               ` Preston A. Elder
@ 2002-04-22 15:16                 ` Thilo Bangert
  0 siblings, 0 replies; 12+ messages in thread
From: Thilo Bangert @ 2002-04-22 15:16 UTC (permalink / raw
  To: gentoo-dev

On 22 Apr 2002 09:34:19 -0400
"Preston A. Elder" <prez@goth.net> wrote:

> Hrm, now where oh where would we find a developer on the gentoo
> developers list? hrrrrm ... ;P
> 

the busy devs are listening...

but, its not all devs that want to deal with portage directly
your best chance is to send this to drobbins directly...
you can catch him on IRC quite often (as well as a large number of
other devs)

regards

Thilo


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2002-04-22 15:17 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-20 18:52 [gentoo-dev] pretend requires root? Yannick Koehler
2002-04-20 19:55 ` William McArthur
2002-04-20 20:11   ` Yannick Koehler
2002-04-20 22:28 ` Terje Kvernes
2002-04-21  2:05   ` Terje Kvernes
2002-04-21  9:47     ` Preston A. Elder
2002-04-21 12:55       ` Terje Kvernes
2002-04-22 12:30         ` Yannick Koehler
2002-04-22 12:38           ` Terje Kvernes
2002-04-22 12:41             ` [gentoo-dev] pretend requires root? (NEED SOMEONE TO COMMIT PATCH) Yannick Koehler
2002-04-22 13:34               ` Preston A. Elder
2002-04-22 15:16                 ` Thilo Bangert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox