Skip to main content
Topic: SOLVED: Problem building 'diffmerge' (Read 656 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

SOLVED: Problem building 'diffmerge'

I'm trying to build 'diffmerge' from:

https://aur.archlinux.org/diffmerge.git

Code: [Select]
craig@lemur4:~/diffmerge$ makepkg
==> Making package: diffmerge 4.2.0.697-1 (Fri 17 Dec 2021 11:20:08 AM PST)
==> Checking runtime dependencies...
==> Missing dependencies:
  -> libpng15
==> Checking buildtime dependencies...
==> ERROR: Could not resolve all dependencies.

I didn't go any farther.  I have 'libpng' 1.6.37-3 installed.   Looking in the repositories, there is a 'community/libpng12' package.  I also found this:

https://aur.archlinux.org/packages/libpng15/

I feel like i probably could build 'diffmerge' if i built the above 'libpng15', but in my reading i encountered warnings against doing this sort of thing.  Always upgrade your whole system so everything will be in sync, i have seen advised repeatedly and bringing in a foreign package like this seems to me like it probably would (?) run counter to that advice.

So my question is, what is the proper way to handle this?  I can see two (broad) possibilities -- either 'diffmerge' is out of date and needs to be updated before it can be properly built.  Or there *is* some (reasonably) legit way of dealing with this situation.  I didn't even try to symlink 'libpng15' to my already installed 'libpng' because -- while it might work -- i want to know the proper way for handling this... if there is one.  Thanks much for helping a newbie to Artix.

Added/Resolution: The package is badly out of date and consensus seems to be to avoid.

Re: Problem building 'diffmerge'

Reply #1
libpng15 from AUR is signed with a PGP key which isn't found at least on https://keyserver.ubuntu.com and https://pgp.surf.nl. Although it is possible to circumvent this check, I'd advise against installing such packages.

AUR in general isn't officially supported, neither by Arch nor by Artix. It would be best to instead report any errors on the page of that particular package.

Re: Problem building 'diffmerge'

Reply #2
This is a proprietary program last updated in 2019 and has quite a few old dependencies. Looking at the parent website, the packages are intended for Ubuntu 12.04 and Fedora 17, which are almost 10 years old.

I'd advise to try to package an AppImage out of the Ubuntu 12.04 deb using pkg2appimage. You'd have a single portable file that will be able to carry these outdated dependencies and have it work on any GNU/Linux distribution.

Or try KDE's KDiff, which aims to fill a similar niche (and is open source).

Re: Problem building 'diffmerge'

Reply #3
For a high security environment no doubt a thorough audit should be conducted first, I experienced no ill effects from installing this so far though. Edited output showing most relevant parts, I needed to press y to install / proceed at various points, other build methods would be similar but may need slight adaptation:
Code: [Select]
$ pakku -S diffmerge
:: Import PGP key 8048643BA2C840F4F92A195FF54984BFA16C640F? [Y/n/c/a/?] ?
   c - import all keys
   a - abort operation
   ? - view this help
:: Import PGP key 8048643BA2C840F4F92A195FF54984BFA16C640F? [Y/n/c/a/?] c
gpg: key F54984BFA16C640F: no user ID
gpg: Total number processed: 1
==> Making package: libpng15 1.5.30-1 (Sat 18 Dec 2021 02:39:11 AM GMT)
    libpng-1.5.30.tar.xz ... FAILED (unknown public key F54984BFA16C640F)
==> ERROR: One or more PGP signatures could not be verified!
error: failed to build 'libpng15'
:: Build failed, retry? [y/e/N/?] n
warning: installation aborted
$ gpg --search-keys F54984BFA16C640F
gpg: data source: https://162.213.33.9:443
(1)   4096 bit RSA key F54984BFA16C640F, created: 2013-05-31
Keys 1-1 of 1 for "F54984BFA16C640F".  Enter number(s), N)ext, or Q)uit > N
$ gpg --recv-keys F54984BFA16C640F
gpg: key F54984BFA16C640F: public key "Glenn Randers-Pehrson (mozilla) <[email protected]>" imported
gpg: Total number processed: 1
gpg:               imported: 1
$ pakku -S diffmerge
Packages (2) diffmerge-4.2.0.697-1  libpng15-1.5.30-1

:: Proceed with building? [Y/n] y

(it worked & built then)

(I also have this in /etc/pacman.d/gnupg/gpg.conf: keyserver keys.openpgp.org because of similar past errors on the AUR, perhaps that makes a difference too)

Re: Problem building 'diffmerge'

Reply #4
Or try KDE's KDiff, which aims to fill a similar niche (and is open source).
And maybe : https://meldmerge.org/

Code: [Select]
pacman -Si meld
Dépôt                    : world
Nom                      : meld
Version                  : 3.20.4-1
Description              : Compare files, directories and working copies
Architecture             : any
URL                      : https://meldmerge.org/
Licences                 : GPL
Groupes                  : --
Fournit                  : --
Dépend de                : python-gobject  python-cairo  gtksourceview3
                           gsettings-desktop-schemas  dconf
Dépendances opt.         : --
Est en conflit avec      : --
Remplace                 : --
Taille du téléchargement : 710,91 KiB
Taille installée         : 3863,05 KiB
Paqueteur                : Artix Build Bot <[email protected]>
Compilé le               : ven. 13 août 2021 23:23:35
Validé par               : Somme MD5  Somme SHA-256  Signature

Dépôt                    : extra
Nom                      : meld
Version                  : 3.20.4-2
Description              : Compare files, directories and working copies
Architecture             : any
URL                      : https://meldmerge.org/
Licences                 : GPL
Groupes                  : --
Fournit                  : --
Dépend de                : python-gobject  python-cairo  gtksourceview3
                           gsettings-desktop-schemas  dconf
Dépendances opt.         : --
Est en conflit avec      : --
Remplace                 : --
Taille du téléchargement : 715,77 KiB
Taille installée         : 3859,64 KiB
Paqueteur                : Evangelos Foutras <[email protected]>
Compilé le               : ven. 03 déc. 2021 00:37:09
Validé par               : Somme MD5  Somme SHA-256  Signature



 

Re: Problem building 'diffmerge'

Reply #5
Or try KDE's KDiff, which aims to fill a similar niche (and is open source).
There's also vimdiff(1). It isn't GUI (which I personally find a plus), but it shows differences between two files open in buffers side-by-side interactively as you edit the files.