David BAUDENS wrote:
> > 3) pmake problem:
> >
> > cp $RPM_SOURCE_DIR/pmake-sys-${RPM_ARCH}.mk lib/mk/sys-%{_arch}.mk
> >
> > will copy pmake-sys-i386.mk to lib/mk/sys-i386.mk and not to sys-i586.mk
> > which pmake will look for later in the build. I would think that this is
> > a little backwards...
> >
> > cp $RPM_SOURCE_DIR/pmake-sys-%{_arch}.mk lib/mk/sys-%{_target_cpu}.mk
>
> It's not a good idea: if your %_arch in ~/.rpmmacros is set on k6 (like
> it should be if you rebuild Air for K6 like me), it will not work
> because
> pmake-sys-%{_arch}.mk will be � pmake-sys-k6.mk �, which doesn't exist.
Actually, my %_arch is still at the default (which is i386 in the
packaged distribution), since I didn't bother to have set rules for my
environment, I should change it though. But, since this is copied from
the RPM source directory, it could easily be written specifically as
"pmake-sys-i386.mk" and the spec could be updated when the file is
changed. Sometimes macros are not necessarily the good answer... :o)
John