[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: rpmlint message '%ifarch-applied-patch'
- From: Ralf Corsepius <rc040203 freenet de>
- To: Development discussions related to Fedora <fedora-devel-list redhat com>
- Subject: Re: rpmlint message '%ifarch-applied-patch'
- Date: Wed, 19 Sep 2007 14:23:49 +0200
On Wed, 2007-09-19 at 14:10 +0200, Jindrich Novy wrote:
> Hi,
>
> On Wed, Sep 19, 2007 at 01:04:18PM +0100, Richard W.M. Jones wrote:
> > What does this rpmlint message mean? I don't understand why it's harmful
> > to have patches only applying to particular architectures.
> >
> > -----
> >
> > ical.src: W: %ifarch-applied-patch Patch3: ical-2.2-ia64.patch
> > A patch is applied inside an %ifarch block. Patches must be applied
> > on all architectures and may contain necessary configure and/or code
> > patch to be effective only on a given arch.
> >
> > -----
>
> It likely means that you have a construct like this in a spec file:
>
> %ifarch x86_64
> Patch1: some.patch
> %endif
Besides this, this patch seems rather silly to me.
Instead of trying to mess around with local defs of gethostname(),
you should probably better "#include <unistd.h>".
Ralf
PS.: __linux__ is the correct (POSIX-compliant) define to identify
linux.
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]