Impossible to install eid-mw (AUR)

Hello,
I need to install the AUR package eid-mw to use my ID-card connexion.
But, Impossible to install it, yay gives-me the error

configure: error: Could not find exec_prefix for openssl
==> ERREUR : Une erreur s’est produite dans build().
    Abandon…
 -> erreur lors de la construction : eid-mw-exit status 4
 -> Impossible d’installer les paquets suivants. Une intervention manuelle est requise :
eid-mw - exit status 4

Tried many times with no success. Never had this issue in the past…

Here’s the full log :

 [needavirus@IRIX ~]$ yay eid-mw
1 aur/eid-mw 5.1.16-1 (+1 0.43) 
    The Belgian e-ID (electronic identity card) viewer and Firefox extension
==> Paquets à installer (ex. 1 2 3, 1-3 or ^4)
==> 1
AUR Explicit (1): eid-mw-5.1.16-1
:: PKGBUILD à jour, omission du téléchargement : eid-mw
  1 eid-mw                          (Les fichiers de compilation existent)
==> Paquets à nettoyer avant compilation (cleanBuild) ?
==> [N]Aucun [A]Tous [Ab]Annuler [I]nstallés [No]nInstallés ou (1 2 3, 1-3, ^4)
==> a
:: Suppression (1/1) : /home/needavirus/.cache/yay/eid-mw
HEAD est maintenant à 568ef75 Adding .SRCINFO
avertissement : impossible d'ouvrir le répertoire 'pkg/': Permission non accordée
Suppression de eid-mw-5.1.16-v5.1.16.tar.gz
Suppression de eid-mw-5.1.16-v5.1.16.tar.gz.asc
Suppression de pkg/
Suppression de src/
  1 eid-mw                          (Les fichiers de compilation existent)
==> Afficher les diffs ?
==> [N]Aucun [A]Tous [Ab]Annuler [I]nstallés [No]nInstallés ou (1 2 3, 1-3, ^4)
==> n
==> Création du paquet eid-mw 5.1.16-1 (lun. 06 mai 2024 14:42:50)
==> Récupération des sources…
  -> Téléchargement de eid-mw-5.1.16-v5.1.16.tar.gz…
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 13.7M  100 13.7M    0     0  3202k      0  0:00:04  0:00:04 --:--:-- 3268k
  -> Téléchargement de eid-mw-5.1.16-v5.1.16.tar.gz.asc…
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   833  100   833    0     0  15057      0 --:--:-- --:--:-- --:--:-- 15145
==> ATTENTION : Ignore la vérification des signatures PGP des fichiers sources.
==> Validation des fichiers source avec sha256sums…
    eid-mw-5.1.16-v5.1.16.tar.gz ... Réussite
    eid-mw-5.1.16-v5.1.16.tar.gz.asc ... Ignoré
:: (1/1) Lecture de SRCINFO : eid-mw
pub   rsa4096 2014-05-21 [SC]
      D95426E309C0492990D8E8E2824A5E0010A04D46
uid          [ inconnue] Belgian eID Automatic Signing Key (continuous builds)

==> Création du paquet eid-mw 5.1.16-1 (lun. 06 mai 2024 14:42:55)
==> Vérification des dépendances pour l’exécution…
==> Vérification des dépendances pour la compilation…
==> Récupération des sources…
  -> eid-mw-5.1.16-v5.1.16.tar.gz trouvé
  -> eid-mw-5.1.16-v5.1.16.tar.gz.asc trouvé
==> Validation des fichiers source avec sha256sums…
    eid-mw-5.1.16-v5.1.16.tar.gz ... Réussite
    eid-mw-5.1.16-v5.1.16.tar.gz.asc ... Ignoré
==> Vérification des signatures des fichiers sources grâce à gpg…
    eid-mw-5.1.16-v5.1.16.tar.gz ... Réussite
==> Suppression du répertoire $srcdir/ existant…
==> Extraction des sources…
  -> Extraction de eid-mw-5.1.16-v5.1.16.tar.gz avec bsdtar
==> Les sources sont prêtes.
==> Création du paquet eid-mw 5.1.16-1 (lun. 06 mai 2024 14:42:57)
==> Vérification des dépendances pour l’exécution…
==> Vérification des dépendances pour la compilation…
==> ATTENTION : Utilisation de l’arbre $srcdir/ existant
==> Lancement de build()…
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking whether make supports nested variables... yes
checking how to print strings... printf
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for file... file
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking for gawk... gawk
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking whether make sets $(MAKE)... yes
checking whether make supports the include directive... yes (GNU style)
checking how to create a pax tar archive... gnutar
checking dependency style of gcc... gcc3
checking whether make supports nested variables... (cached) yes
checking for g++... g++
checking whether the compiler supports GNU C++... yes
checking whether g++ accepts -g... yes
checking for g++ option to enable C++11 features... none needed
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
/usr/bin/grep: warning: stray \ before -
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking dependency style of g++... gcc3
checking whether g++ supports C++11 features by default... yes
checking how to run the C preprocessor... gcc -E
checking whether ln -s works... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for plantuml... no
checking for fcntl.h... yes
checking for float.h... yes
checking for limits.h... yes
checking for netinet/in.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for sys/file.h... yes
checking for sys/ioctl.h... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for malloc.h... yes
checking for memory.h... yes
checking for sys/timeb.h... yes
checking for termios.h... yes
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for ld used by GCC... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyPreferredLanguages... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for libassuan-config... /usr/bin/libassuan-config
checking for LIBASSUAN - version >= 2... yes (2.5.7)
checking for libpcsclite >= 1.4.4... yes
checking whether to build for fuzzing... no
checking for wanted GTK version... detect
checking for gtk3... checking for gtk+-3.0... yes
checking for libxml-2.0... yes
checking for libproxy-1.0... yes
checking whether to enable dialogs... yes
checking for gio-2.0 >= 2.30... yes
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.16... yes
checking for _Bool... yes
checking for stdbool.h that conforms to C99... yes
checking for inline... inline
checking for size_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for int32_t... yes
checking for uint8_t... yes
checking for pid_t... yes
checking for error_at_line... yes
checking for GNU libc compatible malloc... yes
checking for GNU libc compatible realloc... yes
checking for gethostbyname... yes
checking for socket... yes
checking for strerror... yes
checking for memchr... yes
checking for memset... yes
checking for mkdir... yes
checking for select... yes
checking for strchr... yes
checking for strdup... yes
checking for strerror... (cached) yes
checking for strncasecmp... yes
checking for strrchr... yes
checking for strstr... yes
checking for strtol... yes
checking for strtoul... yes
checking for vasprintf... yes
checking for "libjpeg"... yes
checking for jpeg_mem_src in -ljpeg... yes
checking for "openssl"... yes
configure: error: Could not find exec_prefix for openssl
==> ERREUR : Une erreur s’est produite dans build().
    Abandon…
 -> erreur lors de la construction : eid-mw-exit status 4
 -> Impossible d’installer les paquets suivants. Une intervention manuelle est requise :
eid-mw - exit status 4

If somebody can help me ?
Thanks a lot !

Hello,

The build is failing because configure script expects exec_prefix defined in Arch’s openssl pkg-config file which is not the case. I wonder if it was there at the time of creating this PKGBUILD.

Anyway, the quick way to fix it is to edit openssl.pc

sudoedit /usr/lib/pkgconfig/openssl.pc

And add this two lines at the top of the file

prefix=/usr
exec_prefix=${prefix}
After this small edit, the build passes.

After the installation is completed you can remove the lines added, or leave them there (no harm in doing either)

In any case you should report this bug to PKGBUILD maintainer on AUR.

3 Likes

OMG !
It worked !!

Thank you so mutch jake !
How do you know this kind of thing :scream: So impressive !
Thanks a lot !!
:smiley:

EDIT : Jake, I’ve made an AUR Account and mentionned this issue with your workaround to the maintainer :wink:

2 Likes

Nice, glad the workaround fixed it for you. The proper way would be editing PKGBUILD setting prefix stuff there, reconfiguring, then running makepkg, etc., but I did not want to bother you with that, maintainers will fix it the right way :slight_smile:

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.