Can gnupg1 and gnupg2 be made not to conflict?

raf macports at raf.org
Tue Sep 29 04:29:33 UTC 2020


On Tue, Sep 29, 2020 at 11:02:40AM +1000, raf <macports at raf.org> wrote:

> On Mon, Sep 28, 2020 at 12:10:29AM -0500, Ryan Schmidt <ryandesign at macports.org> wrote:
> 
> > On Sep 27, 2020, at 19:39, raf wrote:
> > 
> > > But is there any way to make gnupg1 and gnupg2 not
> > > conflict?
> > 
> > Sure, that's possible to do. "port notes gnupg1" even says it was
> > planned to do that:
> > 
> > > This port will be made co-installable with the modern version in
> > > mid-October 2018. All binaries will be postfixed with "1" and
> > > dependents switched over to pull in modern GnuPG, eventually forcing
> > > an upgrade. After this date, this port will still be provided for
> > > users that need to work on old data, which is not supported by the
> > > modern version any longer, but not used within MacPorts.
> > 
> > Looks like we didn't get around to doing that yet though. I don't see
> > a ticket for this task either. You could file one.
> 
> Hi Ryan,
> 
> Thanks for that. I've just filed a ticket for it (#61245).

The maintainer isn't willing to fix it. Perhaps there
are still people who aren't aware yet that they should
be using gnupg2, so keeping the conflict might still be
useful.

So I've created a local Portfile for it. It doesn't
coexist entirely with gnupg1 because adding 1 as a
program suffix doesn't change the name of the
/opt/local/share/gnupg directory, so their FAQ files
clash. Only one can be active, but that's fine. I need
to get rid of gnupg1 anyway in order to install gnupg2.

Luckily, it does coexist happily with gnupg2 which
doesn't have an FAQ file there.

If anyone needs it, it's attached.

cheers,
raf

-------------- next part --------------
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0

set my_name         gnupg
name                ${my_name}14
version             1.4.23
revision            1
categories          mail security
license             GPL-3+
installs_libs       no
maintainers         macports at raf.org
description         GNU Privacy Guard version 1.4
long_description    GnuPG is a complete and free replacement for PGP. Because \
                    it does not use the patented IDEA algorithm, it can be used \
                    without any restrictions. GnuPG is a RFC4880 (OpenPGP) \
                    compliant application.
homepage            https://www.gnupg.org
platforms           darwin freebsd sunos
distname            ${my_name}-${version}
master_sites        ${my_name}:${my_name}

use_bzip2           yes

checksums           rmd160  087c494ff78bd1e85873ac383e0c6e236b6a9869 \
                    sha256  c9462f17e651b6507848c08c430c791287cd75491f8b5a8b50c6ed46b12678ba \
                    size    3749353

configure.args      --infodir=${prefix}/share/info \
                    --disable-asm \
                    --with-libiconv-prefix=${prefix} \
                    --with-libintl-prefix=${prefix} \
                    --with-zlib=${prefix} \
                    --with-bzip2=${prefix} \
                    --with-libusb=${prefix} \
                    --with-ldap=${prefix} \
                    --with-libcurl=${prefix} \
                    --program-suffix=1 \
                    --docdir=${prefix}

depends_lib         port:libiconv \
                    port:gettext \
                    port:readline \
                    port:zlib \
                    port:bzip2 \
                    port:libusb-compat \
                    port:openldap \
                    port:curl

test.run            yes
test.dir            ${worksrcpath}/checks
test.target         check

# clang defaults to c99, and gnupg doesn't play nicely
if {[string match *clang* ${configure.compiler}]} {
    configure.cflags-append -std=gnu89
}

platform sunos {
    configure.args-delete --disable-asm
}

notes {
    This port is a legacy 1.4 release of GnuPG.

    While this release is still maintained, it is also deprecated\
    and less useful than it was before, since agent and dirmngr\
    support have been removed.

    Basic functionality like signature checking or encryption\
    and decryption might still work, if the algorithms employed\
    are supported, but users are highly recommended to switch to\
    the modern version of GnuPG, provided by the gnupg2 port.

    This port is co-installable with the modern version.\
    All binaries are postfixed with "1".
}

livecheck.type      regex
livecheck.url       https://www.gnupg.org/ftp/gcrypt/${my_name}/
livecheck.regex     ${my_name}-(1(?:\\.\\d+)+)


More information about the macports-users mailing list