[arch-general] Can you test machine to set --jobs[=N] from w/i PKGBUILD?
David C. Rankin
drankinatty at suddenlinkmail.com
Sun Apr 1 17:12:16 EDT 2012
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 04/01/2012 05:47 PM, Jesse Juhani Jaara wrote:
> su, 2012-04-01 kello 14:44 -0500, David C. Rankin kirjoitti:
>> make || return 1
>
> Those '|| return 1' statements havent been used in long time anymore,
> yoy can just remove all them :D
Thanks!
I also did some testing on old and new boxes to find a makepkg.conf test that
is reliable. I hit on the following:
CPUCORES=$(grep -c "^processor" /proc/cpuinfo)
if test $CPUCORES -gt 1; then
MAKEFLAGS="-j${CPUCORES}"
fi
The beginning of line (^) is important to guard against incorrect results like:
16:01 nemesis:~> ( CPUCORES=$(grep -c "processor" /proc/cpuinfo); echo
"CPUCORES: $CPUCORES"; )
CPUCORES: 2
16:01 nemesis:~> cat /proc/cpuinfo
processor : 0
vendor_id : AuthenticAMD
cpu family : 6
model : 4
model name : AMD Athlon(tm) processor
stepping : 2
cpu MHz : 800.054
cache size : 256 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat
pse36 mmx fxsr syscall mmxext 3dnowext 3dnow up
bogomips : 1602.51
clflush size : 32
Notice the extra 'processor' in 'model name'.
- --
David C. Rankin, J.D.,P.E.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk94xLAACgkQZMpuZ8CyrciRDACfbW3UR/fcKLgye6G8Da2/XA7L
efwAnRUDOD3QSFe5zp9IPFKi1Hu0Jttt
=VL8G
-----END PGP SIGNATURE-----
More information about the arch-general
mailing list