linux-numa.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fix numactl test
@ 2015-05-04  2:35 Rick "Zero_Chaos" Farina
  2015-05-04 20:29 ` Filipe Brandenburger
  0 siblings, 1 reply; 4+ messages in thread
From: Rick "Zero_Chaos" Farina @ 2015-05-04  2:35 UTC (permalink / raw)
  To: linux-numa

[-- Attachment #1: Type: text/plain, Size: 1515 bytes --]

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=502586

./bind_range: line 92: numactl: command not found
./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 <zerochaos@gentoo.org>"
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 -0400
+++ numactl-2.0.10/test/bind_range	2015-05-03 22:25:29.107592557 -0400
@@ -93,8 +93,8 @@

 HIGHESTCPU=$(grep 'processor' /proc/cpuinfo | tail -n1 | cut -f2 -d':')
 HIGHESTCPU=$(echo $HIGHESTCPU | cut -f2 -d' ')
-HIGHESTNODE=$(numactl -H | grep -e 'node [0-9]* cpus' | tail -n1 | cut
-f2 -d' ')
-LOWESTNODE=$(numactl -H | grep -e 'node [0-9]* cpus' | head -n1 | cut
-f2 -d' ')
+HIGHESTNODE=$(../numactl -H | grep -e 'node [0-9]* cpus' | tail -n1 |
cut -f2 -d' ')
+LOWESTNODE=$(../numactl -H | grep -e 'node [0-9]* cpus' | head -n1 |
cut -f2 -d' ')

 get_mask



Thanks,
Zero


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] fix numactl test
  2015-05-04  2:35 [PATCH] fix numactl test Rick "Zero_Chaos" Farina
@ 2015-05-04 20:29 ` Filipe Brandenburger
  2015-05-05  4:32   ` Rick "Zero_Chaos" Farina
  0 siblings, 1 reply; 4+ messages in thread
From: Filipe Brandenburger @ 2015-05-04 20:29 UTC (permalink / raw)
  To: Rick Zero_Chaos Farina; +Cc: linux-numa

Hi Rick,

On Sun, May 3, 2015 at 7:35 PM, Rick "Zero_Chaos" Farina
<zerochaos@gentoo.org> wrote:
> 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.

The numactl sources have been recently uploaded to this git repository:
https://github.com/numactl/numactl

> In Gentoo we got a bug, where numactl fails tests if it isn't already
> installed:
>
> https://bugs.gentoo.org/show_bug.cgi?id=502586
>
> ./bind_range: line 92: numactl: command not found
> ./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.

Yes, this was fixed in this commit:
https://github.com/numactl/numactl/commit/25c052affbbcd2df0f67376d18d3ac4028326175

It's more general, as it adds the build directory to $PATH and it also
works when an out-of-tree build is used.

May I suggest that you upgrade to the latest 2.0.10 which does contain this fix?

Cheers,
Filipe

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] fix numactl test
  2015-05-04 20:29 ` Filipe Brandenburger
@ 2015-05-05  4:32   ` Rick "Zero_Chaos" Farina
  2015-05-05 15:55     ` Filipe Brandenburger
  0 siblings, 1 reply; 4+ messages in thread
From: Rick "Zero_Chaos" Farina @ 2015-05-05  4:32 UTC (permalink / raw)
  To: linux-numa

[-- Attachment #1: Type: text/plain, Size: 1578 bytes --]

On 05/04/2015 04:29 PM, Filipe Brandenburger wrote:
> Hi Rick,
> 
> On Sun, May 3, 2015 at 7:35 PM, Rick "Zero_Chaos" Farina
> <zerochaos@gentoo.org> wrote:
>> 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.
> 
> The numactl sources have been recently uploaded to this git repository:
> https://github.com/numactl/numactl
> 
>> In Gentoo we got a bug, where numactl fails tests if it isn't already
>> installed:
>>
>> https://bugs.gentoo.org/show_bug.cgi?id=502586
>>
>> ./bind_range: line 92: numactl: command not found
>> ./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.
> 
> Yes, this was fixed in this commit:
> https://github.com/numactl/numactl/commit/25c052affbbcd2df0f67376d18d3ac4028326175
> 
> It's more general, as it adds the build directory to $PATH and it also
> works when an out-of-tree build is used.
> 
> May I suggest that you upgrade to the latest 2.0.10 which does contain this fix?

2.0.10 has a bug related to gentoo which I haven't figured out yet
(doesn't appear to be upstream related afaict so far so don't worry
about it) so when I saw the same call to numactl in both I assumed the
bug was still there.  Glad it's fixed, thanks for the work :-)

-Zero_Chaos


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] fix numactl test
  2015-05-05  4:32   ` Rick "Zero_Chaos" Farina
@ 2015-05-05 15:55     ` Filipe Brandenburger
  0 siblings, 0 replies; 4+ messages in thread
From: Filipe Brandenburger @ 2015-05-05 15:55 UTC (permalink / raw)
  To: Rick Zero_Chaos Farina; +Cc: linux-numa

Hi Rick,

On Mon, May 4, 2015 at 9:32 PM, Rick "Zero_Chaos" Farina
<zerochaos@gentoo.org> wrote:
> 2.0.10 has a bug related to gentoo which I haven't figured out yet
> (doesn't appear to be upstream related afaict so far so don't worry
> about it)

Do you have a Gentoo bug tracking the issue?

2.0.10 was the first version that switched the build to use autotools
so the .ebuild probably needs to be updated to include a call to
./configure in the build process...

Cheers,
Filipe

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-05-05 15:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-04  2:35 [PATCH] fix numactl test Rick "Zero_Chaos" Farina
2015-05-04 20:29 ` Filipe Brandenburger
2015-05-05  4:32   ` Rick "Zero_Chaos" Farina
2015-05-05 15:55     ` Filipe Brandenburger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).