You are not logged in.

#1 2024-09-21 10:33:50

Tétrapyle
Member
Registered: 2014-01-03
Posts: 61

[solved] depends on version >= but it seemed <=

Or the other way round.

I hope I'm not asking something silly.

I untar'ed signal-cli 0.13.6-1 from https://aur.archlinux.org/packages/signal-cli .
Then tried to `makepkg -si' it.

$ makepkg -si
==> Making package: signal-cli 0.13.6-1 (Sat 21 Sep 2024 12:15:42 PM CEST)
==> Checking runtime dependencies...
==> Installing missing dependencies...
[sudo] password for X:
error: target not found: libsignal-client
==> ERROR: 'pacman' failed to install missing dependencies.
==> Missing dependencies:
  -> java-commons-logging
  -> libsignal-client
==> Checking buildtime dependencies...
==> Installing missing dependencies...
[sudo] password for X:
resolving dependencies...
:: There are 4 providers available for java-environment<=21:
:: Repository extra
   1) jdk11-openjdk  2) jdk17-openjdk  3) jdk21-openjdk  4) jdk8-openjdk

Enter a number (default=1): 3
looking for conflicting packages...

Packages (2) jdk21-openjdk-21.0.4.u7-1  gradle-8.10.1-1

Total Download Size:   429.08 MiB
Total Installed Size:  610.24 MiB

:: Proceed with installation? [Y/n]
:: Retrieving packages...
 jdk21-openjdk-21.0.4.u7-1-x86_64                                                                                                       301.8 MiB  29.6 MiB/s 00:10 [######################################################################################################] 100%
 gradle-8.10.1-1-any                                                                                                                    127.3 MiB  30.6 MiB/s 00:04 [######################################################################################################] 100%
 Total (2/2)                                                                                                                            429.1 MiB  29.8 MiB/s 00:14 [######################################################################################################] 100%
(2/2) checking keys in keyring                                                                                                                                      [######################################################################################################] 100%
(2/2) checking package integrity                                                                                                                                    [######################################################################################################] 100%
(2/2) loading package files                                                                                                                                         [######################################################################################################] 100%
(2/2) checking for file conflicts                                                                                                                                   [######################################################################################################] 100%
(2/2) checking available disk space                                                                                                                                 [######################################################################################################] 100%
:: Processing package changes...
(1/2) installing jdk21-openjdk                                                                                                                                      [######################################################################################################] 100%
Default Java environment is already set to 'java-22-openjdk'
See 'archlinux-java help' to change it
Optional dependencies for jdk21-openjdk
    java-rhino: for some JavaScript support
    alsa-lib: for basic sound support [installed]
    gtk3: for the Gtk+ 3 look and feel - desktop usage [installed]
(2/2) installing gradle                                                                                                                                             [######################################################################################################] 100%
Optional dependencies for gradle
    gradle-doc: gradle documentation
    gradle-src: gradle sources
:: Running post-transaction hooks...
(1/3) Arming ConditionNeedsUpdate...
(2/3) Updating icon theme caches...
(3/3) Updating the desktop file MIME type cache...
==> ERROR: Could not resolve all dependencies.

But :

$ pacman -Q jdk-openjdk
jdk-openjdk 22.0.2.u9-1
$ grep depends PKGBUILD
depends=('java-runtime-headless>=21' 'java-commons-logging' 'sh' 'libsignal-client')
makedepends=('java-environment>=21' 'gradle' 'asciidoc')

(Of course I'm gonna uninstall jdk21-openjdk.)

Last edited by Tétrapyle (2024-09-21 14:46:27)

Offline

#2 2024-09-21 12:19:54

seth
Member
Registered: 2012-09-03
Posts: 58,244

Re: [solved] depends on version >= but it seemed <=

error: target not found: libsignal-client
==> ERROR: 'pacman' failed to install missing dependencies.
==> Missing dependencies:
  -> java-commons-logging
  -> libsignal-client
==> Checking buildtime dependencies...
==> Installing missing dependencies...
[sudo] password for X:

There's something missing here?
You were lacking libsignal-client which is an AUR package - then there's another sudo request.
What's actually going on there?

Online

#3 2024-09-21 13:13:47

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,048

Re: [solved] depends on version >= but it seemed <=

I get

:: There are 9 providers available for java-runtime-headless>=21:
...
:: There are 3 providers available for java-environment>=21:

This is something on your system. What do you get from `makepkg -V` and `type -a makepkg`?

Last edited by Scimmia (2024-09-21 13:16:26)

Offline

#4 2024-09-21 14:17:25

Tétrapyle
Member
Registered: 2014-01-03
Posts: 61

Re: [solved] depends on version >= but it seemed <=

Thanks. Here it is :

$ makepkg -V
makepkg (pacman) 7.0.0
Copyright (c) 2006-2024 Pacman Development Team <pacman-dev@lists.archlinux.org>.
Copyright (C) 2002-2006 Judd Vinet <jvinet@zeroflux.org>.

This is free software; see the source for copying conditions.
There is NO WARRANTY, to the extent permitted by law.
$ type -a makepkg
makepkg is an alias for LC_MESSAGES=en_US.UTF-8 makepkg
makepkg is /usr/bin/makepkg

The change from >= to <= plus the 0.0 in "7.0.0" makes me feel that I might not be entirely responsible for this, but since in the past many issues I experienced were caused by my inexperience, I'm going very cautiously here...

I installed libsignal-client-0.56.0-1 .

Then I tried to `makepkg -si' signal-cli again and it seemed to work... It was compiling when I interrupted it to remove jdk21-openjdk before trying again. Here :

$ makepkg -si
==> Making package: signal-cli 0.13.6-1 (Sat 21 Sep 2024 04:03:37 PM CEST)
==> Checking runtime dependencies...
==> Installing missing dependencies...
[sudo] password for X:
resolving dependencies...
looking for conflicting packages...

Packages (1) java-commons-logging-1.3.0-1

Total Download Size:   0.06 MiB
Total Installed Size:  0.07 MiB

:: Proceed with installation? [Y/n]
:: Retrieving packages...
 java-commons-logging-1.3.0-1-any                                                                                                        65.6 KiB   547 KiB/s 00:00 [######################################################################################################] 100%
(1/1) checking keys in keyring                                                                                                                                      [######################################################################################################] 100%
(1/1) checking package integrity                                                                                                                                    [######################################################################################################] 100%
(1/1) loading package files                                                                                                                                         [######################################################################################################] 100%
(1/1) checking for file conflicts                                                                                                                                   [######################################################################################################] 100%
(1/1) checking available disk space                                                                                                                                 [######################################################################################################] 100%
:: Processing package changes...
(1/1) installing java-commons-logging                                                                                                                               [######################################################################################################] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading v0.13.6.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  417k    0  417k    0     0   640k      0 --:--:-- --:--:-- --:--:-- 20.1M
  -> Downloading v0.13.6.tar.gz.asc...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   488  100   488    0     0    661      0 --:--:-- --:--:-- --:--:--   661
  -> Found signal-cli.sh
==> Validating source files with sha512sums...
    v0.13.6.tar.gz ... Passed
    v0.13.6.tar.gz.asc ... Skipped
    signal-cli.sh ... Passed
==> Verifying source file signatures with gpg...
    v0.13.6.tar.gz ... FAILED (unknown public key 2BA2CD21B5B09570)
==> ERROR: One or more PGP signatures could not be verified!
$ gpg --receive-keys 2BA2CD21B5B09570
gpg: key 2BA2CD21B5B09570: public key "AsamK <asamk@gmx.de>" imported
gpg: Total number processed: 1
gpg:               imported: 1
$ makepkg -si
==> Making package: signal-cli 0.13.6-1 (Sat 21 Sep 2024 04:06:40 PM CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found v0.13.6.tar.gz
  -> Found v0.13.6.tar.gz.asc
  -> Found signal-cli.sh
==> Validating source files with sha512sums...
    v0.13.6.tar.gz ... Passed
    v0.13.6.tar.gz.asc ... Skipped
    signal-cli.sh ... Passed
==> Verifying source file signatures with gpg...
    v0.13.6.tar.gz ... Passed
==> Extracting sources...
  -> Extracting v0.13.6.tar.gz with bsdtar
==> Starting prepare()...
==> Starting build()...

Welcome to Gradle 8.10.1!

Here are the highlights of this release:
 - Support for Java 23
 - Faster configuration cache
 - Better configuration cache reports

For more details see https://docs.gradle.org/8.10.1/release-notes.html

To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/8.10.1/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation.
Daemon will be stopped at the end of the build
<====---------> 33% CONFIGURING [57s]
> root project > Compiling build file 'build.gradle.kts'
> IDLE
> IDLE
> IDLE
> IDLE
> IDLE
> IDLE
> IDLE
> IDLE
> IDLE
> IDLE
> IDLE
^C
==> ERROR: Aborted by user! Exiting...

$ sudo pacman -Rsc jdk21-openjdk
[sudo] password for X:
checking dependencies...
:: libbluray optionally requires java-runtime: BD-J library
:: libjpeg-turbo optionally requires java-runtime>11: for TurboJPEG Java wrapper
:: libjxl optionally requires java-runtime: for JNI bindings
:: libreoffice-still optionally requires java-runtime: adds java support
:: libreoffice-still optionally requires java-environment>=17: required by extension-wiki-publisher and extension-nlpsolver
:: octave optionally requires java-runtime: java support
:: opencv optionally requires java-runtime: Java interface
:: subversion optionally requires java-environment: for Java support
:: texlive-binextra optionally requires java-runtime: for utilities like arara, texplate
:: texlive-latexextra optionally requires java-runtime: for pdfannotextractor

Packages (2) gradle-8.10.1-1  jdk21-openjdk-21.0.4.u7-1

Total Removed Size:  610.24 MiB

:: Do you want to remove these packages? [Y/n]
:: Processing package changes...
(1/2) removing gradle                                                                                                                                               [######################################################################################################] 100%
(2/2) removing jdk21-openjdk                                                                                                                                        [######################################################################################################] 100%
:: Running post-transaction hooks...
(1/3) Arming ConditionNeedsUpdate...
(2/3) Updating icon theme caches...
(3/3) Updating the desktop file MIME type cache...
$ makepkg -si
==> Making package: signal-cli 0.13.6-1 (Sat 21 Sep 2024 04:08:35 PM CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Installing missing dependencies...
[sudo] password for X:
resolving dependencies...
:: There are 4 providers available for java-environment<=21:
:: Repository extra
   1) jdk11-openjdk  2) jdk17-openjdk  3) jdk21-openjdk  4) jdk8-openjdk

Enter a number (default=1):

PS: I don't actually need this package. I'm posting because it looks weird to me.

Offline

#5 2024-09-21 14:25:03

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,048

Re: [solved] depends on version >= but it seemed <=

Can you test it without that alias?

Offline

#6 2024-09-21 14:33:01

Tétrapyle
Member
Registered: 2014-01-03
Posts: 61

Re: [solved] depends on version >= but it seemed <=

Like this?

$ /usr/bin/makepkg -si
==> Making package: signal-cli 0.13.6-1 (Sat 21 Sep 2024 04:34:18 PM CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Installing missing dependencies...
[sudo] password for X:
resolving dependencies...
:: There are 4 providers available for java-environment<=21:
:: Repository extra
   1) jdk11-openjdk  2) jdk17-openjdk  3) jdk21-openjdk  4) jdk8-openjdk

Enter a number (default=1):

Offline

#7 2024-09-21 14:41:20

seth
Member
Registered: 2012-09-03
Posts: 58,244

Re: [solved] depends on version >= but it seemed <=

pacman -Qikk bash

/usr/bin/makepkg is a shell script - if you add "set -x" below the shebang, it'll trace the script
The interesting function though is "handle_deps()" so adding "set -x" at the start of that and "set +x" at it's end should™ suffice and hopefully constrain the output.

Online

#8 2024-09-21 14:42:12

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,048

Re: [solved] depends on version >= but it seemed <=

Add pacman to that -Qikk as well

Offline

#9 2024-09-21 14:45:19

Tétrapyle
Member
Registered: 2014-01-03
Posts: 61

Re: [solved] depends on version >= but it seemed <=

I'm stupid (I knew it!), this <=21 is for the 'gradle' package.

gradle 8.10.1-1
Dependencies
java-environment<=21 (jdk8-openjdk, jdk11-openjdk, jdk17-openjdk, jdk21-openjdk)

$ /usr/bin/makepkg -si
==> Making package: signal-cli 0.13.6-1 (Sat 21 Sep 2024 04:34:18 PM CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Installing missing dependencies...
[sudo] password for jean:
resolving dependencies...
:: There are 4 providers available for java-environment<=21:
:: Repository extra
   1) jdk11-openjdk  2) jdk17-openjdk  3) jdk21-openjdk  4) jdk8-openjdk

Enter a number (default=1): ^C
Interrupt signal received

==> ERROR: 'pacman' failed to install missing dependencies.
==> Missing dependencies:
  -> gradle
==> ERROR: Could not resolve all dependencies.

I should have looked better there. After installing jdk21-openjdk along with gradle, I can build the signal-cli package.
Thanks for your help!

Last edited by Tétrapyle (2024-09-21 14:46:47)

Offline

#10 2024-09-21 14:53:51

Tétrapyle
Member
Registered: 2014-01-03
Posts: 61

Re: [solved] depends on version >= but it seemed <=

It is solved, right?

Anyway:

$ pacman -Qikk bash pacman
Name            : bash
Version         : 5.2.032-2
Description     : The GNU Bourne Again shell
Architecture    : x86_64
URL             : https://www.gnu.org/software/bash/bash.html
Licenses        : GPL-3.0-or-later
Groups          : None
Provides        : sh
Depends On      : readline  libreadline.so=8-64  glibc  ncurses
Optional Deps   : bash-completion: for tab completion [installed]
Required By     : arch-install-scripts  at-spi2-core  atop  autoconf  automake  base  bash-completion  bind  bison  bzip2  ca-certificates-utils  cairo  cups-filters  daggerfall-unity-bin  db  db5.3  dejagnu  devtools  diffutils  djvulibre  dkms  dmenu  e2fsprogs
                  elfutils  fakeroot  fftw  findutils  firefox  flex  fltk  freetype2  gawk  gdbm  geogebra  gettext  glib2  gnupg  gpm  gradle  gsl  gtk-update-icon-cache  gtk4  gzip  hdf5  hostsblock  hunspell  icu  ijs  intel-oneapi-common  intel-oneapi-mkl
                  intel-oneapi-openmp  intel-oneapi-tbb  iptables  java-runtime-common  keyutils  krb5  libassuan  libcamera  libcups  libdca  libgpg-error  libksba  libmikmod  libnet  libpcap  libpng  libreoffice-still  libteam  libtool  libusb-compat  libxml2  libxslt
                  lm_sensors  lsb-release  lvm2  m4  man-db  meson  miniupnpc  mjpegtools  mkinitcpio  mtools  netpbm  npth  nspr  nss  openresolv  p7zip  pacman  pahole  pari  pass  pcre  pdftk  pkgconf  rasqal  redland  rpmextract  rust  sane  signal-cli  smartmontools
                  source-highlight  spirv-tools  subversion  systemd  taglib  texinfo  texlive-bin  tor  translate-shell  unzip  vlc  which  wxwidgets-gtk3  xdg-utils  xmlsec  xorg-server  xorg-server-xvfb  xorg-x11perf  xorg-xpr  xz
Optional For    : audit  mdadm  ncurses  openssh  pcre2  tzdata  usbutils  vim-runtime
Conflicts With  : None
Replaces        : None
Installed Size  : 9.20 MiB
Packager        : Tobias Powalowski <tpowa@archlinux.org>
Build Date      : Tue 27 Aug 2024 07:59:54 AM CEST
Install Date    : Mon 02 Sep 2024 10:32:20 AM CEST
Install Reason  : Explicitly installed
Install Script  : Yes
Validated By    : Signature

bash: 257 total files, 0 altered files
Name            : pacman
Version         : 7.0.0.r3.g7736133-1
Description     : A library-based package manager with dependency support
Architecture    : x86_64
URL             : https://www.archlinux.org/pacman/
Licenses        : GPL-2.0-or-later
Groups          : None
Provides        : libalpm.so=15-64
Depends On      : bash  coreutils  curl  gawk  gettext  glibc  gnupg  gpgme  grep  libarchive  pacman-mirrorlist  systemd
Optional Deps   : base-devel: required to use makepkg [installed]
                  perl-locale-gettext: translation support in makepkg-template [installed]
Required By     : appstream-glib  arch-install-scripts  archlinux-keyring  base  base-devel  expac  pacman-contrib  pyalpm  yay
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 4.82 MiB
Packager        : Morten Linderud <foxboron@archlinux.org>
Build Date      : Mon 09 Sep 2024 06:50:39 PM CEST
Install Date    : Sun 15 Sep 2024 03:27:56 PM CEST
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : Signature

backup file: pacman: /etc/makepkg.conf (Modification time mismatch)
backup file: pacman: /etc/makepkg.conf (Size mismatch)
backup file: pacman: /etc/makepkg.conf (SHA256 checksum mismatch)
backup file: pacman: /etc/pacman.conf (Modification time mismatch)
backup file: pacman: /etc/pacman.conf (Size mismatch)
backup file: pacman: /etc/pacman.conf (SHA256 checksum mismatch)
backup file: pacman: /etc/makepkg.conf.d/rust.conf (Modification time mismatch)
backup file: pacman: /etc/makepkg.conf.d/rust.conf (Size mismatch)
backup file: pacman: /etc/makepkg.conf.d/rust.conf (SHA256 checksum mismatch)
pacman: 422 total files, 0 altered files

I will keep note of this 'set -x' 'set +x' in the makepkg script.

Offline

Board footer

Powered by FluxBB