[MacPorts] #60583: gnupg2 @2.2.20_0: Make +openldap variant non-default (was: gnupg2 @2.2.20_0)

MacPorts noreply at macports.org
Mon Jun 1 16:20:12 UTC 2020


#60583: gnupg2 @2.2.20_0: Make +openldap variant non-default
--------------------------+----------------------
  Reporter:  michi-zuri   |      Owner:  roederja
      Type:  enhancement  |     Status:  assigned
  Priority:  Low          |  Milestone:
 Component:  ports        |    Version:  2.6.2
Resolution:               |   Keywords:
      Port:  gnupg2       |
--------------------------+----------------------
Changes (by ryandesign):

 * cc: Ionic (added)
 * status:  new => assigned
 * owner:  (none) => roederja


Comment:

 Replying to [ticket:60583 michi-zuri]:
 > When I installed duplicity on my macOS 10.13 system I encountered the
 following warning message that led me down a rabbit hole:
 >
 > {{{Warning: couldn't find file '/opt/local/var/run/openldap-
 data/.turd_openldap' for port 'openldap'. Please deactivate and reactivate
 the port to fix this issue.}}}
 >
 > I managed to disable the warning by creating an empty .turd_openldap
 file with readable permissions,

 I can't explain why the .turd_openldap file was missing for you. It should
 have been there. Its presence just makes sure that MacPorts doesn't
 consider the directory empty and delete it. Deactivating and reactivating
 the port as suggested by the warning should have brought the file back.


 > but it left me wondering why gnupg2 needs openldap by default at all? Is
 it actually used by anything if the user does not manually configure
 openldap?
 >
 > I went ahead and reinstalled gnupg2 with the -openldap variant, since I
 am not intending to do any configuration for openldap myself. Could anyone
 confirm though that openldap is only used if configured, or am I missing
 out on some magic behind the curtains now?
 >
 > If my assumptions are correct, I would propose to make openldap an opt-
 in variant of gnupg2, rather than opt-out.

 There is extensive prior discussion on this matter in the pull request
 that changed the openldap dependency from mandatory to a variant:

 https://github.com/macports/macports-ports/pull/2625

 Many argued that they did not need openldap support in gnupg2 and that it
 should be moved to a variant and that the variant should not be enabled by
 default. This would have the additional advantage that the gnupg2 port
 would become distributable. One of the maintainers of the port argued
 against the creation of the variant at all but eventually accepted the
 variant if it was enabled by default. The other maintainer did not
 comment.

-- 
Ticket URL: <https://trac.macports.org/ticket/60583#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list