All of lore.kernel.org
 help / color / mirror / Atom feed
From: Martin Jansa <martin.jansa@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [meta-oe][PATCH 2/2] libjs-sizzle: Add new recipe
Date: Tue, 9 Dec 2014 18:51:07 +0100	[thread overview]
Message-ID: <20141209175107.GP2470@jama> (raw)
In-Reply-To: <1417685927-17482-3-git-send-email-qianl.fnst@cn.fujitsu.com>

[-- Attachment #1: Type: text/plain, Size: 3645 bytes --]

On Thu, Dec 04, 2014 at 05:38:47PM +0800, Qian Lei wrote:
> libjs-sizzle is a pure-javascript CSS selector engine
> 
> Signed-off-by: Qian Lei <qianl.fnst@cn.fujitsu.com>
> ---
>  meta-oe/recipes-support/libjs/libjs-sizzle_1.9.3.bb | 21 +++++++++++++++++++++
>  1 file changed, 21 insertions(+)
>  create mode 100644 meta-oe/recipes-support/libjs/libjs-sizzle_1.9.3.bb
> 
> diff --git a/meta-oe/recipes-support/libjs/libjs-sizzle_1.9.3.bb b/meta-oe/recipes-support/libjs/libjs-sizzle_1.9.3.bb
> new file mode 100644
> index 0000000..d773617
> --- /dev/null
> +++ b/meta-oe/recipes-support/libjs/libjs-sizzle_1.9.3.bb
> @@ -0,0 +1,21 @@
> +SUMMARY = "Pure-JavaScript CSS selector engine"
> +LICENSE = "GPLv2+ & MIT & BSD-3-Clause"
> +LIC_FILES_CHKSUM = "file://usr/share/doc/libjs-sizzle/copyright;md5=9b35efb1635ff8f06d1984376b06ee5a"
> +
> +SRC_URI = "http://kr.archive.ubuntu.com/ubuntu/pool/universe/s/sizzle/${BPN}_${PV}-1_all.deb;subdir=${BP}"
> +SRC_URI[md5sum] = "d88d4ed02a2098e32ba057cc0c2724ba"
> +SRC_URI[sha256sum] = "604029bc97b6e84da7e9eba4cef8e822c80d9255cf3d9e1d0f7d53652b0986aa"

Fails to fetch:
NOTE: recipe libjs-sizzle-1.9.3-r0: task do_fetch: Started
WARNING: Checksum failure encountered with download of http://kr.archive.ubuntu.com/ubuntu/pool/universe/s/sizzle/libjs-sizzle_1.9.3-1_all.deb;subdir=libjs-sizzle-1.9.3 - will attempt other sources if available
WARNING: Renaming /home/jenkins/oe/world/shr-core/downloads/libjs-sizzle_1.9.3-1_all.deb to /home/jenkins/oe/world/shr-core/downloads/libjs-sizzle_1.9.3-1_all.deb_bad-checksum_748b8805e21caed658f6765f7c491d46
ERROR: Fetcher failure for URL: 'http://kr.archive.ubuntu.com/ubuntu/pool/universe/s/sizzle/libjs-sizzle_1.9.3-1_all.deb;subdir=libjs-sizzle-1.9.3'. Checksum mismatch!
File: '/home/jenkins/oe/world/shr-core/downloads/libjs-sizzle_1.9.3-1_all.deb' has md5 checksum 748b8805e21caed658f6765f7c491d46 when d88d4ed02a2098e32ba057cc0c2724ba was expected
File: '/home/jenkins/oe/world/shr-core/downloads/libjs-sizzle_1.9.3-1_all.deb' has sha256 checksum 2a6468763c40a30f6f7d0df8906cd17aaebd6edaa5478aeaffd7b6b5fb8abd35 when 604029bc97b6e84da7e9eba4cef8e822c80d9255cf3d9e1d0f7d53652b0986aa was expected
If this change is expected (e.g. you have upgraded to a new version without updating the checksums) then you can use these lines within the recipe:
SRC_URI[md5sum] = "748b8805e21caed658f6765f7c491d46"
SRC_URI[sha256sum] = "2a6468763c40a30f6f7d0df8906cd17aaebd6edaa5478aeaffd7b6b5fb8abd35"
Otherwise you should retry the download and/or check with upstream to determine if the file has become corrupted or otherwise unexpectedly modified.

ERROR: Function failed: Fetcher failure for URL: 'http://kr.archive.ubuntu.com/ubuntu/pool/universe/s/sizzle/libjs-sizzle_1.9.3-1_all.deb;subdir=libjs-sizzle-1.9.3'. Unable to fetch URL from any source.

> +
> +SIZZLEDIR = "${datadir}/javascript/sizzle"
> +SIZZLEDOCDIR = "${docdir}/libjs-sizzle"
> +
> +do_install() {
> +    install -d -m 0755 ${D}${SIZZLEDIR}
> +    install -m 0644 ${S}${SIZZLEDIR}/sizzle.js ${D}${SIZZLEDIR}/
> +    install -m 0644 ${S}${SIZZLEDIR}/sizzle.min.js ${D}${SIZZLEDIR}/
> +
> +    install -d -m 0755 ${D}${SIZZLEDOCDIR}
> +    install -m 0644 ${S}${SIZZLEDOCDIR}/* ${D}${SIZZLEDOCDIR}/
> +}
> +
> +FILES_${PN} = "/usr/share/javascript/sizzle/"
> -- 
> 1.8.3.1
> 
> -- 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]

  reply	other threads:[~2014-12-09 17:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-04  9:38 [meta-oe][PATCH 0/2] libjs: Add new recipes Qian Lei
2014-12-04  9:38 ` [meta-oe][PATCH 1/2] libjs-jquery: Add new recipe Qian Lei
2014-12-04  9:38 ` [meta-oe][PATCH 2/2] libjs-sizzle: " Qian Lei
2014-12-09 17:51   ` Martin Jansa [this message]
2014-12-10  7:50     ` [meta-oe][PATCH v2] " Qian Lei

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20141209175107.GP2470@jama \
    --to=martin.jansa@gmail.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.