FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Development

 
 
LinkBack Thread Tools
 
Old 07-29-2008, 01:39 AM
Tom Lane
 
Default koji build dies with "Bad arg to %patch: %build"

Jesse Keating <jkeating@redhat.com> writes:
> It's actually having problems with one of your %patch arguments. The
> srpm is initially created on a RHEL5 system, before passed to mock, so
> perhaps rpm on RHEL5 doesn't accept the -F flag... that is the recent
> thing you changed right?

Doh, that must be it. Thanks for the clue.

(Is it really a good idea to be using a back-rev rpm for one part of
the build process, and the latest and greatest for other parts? It
certainly calls future build reproducibility into question, if you ask
me.)

regards, tom lane

--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 
Old 07-29-2008, 01:46 AM
Roland McGrath
 
Default koji build dies with "Bad arg to %patch: %build"

> (Is it really a good idea to be using a back-rev rpm for one part of
> the build process, and the latest and greatest for other parts? It
> certainly calls future build reproducibility into question, if you ask
> me.)

A problem like this came up before when kernel.spec started using fancy
macros. (I think this was in koji's previous life as the RH-internal
brew.) I thought they told me they fixed it. But now it occurs to me that
while I talked about this very issue and took "fixed it" to mean using the
rpmbuild from the buildroot for all steps of srpm-making, they might have
just upgraded the servers to RHEL5 from RHEL4 and that was a new enough rpm
version to fix the particular case that had come up, and that's what "they
fixed it" really meant.


Thanks,
Roland

--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 
Old 07-29-2008, 01:46 PM
Adam Jackson
 
Default koji build dies with "Bad arg to %patch: %build"

On Mon, 2008-07-28 at 21:39 -0400, Tom Lane wrote:
> Jesse Keating <jkeating@redhat.com> writes:
> > It's actually having problems with one of your %patch arguments. The
> > srpm is initially created on a RHEL5 system, before passed to mock, so
> > perhaps rpm on RHEL5 doesn't accept the -F flag... that is the recent
> > thing you changed right?
>
> Doh, that must be it. Thanks for the clue.
>
> (Is it really a good idea to be using a back-rev rpm for one part of
> the build process, and the latest and greatest for other parts? It
> certainly calls future build reproducibility into question, if you ask
> me.)

I have suggested - multiple times - that for mock the only thing the
system's rpm should be used for is generating the chroot, and that after
doing that (and chrooting inside and rebuilding the rpmdb) all further
use of rpm would be from inside the chroot.

There is a minor issue in doing so, which is that you'd either need to
teach yum about how to run in a chroot, or you'd need to modify mock to
get packages into the buildroot before running (the chroot's) yum on
them. The reason is that if you don't, then the chroot's yum needs
access to the network, which is generally taken to be a bad idea.

The other problem with this is the construction of the SRPM itself,
which should also be done with the rpm that's expected to build it.
Again, we could do this by constructing a chroot containing rpm and the
scm tool of choice for checkout, and at least in principle that bit of
network access is no more problematic than what we're already doing.

The patch, I'm sure, would be gratefully accepted.

- ajax
--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 

Thread Tools




All times are GMT. The time now is 10:34 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org