[ewg] [PATCH ofed 1.2 2/2] Patch to build 32-bit binaries on ppc64

Vladimir Sokolovsky vlad at dev.mellanox.co.il
Mon Mar 5 02:29:06 PST 2007


Stefan Roscher wrote:
> this patch disabled restore of 64-bit binaries in case of ppc64
> and allows 32-bit binaries to be packaged in rpm.
>
>
> Signed-off-by: Stefan Roscher <stefan.roscher at de.ibm.com>
> ---
>
>
> --- OFED-1.2-20070301-0600_old/SOURCES/ofa_user-1.2/ofed_scripts/ofa_user.spec	2007-03-01 06:03:28.000000000 -0800
> +++ OFED-1.2-20070301-0600_new/SOURCES/ofa_user-1.2/ofed_scripts/ofa_user.spec	2007-03-02 11:05:10.000000000 -0800
> @@ -539,7 +539,8 @@ make DESTDIR=$RPM_BUILD_ROOT install_use
>          ./configure --prefix=%{_prefix} --libdir=%{_libdir32} --without-patch %{configure_options32}
>          make user
>          make DESTDIR=$RPM_BUILD_ROOT install_user
> -        # Backup 32 bit binaries
> +	%ifarch x86_64
> +	# Backup 32 bit binaries
>          if [ -d $RPM_BUILD_ROOT%{_prefix}/bin ]; then
>              mv $RPM_BUILD_ROOT%{_prefix}/bin $RPM_BUILD_ROOT%{_prefix}/bin32
>          fi
> @@ -553,6 +554,7 @@ make DESTDIR=$RPM_BUILD_ROOT install_use
>          if [ -d $RPM_BUILD_ROOT%{_prefix}/sbin64 ]; then
>              mv $RPM_BUILD_ROOT%{_prefix}/sbin64 $RPM_BUILD_ROOT%{_prefix}/sbin
>          fi
> +	%endif
>          if [ -f $RPM_BUILD_ROOT%{_prefix}/sbin32/tvflash ] && [ ! -f $RPM_BUILD_ROOT%{_prefix}/sbin/tvflash ]; then
>              mkdir -p $RPM_BUILD_ROOT%{_prefix}/sbin
>              install -m 0755 $RPM_BUILD_ROOT%{_prefix}/sbin32/tvflash $RPM_BUILD_ROOT%{_prefix}/sbin/tvflash
>
>
>
> _______________________________________________
> ewg mailing list
> ewg at lists.openfabrics.org
> http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ewg
>   
Applied.

Regards,
Vladimir




More information about the ewg mailing list