From 1bbc547a5ed545c1067e6b108877c6acc34437b6 Mon Sep 17 00:00:00 2001 From: Robert Yang Date: Tue, 24 Dec 2019 15:21:09 +0800 Subject: pseudo: Make realpath() remove trailing slashes Linux system's realpath() remove trailing slashes, but pseudo's doesn't, need make them identical. E.g., the following code (rel.c) prints '/tmp' with system's realpath, but pseudo's realpath prints '/tmp/': #include #include #include int main() { char out[PATH_MAX]; printf("%s\n", realpath("/tmp/", out)); return 0; } $ bitbake base-passwd -cdevshell # For pseudo env $ gcc rel.c $ ./a.out /tmp/ (but should be /tmp) This patch fixes the problem. (From OE-Core rev: 319bbf66e03377adf2db7efa93ef578e3460eb38) Signed-off-by: Robert Yang Signed-off-by: Richard Purdie --- meta/recipes-devtools/pseudo/pseudo_git.bb | 1 + 1 file changed, 1 insertion(+) (limited to 'meta/recipes-devtools/pseudo/pseudo_git.bb') diff --git a/meta/recipes-devtools/pseudo/pseudo_git.bb b/meta/recipes-devtools/pseudo/pseudo_git.bb index 1f2df4a427..7c75293ef1 100644 --- a/meta/recipes-devtools/pseudo/pseudo_git.bb +++ b/meta/recipes-devtools/pseudo/pseudo_git.bb @@ -8,6 +8,7 @@ SRC_URI = "git://git.yoctoproject.org/pseudo \ file://toomanyfiles.patch \ file://0001-maketables-wrappers-use-Python-3.patch \ file://0001-Add-statx.patch \ + file://0001-realpath.c-Remove-trailing-slashes.patch \ " SRCREV = "060058bb29f70b244e685b3c704eb0641b736f73" -- cgit v1.2.3-54-g00ecf