2010/1/8 Ben Taylor <bentaylor.solx86 at gmail.com>:
> I've come up with what should make the boost patch config very simple.
>
> But I have been burning the candle at both ends and can't seem to
> figure out why this isn't working.....
>
> Thoughts?
>
> # Use the prefix (FOSSstdcxx or SUNWlibstdcxx4) to determine
> # which jam file to use.
> %define which_stdcxx ? ?%( echo %{depend_stdcxx} | cut -c1-4 )
> %ifarch i386
> %define boost_arch ? ? ?%( isainfo -x | grep sse2 && echo "i386-sse2"
> || echo "i386-mmx" )

we already have
%define has_sse2  %(isainfo -x | grep sse2 > /dev/null && echo 1  || echo 0)
in the foss-common, could you just recycle it?

> %else
> %define boost_arch ? ? ?%{_bld_arch}
> %endif
>
> %define patchprefix ? ? %{src_name}-%{src_ver}
>
> # use %{boost_arch} and %{which_stdcxx} to reduce complexity
> # in picking which patch file, and more specifically which
> # patch to actually apply. ?now we just have 1
> #
> Patch2: ? ? ? ? %{patchprefix}-jam.%{boost_arch}.%{which_stdcxx}.diff
>
> -----------------------------------------
>
> patch list: ?(missing sparc/sparcv9 SUNW versions)
>
> patches/boost-1.36.0-jam.amd64.FOSS.diff
> patches/boost-1.36.0-jam.amd64.SUNW.diff
> patches/boost-1.36.0-jam.i386-mmx.FOSS.diff
> patches/boost-1.36.0-jam.i386-mmx.SUNW.diff
> patches/boost-1.36.0-jam.i386-sse2.FOSS.diff
> patches/boost-1.36.0-jam.i386-sse2.SUNW.diff
> patches/boost-1.36.0-jam.sparc.FOSS.diff
> patches/boost-1.36.0-jam.sparcv9.FOSS.diff
>

Reply via email to