perl: Bind us to @gdbm:1.19 due to API change in gdbm@1.20: (#25819)

By changing return values from C #defines to enums, gdbm-1.20 breaks a kludge:

  #ifndef GDBM_ITEM_NOT_FOUND
  # define GDBM_ITEM_NOT_FOUND GDBM_NO_ERROR
  #endif

The absence of the #define causes perl to #define GDBM_ITEM_NOT_FOUND
as GDBM_NO_ERROR which incorrect for gdbm@1.20:
This commit is contained in:
bernhardkaindl 2021-09-08 15:28:52 +02:00 committed by GitHub
parent 9ef1dbd0ef
commit 0ac751b27b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,7 +63,8 @@ class Perl(Package): # Perl doesn't use Autotools, it should subclass Package
extendable = True
depends_on('gdbm')
# Bind us below gdbm-1.20 due to API change: https://github.com/Perl/perl5/issues/18915
depends_on('gdbm@:1.19')
# :5.28 needs gdbm@:1:14.1: https://rt-archive.perl.org/perl5/Ticket/Display.html?id=133295
depends_on('gdbm@:1.14.1', when='@:5.28.0')
depends_on('berkeley-db')