1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-02 06:03:50 +00:00

databases/db6, db5: fix JAVA-enabled build, suppress sed failed warnings

Add JAVA_VERSION="7 8" to db6
Add REWARNFILE=/dev/null to db6 and db5

Reported by: Tommy P <tommyhp2@gmail.com>
PR:          243278
MFH:         2020Q1 (blanket, fix broken build)
This commit is contained in:
Matthias Andree 2020-01-12 12:47:53 +00:00
parent 537a81ff71
commit 2214b6a32c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=522784
2 changed files with 11 additions and 1 deletions

View File

@ -38,6 +38,9 @@ USE_LDCONFIG= yes
PLIST_SUB= BDBMAJ=${BDBMAJ} BDBVER=${BDBVER}
MAKE_ARGS+= docdir=${DOCSDIR}
CFLAGS+= -Wall -Wextra
# we use REINPLACE_CMD with a glob that matches
# too broadly, suppress 'sed failed' warnings:
REWARNFILE= /dev/null
OPTIONS_DEFINE= CRYPTO DEBUG L10N SQL JAVA TCL DOCS
OPTIONS_DEFAULT=CRYPTO

View File

@ -36,6 +36,9 @@ PATCH_WRKSRC= ${WRKDIR}/${DISTNAME}
USE_LDCONFIG= yes
PLIST_SUB= BDBMAJ=${BDBMAJ} BDBVER=${BDBVER}
MAKE_ARGS+= docdir=${DOCSDIR}
# we use REINPLACE_CMD with a glob that matches
# too broadly, suppress 'sed failed' warnings:
REWARNFILE= /dev/null
OPTIONS_DEFINE= CRYPTO DEBUG L10N SQL JAVA TCL DOCS
OPTIONS_DEFAULT=CRYPTO
@ -54,7 +57,11 @@ L10N_CONFIGURE_ENABLE= localization
SQL_CONFIGURE_ENABLE= sql sql_codegen
SQL_VARS= DBLIBS+=libdb_sql
JAVA_USE= java
JAVA_VARS= DBLIBS+=libdb_java
# db6 is only compatible with openjdk 7 or 8,
# openjdk 11 or newer and cause IllegalArgument
# exceptions during build even if the version check
# in dist/configure is disabled or fixed:
JAVA_VARS= DBLIBS+=libdb_java JAVA_VERSION="7 8"
JAVA_CONFIGURE_ENABLE= java
JAVA_CPPFLAGS= -I"${JAVA_HOME}/include"
JAVA_CONFIGURE_ENV= JAVAC="${JAVAC}" JAR="${JAR}" JAVA="${JAVA}"