Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
portage for development
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
AaronPeterson
n00b
n00b


Joined: 29 Jul 2010
Posts: 1

PostPosted: Thu Jul 29, 2010 8:16 pm    Post subject: portage for development Reply with quote

I want to do some upstream development, When I modified the source, ebuilds would replace it all with code from packages.


Basically, I'm looking for ways to have dependencies met, and source code be editable.


I'm looking for some sort of flag that says "use my source" to build the package, some sort of edit directory/ and a build directory. It would be great if this also generated patch files.

Also looking for it to keep alternate versions readily available, so I could switch between my hacked versions that the supported versions by simple use of a command that swaps environment variables.

also looking to be able to provide this environment variable swapping and installing in individual users directories.

Portage seems like a good start..

There has to be something like this already?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Thu Jul 29, 2010 9:24 pm    Post subject: Reply with quote

AaronPeterson,

Welcome to the forums.
You need to use your overlay. Copy the existing ebuilds of interest there, give them a higher version number than the version in the tree and tey will be used in preference to the ones in the tree. In your overlay, you can edit ebuilds, add patches or change entire source tarballs.
The contents of your overlay are not reverted by emerge --sync

See The Gentoo Handbook
_________________
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
XQYZ
Apprentice
Apprentice


Joined: 19 Jul 2009
Posts: 231
Location: Europe

PostPosted: Thu Jul 29, 2010 9:50 pm    Post subject: Reply with quote

NeddySeagoon wrote:
give them a higher version number than the version in the tree


same version number should be fine, too afair.
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