Skip to contentSkip to conversation

mtd-utils: Upgrade to 2.1.1

PATCH Superseded Adrian Bunk 2 participants 3 messages Jul 31, 2019

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mtd-utils: Upgrade to 2.1.1

Move from a git snapshot to a tarball release.

Add zstd PACKAGECONFIG to disable the zstd support that upstream enables by default, zstd is not in oe-core.

---
 .../mtd/{mtd-utils_git.bb => mtd-utils_2.1.1.bb}       | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)
 rename meta/recipes-devtools/mtd/{mtd-utils_git.bb => mtd-utils_2.1.1.bb} (92%)
meta/recipes-devtools/mtd/mtd-utils_2.1.1.bb renamed from meta/recipes-devtools/mtd/mtd-utils_git.bb +4 -6
similarity index 92%
rename from meta/recipes-devtools/mtd/mtd-utils_git.bb
rename to meta/recipes-devtools/mtd/mtd-utils_2.1.1.bb
index 49a650a9ef..dc39ee6058 100644
@@ -10,14 +10,11 @@ inherit autotools pkgconfig update-alternatives
 DEPENDS = "zlib e2fsprogs util-linux"
 RDEPENDS_mtd-utils-tests += "bash"
 
-PV = "2.1.0+${SRCPV}"
-
-SRCREV = "b5027be5f470830ac9543db3c52e076b13abd313"
-SRC_URI = "git://git.infradead.org/mtd-utils.git \
+SRC_URI = "ftp://ftp.infradead.org/pub/${BPN}/${BPN}-${PV}.tar.bz2 \
            file://add-exclusion-to-mkfs-jffs2-git-2.patch \
 "
-
-S = "${WORKDIR}/git/"
+SRC_URI[md5sum] = "94bbd31b217a5169ae26ab8c0442f691"
+SRC_URI[sha256sum] = "8d15e8b70f036d6af1a66011f8ca0e048e9675fa7983d33bea92c24313a232d2"
 
 EXTRA_OECONF += "--enable-install-tests"
 
@@ -30,6 +27,7 @@ PACKAGECONFIG[xattr] = "--with-xattr,--without-xattr,acl"
 PACKAGECONFIG[crypto] = "--with-crypto,--without-crypto,openssl"
 PACKAGECONFIG[jffs] = "--with-jffs,--without-jffs"
 PACKAGECONFIG[ubifs] = "--with-ubifs,--without-ubifs"
+PACKAGECONFIG[zstd] = "--with-zstd,--without-zstd,zstd"
 
 CPPFLAGS_append_riscv64  = " -pthread -D_REENTRANT"
 
Signature · 1 line
2.17.1
#1 lore raw

Please do not use ftp:// as it is deprecated for oe-core recipes. We are trying to eliminate it entirely.
(if no http is available, then git is actually preferred!)

Alex

Quoted 56 lines · Adrian Bunk

Move from a git snapshot to a tarball release.

Add zstd PACKAGECONFIG to disable the zstd support that upstream enables by default, zstd is not in oe-core.

---
 .../mtd/{mtd-utils_git.bb => mtd-utils_2.1.1.bb}       | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)
 rename meta/recipes-devtools/mtd/{mtd-utils_git.bb => mtd-utils_2.1.1.bb}

(92%)

meta/recipes-devtools/mtd/mtd-utils_2.1.1.bb renamed from meta/recipes-devtools/mtd/mtd-utils_git.bb +3 -6
similarity index 92%
rename from meta/recipes-devtools/mtd/mtd-utils_git.bb
rename to meta/recipes-devtools/mtd/mtd-utils_2.1.1.bb
index 49a650a9ef..dc39ee6058 100644
@@ -10,14 +10,11 @@ inherit autotools pkgconfig update-alternatives
 DEPENDS = "zlib e2fsprogs util-linux"
 RDEPENDS_mtd-utils-tests += "bash"
 
-PV = "2.1.0+${SRCPV}"
-
-SRCREV = "b5027be5f470830ac9543db3c52e076b13abd313"
-SRC_URI = "git://git.infradead.org/mtd-utils.git \
+SRC_URI = "ftp://ftp.infradead.org/pub/${BPN}/${BPN}-${PV}.tar.bz2 \
            file://add-exclusion-to-mkfs-jffs2-git-2.patch \
 "
-
-S = "${WORKDIR}/git/"
+SRC_URI[md5sum] = "94bbd31b217a5169ae26ab8c0442f691"
+SRC_URI[sha256sum] =

"8d15e8b70f036d6af1a66011f8ca0e048e9675fa7983d33bea92c24313a232d2"

EXTRA_OECONF += "--enable-install-tests"

meta/recipes-devtools/mtd/mtd-utils_2.1.1.bb renamed from meta/recipes-devtools/mtd/mtd-utils_git.bb +1 -1
@@ -30,6 +27,7 @@ PACKAGECONFIG[xattr] = "--with-xattr,--without-xattr,acl"
 PACKAGECONFIG[crypto] = "--with-crypto,--without-crypto,openssl"
 PACKAGECONFIG[jffs] = "--with-jffs,--without-jffs"
 PACKAGECONFIG[ubifs] = "--with-ubifs,--without-ubifs"
+PACKAGECONFIG[zstd] = "--with-zstd,--without-zstd,zstd"
 
 CPPFLAGS_append_riscv64  = " -pthread -D_REENTRANT"
 
--

2.17.1

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#2 lore raw
Quoted 3 lines · Alexander Kanavin

Please do not use ftp:// as it is deprecated for oe-core recipes. We are trying to eliminate it entirely.
(if no http is available, then git is actually preferred!)

OK, v2 sent.

Quoted 1 line

Alex

cu
Adrian

Signature · 4 lines
       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed