From nobody Tue Dec 19 09:28:00 2023 X-Original-To: freebsd-ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SvWYY17Yjz54wq9 for ; Tue, 19 Dec 2023 09:27:13 +0000 (UTC) (envelope-from che@bein.link) Received: from mail.bein.link (bein.link [37.252.124.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4SvWYX2mwPz3Wj1; Tue, 19 Dec 2023 09:27:12 +0000 (UTC) (envelope-from che@bein.link) Authentication-Results: mx1.freebsd.org; none Received: from [192.168.10.12] (unknown [37.252.89.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.bein.link (Postfix) with ESMTPSA id B252B239A06; Tue, 19 Dec 2023 09:26:40 +0000 (UTC) Message-ID: <11b0c812-1a73-4a0a-ac92-c32ca794dffe@bein.link> Date: Tue, 19 Dec 2023 13:28:00 +0400 List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: security/libfprint: any updates? Content-Language: en-US To: Jan Beich Cc: freebsd-ports@freebsd.org References: From: Maxim V Filimonov In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=bein.link; s=mail; t=1702978000; bh=wD8RSeaWtFg7n79Ave438o8snrY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=l0Jdw53+jyvEfYjjwlAu8nanLGpYrkHS3Dil+G9ixSPEdd+VyhoV771aMWQbWT1Dl8ilIIrEvcnWiqIPZPzfxxYP63uVK17YOi3OnxpzLTrmu4aeRGW9Xfz/4uoDU0a1qJl5Hp4HKCZieUT4G/MFuQdNOMgBePmuRoW6sXQiXdM= X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:196752, ipnet:37.252.120.0/21, country:NL] X-Spamd-Bar: ---- X-Rspamd-Queue-Id: 4SvWYX2mwPz3Wj1 Yes, but not really. See, the Linux SPI implementation is (probably) really different, so that would require a reimplementation of SPI in the library which is not the best solution, as you would probably agree. My thinking is "remove SPI support altogether by removing certain supported devices", but it didn't work immediately and requires some more hacking. I patched the meson.build file so that it doesn't contain the spi devices, but that didn't help so it requires further work. On 19.12.2023 05:45, Jan Beich wrote: > Maxim V Filimonov writes: > >> Hello, >> >> I'm trying to build new-ish versions of libfprint on FreeBSD >> (probably, that could result in an update to the port as well), but I >> encountered a problem: >> >> ../libfprint/fpi-spi-transfer.c:22:10: fatal error: >> 'linux/spi/spidev.h' file not found >> #include >> ^~~~~~~~~~~~~~~~~~~~ > Perhaps as documented in spigen(4) manpage. Neither > linuxulator nor ports/ tree have examples how to translate SPI_IOC_MESSAGE > into SPIGENIOC_TRANSFER or similar. However, spi(8) can probably help both > debugging and learning the API. > > Disclaimer: I don't use this port and not familar with SPI. -- wbr, Maxim Filimonov