Miro miro-2.0.3-r1.ebuild HOWTO (advanced)

Discussions Regarding Software

Moderator: Moderators

Miro miro-2.0.3-r1.ebuild HOWTO (advanced)

Postby chickpea » Tue Apr 21, 2009 19:06

NOTE: Now a WIKI PAGE http://wiki.sabayonlinux.org/index.php?title=HOWTO:_Install_Miro_2.0.3_before_it_finds_its_way_into_Entropy

Ok so I got sick of Miro 1.2.4 not working anymore and wanted to try the new Miro2.0.3

It actually emerged without much difficulty.

Here's my setup. I run a fully updated x86-64 entropy install (so all binary) with kde4.2. For this you will need:

1. A recently synced portage tree,
2. The latest miro ebuild here: http://bugs.gentoo.org/attachment.cgi?id=187487
3. A custom layman repository
4. A decent working knowledge of how to create a custom local repo (so be able to set up something in /usr/portage/local/layman with proper portage tree structure)

Ok, let's get started:

First do a

Code: Select all
equo update && equo world


Now we will

Code: Select all
 emerge --sync


ok now create our custom repo

Code: Select all
 mkdir /usr/portage/local/layman/customebuilds
cd /usr/portage/local/layman/customebuilds
mkdir media-tv/
cd media-tv/
mkdir miro
cp /whereever/miro-2.0.3-r1.ebuild /usr/portage/local/layman/customebuilds/media-tv/miro


Ok now update your make.conf

Code: Select all
 nano /usr/portage/local/layman/make.conf
add a line for /usr/portage/local/layman/customebuilds


alright, now

Code: Select all
 cd /usr/portage/local/layman/customebuilds/media-tv/miro
ebuild miro-2.0.3-r1.ebuild digest


Ok now we will need to clean up some GNOME typos and assorted other issues.

FIrst,

Code: Select all
nano /usr/lib/pkgconfig/pm-utils.pc


you need to change

Code: Select all
pm_powerhooks=${pm_libdir)/power.d


to

Code: Select all
pm_powerhooks=${pm_libdir}/power.d


save and close

next

Code: Select all
equo install dri2proto


a build dependency that is not pulled in by the ebuild.

Now the fun part
Code: Select all
 emerge -av miro


use ask to make sure you got your ebuild ready to compile and if it's right, let er rip!

Should compile fine now and run like a charm.
Last edited by chickpea on Wed Apr 22, 2009 14:32, edited 1 time in total.
chickpea
Sagely Hen
 
Posts: 1084
Joined: Fri Jan 05, 2007 15:08
Location: Washington, DC

Re: Miro miro-2.0.3-r1.ebuild HOWTO (advanced)

Postby wolfden » Wed Apr 22, 2009 6:01

can u please put this in the wiki

thanks
wolfden
Sharecropper
 
Posts: 9050
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA

Re: Miro miro-2.0.3-r1.ebuild HOWTO (advanced)

Postby Thev00d00 » Wed Apr 22, 2009 11:28

make a patch and call epatch or use sed to change the gnome line, then add the missing dep to the ebuild?
Image
Please report Bugs on the Bugzilla, not forum
Please Adopt an Unanswered thread
Website / Blog : v00d00.net
twitter: Follow Me
G+: Circle Me
Thev00d00
Generally Awesome (tm)
 
Posts: 1472
Joined: Wed Feb 21, 2007 15:52
Location: United Kingdom

Re: Miro miro-2.0.3-r1.ebuild HOWTO (advanced)

Postby chickpea » Wed Apr 22, 2009 13:41

wolfden wrote:can u please put this in the wiki

thanks


sure. I'll try to do that today.
chickpea
Sagely Hen
 
Posts: 1084
Joined: Fri Jan 05, 2007 15:08
Location: Washington, DC

Re: Miro miro-2.0.3-r1.ebuild HOWTO (advanced)

Postby chickpea » Wed Apr 22, 2009 13:47

Thev00d00 wrote:make a patch and call epatch or use sed to change the gnome line, then add the missing dep to the ebuild?


Errm, well, I'm not sure how to write a patch (although I do know how to mod an ebuild to call epatch). Maybe I should learn . . . just don't have the time right now.

Sure, I could sed it, but that would require me to know how to use sed. :P I know, I know, it's like the top three in terms of CLI MUST commands to know, but I have always put off learning how to use it, because, well I don't generally need to change that many lines or automate any sort of corrections. I did read the man page at one point, does that count?

Don't know how to add a missing DEPEND or RDEPEND to an ebuild, as I don't really know the difference between the two. all I know is emerge errored out when config script was looking for dri2proto, checked and it wasn't installed, so I installed it.
chickpea
Sagely Hen
 
Posts: 1084
Joined: Fri Jan 05, 2007 15:08
Location: Washington, DC

Re: Miro miro-2.0.3-r1.ebuild HOWTO (advanced)

Postby Thev00d00 » Wed Apr 22, 2009 14:33

DEPEND is a build dependency, i.e must be installed before the package
RDEPEND is a runtime dependency, i.e must be installed for the package to run

to make a patach use diff, however I notice you are changing a system file so you will need to patch package that owns this file instead (can be found with equery f path/to/file)
Image
Please report Bugs on the Bugzilla, not forum
Please Adopt an Unanswered thread
Website / Blog : v00d00.net
twitter: Follow Me
G+: Circle Me
Thev00d00
Generally Awesome (tm)
 
Posts: 1472
Joined: Wed Feb 21, 2007 15:52
Location: United Kingdom

Re: Miro miro-2.0.3-r1.ebuild HOWTO (advanced)

Postby chickpea » Wed Apr 22, 2009 16:36

Thev00d00 wrote:DEPEND is a build dependency, i.e must be installed before the package
RDEPEND is a runtime dependency, i.e must be installed for the package to run

to make a patach use diff, however I notice you are changing a system file so you will need to patch package that owns this file instead (can be found with equery f path/to/file)


awesome. Thanks for that quick lesson. So therefore (as I suspected) dri2proto is a build-time dep, therefore DEPEND must include dri2proto.

For the patch, as I said, probably just easier to do this by hand and then just file a bug for the package upstream.

New fancy wiki on this topic. :D May not be perfect but it's the best I could do in 30 min.
chickpea
Sagely Hen
 
Posts: 1084
Joined: Fri Jan 05, 2007 15:08
Location: Washington, DC

Re: Miro miro-2.0.3-r1.ebuild HOWTO (advanced)

Postby Thev00d00 » Wed Apr 22, 2009 16:54

Ebuilds ftw, you could also have a "lil hack" on the live filesystem in pkg_preinst to fix the issue

Code: Select all
pkg_preinst() {
sed  -i s/"pm_libdir\)"/"pm_libdir\}"/g /path/to/file << needs regex, can be improved (/me is at work)
or
patch /path/to/file ${FILESDIR}/path/topatch.patch
(epatch wont work here)
}
Image
Please report Bugs on the Bugzilla, not forum
Please Adopt an Unanswered thread
Website / Blog : v00d00.net
twitter: Follow Me
G+: Circle Me
Thev00d00
Generally Awesome (tm)
 
Posts: 1472
Joined: Wed Feb 21, 2007 15:52
Location: United Kingdom

Re: Miro miro-2.0.3-r1.ebuild HOWTO (advanced)

Postby croweland01 » Sat Jun 06, 2009 15:27

mkdir /usr/portage/local/layman/customebuilds


Are you sure about this?
I haven't sub dir local under portage but I have /usr/local/portage.

Normally in my make.conf I add:
PORTDIR_OVERLAY=/usr/local/portage

Now I must create subdir under portage; /local/layman/customebuilds, what I shoud add in my make.conf?
PORTDIR_OVERLAY=/usr/local/layman/customebuilds? :oops:
Image
Image
croweland01
Simple Hen
 
Posts: 43
Joined: Sat Mar 15, 2008 20:32
Location: 70022 Altamura Ba - Ita

Re: Miro miro-2.0.3-r1.ebuild HOWTO (advanced)

Postby wolfden » Sat Jun 06, 2009 16:07

/usr/local/layman/customebuilds isn't the normal way of doing it, you can use the correct way, just change it around
wolfden
Sharecropper
 
Posts: 9050
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA

Next

Return to Software in General

Who is online

Users browsing this forum: No registered users and 1 guest

cron