[PATCH] crosstool rpmbuild error
Dan Kegel
dank@kegel.com
Fri Jul 1 06:15:00 GMT 2005
akio idehara wrote:
> Hi, Dan.
>
> crosstool is good tool.
> But I had problem with building powerpc-XXXX rpm package.
> ~
> So I made patch.
>
> Thanks
> ===========================
> diff -r -c crosstool/crosstool.spec.in crosstool_edit/crosstool.spec.in
> *** crosstool/crosstool.spec.in 2005-05-15 01:41:20.000000000 +0900
> --- crosstool_edit/crosstool.spec.in 2005-05-31 22:37:57.000000000 +0900
> ***************
> *** 147,152 ****
> --- 147,154 ----
> # fix embedded paths so they'll work outside the buildroot
> for CPU in %{CPUS}; do
> if test $CPU = dummy; then continue; fi
> + # Fix up broken CPU name (RPM does not allow dashes in variable names)
> + CPU=`echo $CPU | sed 's/_/-/;s/x86-64/x86_64/'`
> TARGET=`cat $CPU.dat | grep TARGET= | sed 's/.*=//'`
> REALPREFIX=%{RESULT_TOP}/%{TOOLCOMBO}/$TARGET
Applied to what will be crosstool-0.36.
Thanks!
- Dan
--
Trying to get a job as a c++ developer? See http://kegel.com/academy/getting-hired.html
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
More information about the crossgcc
mailing list