From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Rick \"Zero_Chaos\" Farina" Subject: [PATCH] fix numactl test Date: Sun, 03 May 2015 22:35:33 -0400 Message-ID: <5546DAF5.1010805@gentoo.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Mb6Sw6glvwi4K7fvc8nadvCdg5wm8WfSw" Return-path: Sender: linux-numa-owner@vger.kernel.org List-ID: To: linux-numa@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --Mb6Sw6glvwi4K7fvc8nadvCdg5wm8WfSw Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable I apologize if this is already handled, however, a quick google search didn't help me find any version control systems so I'm submitting here. In Gentoo we got a bug, where numactl fails tests if it isn't already installed: https://bugs.gentoo.org/show_bug.cgi?id=3D502586 =2E/bind_range: line 92: numactl: command not found =2E/bind_range: line 93: numactl: command not found The origin is fairly trivial, it appears that on the noted lines it's calling "numactl" instead of "../numactl" like it should. Which means it will try to use an installed numactl (possibly older) and fail if it isn't installed at all. Here is the tested and trivial patch to fix this behavior, please accept = it. Signed-off-by: "Rick Farina " diff -Naur numactl-2.0.10-orig/test/bind_range numactl-2.0.10/test/bind_range --- numactl-2.0.10-orig/test/bind_range 2015-05-03 22:23:31.095600314 -04= 00 +++ numactl-2.0.10/test/bind_range 2015-05-03 22:25:29.107592557 -0400 @@ -93,8 +93,8 @@ HIGHESTCPU=3D$(grep 'processor' /proc/cpuinfo | tail -n1 | cut -f2 -d':'= ) HIGHESTCPU=3D$(echo $HIGHESTCPU | cut -f2 -d' ') -HIGHESTNODE=3D$(numactl -H | grep -e 'node [0-9]* cpus' | tail -n1 | cut= -f2 -d' ') -LOWESTNODE=3D$(numactl -H | grep -e 'node [0-9]* cpus' | head -n1 | cut -f2 -d' ') +HIGHESTNODE=3D$(../numactl -H | grep -e 'node [0-9]* cpus' | tail -n1 | cut -f2 -d' ') +LOWESTNODE=3D$(../numactl -H | grep -e 'node [0-9]* cpus' | head -n1 | cut -f2 -d' ') get_mask Thanks, Zero --Mb6Sw6glvwi4K7fvc8nadvCdg5wm8WfSw Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBAgAGBQJVRtr6AAoJEKXdFCfdEflKjMAP/RsQJrFoDoHvrZQopn91hMod JXMyx4hAt6gkkXaCFCPG4RQvodpoL7V8gWgT/70FbKwf5H8YAhk8hHS0Im1Z+ECs EhmsC5rRJbOHouaOKG28l+Rq+OZgAbiE6E3MdRTZ0P+8W4GU6LQXhqiQ/OwnUOQh P5YW3noqNC4htGeAHZA2tfygiOMnJSoltLm673xY04aX9RgR4n9xfA1iq2/1QXEQ Z18qB9CzNfHqJixde7ur/LHbRfJ4JAdq7sixKI4DgOfKtua8xbQeWHzL0Jb2FAaI BaQ7qY0B5OiOXoMWWX84WJtwTVucPbBHSPcg4g9m381BxxDEo+wY8qu/2G8hrO5p 92G+OCjaSPT9dufMlL5LX5Rw8JY124qT+ESj26xlQ2sKSJpKe4A0JBvgqTOLFEOm 5AkevT3p2r4yOg7xKbO3GLKxDEHpq3OaDZxtcFZI/DG6EJfKqSVQY6Mv6L2HuDBQ AA3LL8r8NQFlCK9wtJbzymhIkS/FFKVerjgpe5rXg2agKA+ugzDlhfgP8JXdMRak VKbK5c0zAC7OIS6K39gb18Fvg9jU1R+ekD6UmtnzmPFZrNRuRGHFS1oKrxrraV2c jehfYf8if2um26e1M6S0LwPKTIBAOPOYh5Jld3U/b4fA5hqURLGiAkj9GR5s5QUg JagOvw7CZepdl0CdifXS =IzzN -----END PGP SIGNATURE----- --Mb6Sw6glvwi4K7fvc8nadvCdg5wm8WfSw--