You are not logged in.

#1 2019-01-16 16:47:58

gunjah292
Member
From: Hamburg
Registered: 2011-05-05
Posts: 161

Can someone help me compile a package with Meson to update libfprint?

I want to update libfprint to recognize my fingerprint scanner. From the address the scanner looks just the same as some scanners already recognized by libfprint. I added the adress to the device that I assume to be ideantical to mine. Now I want to compile the package with Meson. i don't have any experience with it.

According the the wiki I need to write a PKGBUILD with this template:

PKGBUILD
makedepends=(meson)

build() {
  meson --prefix /usr --buildtype=plain source build
  ninja -C build
}

check() {
  ninja -C build check
}

package() {
  DESTDIR="$pkgdir" ninja -C build install
}

where

source is the directory containing the extracted source code, e.g. $pkgname or $pkgname-$pkgver; and
build is the directory that will hold the binary files to be installed. Normally the dirname "build" is used so you may want to keep it for standardization, but you may rename it to whatever pleases you.

There is no directory containing $pkgname etc. I am stuck at this point.

Can anyone help?

Last edited by gunjah292 (2019-01-16 16:48:36)


KDE Plasma, ThinkPad X380 Yoga, Intel Core i7-8550U, Intel UHD Graphics 620, 512GB PCIe-NVMe SSD (OPAL 2.0), 16GB PC4-19200 (2400 MHz)

Offline

#2 2019-01-16 16:50:23

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 26,989
Website

Re: Can someone help me compile a package with Meson to update libfprint?

Not an Installation issue, moving to Creating Packages...


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Offline

#3 2019-01-16 17:01:05

gunjah292
Member
From: Hamburg
Registered: 2011-05-05
Posts: 161

Re: Can someone help me compile a package with Meson to update libfprint?

I realized that there is already a libfprint-git installer in the AUR. I guess I can figure it out somehow!


KDE Plasma, ThinkPad X380 Yoga, Intel Core i7-8550U, Intel UHD Graphics 620, 512GB PCIe-NVMe SSD (OPAL 2.0), 16GB PC4-19200 (2400 MHz)

Offline

#4 2019-01-17 10:07:49

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 6,789

Re: Can someone help me compile a package with Meson to update libfprint?

gunjah292 wrote:

From the address the scanner looks just the same as some scanners already recognized by libfprint. I added the adress to the device that I assume to be ideantical to mine.

This sounds like you want to change some files that come with libprintf .
Which files need changing and what change do they need ?


Assuming the files in question do need to be changed at build-time , you probably should use https://www.archlinux.org/packages/extr … libfprint/ as starting point, not the git version .

Use asp to get the pkgbuild and other needed files to your system, see https://wiki.archlinux.org/index.php/Ar … _using_Git for details about asp .


Multi-init booting with apg Openrc and systemd coexisting
Automounting : not needed, i prefer pmount
Aur helpers : makepkg + my own local repo === rarely need them

Offline

#5 2019-01-19 10:26:47

gunjah292
Member
From: Hamburg
Registered: 2011-05-05
Posts: 161

Re: Can someone help me compile a package with Meson to update libfprint?

@Lone_Wolf: I think it is libfprint/drivers/vfs5011.c

There is this section:

static const struct usb_id id_table[] = {	
	{ .vendor = 0x138a, .product = 0x009d /* Validity device from some Thinkpad X380 */ },
	{ .vendor = 0x138a, .product = 0x0010 /* Validity device from some Toshiba laptops */ },
	{ .vendor = 0x138a, .product = 0x0011 /* vfs5011 */ },
	{ .vendor = 0x138a, .product = 0x0017 /* Validity device from Lenovo T440 laptops */ },
	{ .vendor = 0x138a, .product = 0x0018 /* one more Validity device */ },
	{ 0, 0, 0, },
};

I already added my device there according to lsusb:

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 138a:009d Validity Sensors, Inc. 
Bus 001 Device 003: ID 04f2:b614 Chicony Electronics Co., Ltd 
Bus 001 Device 005: ID 056a:5155 Wacom Co., Ltd 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

I just don't know how to compile this and install it. I tried to change the files in the yaourt-tmp folder, but it doesn't work, because it automatically compiles after the download. There is not time to exchange the file. I don't know how else to do this. smile  Maybe it also needs more changes. I don't know.

Last edited by gunjah292 (2019-01-19 10:32:56)


KDE Plasma, ThinkPad X380 Yoga, Intel Core i7-8550U, Intel UHD Graphics 620, 512GB PCIe-NVMe SSD (OPAL 2.0), 16GB PC4-19200 (2400 MHz)

Offline

#6 2019-01-19 10:42:01

progandy
Member
Registered: 2012-05-17
Posts: 3,331

Re: Can someone help me compile a package with Meson to update libfprint?

Simply adding your ID is probably not enough. Here are some efforts for a prototype (not a libfprint driver yet I think), but apparently you still have to enroll the fingerprints with windows.

https://github.com/nmikhailov/Validity9 … -453199423
https://github.com/mrdanielps/Validity90/tree/9d

Last edited by progandy (2019-01-19 10:44:50)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#7 2019-01-19 10:42:49

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 8,695
Website

Re: Can someone help me compile a package with Meson to update libfprint?

Remove the AUR helper from the equation and learn how to use makepkg directly.

You could also create a patch and apply it during the prepare stage of the PKGBUILD.


Sakura:-
Mobo: MSI X299 TOMAHAWK ARCTIC // Processor: Intel Core i7-7820X 3.6GHz // GFX: nVidia GeForce GTX 970 // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 5x 1TB HDD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB