Re: [gentoo-user] How to test package install?
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 dilfri...@gentoo.org Gentoo Linux developer (council, toolchain, perl, libreoffice, comrel) signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] How to test package install?
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 Zimmermanwrote: >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.
Re: [gentoo-user] How to test package install?
On Thu, Feb 15, 2018 at 4:37 AM, Ian Zimmermanwrote: > 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
Re: [gentoo-user] How to test package install?
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 cov...@ccs.covici.com
[gentoo-user] How to test package install?
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.