All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Bolle <pebolle@tiscali.nl>
To: Jim Davis <jim.epost@gmail.com>
Cc: Michal Marek <mmarek@suse.cz>, linux-kbuild@vger.kernel.org
Subject: Re: make binrpm-pkg problem with Fedora 22
Date: Mon, 01 Jun 2015 09:56:49 +0200	[thread overview]
Message-ID: <1433145409.2361.14.camel@x220> (raw)
In-Reply-To: <CA+r1ZhieLs6vb6RUZGeVp_crCu-LyYT9DOoAuynBT2xDEh=UCg@mail.gmail.com>

On Fri, 2015-05-29 at 10:16 -0700, Jim Davis wrote:
> On a new Fedora 22 install,  running 'make binrpm-pkg' in the v4.1-rc5
> kernel source tree fails with
> 
> rpm --define "_builddir ." --target \
>     x86_64 -bb ./binkernel.spec
> rpm --target: unknown option
> scripts/package/Makefile:60: recipe for target 'binrpm-pkg' failed

This looks like the issue I ran into a few times after installing
Fedora: the need to install the rpm-build package separately, because it
isn't included in the default install. At least, the installs I do tend
to have it excluded. (The gotcha that I trip over _every_ time is that
rpmbuild is packaged in rpm-build. Note the hyphen.)

> From that makefile,
> 
> # Do we have rpmbuild, otherwise fall back to the older rpm
> RPM := $(shell if [ -x "/usr/bin/rpmbuild" ]; then echo rpmbuild; \
>                    else echo rpm; fi)
> 
> but it looks like the rpmbuild functionality has been taken out of
> (plain) rpm now.

This made me grep rpm's history a bit. I found a change from 2008 that
reads:
    Update rpm manpage wrt build modes
    - the build modes have been removed ages ago, just point to rpmbuild manual

And there's a change from 2000 that already reads:
    Remove build modes from rpm, use rpmb and/or popt glue instead.

We could consult people actually familiar with rpm's history, but it
appears plain rpm hasn't been able to build rpms for quite some time. So
I think scripts/package/Makefile should only (try to) use rpmbuild.

Hope this helps,


Paul Bolle


  reply	other threads:[~2015-06-01  7:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-29 17:16 make binrpm-pkg problem with Fedora 22 Jim Davis
2015-06-01  7:56 ` Paul Bolle [this message]
2015-06-01 20:56   ` Jim Davis
2015-06-08 20:19     ` [PATCH] scripts/package/Makefile: rpmbuild is needed for rpm targets Jim Davis
2015-06-15 14:12       ` Michal Marek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1433145409.2361.14.camel@x220 \
    --to=pebolle@tiscali.nl \
    --cc=jim.epost@gmail.com \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=mmarek@suse.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.