On 20/01/2012 09:30, Anton Shterenlikht wrote:
> # /usr/bin/time -hl make index
> Generating INDEX-10 - please wait.."Makefile", line 41: warning: 
> "/sbin/sysctl -n hw.instruction_sse 2> /dev/null" returned non-zero status
> 
> Which Makefile does the warning refer to?

lucid-nonsense:/usr/ports:% grep -r hw.instruction_sse .
./games/gnubg/files/patch-lib_neuralnet.c:+    int error =
sysctlbyname("hw.instruction_sse", &result, &length, NULL, 0);
./audio/beast/Makefile:HAS_SSE!=        ${SYSCTL} -n hw.instruction_sse 2>
/dev/null   <<<----** This one

That's a systematic problem: callying sysctl like that will return a
non-zero status if you ask it about a non-existent sysctl, but doing
that is basically the point of the test. One fix would be:

  HAS_SSE!=  ${SYSCTL} -i -n hw.instruction_sse 2>/dev/null

It's only a warning though, so INDEX generation should still work.

        Cheers,

        Matthew

cvs diff: Diffing .
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/audio/beast/Makefile,v
retrieving revision 1.46
diff -u -u -r1.46 Makefile
--- Makefile    28 Dec 2011 03:21:23 -0000      1.46
+++ Makefile    20 Jan 2012 10:39:08 -0000
@@ -38,7 +38,7 @@
 BROKEN=                Does not compile on powerpc: array bound is not an 
integer
constant
 .endif

-HAS_SSE!=      ${SYSCTL} -n hw.instruction_sse 2> /dev/null
+HAS_SSE!=      ${SYSCTL} -i -n hw.instruction_sse 2> /dev/null
 .if ${HAS_SSE} == 1
 PLIST_SUB+=    SSE=""
 .else

-- 
Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey     Ramsgate
JID: matt...@infracaninophile.co.uk               Kent, CT11 9PW

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to