Re: Newbie trying to build a binary RPM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mar 7 juin 2005 11:16, Marco Colombo a écrit :
> On Tue, 2005-06-07 at 02:02 -0600, Bob Proulx wrote:
>> Frank W. Miller wrote:
>> > Here's my current spec file:
>> >
> [...]
>>
>>   %install
>>   rm -rf $RPM_BUILD_ROOT
>>   install -o 0 -g 0 -s -v -m 755 sip $RPM_BUILD_ROOT%{_bindir}/sip
>>   install -o 0 -g 0 -v -m 644 ring.wav
>> $RPM_BUILD_ROOT%{_sysconfdir}/sip/ring.wav
>
> It's useless to specify permission modes and ownership at %install time.
> This again forces the build process to be executed as root. The right
> place to specify them is in the %files section:

In fact at %install time you're supposed to make sure the buildroot can
not be modified by another user before packaging and that it doesn't
contain binaries with funny permissions (when the build fails the
buildroot is often left quite a long time on the system for analysis)

So you do need to take care of ownership and permissions, but its a very
different set from the ones you put in %files


-- 
Nicolas Mailhot


[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux