mirror of
https://git.yoctoproject.org/poky
synced 2026-02-11 11:13:04 +01:00
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 <stdio.h>
#include <limits.h>
#include <stdlib.h>
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: c251e753486dae9b460df315a6d19d6c81098ecb)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 319bbf66e03377adf2db7efa93ef578e3460eb38)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
20 lines
641 B
BlitzBasic
20 lines
641 B
BlitzBasic
require pseudo.inc
|
|
|
|
SRC_URI = "git://git.yoctoproject.org/pseudo \
|
|
file://0001-configure-Prune-PIE-flags.patch \
|
|
file://fallback-passwd \
|
|
file://fallback-group \
|
|
file://moreretries.patch \
|
|
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"
|
|
S = "${WORKDIR}/git"
|
|
PV = "1.9.0+git${SRCPV}"
|
|
|
|
# error: use of undeclared identifier '_STAT_VER'
|
|
COMPATIBLE_HOST_libc-musl = 'null'
|