When emerging nss-3.8.ebuild on mips-linux, the <source directory>/mozilla/security/coreconf/Linux.mk file does not contain the necessary line to enable builds on the mips architecture. As a result, the build defaults to building for x86, which fails rapidly with some asm errors. Reproducible: Always Steps to Reproduce: 1.emerge dev/libs/nss/nss-3.8.ebuild 2. 3. Actual Results: build failed due to x86 asm errors on mips arch Expected Results: should have detected mips arch with no problems The following diff I created (also available at http://www.umr.edu/~sbecker/nss-makefile-mips-fix.diff) enables nss-3.8 to build on mips. Incidentally, this package should probably be marked with the ~mips keyword when/if this patch is added. --- mozilla/security/coreconf/Linux.mk.orig 2003-11-02 12:20:10.000000000 -0 500 +++ mozilla/security/coreconf/Linux.mk 2003-11-02 12:25:23.000000000 -0500 @@ -90,6 +90,10 @@ OS_REL_CFLAGS = -DLINUX1_2 -D_XOPEN_SOURCE CPU_ARCH = s390x else +ifeq ($(OS_TEST),mips) + OS_REL_CFLAGS = -DLINUX1_2 -D_XOPEN_SOURCE + CPU_ARCH = mips +else OS_REL_CFLAGS = -DLINUX1_2 -Di386 -D_XOPEN_SOURCE CPU_ARCH = x86 endif @@ -102,6 +106,7 @@ endif endif endif +endif LIBC_TAG = _glibc
Created attachment 20135 [details, diff] patch to fix nss-3.8 so that it builds on mips arch
I've had to applied the patch to get nss to compile on MIPS. This is a dependancy for gAIM. The patch does work. Thanks geoman.
This is fixed, the patch was added several days ago; closing...