diff options
| author | Denys Dmytriyenko <denys@ti.com> | 2017-03-14 16:17:19 -0400 |
|---|---|---|
| committer | Armin Kuster <akuster808@gmail.com> | 2017-06-26 11:29:44 -0700 |
| commit | 1ec6d57e438cce13eab0be262eea23c37bf2f799 (patch) | |
| tree | ac96bd406b3049494c3f2e4cccacac231d8554e7 /meta-oe | |
| parent | 728873eabd72e120589c52f1fce0d23a6a759d56 (diff) | |
| download | meta-openembedded-1ec6d57e438cce13eab0be262eea23c37bf2f799.tar.gz | |
devmem2: use different filename to avoid checksum conflicts
The newly resurrected devmem2.c file besides having a new location, also
updates its header, producing different checksums, which would conflict
with any previously cached or mirrored instances. To avoid such conflicts,
use a different filename in fetch(). Rename it back to original name at
unpack() for devmem2-fixups-2.patch to succeed w/o modifications.
WARNING: devmem2-1.0-r7 do_fetch: Fetcher failure for URL: 'http://www.free-electrons.com/pub/mirror/devmem2.c'. Checksum mismatch!
File: '/OE/master/downloads/devmem2.c' has md5 checksum be12c0132a1ae118cbf5e79d98427c1d when e23f236e94be4c429aa1ceac0f01544b was expected
File: '/OE/master/downloads/devmem2.c' has sha256 checksum ec382c90af3ef2f49695ff14a4d6521e58ac482c4e29d6c9ebca8768f699c191 when 3b15515693bae1ebd14d914e46d388edfec2175829ea1576a7a0c8606ebbe639 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] = "be12c0132a1ae118cbf5e79d98427c1d"
SRC_URI[sha256sum] = "ec382c90af3ef2f49695ff14a4d6521e58ac482c4e29d6c9ebca8768f699c191"
Otherwise you should retry the download and/or check with upstream to determine if the file has become corrupted or otherwise unexpectedly modified.
WARNING: devmem2-1.0-r7 do_fetch: Renaming /OE/sources/devmem2.c to /OE/sources/devmem2.c_bad-checksum_be12c0132a1ae118cbf5e79d98427c1d
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'meta-oe')
| -rw-r--r-- | meta-oe/recipes-support/devmem2/devmem2.bb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/meta-oe/recipes-support/devmem2/devmem2.bb b/meta-oe/recipes-support/devmem2/devmem2.bb index c42eb5e0b1..c86eb2e4bb 100644 --- a/meta-oe/recipes-support/devmem2/devmem2.bb +++ b/meta-oe/recipes-support/devmem2/devmem2.bb | |||
| @@ -3,12 +3,16 @@ LICENSE = "GPLv2+" | |||
| 3 | LIC_FILES_CHKSUM = "file://devmem2.c;endline=38;md5=a9eb9f3890384519f435aedf986297cf" | 3 | LIC_FILES_CHKSUM = "file://devmem2.c;endline=38;md5=a9eb9f3890384519f435aedf986297cf" |
| 4 | PR = "r7" | 4 | PR = "r7" |
| 5 | 5 | ||
| 6 | SRC_URI = "http://www.free-electrons.com/pub/mirror/devmem2.c \ | 6 | SRC_URI = "http://www.free-electrons.com/pub/mirror/devmem2.c;downloadfilename=devmem2-new.c \ |
| 7 | file://devmem2-fixups-2.patch;apply=yes;striplevel=0" | 7 | file://devmem2-fixups-2.patch;apply=yes;striplevel=0" |
| 8 | S = "${WORKDIR}" | 8 | S = "${WORKDIR}" |
| 9 | 9 | ||
| 10 | CFLAGS += "-DFORCE_STRICT_ALIGNMENT" | 10 | CFLAGS += "-DFORCE_STRICT_ALIGNMENT" |
| 11 | 11 | ||
| 12 | python do_unpack_append() { | ||
| 13 | os.rename("devmem2-new.c", "devmem2.c") | ||
| 14 | } | ||
| 15 | |||
| 12 | do_compile() { | 16 | do_compile() { |
| 13 | ${CC} -o devmem2 devmem2.c ${CFLAGS} ${LDFLAGS} | 17 | ${CC} -o devmem2 devmem2.c ${CFLAGS} ${LDFLAGS} |
| 14 | } | 18 | } |
