More tweaks

There’s one last bit that’s bothering me about the ebuild, and that’s the version description.  If I clone the git repository directly and compile from there, I get a description along the lines of this:

Please attach all output as a file in bug reports.
MythTV Version   : v0.24-96-gf5e6f3d
MythTV Branch    : 0.24-fixes
Network Protocol : 63
Library API      : 0.24.20101129-1
QT Version       : 4.7.1
Options compiled in:
<snip>

This is different from what I’ve done.

Please attach all output as a file in bug reports.
MythTV Version   : 2f3a2f8-gentoo
MythTV Branch    : fixes/0.24
Network Protocol : 63
Library API      : 0.24.20101129-1
QT Version       : 4.7.1
Options compiled in:
<snip>

The branch string is cake to fix.  I just need to see if there is a way to pull the same version string out of the tarball.  We could manually enter that information in the ebuild, but that means more work for someone just looking for a quick bump.

Given the tar/zipball doesn’t include the .git directory that you get when you clone the repository, doing a “git describe –dirty” won’t work.

The info IS included as part of the forwarded URL.   i.e.

https://github.com/MythTV/mythtv/tarball/f5e6f3df7873b9aeaca42e5cfee0a5c50431ac10

turns to

https://download.github.com/MythTV-mythtv-v0.24-96-gf5e6f3d.tar.gz

which in turn matches the provided version string.

A simple edit to the eclass fixed the branch string, we’re now at:

Please attach all output as a file in bug reports.
MythTV Version   : 2f3a2f8-gentoo
MythTV Branch    : 0.24-fixes
Network Protocol : 63
Library API      : 0.24.20101129-1
QT Version       : 4.7.1
Options compiled in:
<snip>

So, yay.   Given that there doesn’t appear to be anything in the tarball to give me the same string, It looks as though I’ll have to fall back to manually declaring it.

~ by praetor on January 1, 2011.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

 
%d bloggers like this: