Passing parameters from %prep to %build

Valery Reznic valery_reznic at yahoo.com
Mon Aug 12 07:49:40 UTC 2013








>________________________________
> From: Eran Ben Natan <eranb at celltick.com>
>To: Valery Reznic <valery_reznic at yahoo.com>; General discussion about the RPM package manager <rpm-list at lists.rpm.org> 
>Sent: Monday, August 12, 2013 9:14 AM
>Subject: RE: Passing parameters from %prep to %build
> 
>
>Thanks, Valery.
>
>There's nothing wrong with saving to file, and this is what I'm doing.
>It just seems to me that passing parameters between spec part should be trivial, I can't figure out it is not working.
%prep and %build run in different scripts, so passing info between them while possible is not that easy (if you not use files)

Valery


>
>Eran. 
>
>-----Original Message-----
>From: rpm-list-bounces at lists.rpm.org [mailto:rpm-list-bounces at lists.rpm.org] On Behalf Of Valery Reznic
>Sent: Sunday, August 11, 2013 11:02 PM
>To: General discussion about the RPM package manager
>Subject: Re: Passing parameters from %prep to %build
>
>
>
>
>
>
>
>
>>________________________________
>> From: Eran Ben Natan <eranb at celltick.com>
>>To: "rpm-list at lists.rpm.org" <rpm-list at lists.rpm.org> 
>>Sent: Sunday, August 11, 2013 10:37 AM
>>Subject: Passing parameters from %prep to %build
>> 
>>
>>
>> 
>>Hi,
>> 
>>I have the following problem: In the %prep, I run a command that returns a value.
>>I want to be able to use this value in the %build.
>>I was not able to do it with macros, because %global gets its value on init, and %declare is executed when called.
>>I also wasn't able to use bash parameters because they are not shared between %prep and %build.
>>I have 2 workarounds: Do all in %prep, or save the vale to a file. I'm not comfortable with any of these workarounds.
>>This seems to be a simple task. Am I missing something?
>
>Do everything is %prep is ugly, IMO, bur what wrong with saving value in the file?
>
>Valery.
>> 
>>Thanks, Eran.
>>_______________________________________________
>>Rpm-list mailing list
>>Rpm-list at lists.rpm.org
>>http://lists.rpm.org/mailman/listinfo/rpm-list
>>
>>
>>
>_______________________________________________
>Rpm-list mailing list
>Rpm-list at lists.rpm.org
>http://lists.rpm.org/mailman/listinfo/rpm-list
>
>This mail was received via Mail-SeCure System.
>
>
>
>


More information about the Rpm-list mailing list