Files
ports/sysutils/cardano-cli/Makefile
T
Xin LI 5f9d389f29 databases/lmdb0: Add port for LMDB 0.9.x legacy ABI
LMDB 1.0 introduced an incompatible on-disk format change and subtle
API breakage: applications that compiled cleanly against 1.0 headers
could fail silently at run time. Known affected ports include dns/knot3,
mail/bogofilter, and mail/postfix; the postfix issue has been confirmed
upstream. Linux distributions such as Arch Linux have observed the same
breakage. Samba can also be affected in certain configurations.

Because the regression is not detectable in an -exp build run -- the
postfix failure only manifests at run time, and bogofilter was caught
only because post-build self-tests happen to exercise this path -- we
cannot rely on package builds to validate the 1.0 upgrade.

This commit introduces databases/lmdb0 as a holding port for the 0.9.35
release, pinned to the 0.x branch with PORTSCOUT=limit:^0. and mutually
conflicting with databases/lmdb, which retains 1.0. The two packages
cannot be installed simultaneously, but having lmdb0 available means:

* Ports known to require the 0.9 ABI can declare an explicit dependency
  on databases/lmdb0 until they are validated against 1.0.
* Users with existing databases in the 0.9 format can still access the
  mdb_dump and mdb_load utilities to migrate data before upgrading.
* The package conflict prevents accidental mixing.

All 50 direct dependents of databases/lmdb are redirected to
databases/lmdb0 for now with a PORTREVISION bump, effectively restoring
the tree to the state prior to the LMDB 1.0 update. Once all dependent
ports are validated against LMDB 1.0, they will be moved back to
databases/lmdb and databases/lmdb0 will be removed.

PR:             ports/296530
2026-07-06 08:57:32 -07:00

48 lines
1.1 KiB
Makefile

PORTNAME= cardano-cli
DISTVERSIONPREFIX= ${PORTNAME}-
DISTVERSION= 11.0.0.0
PORTREVISION= 1
CATEGORIES= sysutils net-p2p
MASTER_SITES= https://chap.intersectmbo.org/package/:chap
MAINTAINER= arrowd@FreeBSD.org
COMMENT= Command line management tool for Cardano node
WWW= https://cardano.org/
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
NOT_FOR_ARCHS= i386
LIB_DEPENDS= libsecp256k1.so:math/secp256k1 \
libblst.so:security/blst \
liblmdb.so:databases/lmdb0
USES= autoreconf:build cabal gmake libtool pkgconfig
USE_GITHUB= yes
GH_ACCOUNT= IntersectMBO
GH_TUPLE= IntersectMBO:libsodium:${LIBSODIUM_HASH}:sodium
LIBSODIUM_HASH= dbb48cce5429cb6585c9034f002568964f1ce567
LIBS_PREFIX= ${WRKDIR}/libs_install
CABAL_PROJECT= append
CABAL_REPOSITORIES= chap
BUILD_ARGS= --ghc-option -Wwarn
WITH_LTO= yes
pre-build:
@${MKDIR} ${PKGCONFIG_LINKDIR}
cd ${WRKSRC_sodium} && ./autogen.sh
cd ${WRKSRC_sodium} && ./configure --prefix=${LIBS_PREFIX} --with-pthreads --disable-shared
cd ${WRKSRC_sodium} && ${GMAKE} -j${MAKE_JOBS_NUMBER} && ${GMAKE} ${INSTALL_TARGET}
${MV} ${LIBS_PREFIX}/lib/pkgconfig/libsodium.pc ${PKGCONFIG_LINKDIR}
.include <bsd.port.mk>