From patchwork Wed Jun 5 18:11:01 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Gall X-Patchwork-Id: 17567 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vb0-f70.google.com (mail-vb0-f70.google.com [209.85.212.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C2AD025DEA for ; Wed, 5 Jun 2013 18:11:14 +0000 (UTC) Received: by mail-vb0-f70.google.com with SMTP id f13sf2060934vbg.5 for ; Wed, 05 Jun 2013 11:11:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-beenthere:x-forwarded-to:x-forwarded-for :delivered-to:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=y2eY/DylRzTt6mk59mE0B+tsFicKUwIE2QrtVmN6EcY=; b=ICnRUDpOFUWFLRRd0c9FRLJr76sgH0B0qowUdq6BOU9NcskgubMaELB+69nxiPjlhT 7WP8XTT5AcsETBVbmSERJi3mOGxvWJkhrtpXXIIh5O2pMDNVtGz86ywCxElQCHdmqME0 t9Yx8pP9gMAdhK8oKNddP+2Q+CwCACNChrndhS1rcZr6NGRFyAFlyyAOb1Rn/0Y3WjZe sh3YnVxoVacCjsODIJwjV5Al90yb33SfVBVM3py5HnQhu7ZAJl73pQvc/7XUd+7I5Biz B4nQbh9/utok2wpFCH+iUCaLqbvtrAdhMc4CiYqWMxqiBUAg8kL2oApXj0TnTHHe5Ik9 iyiw== X-Received: by 10.236.133.235 with SMTP id q71mr18526555yhi.13.1370455873809; Wed, 05 Jun 2013 11:11:13 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.127.114 with SMTP id nf18ls910173qeb.8.gmail; Wed, 05 Jun 2013 11:11:13 -0700 (PDT) X-Received: by 10.220.59.8 with SMTP id j8mr8003621vch.74.1370455873432; Wed, 05 Jun 2013 11:11:13 -0700 (PDT) Received: from mail-vc0-f180.google.com (mail-vc0-f180.google.com [209.85.220.180]) by mx.google.com with ESMTPS id tn5si40009315vdc.143.2013.06.05.11.11.13 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 05 Jun 2013 11:11:13 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.180 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.180; Received: by mail-vc0-f180.google.com with SMTP id gd11so1368362vcb.11 for ; Wed, 05 Jun 2013 11:11:13 -0700 (PDT) X-Received: by 10.52.36.115 with SMTP id p19mr17671040vdj.8.1370455873041; Wed, 05 Jun 2013 11:11:13 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.221.10.206 with SMTP id pb14csp31611vcb; Wed, 5 Jun 2013 11:11:12 -0700 (PDT) X-Received: by 10.60.149.137 with SMTP id ua9mr12585922oeb.83.1370455872307; Wed, 05 Jun 2013 11:11:12 -0700 (PDT) Received: from mail-ie0-x230.google.com (mail-ie0-x230.google.com [2607:f8b0:4001:c03::230]) by mx.google.com with ESMTPS id u6si2010815oes.38.2013.06.05.11.11.11 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 05 Jun 2013 11:11:12 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:4001:c03::230 is neither permitted nor denied by best guess record for domain of tom.gall@linaro.org) client-ip=2607:f8b0:4001:c03::230; Received: by mail-ie0-f176.google.com with SMTP id ar20so1880391iec.7 for ; Wed, 05 Jun 2013 11:11:11 -0700 (PDT) X-Received: by 10.50.128.44 with SMTP id nl12mr3907210igb.0.1370455871593; Wed, 05 Jun 2013 11:11:11 -0700 (PDT) Received: from mars.mantorvilleexpress.com ([70.35.96.184]) by mx.google.com with ESMTPSA id gz1sm7073925igb.5.2013.06.05.11.11.09 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 05 Jun 2013 11:11:10 -0700 (PDT) From: Tom Gall To: patches@linaro.org Cc: Tom Gall Subject: [PATCH 1/1] add nspr_4.9.6.bb, need for chromium 24. Date: Wed, 5 Jun 2013 13:11:01 -0500 Message-Id: <1370455861-18262-1-git-send-email-tom.gall@linaro.org> X-Mailer: git-send-email 1.7.10.4 X-Gm-Message-State: ALoCoQl5Nye6x4uOSn1xngYCKxXqGVOWvB4eIhbBH/eYJex93+b7tbpzy1OgmiBpN86tJEbarclq X-Original-Sender: tom.gall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.180 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Signed-off-by: Tom Gall --- meta/recipes-support/nspr/nspr_4.9.6.bb | 177 +++++++++++++++++++++++++++++++ 1 file changed, 177 insertions(+) create mode 100644 meta/recipes-support/nspr/nspr_4.9.6.bb diff --git a/meta/recipes-support/nspr/nspr_4.9.6.bb b/meta/recipes-support/nspr/nspr_4.9.6.bb new file mode 100644 index 0000000..4e86043 --- /dev/null +++ b/meta/recipes-support/nspr/nspr_4.9.6.bb @@ -0,0 +1,177 @@ +DESCRIPTION = "Netscape Portable Runtime Library" +HOMEPAGE = "http://www.mozilla.org/projects/nspr/" +LICENSE = "GPL-2.0 | MPL-2.0 | LGPL-2.1" +LIC_FILES_CHKSUM = "file://configure.in;beginline=3;endline=6;md5=90c2fdee38e45d6302abcfe475c8b5c5 \ + file://Makefile.in;beginline=4;endline=38;md5=beda1dbb98a515f557d3e58ef06bca99" +SECTION = "libs/network" + +PR = "r0" + +SRC_URI = "ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${PV}/src/nspr-${PV}.tar.gz \ + file://remove-rpath-from-tests.patch \ + file://fix-build-on-x86_64.patch \ + file://trickly-fix-build-on-x86_64.patch \ + " + +SRC_URI += "file://nspr.pc.in" + +RDEPENDS_${PN}-dev += "perl" + +SRC_URI[md5sum] = "62b1e9d376d503d972f90c3c0031d879" +SRC_URI[sha256sum] = "7693fddd3c5cc15d53a50df53ab5dcdaa2eb58f5003302690559471744d6c6f9" + +S = "${WORKDIR}/nspr-${PV}/mozilla/nsprpub" + +TESTS = "runtests.pl \ + runtests.sh \ + accept \ + acceptread \ + acceptreademu \ + affinity \ + alarm \ + anonfm \ + atomic \ + attach \ + bigfile \ + cleanup \ + cltsrv \ + concur \ + cvar \ + cvar2 \ + dlltest \ + dtoa \ + errcodes \ + exit \ + fdcach \ + fileio \ + foreign \ + formattm \ + fsync \ + gethost \ + getproto \ + i2l \ + initclk \ + inrval \ + instrumt \ + intrio \ + intrupt \ + io_timeout \ + ioconthr \ + join \ + joinkk \ + joinku \ + joinuk \ + joinuu \ + layer \ + lazyinit \ + libfilename \ + lltest \ + lock \ + lockfile \ + logfile \ + logger \ + many_cv \ + multiwait \ + nameshm1 \ + nblayer \ + nonblock \ + ntioto \ + ntoh \ + op_2long \ + op_excl \ + op_filnf \ + op_filok \ + op_nofil \ + parent \ + parsetm \ + peek \ + perf \ + pipeping \ + pipeping2 \ + pipeself \ + poll_nm \ + poll_to \ + pollable \ + prftest \ + primblok \ + provider \ + prpollml \ + ranfile \ + randseed \ + reinit \ + rwlocktest \ + sel_spd \ + selct_er \ + selct_nm \ + selct_to \ + selintr \ + sema \ + semaerr \ + semaping \ + sendzlf \ + server_test \ + servr_kk \ + servr_uk \ + servr_ku \ + servr_uu \ + short_thread \ + sigpipe \ + socket \ + sockopt \ + sockping \ + sprintf \ + stack \ + stdio \ + str2addr \ + strod \ + switch \ + system \ + testbit \ + testfile \ + threads \ + timemac \ + timetest \ + tpd \ + udpsrv \ + vercheck \ + version \ + writev \ + xnotify \ + zerolen" + +inherit autotools + +do_configure() { + gnu-configize --force + mv config.sub config.guess build/autoconf + oe_runconf +} + +do_compile_prepend() { + oe_runmake CROSS_COMPILE=1 CFLAGS="-DXP_UNIX" LDFLAGS="" CC=gcc -C config export +} + +do_compile_append() { + oe_runmake -C pr/tests +} + +do_install_append() { + install -D ${WORKDIR}/nspr.pc.in ${D}${libdir}/pkgconfig/nspr.pc + sed -i s:OEPREFIX:${prefix}:g ${D}${libdir}/pkgconfig/nspr.pc + sed -i s:OELIBDIR:${libdir}:g ${D}${libdir}/pkgconfig/nspr.pc + sed -i s:OEINCDIR:${includedir}:g ${D}${libdir}/pkgconfig/nspr.pc + sed -i s:OEEXECPREFIX:${exec_prefix}:g ${D}${libdir}/pkgconfig/nspr.pc + cd ${S}/pr/tests + mkdir -p ${D}${libdir}/nspr/tests + install -m 0755 ${TESTS} ${D}${libdir}/nspr/tests + + # delete compile-et.pl and perr.properties from ${bindir} because these are + # only used to generate prerr.c and prerr.h files from prerr.et at compile + # time + rm ${D}${bindir}/compile-et.pl ${D}${bindir}/prerr.properties +} + +FILES_${PN} = "${libdir}/lib*.so" +FILES_${PN}-dev = "${bindir}/* ${libdir}/nspr/tests/* ${libdir}/pkgconfig \ + ${includedir}/* ${datadir}/aclocal/* " +FILES_${PN}-dbg += "${libdir}/nspr/tests/.debug/*"