diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-11-07 13:31:53 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-11-07 13:31:53 +0000 |
| commit | 8c22ff0d8b70d9b12f0487ef696a7e915b9e3173 (patch) | |
| tree | efdc32587159d0050a69009bdf2330a531727d95 /meta/recipes-core/sysfsutils | |
| parent | d412d2747595c1cc4a5e3ca975e3adc31b2f7891 (diff) | |
| download | poky-8c22ff0d8b70d9b12f0487ef696a7e915b9e3173.tar.gz | |
The poky repository master branch is no longer being updated.
You can either:
a) switch to individual clones of bitbake, openembedded-core, meta-yocto and yocto-docs
b) use the new bitbake-setup
You can find information about either approach in our documentation:
https://docs.yoctoproject.org/
Note that "poky" the distro setting is still available in meta-yocto as
before and we continue to use and maintain that.
Long live Poky!
Some further information on the background of this change can be found
in: https://lists.openembedded.org/g/openembedded-architecture/message/2179
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/sysfsutils')
| -rw-r--r-- | meta/recipes-core/sysfsutils/files/0001-Modify-my_strncat-function.patch | 34 | ||||
| -rw-r--r-- | meta/recipes-core/sysfsutils/sysfsutils_2.1.1.bb | 21 |
2 files changed, 0 insertions, 55 deletions
diff --git a/meta/recipes-core/sysfsutils/files/0001-Modify-my_strncat-function.patch b/meta/recipes-core/sysfsutils/files/0001-Modify-my_strncat-function.patch deleted file mode 100644 index a8a49a80cd..0000000000 --- a/meta/recipes-core/sysfsutils/files/0001-Modify-my_strncat-function.patch +++ /dev/null | |||
| @@ -1,34 +0,0 @@ | |||
| 1 | From a13fc5a57ea7c6b1761bc204cb79d8ce4745f57a Mon Sep 17 00:00:00 2001 | ||
| 2 | From: songliang <YS.songliang@h3c.com> | ||
| 3 | Date: Wed, 4 Jun 2025 15:58:53 +0800 | ||
| 4 | Subject: [PATCH] Modify "my_strncat" function | ||
| 5 | |||
| 6 | The meaning of the "len" parameter in the my_strncat function is the size limit for copying characters from "from", not the size limit for "to" after copying. | ||
| 7 | Also, the "#define safestrcat(to, from) my_strncat(to, from, sizeof(to) - strlen(to) - 1)" has already imposed a limit on max based on the size of "to". | ||
| 8 | Modify the function to prevent truncation of content when too many bytes are passed to the my_strcat function. | ||
| 9 | |||
| 10 | Upstream-Status: Submitted [https://github.com/linux-ras/sysfsutils/pull/30/commits/c2326946c0c2a4206c9b079a9fe25f7f9115295c] | ||
| 11 | Signed-off-by: songliang <YS.songliang@h3c.com> | ||
| 12 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
| 13 | --- | ||
| 14 | lib/sysfs_utils.c | 4 ++-- | ||
| 15 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
| 16 | |||
| 17 | diff --git a/lib/sysfs_utils.c b/lib/sysfs_utils.c | ||
| 18 | index 46e0849..c0176d1 100644 | ||
| 19 | --- a/lib/sysfs_utils.c | ||
| 20 | +++ b/lib/sysfs_utils.c | ||
| 21 | @@ -375,8 +375,8 @@ char *my_strncat(char *to, const char *from, size_t max) | ||
| 22 | { | ||
| 23 | size_t i = 0; | ||
| 24 | |||
| 25 | - while (i < max && to[i] != '\0') | ||
| 26 | + while (to[i] != '\0') | ||
| 27 | i++; | ||
| 28 | - my_strncpy(to+i, from, max-i); | ||
| 29 | + my_strncpy(to+i, from, max); | ||
| 30 | return to; | ||
| 31 | } | ||
| 32 | -- | ||
| 33 | 2.34.1 | ||
| 34 | |||
diff --git a/meta/recipes-core/sysfsutils/sysfsutils_2.1.1.bb b/meta/recipes-core/sysfsutils/sysfsutils_2.1.1.bb deleted file mode 100644 index 5040d8864e..0000000000 --- a/meta/recipes-core/sysfsutils/sysfsutils_2.1.1.bb +++ /dev/null | |||
| @@ -1,21 +0,0 @@ | |||
| 1 | SUMMARY = "Tools for working with sysfs" | ||
| 2 | DESCRIPTION = "Tools for working with the sysfs virtual filesystem. The tool 'systool' can query devices by bus, class and topology." | ||
| 3 | HOMEPAGE = "http://linux-diag.sourceforge.net/Sysfsutils.html" | ||
| 4 | |||
| 5 | LICENSE = "GPL-2.0-only & LGPL-2.1-only" | ||
| 6 | LICENSE:${PN} = "GPL-2.0-only" | ||
| 7 | LICENSE:libsysfs = "LGPL-2.1-only" | ||
| 8 | LIC_FILES_CHKSUM = "file://COPYING;md5=dcc19fa9307a50017fca61423a7d9754 \ | ||
| 9 | file://cmd/GPL;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | ||
| 10 | file://lib/LGPL;md5=4fbd65380cdd255951079008b364516c" | ||
| 11 | |||
| 12 | SRC_URI = "git://github.com/linux-ras/sysfsutils.git;protocol=https;branch=master \ | ||
| 13 | file://0001-Modify-my_strncat-function.patch \ | ||
| 14 | " | ||
| 15 | |||
| 16 | SRCREV = "da2f1f8500c0af6663a56ce2bff07f67e60a92e0" | ||
| 17 | |||
| 18 | inherit autotools | ||
| 19 | |||
| 20 | PACKAGES =+ "libsysfs" | ||
| 21 | FILES:libsysfs = "${libdir}/lib*${SOLIBS}" | ||
