Xaprb

Stay curious!

Anyone want to help build RPMs of Maatkit?

with 11 comments

Dear LazyWeb, I want to use my Ubuntu laptop (on amd64 BTW) to build an RPM of Maatkit that will work on all RPM-based distros. Is it possible? Or are there enough differences between the RPM-based distros that I can’t do it? Mind you, the finished RPM ought to just have some man pages and Perl scripts, so I don’t think it will be platform- or distro-specific. But I am just not an expert on it.

The second question is, what do I need to put into my Makefile to do this? My ‘make all’ currently builds a .zip, a .tar.gz, and a .deb package — what needs to change to make that include .rpm?

Someone who is willing to help create .spec files, etc, etc will be immediately given commit rights to Maatkit’s SVN repository!

Written by Baron Schwartz

August 12th, 2008 at 8:33 pm

Posted in Maatkit,SQL

Tagged with , ,

11 Responses to 'Anyone want to help build RPMs of Maatkit?'

Subscribe to comments with RSS

  1. probably best if packages are compiled on target systems so dependencies are all satisfied properly etc. I just compiled an rpm fine on centos 5 using the spec file that is included.

    David

    12 Aug 08 at 10:55 pm

  2. Are you aware of this repository? It contains maatkit RPM among other things. You may want to contact the guys behind it (ProvenScaling).
    http://mirror.provenscaling.com/yum/extras/
    http://mirror.provenscaling.com/yum/extras/i386/xaprb/

    kmike

    13 Aug 08 at 12:01 am

  3. This is the spec file we have been using for a while now:

    http://pastebin.com/m482fb4db

    It’s meant for RedHat, but I don’t see why it wouldn’t work on other platforms.

    Spil Games

    13 Aug 08 at 5:11 am

  4. Hi Baron,

    I created maatkit RPMs for a number of distributions (openSUSE, Fedora, Mandriva). They can be obtained via the openSUSE Build service. Just search for “maatkit” on http://software.opensuse.org/search or head directly to my download area: http://download.opensuse.org/repositories/home:/LenzGr/

    Users can directly subscribe to these repositories via yum.

    Hope that help!

    LenZ

    13 Aug 08 at 8:07 am

  5. I was not aware that Proven Scaling was building RPMs. That’s great, thanks Proven Scaling! OK, I’m just going to let others build RPMs and I’ll make a wiki page on Google Code that lists other sources of builds. Anyone else?

    There is a spec file included, as the first poster mentioned — so if someone wants to build their own, what is the command to do that? I’d like to paste that onto the wiki too.

    Wow, this really is the lazy web for me today :)

    Xaprb

    13 Aug 08 at 8:08 am

  6. Unfortunately many spec files are aimed at certain distributions. The spec file pasted above might work on other distributions. You need to copy the spec file into the RPM SPECS directory, and a maatkit source tarball into the RPM SOURCES directory. Then you run “rpmbuild -ba –clean ” and it should perform the building and packaging. Unfortunately the resulting RPM is again distro-specific (particularly because of the Perl version)…

    LenZ

    13 Aug 08 at 8:18 am

  7. Argh, the command line was mangled. The command is “rpmbuild -ba –clean maatkit.spec”

    LenZ

    13 Aug 08 at 8:20 am

  8. LenZ, thanks a lot, I was just fishing through my memory and I remembered your repo but didn’t find the packages (was about to ask you about it) until I used the search function. I have linked to that from the Maatkit project now. Thanks for the build instructions too.

    Xaprb

    13 Aug 08 at 8:46 am

  9. If you put the maatkit.spec file into the .tar.gz then rpmbuild should be able to find it if you run “rpmbuild -ta maatkit-123.tar.gz”.

    – ask

  10. Now that I have Google Code and it has a decent wiki/doc system, I’m actually using it and all of these suggestions are getting added to the wiki. Thanks :-)

    Xaprb

    14 Aug 08 at 9:12 am

  11. I think remi could help you…
    http://blog.famillecollet.com/

    Joe

    24 Oct 08 at 10:52 am

Leave a Reply