with the cvs history? trying to help INDEX builds.

Matthew Seaman m.seaman at infracaninophile.co.uk
Fri Jan 20 10:44:28 UTC 2012


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: matthew at infracaninophile.co.uk               Kent, CT11 9PW

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 267 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20120120/5f2aec88/signature.pgp


More information about the freebsd-ports mailing list