Drop COMPILER to unbreak on sparc64 and other gcc archs

The way WANTLIB* and LIB_DEPENDS were set up, ${COMPILER_LIBCXX} ended
up in WANTLIB-main without gcc-libs ending up in LIB_DEPENDS-main;
pkg_create then failed because it had no way to reach a package
providing libestdc++.  This kind of breakage had been spotted in several
ports after switching the C++ ports to "COMPILER = base-clang
ports-gcc".  I'm not sure yet how these problems could be avoided.
Maybe additional checks in portcheck(1)?

Anyway, opensmtpd-extras was mechanically switched to COMPILER because
WANTLIB-mysql contained ${COMPILER_LIBCXX}.  This is currently not
needed, and since opensmtpd-extras is a C-only port, let's just drop
COMPILER.

ok sthen@ giovanni@ (maintainer)
This commit is contained in:
jca 2019-06-05 12:38:56 +00:00
parent 94c30b4a03
commit e51424d3ff

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.26 2018/11/24 11:27:49 giovanni Exp $
# $OpenBSD: Makefile,v 1.27 2019/06/05 12:38:56 jca Exp $
COMMENT-main= extras for smtpd
COMMENT-mysql= mysql based smtpd table support
@ -14,6 +14,7 @@ PKGNAME-pgsql= opensmtpd-extras-pgsql-${V}
PKGNAME-python= opensmtpd-extras-python-${V}
PKGNAME-redis= opensmtpd-extras-redis-${V}
EPOCH= 0
REVISION= 0
CATEGORIES= mail
@ -27,14 +28,12 @@ MULTI_PACKAGES= -main -mysql -pgsql -python -redis
# BSD
PERMIT_PACKAGE_CDROM= Yes
WANTLIB= c crypto event m pthread ssl sqlite3 z
WANTLIB-mysql= c crypto event ssl m pthread ${COMPILER_LIBCXX} mysqlclient
WANTLIB-main= c crypto event m pthread ssl sqlite3 z
WANTLIB-mysql= c crypto event iconv ssl m pthread mysqlclient z
WANTLIB-pgsql= c crypto event ssl pq
WANTLIB-python= c crypto event ssl m util pthread ${MODPY_WANTLIB}
WANTLIB-redis= c crypto event ssl hiredis
COMPILER = base-clang ports-gcc base-gcc
MASTER_SITES= ${HOMEPAGE}archives/
MODULES= lang/python