libfprint-vfs_proprietary-driver icon indicating copy to clipboard operation
libfprint-vfs_proprietary-driver copied to clipboard

error building on manjaro 21.2

Open ahmedmoselhi opened this issue 2 years ago • 9 comments

Cloning libfprint-vfs_proprietary-git build files...
Generating libfprint-vfs_proprietary-git information...
Checking libfprint-vfs_proprietary-git dependencies...
Resolving dependencies...
Checking inter-conflicts...

Building libfprint-vfs_proprietary-git...
==> Making package: libfprint-vfs_proprietary-git 0.99.0-3 (28 ديس, 2021 10:55:06 م)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating libfprint-vfs_proprietary-driver git repo...
Fetching origin
  -> Found build-vfs_proprietary.patch
==> Validating source files with md5sums...
    libfprint-vfs_proprietary-driver ... Skipped
    build-vfs_proprietary.patch ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Creating working copy of libfprint-vfs_proprietary-driver git repo...
Cloning into 'libfprint-vfs_proprietary-driver'...
done.
==> Starting prepare()...
Submodule 'libfprint' (https://gitlab.freedesktop.org/libfprint/libfprint.git) registered for path 'libfprint'
Cloning into '/var/tmp/pamac-build-midoo/libfprint-vfs_proprietary-git/src/libfprint-vfs_proprietary-driver/libfprint'...
fatal: unable to access 'https://gitlab.freedesktop.org/libfprint/libfprint.git/': HTTP/2 stream 1 was not closed cleanly before end of the underlying stream
fatal: clone of 'https://gitlab.freedesktop.org/libfprint/libfprint.git' into submodule path '/var/tmp/pamac-build-midoo/libfprint-vfs_proprietary-git/src/libfprint-vfs_proprietary-driver/libfprint' failed
Failed to clone 'libfprint'. Retry scheduled
Cloning into '/var/tmp/pamac-build-midoo/libfprint-vfs_proprietary-git/src/libfprint-vfs_proprietary-driver/libfprint'...
Submodule path 'libfprint': checked out '1abe213844b28fd8afc28eb072fd569f0f72d7f1'
Submodule path 'libfprint': checked out '1abe213844b28fd8afc28eb072fd569f0f72d7f1'
patching file libfprint/meson.build
patching file meson.build
==> Starting build()...
+ exec meson setup --prefix /usr --libexecdir lib --sbindir bin --buildtype plain --auto-features enabled --wrap-mode nodownload -D b_lto=true -D b_pie=true -D drivers=vfs_proprietary -D x11-examples=false -D doc=false build
The Meson build system
Version: 0.60.2
Source dir: /var/tmp/pamac-build-midoo/libfprint-vfs_proprietary-git/src/libfprint-vfs_proprietary-driver/libfprint
Build dir: /var/tmp/pamac-build-midoo/libfprint-vfs_proprietary-git/src/libfprint-vfs_proprietary-driver/libfprint/build
Build type: native build
Project name: libfprint
Project version: 0.99.0
C compiler for the host machine: cc (gcc 11.1.0 "cc (GCC) 11.1.0")
C linker for the host machine: cc ld.bfd 2.36.1
C++ compiler for the host machine: c++ (gcc 11.1.0 "c++ (GCC) 11.1.0")
C++ linker for the host machine: c++ ld.bfd 2.36.1
Host machine cpu family: x86_64
Host machine cpu: x86_64
Compiler for C supports arguments -fgnu89-inline: YES 
Compiler for C supports arguments -fvisibility=hidden: YES 
Compiler for C supports arguments -std=gnu99: YES 
Compiler for C supports arguments -Wall: YES 
Compiler for C supports arguments -Wundef: YES 
Compiler for C supports arguments -Wunused: YES 
Compiler for C supports arguments -Wstrict-prototypes: YES 
Compiler for C supports arguments -Werror-implicit-function-declaration: YES 
Compiler for C supports arguments -Wno-pointer-sign: YES 
Compiler for C supports arguments -Wshadow: YES 
Found pkg-config: /usr/bin/pkg-config (1.8.0)
Run-time dependency glib-2.0 found: YES 2.70.1
Run-time dependency libusb-1.0 found: YES 1.0.24
Library m found: YES
Run-time dependency udev found: YES 249
Run-time dependency gtk+-3.0 found: YES 3.24.30
Configuring config.h using configuration

libfprint/meson.build:162:3: ERROR: 
Trying to compare values of different types (NotFoundDependency, list) using !=.
This was deprecated and undefined behavior previously and is as of 0.60.0 a hard error.


A full log can be found at /var/tmp/pamac-build-midoo/libfprint-vfs_proprietary-git/src/libfprint-vfs_proprietary-driver/libfprint/build/meson-logs/meson-log.txt
==> ERROR: A failure occurred in build().
    Aborting...```

ahmedmoselhi avatar Dec 28 '21 19:12 ahmedmoselhi

I think it's caused by this bug. Can you build it using my reference script?

rindeal avatar Jan 28 '22 10:01 rindeal

Same issue (on Arch), the script doesn't work for odd reasons, downgrading meson also doesn't help (tried many archived versions). Please update to work with meson>=0.60. I know you said you stopped development, but 1) this is currently the ONLY option for these sensor models, 2) it's just a syntax error in the build process, not an issue with the driver itself and 3) I'll give you a cookie.

43615 avatar Mar 09 '22 17:03 43615

I think it's caused by this bug. Can you build it using my reference script?

the script doesn't work on Arch/Manjaro, Yum isn't a valid command and there's no Yum packages available on AUR or Pacman.

how can we fix it? I'll fork your git and make the changes, I just don't know what to change that 1 line into.

hakarune avatar Apr 11 '22 23:04 hakarune

I've tweadked things on the script, but I'm currently stucked at the stage:

wget https://ftp.hp.com/pub/softpaq/sp84501-85000/sp84530.tar -O - | tar xf -
 rpmunpack SP*/*.rpm | cpio -idmv

Miserably fails at cpio: premature end of file. If I split the operation and run the cpio separately, I get tons of "incorrect number" warnings and script stops. Maybe replacing cpio with equivalent tar command ...

If I skip that step, then the line cd "${repo_dir}"/libfprint breaks the script. I have no idea about how to continue.

@hakarune You can clone the repo with https option then make the changes you need. Skip the yum-install line and install manually some required packages (cpio, rpm2cpio). I've replaced rpm2cpio with rpmunpack.

erm3nda avatar Apr 28 '22 00:04 erm3nda

Not sure if this is of help to anyone but I was able to compile successfully after commenting out this line (upstream bug fix) from the reference bash script:

#sed -e "s|if imaging_dep.found()|if imaging_dep != [] and imaging_dep.found()|" -i -- libfprint/meson.build

lopeztel avatar Aug 11 '22 18:08 lopeztel

I get the following error.

meson.build:1:0: ERROR: Unknown options: "doc, drivers, gtk-examples, x11-examples"

Not being a C developer or having even heard of Meson before today, I have no idea how to compile this driver.

SylvainMT avatar May 20 '23 07:05 SylvainMT

any chance to bump this? Seems the closest way to get my vfs 5011 to work correctly with fprintd on Manjaro

tamer73 avatar Feb 08 '24 14:02 tamer73

Hey @tamer73, do you get the same error, or is it different? Can you give me the error message? I want to try to look into it and get this working again, but I can't promise anything. The more input/errors I get, the easier the debugging will be 😄

rvan-dev avatar Feb 08 '24 14:02 rvan-dev

Hey @tamer73, do you get the same error, or is it different? Can you give me the error message? I want to try to look into it and get this working again, but I can't promise anything. The more input/errors I get, the easier the debugging will be 😄

hi @rvan-dev main issue ist that i cant use this script because i aint got the knowledge to adapt this script for using on manjaro linux.

tamer73 avatar Feb 08 '24 15:02 tamer73