Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 32572 - nss-3.8 ebuild fails on mips because mips arch is not included in Linux.mk file
Summary: nss-3.8 ebuild fails on mips because mips arch is not included in Linux.mk file
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: MIPS Linux
: High normal (vote)
Assignee: MIPS Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-02 14:31 UTC by Stephen Becker (RETIRED)
Modified: 2004-02-24 01:01 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to fix nss-3.8 so that it builds on mips arch (nss-makefile-mips-fix.diff,503 bytes, patch)
2003-11-02 14:33 UTC, Stephen Becker (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stephen Becker (RETIRED) gentoo-dev 2003-11-02 14:31:44 UTC
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
Comment 1 Stephen Becker (RETIRED) gentoo-dev 2003-11-02 14:33:18 UTC
Created attachment 20135 [details, diff]
patch to fix nss-3.8 so that it builds on mips arch
Comment 2 Bret Curtis (RETIRED) gentoo-dev 2004-01-17 15:06:51 UTC
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.
Comment 3 Joshua Kinard gentoo-dev 2004-02-24 01:01:12 UTC
This is fixed, the patch was added several days ago; closing...