Subject: nss "ported" to IRIX
To: None <tech-pkg@netbsd.org>
From: Staffan =?iso-8859-1?Q?Thom=E9n?= <duck@multi.fi>
List: tech-pkg
Date: 05/19/2006 06:13:18
--0eh6TmSyL6TZE2Uz
Content-Type: multipart/mixed; boundary="fdj2RfSjLxBAspz7"
Content-Disposition: inline
--fdj2RfSjLxBAspz7
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Here's a patch for what I did to make nss work on IRIX. It seems there's bu=
ild
logic for O32 and N32 binaries, but not N64, and this patch should also warn
the user if they use N64.
I'd send-pr if gnats built with mipspro ;-)
cheers
--=20
Staffan Thomen 1024D/7C7E2EF8
Sed quis custodiet ipsos Custodes?
--fdj2RfSjLxBAspz7
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="nss-Makefile-1.13-irix.diff"
Content-Transfer-Encoding: quoted-printable
# cvs diff -u Makefile
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: /cvsroot/pkgsrc/devel/nss/Makefile,v
retrieving revision 1.13
diff -u -r1.13 Makefile
--- Makefile 6 Apr 2006 06:21:54 -0000 1.13
+++ Makefile 12 May 2006 10:37:35 -0000
@@ -13,7 +13,7 @@
=20
# NSS will build and run on other platforms when MAINTAINER knows what
# magic Makefile glue is required
-ONLY_FOR_PLATFORM+=3D NetBSD-*-* FreeBSD-*-* Linux-*-* DragonFly-*-*
+ONLY_FOR_PLATFORM+=3D NetBSD-*-* FreeBSD-*-* Linux-*-* DragonFly-*-* IR=
IX-*-*
# Solaris has missing symbols when linking. It looks like some of those p=
roblem
# have been addressed in the nss source tree so this should be enabled aft=
er
# the next update.
@@ -42,7 +42,17 @@
MAKEFLAGS+=3D NS_USE_GCC=3DYES
.endif
=20
-.if ${OPSYS} =3D=3D "NetBSD" || ${OPSYS} =3D=3D "FreeBSD" || ${OPSYS} =3D=
=3D "DragonFly"
+.if ${OPSYS} =3D=3D "IRIX" && ${PKGSRC_COMPILER} =3D=3D "mipspro"
+. if ${ABI} =3D=3D "32"
+MAKEFLAGS+=3D USE_N32=3D1
+. elif ${ABI} =3D=3D "64"
+PKG_FAIL_REASON+=3D "This package does not support 64-bit binaries"
+. else
+# do nothing; o32 is the default
+. endif
+.endif
+
+.if ${OPSYS} =3D=3D "NetBSD" || ${OPSYS} =3D=3D "FreeBSD" || ${OPSYS} =3D=
=3D "DragonFly" || ${OPSYS} =3D=3D "IRIX"
NSS_OBJ_DIR=3D ${OPSYS}${OS_VERSION}_OPT.OBJ
.elif ${OPSYS} =3D=3D "Linux"
_NSS_SHORT_OS_VERSION!=3D echo ${OS_VERSION} | ${SED} -e 's/^\([[:d=
igit:]]\.[[:digit:]]\)\..*$$/\1/'
--fdj2RfSjLxBAspz7--
--0eh6TmSyL6TZE2Uz
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (NetBSD)
iD8DBQFEbTfNEbvWbnx+LvgRArz2AJ9fHSmVMq8lZGE3pHTMYMtfjcVyXACghFBI
ENnIwG2f25su0RUT+6gNf64=
=lZjH
-----END PGP SIGNATURE-----
--0eh6TmSyL6TZE2Uz--