From patchwork Fri Aug 18 10:52:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tymoteusz Burak X-Patchwork-Id: 29116 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id E202BC001DE for ; Fri, 18 Aug 2023 10:52:41 +0000 (UTC) Received: from 11.mo583.mail-out.ovh.net (11.mo583.mail-out.ovh.net [46.105.47.167]) by mx.groups.io with SMTP id smtpd.web11.8640.1692355952309740552 for ; Fri, 18 Aug 2023 03:52:32 -0700 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=softfail (domain: 3mdeb.com, ip: 46.105.47.167, mailfrom: tymoteusz.burak@3mdeb.com) Received: from director10.ghost.mail-out.ovh.net (unknown [10.109.143.216]) by mo583.mail-out.ovh.net (Postfix) with ESMTP id 25B4B249FA for ; Fri, 18 Aug 2023 10:52:29 +0000 (UTC) Received: from ghost-submission-6684bf9d7b-prlcp (unknown [10.110.115.102]) by director10.ghost.mail-out.ovh.net (Postfix) with ESMTPS id 67C971FEB0; Fri, 18 Aug 2023 10:52:29 +0000 (UTC) Received: from 3mdeb.com ([37.59.142.95]) by ghost-submission-6684bf9d7b-prlcp with ESMTPSA id 9rbSCG1N32TMggAA4dmeJw (envelope-from ); Fri, 18 Aug 2023 10:52:29 +0000 Authentication-Results: garm.ovh; auth=pass (GARM-95G0012909af33-726e-4dc4-87d6-9905a81fecb2, 93BD7409364DBD10EE1484F369572579063D6806) smtp.auth=tymoteusz.burak@3mdeb.com X-OVh-ClientIp: 213.192.77.249 From: Tymoteusz Burak To: openembedded-devel@lists.openembedded.org Cc: piotr.krol@3mdeb.com, tomasz.zyjewski@3mdeb.com Subject: [meta-oe][PATCH v2] libfaketime: add recipe Date: Fri, 18 Aug 2023 12:52:12 +0200 Message-ID: <20230818105212.34481-1-tymoteusz.burak@3mdeb.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Ovh-Tracer-Id: 5579115514386370713 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedviedruddufedgfeegucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpefhvfevufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefvhihmohhtvghushiiuceuuhhrrghkuceothihmhhothgvuhhsiidrsghurhgrkhesfehmuggvsgdrtghomheqnecuggftrfgrthhtvghrnhepjeegleduhfduhfefueeileetudeuffeutdekffduheevhedugeetteethfelteefnecuffhomhgrihhnpehgihhthhhusgdrtghomhenucfkphepuddvjedrtddrtddruddpvddufedrudelvddrjeejrddvgeelpdefjedrheelrddugedvrdelheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduvdejrddtrddtrddupdhmrghilhhfrhhomhepoehthihmohhtvghushiirdgsuhhrrghkseefmhguvggsrdgtohhmqedpnhgspghrtghpthhtohepuddprhgtphhtthhopehophgvnhgvmhgsvgguuggvugdquggvvhgvlheslhhishhtshdrohhpvghnvghmsggvugguvggurdhorhhgpdfovfetjfhoshhtpehmohehkeefpdhmohguvgepshhmthhpohhuth List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Fri, 18 Aug 2023 10:52:41 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/104485 This commit adds the libfaketime library recipe, which provides time manipulation capabilities for testing and debugging purposes. libfaketime allows developers to modify the system time reported to applications, aiding in scenarios where accurate time emulation is required. GitHub Repository: https://github.com/wolfcw/libfaketime Signed-off-by: Tymoteusz Burak --- .../libfaketime/libfaketime_0.9.10.bb | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 meta-oe/recipes-test/libfaketime/libfaketime_0.9.10.bb diff --git a/meta-oe/recipes-test/libfaketime/libfaketime_0.9.10.bb b/meta-oe/recipes-test/libfaketime/libfaketime_0.9.10.bb new file mode 100644 index 000000000000..f26e5b0db872 --- /dev/null +++ b/meta-oe/recipes-test/libfaketime/libfaketime_0.9.10.bb @@ -0,0 +1,34 @@ +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 = "d475b925943ad404c6c728ac868dc73949e7281c" +SRC_URI = "\ + git://git@github.com/wolfcw/libfaketime.git;branch=master;protocol=https \ + " + +S = "${WORKDIR}/git" + +EXTRA_OEMAKE += "\ + EXTRA_FLAGS='-Wno-error=nonnull-compare' \ + " + +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} +} + +PACKAGES =+ "lib${PN}" + +FILES:${PN} = "${bindir}/faketime" +FILES:lib${PN} = "${libdir}/faketime/*" + +INSANE_SKIP:${PN} += "dev-so" +INSANE_SKIP:lib${PN} += "dev-so"