public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] How to test package install?
@ 2018-02-15  2:37 Ian Zimmerman
  2018-02-15  3:37 ` John Covici
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Ian Zimmerman @ 2018-02-15  2:37 UTC (permalink / raw
  To: gentoo-user

I'm trying to test my package by running "ebuild /path/to/pkg.ebuild
install".  Naturally (for me) I do this as an unprivileged user, not as
root.  It fails because at least some steps such as dobin need to give
away ownership of the files being installed.  I tried to run the whole
thing including compilation under fakeroot but that doesn't help.

If it is relevant (but I don't think it is) my user _is_ in the portage
group.

What is the accepted or usual way to do this task?

-- 
Please don't Cc: me privately on mailing lists and Usenet,
if you also post the followup to the list or newsgroup.
To reply privately _only_ on Usenet and on broken lists
which rewrite From, fetch the TXT record for no-use.mooo.com.


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

* Re: [gentoo-user] How to test package install?
  2018-02-15  2:37 [gentoo-user] How to test package install? Ian Zimmerman
@ 2018-02-15  3:37 ` John Covici
  2018-02-15  7:15 ` Alan McKinnon
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 7+ messages in thread
From: John Covici @ 2018-02-15  3:37 UTC (permalink / raw
  To: gentoo-user

On Wed, 14 Feb 2018 21:37:50 -0500,
Ian Zimmerman wrote:
> 
> I'm trying to test my package by running "ebuild /path/to/pkg.ebuild
> install".  Naturally (for me) I do this as an unprivileged user, not as
> root.  It fails because at least some steps such as dobin need to give
> away ownership of the files being installed.  I tried to run the whole
> thing including compilation under fakeroot but that doesn't help.
> 
> If it is relevant (but I don't think it is) my user _is_ in the portage
> group.
> 
> What is the accepted or usual way to do this task?

Usually installs are always done as root -- because there is always
something like what you have described.

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

         John Covici wb2una
         covici@ccs.covici.com


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

* Re: [gentoo-user] How to test package install?
  2018-02-15  2:37 [gentoo-user] How to test package install? Ian Zimmerman
  2018-02-15  3:37 ` John Covici
@ 2018-02-15  7:15 ` Alan McKinnon
  2018-02-15  8:20 ` Neil Bothwick
  2018-02-15 22:39 ` Andreas K. Huettel
  3 siblings, 0 replies; 7+ messages in thread
From: Alan McKinnon @ 2018-02-15  7:15 UTC (permalink / raw
  To: gentoo-user

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

On Thu, Feb 15, 2018 at 4:37 AM, Ian Zimmerman <itz@very.loosely.org> wrote:

> I'm trying to test my package by running "ebuild /path/to/pkg.ebuild
> install".  Naturally (for me) I do this as an unprivileged user, not as
> root.  It fails because at least some steps such as dobin need to give
> away ownership of the files being installed.  I tried to run the whole
> thing including compilation under fakeroot but that doesn't help.
>
> If it is relevant (but I don't think it is) my user _is_ in the portage
> group.
>
> What is the accepted or usual way to do this task?
>
> --
> Please don't Cc: me privately on mailing lists and Usenet,
> if you also post the followup to the list or newsgroup.
> To reply privately _only_ on Usenet and on broken lists
> which rewrite From, fetch the TXT record for no-use.mooo.com.
>
>
You can normally build as yourself. Install requires root typically due to
write permissions on *bin and /etc.

You can probably come up with a clever way to do this, but by far the
easiest is the classic:

sudo ebuild /path/to/pkg.ebuild install

-- 
Alan McKinnon
alan dot mckinnon at gmail dot com

[-- Attachment #2: Type: text/html, Size: 1756 bytes --]

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

* Re: [gentoo-user] How to test package install?
  2018-02-15  2:37 [gentoo-user] How to test package install? Ian Zimmerman
  2018-02-15  3:37 ` John Covici
  2018-02-15  7:15 ` Alan McKinnon
@ 2018-02-15  8:20 ` Neil Bothwick
  2018-02-15 22:39 ` Andreas K. Huettel
  3 siblings, 0 replies; 7+ messages in thread
From: Neil Bothwick @ 2018-02-15  8:20 UTC (permalink / raw
  To: gentoo-user

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

The install step only installs to a temporary directory under $PORTAGE_TMPDIR so it is reasonably safe as root, but for more security run the procedure inside a container/chroot/VM. 

On 15 February 2018 02:37:50 GMT+00:00, Ian Zimmerman <itz@very.loosely.org> wrote:
>I'm trying to test my package by running "ebuild /path/to/pkg.ebuild
>install".  Naturally (for me) I do this as an unprivileged user, not as
>root.  It fails because at least some steps such as dobin need to give
>away ownership of the files being installed.  I tried to run the whole
>thing including compilation under fakeroot but that doesn't help.
>
>If it is relevant (but I don't think it is) my user _is_ in the portage
>group.
>
>What is the accepted or usual way to do this task?
>
>-- 
>Please don't Cc: me privately on mailing lists and Usenet,
>if you also post the followup to the list or newsgroup.
>To reply privately _only_ on Usenet and on broken lists
>which rewrite From, fetch the TXT record for no-use.mooo.com.

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

[-- Attachment #2: Type: text/html, Size: 1113 bytes --]

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

* Re: [gentoo-user] How to test package install?
  2018-02-15  2:37 [gentoo-user] How to test package install? Ian Zimmerman
                   ` (2 preceding siblings ...)
  2018-02-15  8:20 ` Neil Bothwick
@ 2018-02-15 22:39 ` Andreas K. Huettel
  2018-02-15 23:21   ` [gentoo-user] " Ian Zimmerman
  3 siblings, 1 reply; 7+ messages in thread
From: Andreas K. Huettel @ 2018-02-15 22:39 UTC (permalink / raw
  To: gentoo-user

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

Am Donnerstag, 15. Februar 2018, 03:37:50 CET schrieb Ian Zimmerman:
> I'm trying to test my package by running "ebuild /path/to/pkg.ebuild
> install".  Naturally (for me) I do this as an unprivileged user, not as
> root.  It fails because at least some steps such as dobin need to give
> away ownership of the files being installed.  I tried to run the whole
> thing including compilation under fakeroot but that doesn't help.
> 
> If it is relevant (but I don't think it is) my user _is_ in the portage
> group.
> 
> What is the accepted or usual way to do this task?

That should usually "just work". 

Did you use fakeroot directly (bad), or did you add "fakeroot" to FEATURES in 
make.conf (good)?

-- 
Andreas K. Hüttel
dilfridge@gentoo.org
Gentoo Linux developer
(council, toolchain, perl, libreoffice, comrel)

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

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

* [gentoo-user] Re: How to test package install?
  2018-02-15 22:39 ` Andreas K. Huettel
@ 2018-02-15 23:21   ` Ian Zimmerman
  2018-02-17  2:12     ` Andreas K. Huettel
  0 siblings, 1 reply; 7+ messages in thread
From: Ian Zimmerman @ 2018-02-15 23:21 UTC (permalink / raw
  To: gentoo-user

On 2018-02-15 23:39, Andreas K. Huettel wrote:

> > I'm trying to test my package by running "ebuild /path/to/pkg.ebuild
> > install".  Naturally (for me) I do this as an unprivileged user, not
> > as root.  It fails because at least some steps such as dobin need to
> > give away ownership of the files being installed.  I tried to run
> > the whole thing including compilation under fakeroot but that
> > doesn't help.

> That should usually "just work". 
> 
> Did you use fakeroot directly (bad), or did you add "fakeroot" to
> FEATURES in make.conf (good)?

The former.  I didn't know about the feature.  Is it safe to enable it
for "production" runs as well?

-- 
Please don't Cc: me privately on mailing lists and Usenet,
if you also post the followup to the list or newsgroup.
To reply privately _only_ on Usenet and on broken lists
which rewrite From, fetch the TXT record for no-use.mooo.com.


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

* Re: [gentoo-user] Re: How to test package install?
  2018-02-15 23:21   ` [gentoo-user] " Ian Zimmerman
@ 2018-02-17  2:12     ` Andreas K. Huettel
  0 siblings, 0 replies; 7+ messages in thread
From: Andreas K. Huettel @ 2018-02-17  2:12 UTC (permalink / raw
  To: gentoo-user

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

Am Freitag, 16. Februar 2018, 00:21:37 CET schrieb Ian Zimmerman:
> On 2018-02-15 23:39, Andreas K. Huettel wrote:
> > > I'm trying to test my package by running "ebuild /path/to/pkg.ebuild
> > > install".  Naturally (for me) I do this as an unprivileged user, not
> > > as root.  It fails because at least some steps such as dobin need to
> > > give away ownership of the files being installed.  I tried to run
> > > the whole thing including compilation under fakeroot but that
> > > doesn't help.
> > 
> > That should usually "just work".
> > 
> > Did you use fakeroot directly (bad), or did you add "fakeroot" to
> > FEATURES in make.conf (good)?
> 
> The former.  I didn't know about the feature.  Is it safe to enable it
> for "production" runs as well?

Yes, it should be safe. At least I have it on all the time and never noticed 
any problems.

-- 
Dr. Andreas K. Hüttel
e-mail mail@akhuettel.de
http://www.akhuettel.de/

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

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

end of thread, other threads:[~2018-02-17  2:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-15  2:37 [gentoo-user] How to test package install? Ian Zimmerman
2018-02-15  3:37 ` John Covici
2018-02-15  7:15 ` Alan McKinnon
2018-02-15  8:20 ` Neil Bothwick
2018-02-15 22:39 ` Andreas K. Huettel
2018-02-15 23:21   ` [gentoo-user] " Ian Zimmerman
2018-02-17  2:12     ` Andreas K. Huettel

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