Building an RPM for Cent 6.3

21 views
Skip to first unread message

Eric Radman

unread,
Nov 27, 2012, 10:24:06 AM11/27/12
to libk...@googlegroups.com
I'm attempting to build an RPM from SVN r602, but it's throwing an error when
I try run rpmbuild

$ make package
$ rpmbuild --rebuild ./libkqueue-2.0-1.src.rpm

+ ./configure --prefix=/usr
checking for ruby.. /usr/bin/ruby
checking for makeconf.. no

*** ERROR: Makeconf was not found ***

makeconf is installed

$ gem list

*** LOCAL GEMS ***

makeconf (0.2.0)

$ ruby -v
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]


Should I be running rpmbuild? What's the correct way to make an RPM for
distribution?

--
Eric Radman | http://eradman.com

Eric Wong

unread,
Nov 27, 2012, 4:43:38 PM11/27/12
to libk...@googlegroups.com
Eric Radman <eric...@eradman.com> wrote:
> I'm attempting to build an RPM from SVN r602, but it's throwing an error when
> I try run rpmbuild
>
> $ make package
> $ rpmbuild --rebuild ./libkqueue-2.0-1.src.rpm
>
> + ./configure --prefix=/usr
> checking for ruby.. /usr/bin/ruby
> checking for makeconf.. no
>
> *** ERROR: Makeconf was not found ***
>
> makeconf is installed
>
> $ gem list
>
> *** LOCAL GEMS ***
>
> makeconf (0.2.0)
>
> $ ruby -v
> ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]

Ruby 1.8 won't load rubygems by default, try forcing rubygems
via RUBYOPT:

RUBYOPT=-rubygems ./configure ...

Unfortunately, it seems Makeconf.new is called improperly in
configure.rb:

checking for ruby.. /path/to/bin/ruby
checking for makeconf.. yes
checking for a C compiler.. cc
checking for sys/signalfd.h... yes
checking whether EPOLLRDHUP is declared... yes
checking for sys/epoll.h... yes
checking for sys/inotify.h... yes
checking for sys/signalfd.h... yes
checking for sys/timerfd.h... yes
checking for sys/eventfd.h... ./configure.rb:171:in `initialize': wrong number of arguments (0 for 1) (ArgumentError)
from ./configure.rb:171:in `new'
from ./configure.rb:171

Mark Heily

unread,
Nov 27, 2012, 7:56:01 PM11/27/12
to libkqueue
On Tue, Nov 27, 2012 at 4:43 PM, Eric Wong <e...@yhbt.net> wrote:
Eric Radman <eric...@eradman.com> wrote:
> I'm attempting to build an RPM from SVN r602, but it's throwing an error when
> I try run rpmbuild
>
>   $ make package
>   $ rpmbuild --rebuild ./libkqueue-2.0-1.src.rpm
>
>   + ./configure --prefix=/usr
>   checking for ruby.. /usr/bin/ruby
>   checking for makeconf.. no
>
>   *** ERROR: Makeconf was not found ***
>
> makeconf is installed
>
>   $ gem list
>
>   *** LOCAL GEMS ***
>
>   makeconf (0.2.0)
>
>   $ ruby -v
>   ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]

Ruby 1.8 won't load rubygems by default, try forcing rubygems
via RUBYOPT:

        RUBYOPT=-rubygems ./configure ...

Unfortunately, it seems Makeconf.new is called improperly in
configure.rb:


Interesting.. you've found a few problems with the RPM package generation. I haven't attempted to build a RPM package in quite awhile, so there are likely to be more problems. I'll take a closer look at it this weekend.

It may be premature to start pushing people towards using the RubyGems version of Makeconf, as it still needs more work in some areas. I think I will revert back to bundling a private copy of Makeconf with libkqueue, just to ensure that people are always using the latest version.

Thanks,

 - Mark

Mark Heily

unread,
Dec 2, 2012, 9:31:23 PM12/2/12
to libkqueue
On Tue, Nov 27, 2012 at 10:24 AM, Eric Radman <eric...@eradman.com> wrote:
I'm attempting to build an RPM from SVN r602, but it's throwing an error when
I try run rpmbuild

Please try again with r604 or higher. The command to run is "make package". It will build a source RPM and a binary RPM in the current directory. I've tested it on a Debian system, but have not tried it on a RedHat system.

Thanks,

 - Mark
Reply all
Reply to author
Forward
0 new messages