nfs-utils: upgrade 2.4.3 -> 2.5.1
PATCH 1/3 nfs-utils: upgrade 2.4.3 -> 2.5.1
* cacheio was fixed upstream slightly different
* nfsdclnts is a python3 script for printing various nfs client information pack it in ${PN}-stats
* replace leading spaces by tabs in shell tasks
* remove SRC_URI[md5sum]
---
...acheio-use-intmax_t-for-formatted-IO.patch | 38 -------------------
...{nfs-utils_2.4.3.bb => nfs-utils_2.5.1.bb} | 21 +++++-----
2 files changed, 9 insertions(+), 50 deletions(-)
delete mode 100644 meta/recipes-connectivity/nfs-utils/nfs-utils/0001-cacheio-use-intmax_t-for-formatted-IO.patch
rename meta/recipes-connectivity/nfs-utils/{nfs-utils_2.4.3.bb => nfs-utils_2.5.1.bb} (86%)meta/recipes-connectivity/nfs-utils/nfs-utils/0001-cacheio-use-intmax_t-for-formatted-IO.patch deleted +0 -38
@@ -1,38 +0,0 @@ -From ac32b813f5d6f9a2de944015cf9bb98d68e0203a Mon Sep 17 00:00:00 2001 -From: Khem Raj <[email protected]> -Date: Sat, 1 Dec 2018 10:02:12 -0800 -Subject: [PATCH] cacheio: use intmax_t for formatted IO - -time_t is not same size on x32 ABI (ILP32) - -Upstream-Status: Pending - -Signed-off-by: Khem Raj <[email protected]> ---- - support/nfs/cacheio.c | 3 ++- - 1 file changed, 2 insertions(+), 1 deletion(-) - -diff --git a/support/nfs/cacheio.c b/support/nfs/cacheio.c -index 9dc4cf1..2086a95 100644 ---- a/support/nfs/cacheio.c -+++ b/support/nfs/cacheio.c -@@ -17,6 +17,7 @@ - - #include <nfslib.h> - #include <stdio.h> -+#include <inttypes.h> - #include <stdio_ext.h> - #include <string.h> - #include <ctype.h> -@@ -234,7 +235,7 @@ cache_flush(int force) - stb.st_mtime > now) - stb.st_mtime = time(0); - -- sprintf(stime, "%ld\n", stb.st_mtime); -+ sprintf(stime, "%jd\n", (intmax_t)stb.st_mtime); - for (c=0; cachelist[c]; c++) { - int fd; - sprintf(path, "/proc/net/rpc/%s/flush", cachelist[c]); --- -2.19.2 -
meta/recipes-connectivity/nfs-utils/nfs-utils_2.5.1.bb renamed from meta/recipes-connectivity/nfs-utils/nfs-utils_2.4.3.bb +9 -12
@@ -28,12 +28,10 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/nfs-utils/${PV}/nfs-utils-${PV}.tar.x file://proc-fs-nfsd.mount \ file://nfs-utils-debianize-start-statd.patch \ file://bugfix-adjust-statd-service-name.patch \ - file://0001-cacheio-use-intmax_t-for-formatted-IO.patch \ file://0001-Makefile.am-fix-undefined-function-for-libnsm.a.patch \ file://clang-warnings.patch \ " -SRC_URI[md5sum] = "06020c76f531ed97f3145514901e0e7c" -SRC_URI[sha256sum] = "af65fce5dd8370cff9ead67baac5a6cd69c376dcadfef264dc2c78c904f26599" +SRC_URI[sha256sum] = "0f1c8170e16a07d9836bbf0836d48d0c842b6f0e0e8b18748f099751851d30c4" # Only kernel-module-nfsd is required here (but can be built-in) - the nfsd module will # pull in the remainder of the dependencies.
@@ -91,7 +89,7 @@ RDEPENDS_${PN}-client = "${PN}-mount rpcbind" FILES_${PN}-mount = "${base_sbindir}/*mount.nfs*" -FILES_${PN}-stats = "${sbindir}/mountstats ${sbindir}/nfsiostat" +FILES_${PN}-stats = "${sbindir}/mountstats ${sbindir}/nfsiostat ${sbindir}/nfsdclnts" RDEPENDS_${PN}-stats = "python3-core" FILES_${PN}-staticdev += "${libdir}/libnfsidmap/*.a"
@@ -99,8 +97,8 @@ FILES_${PN}-staticdev += "${libdir}/libnfsidmap/*.a" FILES_${PN} += "${systemd_unitdir} ${libdir}/libnfsidmap/" do_configure_prepend() { - sed -i -e 's,sbindir = /sbin,sbindir = ${base_sbindir},g' \ - ${S}/utils/mount/Makefile.am + sed -i -e 's,sbindir = /sbin,sbindir = ${base_sbindir},g' \ + ${S}/utils/mount/Makefile.am } # Make clean needed because the package comes with
@@ -129,9 +127,9 @@ do_install_append () { -e 's,@HIGH_RLIMIT_NOFILE@,${HIGH_RLIMIT_NOFILE},g' \ ${D}${systemd_unitdir}/system/*.service if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then - install -m 0644 ${WORKDIR}/proc-fs-nfsd.mount ${D}${systemd_unitdir}/system/ - install -d ${D}${systemd_unitdir}/system/sysinit.target.wants/ - ln -sf ../proc-fs-nfsd.mount ${D}${systemd_unitdir}/system/sysinit.target.wants/proc-fs-nfsd.mount + install -m 0644 ${WORKDIR}/proc-fs-nfsd.mount ${D}${systemd_unitdir}/system/ + install -d ${D}${systemd_unitdir}/system/sysinit.target.wants/ + ln -sf ../proc-fs-nfsd.mount ${D}${systemd_unitdir}/system/sysinit.target.wants/proc-fs-nfsd.mount fi # kernel code as of 3.8 hard-codes this path as a default
@@ -141,7 +139,6 @@ do_install_append () { chown -R rpcuser:rpcuser ${D}${localstatedir}/lib/nfs/statd chmod 0644 ${D}${localstatedir}/lib/nfs/statd/state - # Make python tools use python 3 - sed -i -e '1s,#!.*python.*,#!${bindir}/python3,' ${D}${sbindir}/mountstats ${D}${sbindir}/nfsiostat - + # Make python tools use python 3 + sed -i -e '1s,#!.*python.*,#!${bindir}/python3,' ${D}${sbindir}/mountstats ${D}${sbindir}/nfsiostat }
Signature · 1 line
2.26.2
PATCH 2/3 ccache: merge ccache.inc into recipe
--- meta/recipes-devtools/ccache/ccache.inc | 28 -------------------- meta/recipes-devtools/ccache/ccache_3.7.9.bb | 28 +++++++++++++++++++- 2 files changed, 27 insertions(+), 29 deletions(-) delete mode 100644 meta/recipes-devtools/ccache/ccache.inc
meta/recipes-devtools/ccache/ccache.inc deleted +0 -28
@@ -1,28 +0,0 @@ -SUMMARY = "a fast C/C++ compiler cache" -DESCRIPTION = "ccache is a compiler cache. It speeds up recompilation \ -by caching the result of previous compilations and detecting when the \ -same compilation is being done again. Supported languages are C, C\+\+, \ -Objective-C and Objective-C++." -HOMEPAGE = "http://ccache.samba.org" -SECTION = "devel" -LICENSE = "GPLv3+" - -DEPENDS = "zlib" - -SRC_URI = "https://github.com/ccache/ccache/releases/download/v${PV}/${BP}.tar.gz" -UPSTREAM_CHECK_URI = "https://github.com/ccache/ccache/releases/" - -inherit autotools - -# Remove ccache-native's dependencies, so that it can be used widely by -# other native recipes. -DEPENDS_class-native = "" -EXTRA_OECONF_class-native = "--with-bundled-zlib" -INHIBIT_AUTOTOOLS_DEPS_class-native = "1" -PATCHTOOL = "patch" - -BBCLASSEXTEND = "native" - -do_configure_class-native() { - oe_runconf -}
meta/recipes-devtools/ccache/ccache_3.7.9.bb +27 -1
@@ -1,7 +1,33 @@ -require ccache.inc +SUMMARY = "a fast C/C++ compiler cache" +DESCRIPTION = "ccache is a compiler cache. It speeds up recompilation \ +by caching the result of previous compilations and detecting when the \ +same compilation is being done again. Supported languages are C, C\+\+, \ +Objective-C and Objective-C++." +HOMEPAGE = "http://ccache.samba.org" +SECTION = "devel" LICENSE = "GPLv3+" LIC_FILES_CHKSUM = "file://LICENSE.adoc;md5=22d514dbc01fdf9a9784334b6b59417a" +DEPENDS = "zlib" + +SRC_URI = "https://github.com/ccache/ccache/releases/download/v${PV}/${BP}.tar.gz" SRC_URI[md5sum] = "a4a38afc62ed189904357739fd8f3fb8" SRC_URI[sha256sum] = "92838e2133c9e704fdab9ee2608dad86c99021278b9ac47d065aa8ff2ea8ce36" + +UPSTREAM_CHECK_URI = "https://github.com/ccache/ccache/releases/" + +inherit autotools + +# Remove ccache-native's dependencies, so that it can be used widely by +# other native recipes. +DEPENDS_class-native = "" +EXTRA_OECONF_class-native = "--with-bundled-zlib" +INHIBIT_AUTOTOOLS_DEPS_class-native = "1" +PATCHTOOL = "patch" + +BBCLASSEXTEND = "native" + +do_configure_class-native() { + oe_runconf +}
Signature · 1 line
2.26.2
PATCH 3/3 ccache: upgrade 3.7.9 -> 3.7.10
In reply to Andreas Müllerremove SRC_URI[md5sum]
---
.../ccache/{ccache_3.7.9.bb => ccache_3.7.10.bb} | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
rename meta/recipes-devtools/ccache/{ccache_3.7.9.bb => ccache_3.7.10.bb} (86%)meta/recipes-devtools/ccache/ccache_3.7.10.bb renamed from meta/recipes-devtools/ccache/ccache_3.7.9.bb +1 -2
@@ -12,8 +12,7 @@ LIC_FILES_CHKSUM = "file://LICENSE.adoc;md5=22d514dbc01fdf9a9784334b6b59417a" DEPENDS = "zlib" SRC_URI = "https://github.com/ccache/ccache/releases/download/v${PV}/${BP}.tar.gz" -SRC_URI[md5sum] = "a4a38afc62ed189904357739fd8f3fb8" -SRC_URI[sha256sum] = "92838e2133c9e704fdab9ee2608dad86c99021278b9ac47d065aa8ff2ea8ce36" +SRC_URI[sha256sum] = "447ddf21a5f0ffa6b6d26839ae876a6d17d0d7e3533926cdf78ecd11dad793f8" UPSTREAM_CHECK_URI = "https://github.com/ccache/ccache/releases/"
Signature · 1 line
2.26.2
Re: [OE-core] [PATCH 3/3] ccache: upgrade 3.7.9 -> 3.7.10
Hello,
вс, 28 июн. 2020 г. в 16:34, Andreas Müller <[email protected]>:
Quoted 8 lines
remove SRC_URI[md5sum]
Signed-off-by Andreas Müller <[email protected]>--- .../ccache/{ccache_3.7.9.bb => ccache_3.7.10.bb} | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) rename meta/recipes-devtools/ccache/{ccache_3.7.9.bb => ccache_3.7.10.bb} (86%)
This update broke python3 here (see the attached do_compile log). Reverting this patch fixes python compilation.
Signature · 2 lines
With best wishes Dmitry
Re: [OE-core] [PATCH 3/3] ccache: upgrade 3.7.9 -> 3.7.10
Quoted 13 lines · Dmitry Baryshkov
Hello,
вс, 28 июн. 2020 г. в 16:34, Andreas Müller <[email protected]>:
Quoted 8 lines
remove SRC_URI[md5sum]
Signed-off-by Andreas Müller <[email protected]>--- .../ccache/{ccache_3.7.9.bb => ccache_3.7.10.bb} | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) rename meta/recipes-devtools/ccache/{ccache_3.7.9.bb => ccache_3.7.10.bb} (86%)
Quoted 6 lines
This update broke python3 here (see the attached
do_compilelog). Reverting this patch fixes python compilation.--
With best wishes
Dmitry
Will try to reproduce and hope to come up with something helpful
Andreas
A message that is not in the archive (sent off-list or not yet received): [email protected]
Re: [OE-core] [PATCH 3/3] ccache: upgrade 3.7.9 -> 3.7.10
Quoted 18 lines · Andreas Müller via lists.openembedded.org
Quoted 16 lines · Dmitry Baryshkov
Hello,
вс, 28 июн. 2020 г. в 16:34, Andreas Müller <[email protected]>:
Quoted 8 lines
remove SRC_URI[md5sum]
Signed-off-by Andreas Müller <[email protected]>--- .../ccache/{ccache_3.7.9.bb => ccache_3.7.10.bb} | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) rename meta/recipes-devtools/ccache/{ccache_3.7.9.bb => ccache_3.7.10.bb} (86%)This update broke python3 here (see the attached
do_compilelog). Reverting this patch fixes python compilation.
Quoted 6 lines
Quoted 3 lines
--
With best wishes
DmitryWill try to reproduce and hope to come up with something helpful
Andreas
Did not understand why it did not fail during my tests. Looking into some more I found out that I set INHERIT += "ccache" in a build environment that was not active. So in fact this patch went out untested and yes now that ccache is active (not only) python3 fails to build also here.
To make things even worse: From tomorrow on I will be out of reach from all communication services for two weeks - need some outage
Have opened an issue at [1] - maybe there is support.
The only workaround I can offer currently is a revert of this patch - what do others think?
Sorry for inconvenience
Andreas
Re: [OE-core] [PATCH 3/3] ccache: upgrade 3.7.9 -> 3.7.10
Hello,
пт, 3 июл. 2020 г. в 16:18, Andreas Müller <[email protected]>:
Quoted 34 lines
Quoted 18 lines · Andreas Müller via lists.openembedded.org
Quoted 16 lines · Dmitry Baryshkov
Hello,
вс, 28 июн. 2020 г. в 16:34, Andreas Müller <[email protected]>:
Quoted 8 lines
remove SRC_URI[md5sum]
Signed-off-by Andreas Müller <[email protected]>--- .../ccache/{ccache_3.7.9.bb => ccache_3.7.10.bb} | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) rename meta/recipes-devtools/ccache/{ccache_3.7.9.bb => ccache_3.7.10.bb} (86%)This update broke python3 here (see the attached
do_compilelog). Reverting this patch fixes python compilation.Quoted 6 lines
Quoted 3 lines
--
With best wishes
DmitryWill try to reproduce and hope to come up with something helpful
Andreas
Did not understand why it did not fail during my tests. Looking into some more I found out that I set INHERIT += "ccache" in a build environment that was not active. So in fact this patch went out untested and yes now that ccache is active (not only) python3 fails to build also here.
Quoted 4 lines
To make things even worse: From tomorrow on I will be out of reach from all communication services for two weeks - need some outage
Have opened an issue at [1] - maybe there is support.
Link missing:
https://github.com/ccache/ccache/issues/615
Quoted 3 lines
The only workaround I can offer currently is a revert of this patch - what do others think?
I'd suggest reverting the patch for now.
Signature · 2 lines
With best wishes Dmitry
Quoted 4 lines · Andreas Müller
* cacheio was fixed upstream slightly different
* nfsdclnts is a python3 script for printing various nfs client information pack it in ${PN}-stats
* replace leading spaces by tabs in shell tasks
Is there a technical reason for this?
AFAIK http://www.openembedded.org/wiki/Styleguide is still valid. If not the document should be reworked I guess
Quoted 122 lines
* remove SRC_URI[md5sum]
Signed-off-by Andreas Müller <[email protected]>--- ...acheio-use-intmax_t-for-formatted-IO.patch | 38 ------------------- ...{nfs-utils_2.4.3.bb => nfs-utils_2.5.1.bb} | 21 +++++----- 2 files changed, 9 insertions(+), 50 deletions(-)delete mode 100644
meta/recipes-connectivity/nfs-utils/nfs-utils/0001-cacheio-use-intmax_t-for-formatted-IO.patchrename meta/recipes-connectivity/nfs-utils/{nfs-utils_2.4.3.bb => nfs-utils_2.5.1.bb} (86%)meta/recipes-connectivity/nfs-utils/nfs-utils/0001-cacheio-use-intmax_t-for-formatted-IO.patch deleted +0
-38@@ -1,38 +0,0 @@ -From ac32b813f5d6f9a2de944015cf9bb98d68e0203a Mon Sep 17 00:00:00 2001 -From: Khem Raj <[email protected]> -Date: Sat, 1 Dec 2018 10:02:12 -0800 -Subject: [PATCH] cacheio: use intmax_t for formatted IO - -time_t is not same size on x32 ABI (ILP32) - -Upstream-Status: Pending - -Signed-off-by: Khem Raj <[email protected]> ---- - support/nfs/cacheio.c | 3 ++- - 1 file changed, 2 insertions(+), 1 deletion(-) - -diff --git a/support/nfs/cacheio.c b/support/nfs/cacheio.c -index 9dc4cf1..2086a95 100644 ---- a/support/nfs/cacheio.c -+++ b/support/nfs/cacheio.c -@@ -17,6 +17,7 @@ - - #include <nfslib.h> - #include <stdio.h> -+#include <inttypes.h> - #include <stdio_ext.h> - #include <string.h> - #include <ctype.h> -@@ -234,7 +235,7 @@ cache_flush(int force) - stb.st_mtime > now) - stb.st_mtime = time(0); - -- sprintf(stime, "%ld\n", stb.st_mtime); -+ sprintf(stime, "%jd\n", (intmax_t)stb.st_mtime); - for (c=0; cachelist[c]; c++) { - int fd; - sprintf(path, "/proc/net/rpc/%s/flush", cachelist[c]); --- -2.19.2 -meta/recipes-connectivity/nfs-utils/nfs-utils_2.5.1.bb renamed from meta/recipes-connectivity/nfs-utils/nfs-utils_2.4.3.bb +9
-12@@ -28,12 +28,10 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/nfs-utils/${PV}/nfs-utils-${PV}.tar.x file://proc-fs-nfsd.mount \ file://nfs-utils-debianize-start-statd.patch \ file://bugfix-adjust-statd-service-name.patch \ - file://0001-cacheio-use-intmax_t-for-formatted-IO.patch \ file://0001-Makefile.am-fix-undefined-function-for-libnsm.a.patch \ file://clang-warnings.patch \ " -SRC_URI[md5sum] = "06020c76f531ed97f3145514901e0e7c" -SRC_URI[sha256sum] = "af65fce5dd8370cff9ead67baac5a6cd69c376dcadfef264dc2c78c904f26599" +SRC_URI[sha256sum] = "0f1c8170e16a07d9836bbf0836d48d0c842b6f0e0e8b18748f099751851d30c4" # Only kernel-module-nfsd is required here (but can be built-in) - the nfsd module will # pull in the remainder of the dependencies.@@ -91,7 +89,7 @@ RDEPENDS_${PN}-client = "${PN}-mount rpcbind" FILES_${PN}-mount = "${base_sbindir}/*mount.nfs*" -FILES_${PN}-stats = "${sbindir}/mountstats ${sbindir}/nfsiostat" +FILES_${PN}-stats = "${sbindir}/mountstats ${sbindir}/nfsiostat ${sbindir}/nfsdclnts" RDEPENDS_${PN}-stats = "python3-core" FILES_${PN}-staticdev += "${libdir}/libnfsidmap/*.a"@@ -99,8 +97,8 @@ FILES_${PN}-staticdev += "${libdir}/libnfsidmap/*.a" FILES_${PN} += "${systemd_unitdir} ${libdir}/libnfsidmap/" do_configure_prepend() { - sed -i -e 's,sbindir = /sbin,sbindir = ${base_sbindir},g' \ - ${S}/utils/mount/Makefile.am + sed -i -e 's,sbindir = /sbin,sbindir = ${base_sbindir},g' \ + ${S}/utils/mount/Makefile.am } # Make clean needed because the package comes with@@ -129,9 +127,9 @@ do_install_append () { -e 's,@HIGH_RLIMIT_NOFILE@,${HIGH_RLIMIT_NOFILE},g' \ ${D}${systemd_unitdir}/system/*.service if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then - install -m 0644 ${WORKDIR}/proc-fs-nfsd.mount ${D}${systemd_unitdir}/system/ - install -d ${D}${systemd_unitdir}/system/sysinit.target.wants/ - ln -sf ../proc-fs-nfsd.mount ${D}${systemd_unitdir}/system/sysinit.target.wants/proc-fs-nfsd.mount + install -m 0644 ${WORKDIR}/proc-fs-nfsd.mount ${D}${systemd_unitdir}/system/ + install -d ${D}${systemd_unitdir}/system/sysinit.target.wants/ + ln -sf ../proc-fs-nfsd.mount ${D}${systemd_unitdir}/system/sysinit.target.wants/proc-fs-nfsd.mount fi # kernel code as of 3.8 hard-codes this path as a default@@ -141,7 +139,6 @@ do_install_append () { chown -R rpcuser:rpcuser ${D}${localstatedir}/lib/nfs/statd chmod 0644 ${D}${localstatedir}/lib/nfs/statd/state - # Make python tools use python 3 - sed -i -e '1s,#!.*python.*,#!${bindir}/python3,' ${D}${sbindir}/mountstats ${D}${sbindir}/nfsiostat - + # Make python tools use python 3 + sed -i -e '1s,#!.*python.*,#!${bindir}/python3,' ${D}${sbindir}/mountstats ${D}${sbindir}/nfsiostat }
Quoted 10 lines · Konrad Weihmann
Quoted 4 lines · Andreas Müller
* cacheio was fixed upstream slightly different
* nfsdclnts is a python3 script for printing various nfs client information pack it in ${PN}-stats
* replace leading spaces by tabs in shell tasksIs there a technical reason for this?
AFAIK http://www.openembedded.org/wiki/Styleguide is still valid. If not the document should be reworked I guess
There have been some discussions on this from time to time but as far as I can remember in oe-core 4 spaces for everything except shell code - there it is tabs. Don't know the document for that.
Andreas