RPM Community Forums

Mailing List Message of <rpm-users>

Re: --target behaviour

From: Jeff Johnson <n3npq@mac.com>
Date: Wed 13 Feb 2008 - 03:37:27 CET
Message-Id: <A97E097F-7017-44B7-9D8C-B468091F60CB@mac.com>

On Feb 11, 2008, at 5:57 PM, Elan Ruusamäe wrote:

> i noticed when using --short-circuit that at some point it started  
> ti write same files twice...
>
> however looks like the behavior is not from --short-circuit, but  
> from multiple times passing --target.
>
> i notice here tree issues:
> - multiple times --target passed and rpmbuild called is a feature or  
> bug?

Depends on POV: I call that a bugture or a featlet.

Long time ago I tried to have multiple --target options
be equivalent to a single --target option with multiple
comma separated arches ...

>
> - Building target platforms: display is wrong (leading comma?)

... which explains the comma (the implementation tries to append
multiple --target options with leading comma into a single string)

The eventual solution will be to let popt accumulate multiple --target  
options
(with possibly multiple comma separated platform strings) into a single
argv array of platforms to build for.

Now for the $64K euro question:

     Who needs multiple target options of two varieties?

With the expectation of --short-circuit Doing the Right Thing on  
multiple
targets as well ...

>
> - %{arch} is lost when first time rpm's are written
>

%arch the tag in a --queryformat or %arch the macro is lost?

73 de Jeff
Received on Wed Feb 13 03:37:33 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.