[Bug 261523] Mk/bsd.default-versions.mk: Change default db5 (deprecated and EoL) to db18

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 21 Jul 2022 16:13:58 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261523

Yasuhiro Kimura <yasu@freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #231569|0                           |1
        is obsolete|                            |
 Attachment #231617|maintainer-approval?(apache |
              Flags|@FreeBSD.org)               |
 Attachment #231617|0                           |1
        is obsolete|                            |

--- Comment #9 from Yasuhiro Kimura <yasu@freebsd.org> ---
Created attachment 235409
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=235409&action=edit
Updated patch file

* Remove compatiblity hack to upgrade older plussed versions to 5+ aa there
isn't such case in ports tree anymore.
* Remove INVALID_BDB_VER and replace it with argument of 'USE=bsb'.
* Stop checking if there is already installed version of berkeley db. While
testing migration from db5 to db18, I found following confuging situation.
  (1) Currently default version of bdb is 5. So if a port uses 'USES=bdb', then
install packages depends of db5.
  (2) To migrate to db18, add 'DEFAULT_VERSIONS+=bdb=18' to /etc/make.conf.
  (3) Rebuild package installed at (1).
  (4) Now it is expected the package depends on db18. But what really      
happens is that it still depends on db5. It happens because when db5 is already
installed it is used as default version of bdb even if there is
'DEFAULT_VERSIONS+=bdb=18' in /etc/make.conf. It's against user's expectation.
So remove the logic.
* Add entry to UPDATING.
* Bump PORTREVISION of ports that use bdb.

-- 
You are receiving this mail because:
You are on the CC list for the bug.