Summary: | dev-libs/nss-3.12.9-r1 does not build when running linux-3.0.0-rc3 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | darkbasic <darkbasic> |
Component: | [OLD] Library | Assignee: | Mozilla Gentoo Team <mozilla> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | AlphatPC, b.brachaczek, cornicx, flow, gentoo-bugs, hardcorelinux, jlp.bugs, jradmacher, jrmalaq, manday, pkugrinas, ron, seatonr, SuloevDmitry, valet3valet |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
patch for nss-3.12.10.ebuild to compile with linux-3.x
Patch for using nss with 3.1 kernels |
Description
darkbasic
2011-06-17 09:29:31 UTC
$ ebuild nss-3.12.9-r1.ebuild clean compile Appending /newaches/gentoo/cvs/gentoo-x86 to PORTDIR_OVERLAY... * nss-3.12.9.with.ckbi.1.82.tar.gz RMD160 SHA1 SHA256 size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * checking nss-3.12.9.with.ckbi.1.82.tar.gz ;-) ... [ ok ] * Package: dev-libs/nss-3.12.9-r1 * Repository: gentoo * Maintainer: mozilla * USE: amd64 elibc_glibc kernel_linux userland_GNU * FEATURES: sandbox userpriv >>> Unpacking source... >>> Unpacking nss-3.12.9.with.ckbi.1.82.tar.gz to /var/tmp/portage/dev-libs/nss-3.12.9-r1/work >>> Source unpacked in /var/tmp/portage/dev-libs/nss-3.12.9-r1/work >>> Preparing source in /var/tmp/portage/dev-libs/nss-3.12.9-r1/work/nss-3.12.9 ... * Applying nss-3.12.5-gentoo-fixups.diff ... [ ok ] * Applying nss-3.12.6-gentoo-fixup-warnings.patch ... [ ok ] * Applying nss-3.12.4-solaris-gcc.patch ... [ ok ] >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-libs/nss-3.12.9-r1/work/nss-3.12.9 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/dev-libs/nss-3.12.9-r1/work/nss-3.12.9 ... make -j10 -j1 CC=x86_64-pc-linux-gnu-gcc ../coreconf/config.mk:71: ../coreconf/Linux3.0.mk: No such file or directory make: *** No rule to make target ../coreconf/Linux3.0.mk. Stop. make: *** [../coreconf/Linux3.0.mk] Error 1 emake failed * ERROR: dev-libs/nss-3.12.9-r1 failed (compile phase): * coreconf make failed * * Call stack: * ebuild.sh, line 56: Called src_compile * environment, line 2541: Called die * The specific snippet of code: * emake -j1 CC="$(tc-getCC)" || die "coreconf make failed"; * * If you need support, post the output of 'emerge --info =dev-libs/nss-3.12.9-r1', * the complete build log and the output of 'emerge -pqv =dev-libs/nss-3.12.9-r1'. * The complete build log is located at '/keeps/gentoo/emergelogs/wieneke/dev-libs:nss-3.12.9-r1:20110617-152013.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-libs/nss-3.12.9-r1/temp/environment'. * S: '/var/tmp/portage/dev-libs/nss-3.12.9-r1/work/nss-3.12.9' jer@wieneke /newaches/gentoo/cvs/gentoo-x86/dev-libs/nss $ cat /proc/version Linux version 3.0.0-rc3-JeR (root@wieneke) (gcc version 4.4.5 (Gentoo 4.4.5 p1.2, pie-0.4.5) ) #1 SMP PREEMPT Fri Jun 17 17:10:04 CEST 2011 Building system expects to find Linux3.0.mk, which is not included yet. Simple, dirty quick-fix: 1. ebuild nss-3.12.9-r1.ebuild clean configure 2. Edit /var/tmp/portage/dev-libs/nss-3.12.9-r1/work/nss-3.12.9-r1/mozilla/security/coreconf/config.mk, change $(OS_RELEASE) in line 71 to 2.6 3. ebuild nss-3.12.9-r1.ebuild merge Created attachment 279891 [details, diff]
patch for nss-3.12.10.ebuild to compile with linux-3.x
copies Linux2.6.mk to Linux3.0.mk in case Linux3.0.mk doesn't exist yet.
everything compiles nicely.
should work with 3.12.9-r1 just as well.
reported upstream (i hope dev-tech-crypto@lists.mozilla.org is the right place ^^) *** Bug 375221 has been marked as a duplicate of this bug. *** Patch from Alphat-PC in bug 375221: https://bugs.gentoo.org/attachment.cgi?id=280083 bug is known upstream, Linux*.mk will be removed in the next release. > https://bugzilla.mozilla.org/show_bug.cgi?id=661609 > Build from the head of the trunk or the 3.12 branch, or wait for the next > release to get the fix. there's a reference to 2.6 in Linux.mk as well, which is not addressed by the patches here yet: http://mxr.mozilla.org/mozilla-central/source/security/coreconf/Linux.mk#172 So, seriously, can we institute some kind of work-around until upstream fixes this? In my case helped patch. Patch works for me. *** Bug 376835 has been marked as a duplicate of this bug. *** Sorry about the duplicate. This patch also works for me Linux sparrow 3.0.0-gentoo #1 SMP PREEMPT Mon Jul 25 14:37:18 PDT 2011 i686 AMD Athlon(tm) 64 X2 Dual Core Processor 4600+ AuthenticAMD GNU/Linux *** Bug 377071 has been marked as a duplicate of this bug. *** Works for me Thanks for reporting, I have committed a slightly different fix. Sorry for the delay. Created attachment 284737 [details]
Patch for using nss with 3.1 kernels
For the record: build with kernel 3.1 is fixed in dev-libs/nss-3.12.11 *** Bug 388583 has been marked as a duplicate of this bug. *** |