Package Details: lib32-mozjpeg 4.0.3-2

Git Clone URL: https://aur.archlinux.org/lib32-mozjpeg.git (read-only, click to copy)
Package Base: lib32-mozjpeg
Description: JPEG image codec with accelerated baseline decoding and superior encoding (32-bit)
Upstream URL: https://github.com/mozilla/mozjpeg
Licenses: BSD
Conflicts: lib32-libjpeg, lib32-libjpeg-turbo
Provides: lib32-libjpeg, lib32-libjpeg-turbo, libjpeg.so, libturbojpeg.so
Submitter: katt
Maintainer: katt
Last Packager: katt
Votes: 2
Popularity: 0.005457
First Submitted: 2020-12-30 15:44 (UTC)
Last Updated: 2022-02-11 18:58 (UTC)

Required by (96)

Sources (1)

Latest Comments

katt commented on 2022-02-11 18:59 (UTC)

@MarsSeed Fair enough I guess, done.

MarsSeed commented on 2022-02-11 12:15 (UTC) (edited on 2022-02-11 12:16 (UTC) by MarsSeed)

@katt Thanks for answering. The problem is that Arch provides already-built Pacman packages, whereas AUR does not. Therefore Arch package DB metadata will contain provided SO versions, whereas AUR (the web service and its DB) can not guess the to-be-provided version number unless explicitly written in the PKGBUILD. There is no way around it currently.

Like I said, for anyone who has AUR/mozjpeg but not AUR/lib32-mozjpeg installed, whenever they want to install anything that requires installation of lib32-gtk3, the AUR helper will force the user to uninstall mozjpeg and install libjpeg-turbo and lib32-libjpeg-turbo.

Only you can provide a solution to this problem, and only by declaring:

provides=(libjpeg.so=8-32)

I'm hoping for your understanding in this matter.

katt commented on 2022-02-10 19:52 (UTC)

@MarsSeed It already provides libjpeg.so=8-32 when built, here's output from pacman -Qi lib32-mozjpeg

Provides        : lib32-libjpeg  libjpeg.so=8-32  libturbojpeg.so=0-32  lib32-libjpeg-turbo

MarsSeed commented on 2022-02-10 12:21 (UTC)

Please kindly declare explicitly:

provides=(libjpeg.so=8-32)

Because Arch/multilib/lib32-libtiff unfortunately hardcodes depends=(libjpeg.so=8-32).

Consequences for users who have AUR/mozjpeg installed but not its 32-bit counterpart:

When installing anything that requires lib32-gtk3, the following will be installed:

lib32-gtk3 <- lib32-gdk-pixbuf2 <- lib32-libtiff

And lib32-libtiff will want to install lib32-libjpeg-turbo, because that's the only thing atm that explicitly provides the former's libjpeg.so=8-32 dependency.

Then lib32-libjpeg-turbo and libjpeg-turbo will be installed, and mozjpeg uninstalled.