[Samba] Re: [aurora-sparc-devel] Re: Samba 3.0.0 beta2 Aurora SPARC Linux rpm binary

Peter Jones pjones at redhat.com
Wed Jul 9 15:44:35 GMT 2003


On Wed, 9 Jul 2003, Christian Joensson wrote:

> On Wed, Jul 09, 2003 at 08:31:47AM +0200, Christian Joensson wrote:
> > I have taken your samba-3.0.0beta2-1.src.rpm, added a little sparc thingy
> > tp the spec file, and made a "new" src.rpm, and a sparc binary rpm. NTW,
> > Aurora SPARC Linux is based on Red Hat Linux, currently ansel release on
> > 7.3 and a work-in-progress on 9, see auroralinux.org.
> > 
> > If you want them, how do I upload them?
> 
> oh well, if you want to try then, beware, they're little tested, but
> they're here:
> 
> ftp://fw.j-son.org/pub/aurora/samba-3.0.0beta2-1.sparc.rpm
> ftp://fw.j-son.org/pub/aurora/samba-3.0.0beta2-1.src.rpm
> 
> and the little tweak in the spec file is this:
> 
> *** samba3.spec.orig    Tue Jul  1 17:30:12 2003
> --- samba3.spec Tue Jul  8 22:35:53 2003
> ***************
> *** 47,52 ****
> --- 47,56 ----
>   EXTRA="-D_LARGEFILE64_SOURCE"
>   %endif
>   NUMCPU=`grep processor /proc/cpuinfo | wc -l`
> +
> + %ifarch sparc
> + NUMCPU=`grep "ncpus active" /proc/cpuinfo | cut -d :  -f 2`
> + %endif

FWIW, kernel's specfile does:

    RPM_BUILD_NCPUS=`egrep -c "^cpu[0-9]+" /proc/stat || :`

and that works across architectures.

-- 
        Peter

"Good night, Mrs. Calabash, wherever you are."
		-- Armstrong




More information about the samba mailing list