mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-10-21 20:19:33 +00:00
Release notes: https://github.com/wolfcw/libfaketime/blob/v0.9.13/NEWS Drop 0001-Add-const-qualifiers-to-fix-build-with-ISO-C23.patch, it is merged upstream via PR #525. Add a patch to fix the build with clang 23, which added -Wunused-but-set-global and turns the -Werror in src/Makefile into: libfaketime.c:340:23: error: variable 'real_lstat' set but not used [-Werror,-Wunused-but-set-global] ftpl_init() resolves every real_* pointer up front by design, so the ones whose wrappers are not compiled on Linux/glibc end up written and never read. Annotate those with __attribute__((unused)) rather than adding -Wno-error=unused-but-set-global to CFLAGS, since the Makefile has no flag-probing and older clang rejects the unknown warning group under the same -Werror. Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
31 lines
871 B
BlitzBasic
31 lines
871 B
BlitzBasic
DESCRIPTION = "A library for faking the system time in user-space programs"
|
|
SECTION = "libs"
|
|
LICENSE = "GPL-2.0-only"
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
|
|
|
|
SRCREV = "86b37fde2fed7336ea2d0c17928e3015a55d9b4a"
|
|
|
|
SRC_URI = "git://github.com/wolfcw/libfaketime.git;branch=master;tag=v${PV};protocol=https \
|
|
file://0001-Mark-write-only-real_-pointers-as-unused.patch \
|
|
"
|
|
|
|
CFLAGS:append:libc-musl = " -D_LARGEFILE64_SOURCE"
|
|
|
|
do_configure[noexec] = "1"
|
|
|
|
do_compile () {
|
|
oe_runmake
|
|
}
|
|
|
|
do_install () {
|
|
install -d ${D}${libdir}/faketime
|
|
oe_libinstall -C src libfaketime ${D}${libdir}/faketime
|
|
install -d ${D}${bindir}
|
|
install -m 0755 src/faketime ${D}${bindir}
|
|
}
|
|
|
|
FILES:${PN} = "${bindir}/faketime ${libdir}/faketime/lib*${SOLIBS}"
|
|
FILES:${PN}-dev += "${libdir}/faketime/lib*${SOLIBSDEV}"
|
|
|
|
BBCLASSEXTEND = "native"
|