mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
Pull in:
pseudo_util.c: Open file with O_CLOEXEC to avoid fd leak
Use close-on-exec (O_CLOEXEC) flag when open log file to
make sure its file descriptor is not leaked to parent
process on fork/exec.
Fixes [YOCTO #13311]
(From OE-Core rev: b8445072f4009b3e912792931bd71a4201d541e9)
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
30 lines
1.3 KiB
BlitzBasic
30 lines
1.3 KiB
BlitzBasic
require pseudo.inc
|
|
|
|
SRC_URI = "git://git.yoctoproject.org/pseudo;branch=master \
|
|
file://0001-configure-Prune-PIE-flags.patch \
|
|
file://glibc238.patch \
|
|
file://fallback-passwd \
|
|
file://fallback-group \
|
|
"
|
|
SRC_URI:append:class-native = " \
|
|
http://downloads.yoctoproject.org/mirror/sources/pseudo-prebuilt-2.33.tar.xz;subdir=git/prebuilt;name=prebuilt \
|
|
file://older-glibc-symbols.patch"
|
|
SRC_URI:append:class-nativesdk = " \
|
|
http://downloads.yoctoproject.org/mirror/sources/pseudo-prebuilt-2.33.tar.xz;subdir=git/prebuilt;name=prebuilt \
|
|
file://older-glibc-symbols.patch"
|
|
SRC_URI[prebuilt.sha256sum] = "ed9f456856e9d86359f169f46a70ad7be4190d6040282b84c8d97b99072485aa"
|
|
|
|
SRCREV = "ec6151a2b057109b3f798f151a36690af582e166"
|
|
S = "${WORKDIR}/git"
|
|
PV = "1.9.0+git${SRCPV}"
|
|
|
|
# largefile and 64bit time_t support adds these macros via compiler flags globally
|
|
# remove them for pseudo since pseudo intercepts some of the functions which will be
|
|
# aliased due to this e.g. open/open64 and it will complain about duplicate definitions
|
|
# pseudo on 32bit systems is not much of use anyway and these features are not of much
|
|
# use for it.
|
|
TARGET_CPPFLAGS:remove = "-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
|
|
|
|
# error: use of undeclared identifier '_STAT_VER'
|
|
COMPATIBLE_HOST:libc-musl = 'null'
|