RPM Community Forums

Mailing List Message of <rpm-devel>

Re: src.rpms have arch/os dependencies in current CVS

From: Jeff Johnson <n3npq@mac.com>
Date: Tue 16 Oct 2007 - 00:00:07 CEST
Message-Id: <BA115EF4-6B70-47EF-8F95-B00B9F6287B8@mac.com>

On Oct 15, 2007, at 5:04 PM, Bernhard Rosenkraenzer wrote:

> Just noticed while copying a src.rpm from a Linux x86 box to a  
> FreeBSD x86_64
> box:
>
> root@fbsd-test:~# rpm -ivh rpm-5.0-0.20071015.1ark.src.rpm
> Preparing...                 
> ########################################### [100%]
>         package rpm-5.0-0.20071015.1ark is intended for a i686  
> architecture
>         package rpm-5.0-0.20071015.1ark is intended for a linux  
> operating
> system
>
> Using --ignorearch --ignoreos unpacks it, but all files end up in  
> the current
> directory except /usr/src/rpm/*/.

Please try to identify version of rpm in use or I'm gonna go nuts.

Here's the current text reported (you are using an older version of  
rpm):

     case RPMPROB_BADPLATFORM:
         rc = snprintf(buf, nb,
                 _("package %s is intended for a %s platform"),
                 pkgNEVR, str1);

The only occurrence on HEAD of BADPLATFORM is in lib/depends.c.

And the platform test is always avoided for srpm's:

     /*
      * Always add source headers.
      */
     isSource =
         (headerIsEntry(h, RPMTAG_SOURCERPM) == 0 &&
          headerIsEntry(h, RPMTAG_ARCH) != 0);
     if (isSource) {
         oc = ts->orderCount;
         goto addheader;
     }

That's what I see anyways.

So what version of rpm?

73 de Jeff

> ______________________________________________________________________
> RPM Package Manager                                    http://rpm5.org
> Developer Communication List                        rpm-devel@rpm5.org
Received on Tue Oct 16 00:01:04 2007
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.