This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] crosstool rpmbuild error


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]