Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Jan 2012 10:44:23 +0000
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        freebsd-ports@freebsd.org, gahr@freebsd.org
Subject:   Re: with the cvs history? trying to help INDEX builds.
Message-ID:  <4F194587.8070301@infracaninophile.co.uk>
In-Reply-To: <20120120093057.GA5662@mech-cluster241.men.bris.ac.uk>
References:  <4F177264.3090708@freebsd.org> <4F18C5F9.2050900@FreeBSD.org> <20120120093057.GA5662@mech-cluster241.men.bris.ac.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig37B03E2EE24C276E7771E853
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

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
>=20
> Which Makefile does the warning refer to?

lucid-nonsense:/usr/ports:% grep -r hw.instruction_sse .
=2E/games/gnubg/files/patch-lib_neuralnet.c:+    int error =3D
sysctlbyname("hw.instruction_sse", &result, &length, NULL, 0);
=2E/audio/beast/Makefile:HAS_SSE!=3D	${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!=3D  ${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
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
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=3D		Does not compile on powerpc: array bound is not an integer
constant
 .endif

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

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


--------------enig37B03E2EE24C276E7771E853
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.16 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk8ZRYcACgkQ8Mjk52CukIxjzgCfbaiEdLtj8OaqtcFYHl9Do9s7
54sAn1YgNogeF1XUpTNvfqqzhufgjE1y
=3+Sd
-----END PGP SIGNATURE-----

--------------enig37B03E2EE24C276E7771E853--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F194587.8070301>