From patchwork Thu Mar 30 13:43:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?QsO2c3rDtnJtw6lueWkgWm9sdMOhbg==?= X-Patchwork-Id: 21929 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 D6663C6FD1D for ; Thu, 30 Mar 2023 13:43:11 +0000 (UTC) Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com [209.85.208.43]) by mx.groups.io with SMTP id smtpd.web11.25631.1680183789509050618 for ; Thu, 30 Mar 2023 06:43:09 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=SF1E2Nww; spf=pass (domain: gmail.com, ip: 209.85.208.43, mailfrom: zboszor@gmail.com) Received: by mail-ed1-f43.google.com with SMTP id b20so76695195edd.1 for ; Thu, 30 Mar 2023 06:43:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680183788; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=uaYuOwk8z4FBd1owt8raRQgk0ZjVTY8obW9ZKSRFYuA=; b=SF1E2Nwwa0iwM9+Q1IH8qBtHg6nguvOmdP7LJi3SdOfFJX4JqFmgj8ZzilnbrO0bX2 e7nKhR9n+hcMH/+/ledBXTyYhDXqgKlrdhtEOq6up0+h+U75LURuzwTArLnefB6br+rS B85skllIl1B3TlXHYFRVQjhpeVFlS2ZnW/NbB6ZofQnqlrhEQFbKVIOBYqL08mSmXY+a NPgm/rqVNB3wVYSUPWcJdOyvhBzu41TZHO737J/UrcYu5FAWdCLGgEL6Diat8w7v9psr GmJHR3derG9XqRFClnw/Y7LwJI9/9nzO15irQsCbVEo+iq0ylSfVHMcFzHQksicjiQ+8 BT7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680183788; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=uaYuOwk8z4FBd1owt8raRQgk0ZjVTY8obW9ZKSRFYuA=; b=Yyz8Mab5ZvGIiJ9D/URabaf+8EH2AIJZrNB/8L1ue3S5GQvZ6MhOF23BRHYzaXECBf VUYMCOh/dqrb9XxRe2nvdv9SnbtuzH11Paa/yuOs181nJ7yUbilS5kyygBbZV/CZKb2S x/CSwMSGqJWaxeAsgaGfOeiAFsADbHxEwAuzXbsCNHuzzVDLzfO6AKRLcbQclX+XMwx+ RGFhVCSUm6BW9azdu6wSATHiqtVlfOt5dP0qJUYbmYORzRUck9aNZB9jo3UkNzc/Nmb9 zr9hfZf1U6OMJYJ0oaLagFVZ6vDwmL5yxixDEwD8nfiv0LnSn6bA2Mr1I+g+okPAuOVZ VN3w== X-Gm-Message-State: AAQBX9dkZVPNPZ7oceePKJ3tVrhseaGw0v+18F7Z+5GdaLA7pIhqDI/l 2fD9h/vo6s8OVdIORlwb1hD8kuLghAQ= X-Google-Smtp-Source: AKy350Y5EPMIwshAg8zZMJZXlRId4UbVdDYCHPQk0QCGodtMx1gGu9OhSF0JsYUk6uETYDe8uEE+Ow== X-Received: by 2002:a17:906:a399:b0:930:9385:ce51 with SMTP id k25-20020a170906a39900b009309385ce51mr23591248ejz.68.1680183787430; Thu, 30 Mar 2023 06:43:07 -0700 (PDT) Received: from localhost.lan (dsl51B7D2F9.fixip.t-online.hu. [81.183.210.249]) by smtp.gmail.com with ESMTPSA id h5-20020a50c385000000b004f9e6495f94sm18388784edf.50.2023.03.30.06.43.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Mar 2023 06:43:07 -0700 (PDT) From: =?utf-8?b?Wm9sdMOhbiBCw7ZzesO2cm3DqW55aQ==?= To: openembedded-devel@lists.openembedded.org Cc: =?utf-8?b?Wm9sdMOhbiBCw7ZzesO2cm3DqW55aQ==?= Subject: [meta-oe][PATCH 1/3] libgusb: Allow building in native mode Date: Thu, 30 Mar 2023 15:43:00 +0200 Message-Id: <20230330134302.2789448-1-zboszor@gmail.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 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 ; Thu, 30 Mar 2023 13:43:11 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/101835 Dependency of libfprint-native. Signed-off-by: Zoltán Böszörményi --- meta-oe/recipes-support/libgusb/libgusb_0.3.10.bb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/meta-oe/recipes-support/libgusb/libgusb_0.3.10.bb b/meta-oe/recipes-support/libgusb/libgusb_0.3.10.bb index c208a2090..491b6a7a1 100644 --- a/meta-oe/recipes-support/libgusb/libgusb_0.3.10.bb +++ b/meta-oe/recipes-support/libgusb/libgusb_0.3.10.bb @@ -6,9 +6,13 @@ DEPENDS = "glib-2.0 libusb" inherit meson gobject-introspection gtk-doc gettext vala -PACKAGECONFIG ??= "${@bb.utils.contains('GI_DATA_ENABLED', 'True', 'vapi', '', d)}" +PACKAGECONFIG:class-target ??= "${@bb.utils.contains('GI_DATA_ENABLED', 'True', 'vapi', '', d)}" PACKAGECONFIG[vapi] = "-Dvapi=true,-Dvapi=false" +EXTRA_OEMESON:append:class-native = " -Dtests=false -Dintrospection=false" + SRC_URI = "git://github.com/hughsie/libgusb.git;branch=main;protocol=https" SRCREV = "332d5b987ffecb824426e88518e05547faf2b520" S = "${WORKDIR}/git" + +BBCLASSEXTEND = "native" From patchwork Thu Mar 30 13:43:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?QsO2c3rDtnJtw6lueWkgWm9sdMOhbg==?= X-Patchwork-Id: 21931 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 0B932C761A6 for ; Thu, 30 Mar 2023 13:43:12 +0000 (UTC) Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com [209.85.208.48]) by mx.groups.io with SMTP id smtpd.web10.25394.1680183789699777157 for ; Thu, 30 Mar 2023 06:43:10 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ZKx1FLCJ; spf=pass (domain: gmail.com, ip: 209.85.208.48, mailfrom: zboszor@gmail.com) Received: by mail-ed1-f48.google.com with SMTP id w9so76704895edc.3 for ; Thu, 30 Mar 2023 06:43:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680183788; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=SzEa3Q9P4C1nywTMhvm3aalUBSHi9aYRK4DG5gTzLjk=; b=ZKx1FLCJYFj+IShyc6+VgzJ/1cBDX2FPRu6KRTtlAT8fAc7EzQqacIbM+9aea3AmAV Q03kmgBCUYs78LV3SOhuPfmfhkXGXZ5MjYOV2RnOL50lcisQn3uC5cfxuc8XZQf00fqh zOvbLDKC7k0e5r2y+BUkPKzkOqBeHUvfne5gfCy/JoycPBcIoppHA8Vw0AWILJtsKTRy iOUAcEXk+RzRLfvNpvWZIili3eX0afbZsGFK4Nt5qFTj/pbe0o9+YbVTgr2AmlrskIcS eOfo//cRM1iIVM/tOc0EoPvmI6gs4cmr+xwh34+0sylCAHEt5jwnDh45NigE4yLRFLSj PA0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680183788; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SzEa3Q9P4C1nywTMhvm3aalUBSHi9aYRK4DG5gTzLjk=; b=OouthPAL5G9AM15vOjhZgqf3mv1OtI7lTfnqzEvpgB+pjXegGRa6j0pz/0yxu50ryK Uha+Lspe+100IJUxgS7BitgMOdmaj3Yv5IzJvUsB3LRBh3OjFJg6tjC6NZdH97GH69Wu CuW7EnBBUxj+vLiP+FFRTe4eoeLaV0SWyFWHkyYzq+qNV3QiS+ZXZmnDUV0mmE8qOwZd jfJINUYsAUrzoPg+Bq6kjCmTlC+eoIucb6ocejCPCVGbIE4uE7d4gG4fKOMAAwzgFtHb J3+6QOSlIz3g3YqDG86ltNzT+kUgcKyoRSfwEfAE7ptY2NgDrx5/PpjEwdvnoY23H4nv kZmQ== X-Gm-Message-State: AAQBX9fk2Dasu6xgFAZtMkGbHuk2NNDVFj4IEEMdXE0RLKPcO1JjkpBx TWldMqbp+gPj4P346qYUL0ggsAlYjPc= X-Google-Smtp-Source: AKy350Y4GyebxLsqsCG/Gv6qyWI23qyudNsvYvh3+BJ/ZcFE8QQWsyCxZ5/3AF6WWs6FuzoFkG0xag== X-Received: by 2002:aa7:d3d4:0:b0:4fd:215e:b691 with SMTP id o20-20020aa7d3d4000000b004fd215eb691mr22418581edr.4.1680183787973; Thu, 30 Mar 2023 06:43:07 -0700 (PDT) Received: from localhost.lan (dsl51B7D2F9.fixip.t-online.hu. [81.183.210.249]) by smtp.gmail.com with ESMTPSA id h5-20020a50c385000000b004f9e6495f94sm18388784edf.50.2023.03.30.06.43.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Mar 2023 06:43:07 -0700 (PDT) From: =?utf-8?b?Wm9sdMOhbiBCw7ZzesO2cm3DqW55aQ==?= To: openembedded-devel@lists.openembedded.org Cc: =?utf-8?b?Wm9sdMOhbiBCw7ZzesO2cm3DqW55aQ==?= Subject: [meta-oe][PATCH 2/3] libfprint: New recipe Date: Thu, 30 Mar 2023 15:43:01 +0200 Message-Id: <20230330134302.2789448-2-zboszor@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230330134302.2789448-1-zboszor@gmail.com> References: <20230330134302.2789448-1-zboszor@gmail.com> MIME-Version: 1.0 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 ; Thu, 30 Mar 2023 13:43:12 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/101836 libfprint is the library used by fprintd. Signed-off-by: Zoltán Böszörményi --- ...001-Optionally-use-native-generators.patch | 111 ++++++++++++++++++ .../0002-Make-building-tests-optional.patch | 47 ++++++++ .../libfprint/libfprint_1.94.5.bb | 45 +++++++ 3 files changed, 203 insertions(+) create mode 100644 meta-oe/recipes-support/libfprint/libfprint/0001-Optionally-use-native-generators.patch create mode 100644 meta-oe/recipes-support/libfprint/libfprint/0002-Make-building-tests-optional.patch create mode 100644 meta-oe/recipes-support/libfprint/libfprint_1.94.5.bb diff --git a/meta-oe/recipes-support/libfprint/libfprint/0001-Optionally-use-native-generators.patch b/meta-oe/recipes-support/libfprint/libfprint/0001-Optionally-use-native-generators.patch new file mode 100644 index 000000000..779d78c28 --- /dev/null +++ b/meta-oe/recipes-support/libfprint/libfprint/0001-Optionally-use-native-generators.patch @@ -0,0 +1,111 @@ +From 4f0f84448dbc46c18d2700ddb45acdee67687574 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Zolt=C3=A1n=20B=C3=B6sz=C3=B6rm=C3=A9nyi?= + +Date: Thu, 30 Mar 2023 09:45:31 +0200 +Subject: [PATCH 1/2] Optionally use native generators +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +fprint-list-udev-hwdb and fprint-list-udev-rules are run +during the build to generate autosuspend.hwdb and 70-*.rules, +respectively. + +Since they are not marked as "native: true", a cross-compiled +version is not possible. + +Since these binaries are linked with the libfprint_drivers target, +marking them as native binaries would also need libfprint_drivers +to be duplicated as a native version and possibly other library +targets, too. + +Instead, make it the responsibility of the cross-compiler +framework to build the native variant separately and allow +the external binaries to be passed in. + +Upstream-Status: Submitted + +Signed-off-by: Zoltán Böszörményi +--- + libfprint/meson.build | 30 ++++++++++++++++++++---------- + meson_options.txt | 8 ++++++++ + 2 files changed, 28 insertions(+), 10 deletions(-) + +diff --git a/libfprint/meson.build b/libfprint/meson.build +index d3c8b03..2a4de67 100644 +--- a/libfprint/meson.build ++++ b/libfprint/meson.build +@@ -301,11 +301,16 @@ libfprint_private_dep = declare_dependency( + ] + ) + +-udev_hwdb = executable('fprint-list-udev-hwdb', +- 'fprint-list-udev-hwdb.c', +- dependencies: libfprint_private_dep, +- link_with: libfprint_drivers, +- install: false) ++udev_hwdb_cmd = get_option('udev_hwdb_cmd') ++if udev_hwdb_cmd == '' ++ udev_hwdb = executable('fprint-list-udev-hwdb', ++ 'fprint-list-udev-hwdb.c', ++ dependencies: libfprint_private_dep, ++ link_with: libfprint_drivers, ++ install: false) ++else ++ udev_hwdb = find_program(udev_hwdb_cmd) ++endif + + udev_hwdb_generator = custom_target('udev-hwdb', + output: 'autosuspend.hwdb', +@@ -315,12 +320,17 @@ udev_hwdb_generator = custom_target('udev-hwdb', + install: false, + ) + ++udev_rules_cmd = get_option('udev_rules_cmd') + if install_udev_rules +- udev_rules = executable('fprint-list-udev-rules', +- 'fprint-list-udev-rules.c', +- dependencies: libfprint_private_dep, +- link_with: libfprint_drivers, +- install: false) ++ if udev_rules_cmd == '' ++ udev_rules = executable('fprint-list-udev-rules', ++ 'fprint-list-udev-rules.c', ++ dependencies: libfprint_private_dep, ++ link_with: libfprint_drivers, ++ install: false) ++ else ++ udev_rules = find_program(udev_rules_cmd) ++ endif + + custom_target('udev-rules', + output: '70-@0@.rules'.format(versioned_libname), +diff --git a/meson_options.txt b/meson_options.txt +index f9b801f..a6f0c4d 100644 +--- a/meson_options.txt ++++ b/meson_options.txt +@@ -14,6 +14,10 @@ option('udev_rules_dir', + description: 'Installation path for udev rules', + type: 'string', + value: 'auto') ++option('udev_rules_cmd', ++ description : 'Optional path for native build of fprint-list-udev-rules', ++ type : 'string', ++ value : '') + option('udev_hwdb', + description: 'Whether to create a udev hwdb for autosuspend (included in systemd v248 and later)', + type: 'feature', +@@ -22,6 +26,10 @@ option('udev_hwdb_dir', + description: 'Installation path for udev hwdb', + type: 'string', + value: 'auto') ++option('udev_hwdb_cmd', ++ description : 'Optional path for native build of fprint-list-udev-hwdb', ++ type : 'string', ++ value : '') + option('gtk-examples', + description: 'Whether to build GTK+ example applications', + type: 'boolean', +-- +2.39.2 + diff --git a/meta-oe/recipes-support/libfprint/libfprint/0002-Make-building-tests-optional.patch b/meta-oe/recipes-support/libfprint/libfprint/0002-Make-building-tests-optional.patch new file mode 100644 index 000000000..c83ea95e1 --- /dev/null +++ b/meta-oe/recipes-support/libfprint/libfprint/0002-Make-building-tests-optional.patch @@ -0,0 +1,47 @@ +From 8e27d45a7747c9aaf8e619f2de3ad3eae9659da8 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Zolt=C3=A1n=20B=C3=B6sz=C3=B6rm=C3=A9nyi?= + +Date: Thu, 30 Mar 2023 09:57:35 +0200 +Subject: [PATCH 2/2] Make building tests optional +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Upstream-Status: Submitted + +Signed-off-by: Zoltán Böszörményi +--- + meson.build | 4 +++- + meson_options.txt | 4 ++++ + 2 files changed, 7 insertions(+), 1 deletion(-) + +diff --git a/meson.build b/meson.build +index 1badb16..05edb8d 100644 +--- a/meson.build ++++ b/meson.build +@@ -309,7 +309,9 @@ if get_option('gtk-examples') + endif + + subdir('data') +-subdir('tests') ++if get_option('tests') ++ subdir('tests') ++endif + + pkgconfig = import('pkgconfig') + pkgconfig.generate( +diff --git a/meson_options.txt b/meson_options.txt +index a6f0c4d..175710d 100644 +--- a/meson_options.txt ++++ b/meson_options.txt +@@ -38,3 +38,7 @@ option('doc', + description: 'Whether to build the API documentation', + type: 'boolean', + value: true) ++option('tests', ++ description: 'Whether to build the tests', ++ type: 'boolean', ++ value: true) +-- +2.39.2 + diff --git a/meta-oe/recipes-support/libfprint/libfprint_1.94.5.bb b/meta-oe/recipes-support/libfprint/libfprint_1.94.5.bb new file mode 100644 index 000000000..b0133409a --- /dev/null +++ b/meta-oe/recipes-support/libfprint/libfprint_1.94.5.bb @@ -0,0 +1,45 @@ +SUMMARY = "Library for fingerprint readers" +DESCRIPTION = "libfprint is an open source software library \ +designed to make it easy for application developers to add \ +support for consumer fingerprint readers to their software." +HOMEPAGE = "https://www.freedesktop.org/wiki/Software/fprint/libfprint/" + +DEPENDS = "glib-2.0 libgusb udev libgudev nspr nss pixman cairo" + +DEPENDS:append:class-target = " libfprint-native " + +LICENSE = "LGPL-2.1-only" +LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24" + +#PR = "r1" + +SRCREV = "86961a9429d589c387da37351fd6b4ff3caf67ea" + +SRC_URI = " \ + git://anongit.freedesktop.org/git/libfprint/libfprint.git;branch=master;protocol=https \ + file://0001-Optionally-use-native-generators.patch \ + file://0002-Make-building-tests-optional.patch \ +" + +S = "${WORKDIR}/git" + +inherit meson pkgconfig useradd python3native gobject-introspection + +EXTRA_OEMESON:class-native = "-Ddoc=false -Dtests=false -Dintrospection=false" + +EXTRA_OEMESON:class-target = "-Ddoc=false -Dtests=false \ + -Dudev_hwdb=enabled -Dudev_hwdb_dir=${sysconfdir}/udev/hwdb.d \ + -Dudev_hwdb_cmd=${STAGING_BINDIR_NATIVE}/fprint-list-udev-hwdb \ + -Dudev_rules_cmd=${STAGING_BINDIR_NATIVE}/fprint-list-udev-rules \ +" + +do_install:append:class-native () { + install -d ${D}${bindir} + install -m0755 ${B}/libfprint/fprint-list-udev-hwdb ${D}${bindir}/fprint-list-udev-hwdb + install -m0755 ${B}/libfprint/fprint-list-udev-rules ${D}${bindir}/fprint-list-udev-rules +} + +BBCLASSEXTEND = "native" + +USERADD_PACKAGES = "${PN}" +GROUPADD_PARAM:${PN} = "fprint" From patchwork Thu Mar 30 13:43:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?QsO2c3rDtnJtw6lueWkgWm9sdMOhbg==?= X-Patchwork-Id: 21930 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 D6698C761AF for ; Thu, 30 Mar 2023 13:43:11 +0000 (UTC) Received: from mail-ed1-f47.google.com (mail-ed1-f47.google.com [209.85.208.47]) by mx.groups.io with SMTP id smtpd.web10.25395.1680183790630478153 for ; Thu, 30 Mar 2023 06:43:10 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=EltdI05f; spf=pass (domain: gmail.com, ip: 209.85.208.47, mailfrom: zboszor@gmail.com) Received: by mail-ed1-f47.google.com with SMTP id h8so76671626ede.8 for ; Thu, 30 Mar 2023 06:43:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680183789; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=MMpoN5rh+W6fE6eODOaQ8XfKJHqqhDC+lXAY8gBh8hI=; b=EltdI05f2TlQRZ3EIdnMsqRk/BZqOghbQvARorcKJmS6Sg5pCRc+lm1lbpd8+F4o7R PNQiRJDPIKGA0B6P/R2a4W6i0BMSiVAaFcUyH6qmmH8vXusQ8Hqx2RewCRMvretK/6fR fchX3thX3dRczFiQcfdOExdV9+nAlK3CUbMImr05rwJ3vw4OTQ2VnMlwOI5P7czaFgv1 f4ux+q/bTq4lnLd3V9dTTu/TBCxXcvyZY+JIDQ2pE5h6DWGmSo+vmpTnLUnIoq/ysbf2 NhoKrLPIQuj9a2WTW7Lk2bEvJI6ikGFcRhJplN9f2QvDKrkTcplB6qrR+SowdpryWh0S 1nQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680183789; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=MMpoN5rh+W6fE6eODOaQ8XfKJHqqhDC+lXAY8gBh8hI=; b=lgWKLUrv9qHtUndWw1HeVufyIt/0QZGnK1/PxaEoNVtX6W1GU+r78x2wng52SXo19k JKQFrzmETiGsHM1YW4CogLAxTuEfvd/ZOLmMwMv/z5t8GRofE2Jn4T0ahb1X2MKXV5Ux 7fPuYNO1hwxPhPxiqkUFcBOR0oLNSiSeKH+laMPUU+CwadvpKxLFPhnutlnDGCayJSPF a68WPsciolNb6TjkyxOCXfQ+ISwFlTioS8ampV/RSpnrmWg1dS0HkpByg8xDIos9qBFD j9ucHwDTaKj2q/p6OvJMhRp9M6dSIH+tG0GrCh8sul76s4g36N4hgR0jrcOfb2wUzZ9d 8+Sg== X-Gm-Message-State: AAQBX9dKYqFZoT5JmyWk+jHM/79HS/3cd5rsID1tEdFj62y95j7v4/hw gqTSfVj0qhWe/QqXHlPRA8l7/ZlQ5vA= X-Google-Smtp-Source: AKy350ajaHgG4MLAZP+ufyvh4RRc2m3QLMhovBe5Fs7FzNm8PPtLu94niHr3hfQ1ZjEgksVfv47Ahg== X-Received: by 2002:a05:6402:45:b0:4ea:a9b0:a511 with SMTP id f5-20020a056402004500b004eaa9b0a511mr22751615edu.37.1680183788697; Thu, 30 Mar 2023 06:43:08 -0700 (PDT) Received: from localhost.lan (dsl51B7D2F9.fixip.t-online.hu. [81.183.210.249]) by smtp.gmail.com with ESMTPSA id h5-20020a50c385000000b004f9e6495f94sm18388784edf.50.2023.03.30.06.43.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Mar 2023 06:43:08 -0700 (PDT) From: =?utf-8?b?Wm9sdMOhbiBCw7ZzesO2cm3DqW55aQ==?= To: openembedded-devel@lists.openembedded.org Cc: =?utf-8?b?Wm9sdMOhbiBCw7ZzesO2cm3DqW55aQ==?= Subject: [meta-oe][PATCH 3/3] fprintd: New recipe Date: Thu, 30 Mar 2023 15:43:02 +0200 Message-Id: <20230330134302.2789448-3-zboszor@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230330134302.2789448-1-zboszor@gmail.com> References: <20230330134302.2789448-1-zboszor@gmail.com> MIME-Version: 1.0 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 ; Thu, 30 Mar 2023 13:43:11 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/101837 This is the DBus daemon that may be used for biometric authentication. Signed-off-by: Zoltán Böszörményi --- .../0001-Make-building-tests-optional.patch | 81 +++++++++++++++++++ .../recipes-support/fprintd/fprintd_git.bb | 51 ++++++++++++ 2 files changed, 132 insertions(+) create mode 100644 meta-oe/recipes-support/fprintd/fprintd/0001-Make-building-tests-optional.patch create mode 100644 meta-oe/recipes-support/fprintd/fprintd_git.bb diff --git a/meta-oe/recipes-support/fprintd/fprintd/0001-Make-building-tests-optional.patch b/meta-oe/recipes-support/fprintd/fprintd/0001-Make-building-tests-optional.patch new file mode 100644 index 000000000..5b1f3a2d2 --- /dev/null +++ b/meta-oe/recipes-support/fprintd/fprintd/0001-Make-building-tests-optional.patch @@ -0,0 +1,81 @@ +From 494df63b916bbf3ebf5e0bfc843a1b5298de63b6 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Zolt=C3=A1n=20B=C3=B6sz=C3=B6rm=C3=A9nyi?= + +Date: Thu, 30 Mar 2023 15:06:14 +0200 +Subject: [PATCH] Make building tests optional +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Upstream-Status: Submitted + +Signed-off-by: Zoltán Böszörményi +--- + meson.build | 10 +++++++++- + meson_options.txt | 4 ++++ + 2 files changed, 13 insertions(+), 1 deletion(-) + +diff --git a/meson.build b/meson.build +index 859bcf2..2abdd1f 100644 +--- a/meson.build ++++ b/meson.build +@@ -137,13 +137,16 @@ endif + polkit_policy_directory = polkit_gobject_dep.get_pkgconfig_variable('policydir') + + # Tests dependencies ++if get_option('tests') + pam_wrapper_dep = dependency('pam_wrapper', required: false) + if get_option('pam') and not pam_wrapper_dep.found() + warning('Dependency "pam_wrapper" required by test suite not found') + endif ++endif + + xmllint = find_program('xmllint', required: false) + python3 = find_program('python3') # No meson without it! ++if get_option('tests') + python3_test_modules = { + 'cairo': true, + 'dbus': true, +@@ -159,6 +162,7 @@ foreach module, required : python3_test_modules + warning('Python3 module \'' + module + '\' required by test suite not found') + endif + endforeach ++endif + + cdata = configuration_data() + cdata.set_quoted('GETTEXT_PACKAGE', meson.project_name()) +@@ -182,7 +186,9 @@ endif + if get_option('gtk_doc') + subdir('doc') + endif +-subdir('tests') ++if get_option('tests') ++ subdir('tests') ++endif + subdir('po') + + output = [] +@@ -205,6 +211,8 @@ output += ' Manuals: ' + get_option('man').to_string() + output += ' GTK Doc: ' + get_option('gtk_doc').to_string() + output += ' XML Linter ' + xmllint.found().to_string() + output += '\nTest setup:\n' ++if get_option('tests') + output += ' With address sanitizer: ' + address_sanitizer.to_string() ++endif + + message('\n'+'\n'.join(output)+'\n') +diff --git a/meson_options.txt b/meson_options.txt +index 286889e..73b28f2 100644 +--- a/meson_options.txt ++++ b/meson_options.txt +@@ -28,3 +28,7 @@ option('gtk_doc', + type: 'boolean', + value: false, + description: 'Use gtk-doc to build documentation') ++option('tests', ++ type: 'boolean', ++ value: true, ++ description: 'Run tests') +-- +2.39.2 + diff --git a/meta-oe/recipes-support/fprintd/fprintd_git.bb b/meta-oe/recipes-support/fprintd/fprintd_git.bb new file mode 100644 index 000000000..6d8e69bd3 --- /dev/null +++ b/meta-oe/recipes-support/fprintd/fprintd_git.bb @@ -0,0 +1,51 @@ +SUMMARY = "Daemon for fingerprint readers" +DESCRIPTION = "fprintd is a D-Bus daemon that offers libfprint \ +functionality over the D-Bus interprocess communication bus." +HOMEPAGE = "https://www.freedesktop.org/wiki/Software/fprint/fprintd/" + +DEPENDS = " \ + intltool-native glib-2.0 glib-2.0-native \ + dbus-glib dbus-glib-native \ + libpam libxslt libxslt-native libfprint polkit \ +" + +LICENSE = "GPL-2.0-or-later" +LIC_FILES_CHKSUM = "file://COPYING;md5=1f6f1c0be32491a0c8d2915607a28f36" + +#PR = "r1" + +# This is current master, the submitted patch does not apply to v1.94.2 +SRCREV = "09a3e5cf496e0ba0fe274003532c761e518fdfea" +PV = "1.94.2" + +SRC_URI = " \ + git://anongit.freedesktop.org/git/libfprint/fprintd.git;branch=master;protocol=https \ + file://0001-Make-building-tests-optional.patch \ +" + +S = "${WORKDIR}/git" + +inherit meson pkgconfig gettext systemd + +PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam', '', d)}" + +PACKAGECONFIG[pam] = "-Dpam=true -Dpam_modules_dir=${libdir}/security,-Dpam=false,libpam" + +EXTRA_OEMESON = "-Dtests=false -Dgtk_doc=false -Dsystemd_system_unit_dir=${systemd_system_unitdir} -Dpam_modules_dir=${base_libdir}/security" + +SYSTEMD_PACKAGES = "${PN}" +SYSTEMD_SERVICE:${PN} = "fprintd.service" + +PACKAGES =+ "${PN}-pam ${PN}-conf" + +FILES:${PN}-pam = "${base_libdir}/security/pam_fprintd.so" + +FILES:${PN}-conf = "${sysconfdir}/fprintd.conf" + +FILES:${PN} += " \ + ${datadir}/dbus-1/ \ + ${datadir}/polkit-1/ \ +" + +FILES:${PN}-dev = "${base_libdir}/security/*.la" +FILES:${PN}-staticdev += "${base_libdir}/security/*.a"