Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can I directly emerge an ebuild file?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
JustAnother
Apprentice
Apprentice


Joined: 23 Sep 2016
Posts: 186

PostPosted: Wed Sep 20, 2017 10:35 pm    Post subject: Can I directly emerge an ebuild file? Reply with quote

Here's the setup. I want to use gpp, a preprocessor. But alas, there is no app-text/gpp in the main portage tree ::gentoo. However I did find it here: http://gpo.zugaina.org/app-text/gpp

The problem is that I don't have the slightest idea if it is a good move to hitch myself up to a strange repository. But they do have a gpp ebuild file. On the other hand man emerge says not to emerge ebuild files directly.

Is this really the case? Could I just download the gpp ebuild file and toss it into
Code:
/usr/portage/app-text
, and try to emerge it? Or would that really blow my system up?

Are there any other ways to deal with the "emerge the odd-lot package" issue, other than running the make file or attaching oneself to another repository?

Thanks
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21631

PostPosted: Thu Sep 21, 2017 12:52 am    Post subject: Reply with quote

I have not reviewed that ebuild, but as a general comment:

If you trust that one ebuild, you could create a personal overlay, populate it with just that ebuild and supporting files, then emerge from there. You should not modify under /usr/portage because those modifications will be lost on next sync.
Back to top
View user's profile Send private message
JustAnother
Apprentice
Apprentice


Joined: 23 Sep 2016
Posts: 186

PostPosted: Thu Sep 21, 2017 1:52 am    Post subject: Reply with quote

Makes sense. If somebody can have a personal trainer or a personal astrologer, then why not a personal overlay?

Maybe someone can put gpp into the main package repo. It's not a critical utility, but it has its place.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30914
Location: here

PostPosted: Thu Sep 21, 2017 5:39 am    Post subject: Reply with quote

JustAnother wrote:
Maybe someone can put gpp into the main package repo. It's not a critical utility, but it has its place.

You can tell to become a proxy maintainer for this package
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54237
Location: 56N 3W

PostPosted: Thu Sep 21, 2017 7:47 am    Post subject: Reply with quote

JustAnother,

Ebuilds don't get much simpler.
Code:
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

DESCRIPTION="a general-purpose preprocessor with customizable syntax"
HOMEPAGE="http://en.nothingisreal.com/wiki/GPP"
SRC_URI="http://files.nothingisreal.com/software/${PN}/${P}.tar.bz2"
LICENSE="LGPL-3+"

SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""

DEPEND=""
RDEPEND=""


Follow the handbook to make yourself a personal overlay.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9527
Location: beyond the rim

PostPosted: Thu Sep 21, 2017 9:12 am    Post subject: Re: Can I directly emerge an ebuild file? Reply with quote

JustAnother wrote:
Is this really the case? Could I just download the gpp ebuild file and toss it into
Code:
/usr/portage/app-text
, and try to emerge it? Or would that really blow my system up?


It wouldn't blow your system up, portage would likely just abort with an error. One of the drawbacks of ebuilds is that unlike (S)RPM or DEB packages they aren't self-contained packages. To have a working package you also need several support files in a specific directory structure, which makes transferring individual packages somewhat tricky.

Interestingly enough RPM and DEB based distros have also moved to a repository-centric approach in the last years and made it more difficult to handle individual packages.
Back to top
View user's profile Send private message
JustAnother
Apprentice
Apprentice


Joined: 23 Sep 2016
Posts: 186

PostPosted: Thu Sep 21, 2017 8:34 pm    Post subject: Reply with quote

I'm certainly willing to be a proxy maintainer, but I want to learn this portage system better before I jump on that. In the mean time I hope it is ok if I ask a few more questions. I'm trying to get my xfce work flow tweaked.

Thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum