[Linux/Gentoo] - emerge specific svn revision
#1
hey all,

some of you might use the xbmc-9999 svn ebuild within gentoo, some might stick with manual compilation.
if you are one of the ebuild users you might want to step back to a certain revision for some reason.

the ebuild available via portage will always checkout the latest revision. to checkout a specific revision you could follow the next steps. i assume you know what you are doing and know how to handle local overlays. information about this can easily be found in the gentoo wiki.
basically there are two ways to reach the goal. i describe both of them, easiest is first:

EASY WAY (temporary changes):

just execute the emerge command like shown below. please make sure to replace the revision (bold) to your desired revision:
Code:
ESVN_REVISION="[b]23842[/b]" emerge -av xbmc
the next time you would emerge xbmc without the prefix, portage would go ahead and pickup the latest revision again.



HARD WAY: ("half-permanent" changes):

1. create a local overlay
2. create a copy of the ebuild and all necessary files lcoated in the portage tree and place them into your local overlay.
3. verify that your local overlay is accepted by portage.
4. edit the ebuild in your overlay and add the following line (bold), while the revision number should be replaced by your desired revision:
Code:
# Use XBMC_ESVN_REPO_URI to track a different branch
ESVN_REPO_URI=${XBMC_ESVN_REPO_URI:-http://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk}
ESVN_PROJECT=${ESVN_REPO_URI##*/svnroot/}
ESVN_PROJECT=${ESVN_PROJECT%/*}
[b]ESVN_REVISION="23842"[/b]
if you are done save and exit.

5. run the following command to create a new digest, assuming you are located in the directory where your overlay ebuild can be found:
Code:
ebuild xbmc-9999 manifest

you will get a similar output depending on your overlay location:
Code:
>>> Creating Manifest for /usr/local/portage/xbmc-overlay/media-tv/xbmc

6. emerge xbmc and watch portage going back to your desired revision.
7. if you want to get the latest revision again, comment the changes shown above (step 4) and repeat steps 5-6.

the disadvantage of all this is that you have to check after each portage sync, weather there is a new version of the ebuild or not. if there is a new version available you HAVE to check the differences between the new ebuild and your ebuild placed in the local overlay before complaining about broken compilation on irc or in the forums.

so long && have fun, Smile
einhänder

edit: thanks to frostworks for some necessary updates & hints
Reply
#2
Hi

since xbmc has moved to GIT, here is the way :

Code:
EGIT_COMMIT="669d5018e61e5df9c738e74128b5221e85256c30" emerge xbmc

Hope it helps... That helped me ;-)
Reply

Logout Mark Read Team Forum Stats Members Help
[Linux/Gentoo] - emerge specific svn revision0