Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Harmful ebuild?
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
lekto
Apprentice
Apprentice


Joined: 20 Sep 2014
Posts: 170
Location: Ancient Rome

PostPosted: Sat Apr 07, 2018 9:24 am    Post subject: Harmful ebuild? Reply with quote

Sometimes I need specific version of package that isn't in exact version in main portage tree, so I copy ebuild to my local repository and then edit it to get version I need. Sometimes I only need to change filename, but sometimes I need edit ebuild. Usually I edit ebuild using trial and error method.
I wondering is trial and error method safe? Can I damage system or portage is idiot-proof?
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5934

PostPosted: Sat Apr 07, 2018 9:27 am    Post subject: Reply with quote

theoretically yes, but unless you were to stick something like rm -rf / into one of the stages (like src_install), it's pretty harmless. either it builds, or it doesn't, and if it builds, it either installs or it doesn't. typical worst case scenario, you clutter up /var/tmp/portage with half-built packages. 8)
_________________
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.

banned from #gentoo since sept 2017
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30915
Location: here

PostPosted: Sat Apr 07, 2018 9:56 am    Post subject: Reply with quote

Depend also what package is.
If package is a library used by others packages in the system that don't support the specific version you can break something
_________________
Questions are guaranteed in life; Answers aren't.
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