Re: Update-Alternatives error for gnupg2?
Scott Hannahs via Fink-users <[email protected]> Mon, 22 Sep 2025 23:00:45 -0400
| Newsgroups | gmane.os.apple.fink.general |
|---|---|
| Message-ID | <[email protected]> |
On Sep 22, 2025, at 09:28, [email protected] <mailto:[email protected]> wrote: > > On 2025-09-21 11:11, Scott Hannahs via Fink-users wrote: >> Not sure if this is an error or just my installation has gotten messed >> up with testing. But I have been fairly clean in installing released >> versions of gnupg. >> With the latest update of gnupg2 I get an error in updating >> alternatives since some of them don’t exist? So the update >> alternatives fails? >>> Unpacking gnupg2 (2.5.12-1) over (2.5.12-1) ... >>> Setting up gnupg2 (2.5.12-1) ... >>> update-alternatives: warning: forcing reinstallation of alternative >>> /opt/sw/bin/gpg2 because link group gpg is broken >>> update-alternatives: warning: not replacing /opt/sw/bin/gpg with a >>> link > > It's a bug in the new version of the Fink package for gnupg2. The previous version (v2.2.x) had bin/gpg2 and a symlink from bin/gpg for compatibility with the ancient gnupg-v1 (and similar issues with the versioned manpages). > > With the update to gnupg-2.5.x, the software now comes with only bin/gpg instead, so update-alternatives script that's looking for bin/gpg2 breaks. > > I'm working on the fix. > > Hanspeter Hanspeter, Thanks. FYI, if I create a fake hardlink from gpg to gpg2 and then run the install it completes with a lot of warnings. Also it changes gpg2 to an empty file. But then it is listed as installed. I think the gpg-unified installs gpg1. Is that needed anymore? Not sure how many people want to install gpg1 and gpg2. But to be consistent with other packages they should install separate binaries and then link the unversioned binary to the most recently installed? At least that is how I think it is suppossed to work. As far as I can tell one changes all the installed files with a version extension, then builds the installer with a post-install script to run update-alternatives? Getting all that consistent seems to be a challenge. -Scott _______________________________________________ Fink-users mailing list [email protected] List archive: https://sourceforge.net/p/fink/mailman/fink-users/ Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-users