plattfot / pinentry-rofi

Rofi frontend to pinentry
43 stars 5 forks source link

Cannot build on openSUSE/Tumbleweed #14

Closed mcepl closed 2 years ago

mcepl commented 2 years ago
stitny~/p/pinentry-rofi (master)$ sudo zypper in guix
Načítání dat repozitáře...
Načítají se nainstalované balíčky...
Probíhá řešení závislostí balíčků...

Bude nainstalováno 16 NOVÝCH balíčků:
  gnutls-guile guile-bytestructures guile-gcrypt guile-git guile-json guile-lzlib
  guile-sqlite3 guile-ssh-devel guile-zlib guix libgit2-devel libgit2-1_5 libguile-ssh13
  liblz1 lzlib-devel sqlite3-devel

16 nové balíčky k instalaci.
Celková velikost stahování: 44,6 MiB. Již v keši: 0 B. Po operaci bude dodatečně využito
276,1 MiB.
Pokračovat? [y/n/v/...? zobrazí všechny volby] (y): y
Stahuje se balíček gnutls-guile-3.7.7-1.1.x86_64   (1/16), 124,8 KiB (503,6 KiB rozbaleno)
Získávám: gnutls-guile-3.7.7-1.1.x86_64.rpm ...................................[dokončeno]
Stahuje se balíček guile-bytestructures-1.0.9-1.8.x86_64
                                                   (2/16), 255,1 KiB (  2,1 MiB rozbaleno)
Získávám: guile-bytestructures-1.0.9-1.8.x86_64.rpm ...........................[dokončeno]
Stahuje se balíček guile-gcrypt-0.3.0-1.8.x86_64   (3/16), 206,2 KiB (  1,4 MiB rozbaleno)
Získávám: guile-gcrypt-0.3.0-1.8.x86_64.rpm ...................................[dokončeno]
Stahuje se balíček guile-json-4.5.2-1.6.x86_64     (4/16),  81,1 KiB (430,9 KiB rozbaleno)
Získávám: guile-json-4.5.2-1.6.x86_64.rpm .....................................[dokončeno]
Stahuje se balíček guile-zlib-0.1.0-1.6.x86_64     (5/16),  56,0 KiB (296,0 KiB rozbaleno)
Získávám: guile-zlib-0.1.0-1.6.x86_64.rpm .....................................[dokončeno]
Stahuje se balíček libgit2-1_5-1.5.0-1.1.x86_64    (6/16), 564,4 KiB (  1,3 MiB rozbaleno)
Získávám: libgit2-1_5-1.5.0-1.1.x86_64.rpm ........................[dokončeno (3,9 MiB/s)]
Stahuje se balíček libguile-ssh13-0.13.1-1.8.x86_64
                                                   (7/16),  36,9 KiB ( 95,7 KiB rozbaleno)
Získávám: libguile-ssh13-0.13.1-1.8.x86_64.rpm ................................[dokončeno]
Stahuje se balíček liblz1-1.13-1.3.x86_64          (8/16),  49,2 KiB ( 87,4 KiB rozbaleno)
Získávám: liblz1-1.13-1.3.x86_64.rpm ..........................................[dokončeno]
Stahuje se balíček sqlite3-devel-3.39.2-1.1.x86_64 (9/16), 165,5 KiB (635,7 KiB rozbaleno)
Získávám: sqlite3-devel-3.39.2-1.1.x86_64.rpm .................................[dokončeno]
Stahuje se balíček libgit2-devel-1.5.0-1.1.x86_64 (10/16), 223,8 KiB (972,4 KiB rozbaleno)
Získávám: libgit2-devel-1.5.0-1.1.x86_64.rpm ..................................[dokončeno]
Stahuje se balíček guile-ssh-devel-0.13.1-1.8.x86_64
                                                  (11/16), 252,0 KiB (  1,8 MiB rozbaleno)
Získávám: guile-ssh-devel-0.13.1-1.8.x86_64.rpm ...............................[dokončeno]
Stahuje se balíček lzlib-devel-1.13-1.3.x86_64    (12/16),  28,7 KiB ( 19,1 KiB rozbaleno)
Získávám: lzlib-devel-1.13-1.3.x86_64.rpm .........................[dokončeno (2,5 KiB/s)]
Stahuje se balíček guile-sqlite3-0.1.3-1.7.x86_64 (13/16),  78,6 KiB (300,1 KiB rozbaleno)
Získávám: guile-sqlite3-0.1.3-1.7.x86_64.rpm ..................................[dokončeno]
Stahuje se balíček guile-git-0.5.1-2.6.x86_64     (14/16), 590,6 KiB (  5,3 MiB rozbaleno)
Získávám: guile-git-0.5.1-2.6.x86_64.rpm ......................................[dokončeno]
Stahuje se balíček guile-lzlib-0.0.2-1.7.x86_64   (15/16),  50,9 KiB (299,8 KiB rozbaleno)
Získávám: guile-lzlib-0.0.2-1.7.x86_64.rpm ....................................[dokončeno]
Stahuje se balíček guix-1.3.0-1.13.x86_64         (16/16),  41,9 MiB (260,7 MiB rozbaleno)
Získávám: guix-1.3.0-1.13.x86_64.rpm ..............................[dokončeno (3,6 MiB/s)]

Kontrolují se konflikty souborů: ..............................................[dokončeno]
( 1/16) Instaluje se: gnutls-guile-3.7.7-1.1.x86_64 ...........................[dokončeno]
( 2/16) Instaluje se: guile-bytestructures-1.0.9-1.8.x86_64 ...................[dokončeno]
( 3/16) Instaluje se: guile-gcrypt-0.3.0-1.8.x86_64 ...........................[dokončeno]
( 4/16) Instaluje se: guile-json-4.5.2-1.6.x86_64 .............................[dokončeno]
( 5/16) Instaluje se: guile-zlib-0.1.0-1.6.x86_64 .............................[dokončeno]
( 6/16) Instaluje se: libgit2-1_5-1.5.0-1.1.x86_64 ............................[dokončeno]
( 7/16) Instaluje se: libguile-ssh13-0.13.1-1.8.x86_64 ........................[dokončeno]
( 8/16) Instaluje se: liblz1-1.13-1.3.x86_64 ..................................[dokončeno]
( 9/16) Instaluje se: sqlite3-devel-3.39.2-1.1.x86_64 .........................[dokončeno]
(10/16) Instaluje se: libgit2-devel-1.5.0-1.1.x86_64 ..........................[dokončeno]
(11/16) Instaluje se: guile-ssh-devel-0.13.1-1.8.x86_64 .......................[dokončeno]
(12/16) Instaluje se: lzlib-devel-1.13-1.3.x86_64 .............................[dokončeno]
(13/16) Instaluje se: guile-sqlite3-0.1.3-1.7.x86_64 ..........................[dokončeno]
(14/16) Instaluje se: guile-git-0.5.1-2.6.x86_64 ..............................[dokončeno]
(15/16) Instaluje se: guile-lzlib-0.0.2-1.7.x86_64 ............................[dokončeno]
(16/16) Instaluje se: guix-1.3.0-1.13.x86_64 ..................................[dokončeno]
stitny~/p/pinentry-rofi (master)$ guix install pinentry-rofi
guix install: error: Nepodařilo se spojit s »/var/guix/daemon-socket/socket«: Adresář nebo soubor neexistuje
stitny~/p/pinentry-rofi (master)$ LANG=en_GB guix install pinentry-rofi
guix install: error: failed to connect to `/var/guix/daemon-socket/socket': No such file or directory
stitny~/p/pinentry-rofi (master)$ autoreconf -vif ; and sh ./configure ; and make check
autoreconf: export WARNINGS=
autoreconf: Entering directory '.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4
aclocal: warning: couldn't open directory 'm4': No such file or directory
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: configure.ac: not using Intltool
autoreconf: configure.ac: not using Gtkdoc
autoreconf: running: /usr/bin/autoconf --force
autoreconf: configure.ac: not using Autoheader
autoreconf: running: automake --add-missing --copy --force-missing
Makefile.am:58: warning: user target 'dvi' defined here ...
automake: ... overrides Automake target 'dvi' defined here
Makefile.am:58: consider using dvi-local instead of dvi
autoreconf: Leaving directory '.'
configure: loading site script /usr/share/site/x86_64-pc-linux-gnu
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 for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
configure: checking for guile 3.0
configure: found guile 3.0
checking for guile-3.0... no
checking for guile3.0... no
checking for guile-3... no
checking for guile3... no
checking for guile... /usr/bin/guile
checking for Guile version >= 3.0... 3.0.8
checking for guild... /usr/bin/guild
checking for guile-config... /usr/bin/guile-config
checking for Guile site directory... /usr/share/guile/site/3.0
checking for Guile site-ccache directory using pkgconfig... /usr/lib64/guile/3.0/site-ccache
checking for Guile extensions directory... /usr/lib64/guile/3.0/extensions
./configure: line 3060: syntax error near unexpected token `bindir:guilemoduledir:GUILE_MODULE_DIR'
./configure: line 3060: `AX_COMPUTE_RELATIVE_PATHS(bindir:guilemoduledir:GUILE_MODULE_DIR bindir:guileobjectdir:GUILE_OBJECT_DIR)'
stitny~/p/pinentry-rofi (master)$ 
mcepl commented 2 years ago

What additional information you need?

plattfot commented 2 years ago

guix install: error: failed to connect to `/var/guix/daemon-socket/socket': No such file or directory

The issue is that guix isn't properly setup/running. You might need to enable a systemd unit. Although I would recommend to install guix using their install script (see manual) and have it completely decoupled from the package manager on openSUSE. Otherwise you might run into issues doing a guix pull.

./configure: line 3060: syntax error near unexpected token bindir:guilemoduledir:GUILE_MODULE_DIR' ./configure: line 3060:AX_COMPUTE_RELATIVE_PATHS(bindir:guilemoduledir:GUILE_MODULE_DIR bindir:guileobjectdir:GUILE_OBJECT_DIR)'

Do you have autoconf-archive (not sure what it is called in openSUSE) installed? I can reproduce the error with

guix shell --pure bash guile grep coreutils sed autoconf automake pkg-config texinfo gawk make -- bash -c "autoreconf -vif && ./configure && make check"

I.e when I remove autoconf-archive.

mcepl commented 2 years ago

I think, I’ve got it in https://build.opensuse.org/package/show/home:mcepl:work/pinentry-rofi . Just a question: that .go file is architecture dependent or not? Could I use the same file on all platforms or do I need to generate it for each differently?

plattfot commented 2 years ago

I couldn't find anything in the manual if they are architecture dependent or not. My guess is that they are architecture independent. As guile compiles the scheme code to bytecode for its virtual machine and not actual machine code for the architecture. You can find the section about it here.

I would recommend you to send an email to their mailing list or ask in their IRC channel. As someone on there should be able to give you a better answer than I. Here is the info on their mailing list and IRC: https://www.gnu.org/software/guile/learn/