Mniej wiecej Fri, Sep 29, 2006 at 10:51:33AM +0200, zainteresowany [EMAIL
PROTECTED] rzekl:
> On Fri, Sep 29, 2006 at 10:34:09AM +0200, zbyniu wrote:
> > Author: zbyniu Date: Fri Sep 29 08:34:09 2006 GMT
> > Module: SPECS Tag: LINUX_2_6
> > ---- Log message:
> > - rpm macros need utsrelease.h for external modules; rel 2
> >
>
> > @@ -1184,6 +1185,8 @@
> > KERNEL_INSTALL_DIR="$KERNEL_BUILD_DIR/build-done/kernel-UP"
> > rm -rf $KERNEL_INSTALL_DIR
> > BuildConfig
> > +%{__make} $CrossOpts include/linux/utsrelease.h
> > +cp include/linux/utsrelease.h{,.save}
>
> Isn't there any way to do it in %install ?
> just after %{__make} $CrossOpts include/linux/version.h
No, it need unclean environment.
> > %{__make} $CrossOpts mrproper
> > +mv -f include/linux/utsrelease.h.save
> > $RPM_BUILD_ROOT%{_prefix}/src/linux-%{version}/include/linux/utsrelease.h
> > %{__make} $CrossOpts include/linux/version.h
>
> wrong, use install instead of mv, or you'll brake multiple
> rpmbuild -bi --short-circuit
Ok, but then we have utsrelease.h.save in kernel-headers.
Feel free to make better hack against this strange idea :)
Zbyniu
--
%% Absolutely nothing we trust %%
_______________________________________________
pld-devel-en mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en