From nobody Wed Aug 16 05:34:50 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RQcK66g7qz4qFTn; Wed, 16 Aug 2023 05:34:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RQcK61hmgz3FGY; Wed, 16 Aug 2023 05:34:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692164090; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=XGF35FEl+auOb0vLHZ7B3Ar8ld8Gc7rAevbOEtdlPOo=; b=vif/plPel7T68VCIkZBUw0TLPWP/4ogsfjdwY7UmLvO+l1sGRtgAEXnom1s2cV3gwVIe4/ kcdxuYIyUtTsZt2+WfpWyzwTXDTiNqVuDyh9Un2HQb73rZR7s3dbVBI+GrUULnHMkulDna jl8GPI48et3eCMslI+IbIAJw56S6hsVwAxHzndMT38hqdwrt+NnV+PBs87IyP3U5dpxj++ 7RBMOCFB1PedbrUmL1ZM2TXkEex8+q3oXdZghCuHHzzLXUPh23msQN8Z2NPD1vksGSMYPg rDkdW8dpCpJMIzQr4aK/w45WwCqX4gOeXQoiwsVZIOA4x6SCgooW4HIwvKZzvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692164090; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=XGF35FEl+auOb0vLHZ7B3Ar8ld8Gc7rAevbOEtdlPOo=; b=c2cJMb6RrawIMBdj+Z4lYBLWToJAhepZ+9nr0k+Xg2CXZJZTHoYti+qSZ0FXGTq/9u8nO8 CQ5c865FC2fCX4naNW/ni+cYb6XmyLxTAdLbTohpS2YQKquqcD9dK6T8O/j5OJ9ukzai5L 5q+/rGJnOvodX+92aReQFS723yvKiqxfxYcSQnGZxbNxoBLVjN+Q3LYusOYXG9CYJj9J9+ XWzPowzACLTC6FAWEUGLGI1CuNk2/1SvyjQErbl8hQJ4m/7W3i5XvQP741RI//+aLcwFqP r9KXvEajKYtCV91mI3LbzKD6g0RpnGcnMvDWD80VeEL3SQ4XrAyf56t8vhATBQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1692164090; a=rsa-sha256; cv=none; b=JHQ2+x0OgsLQdIiosD3oAWwCVsUdctVBzjRbtGCoifSWa3KAw3mggzDBXYe1MiHnPi0YX1 H/4HGXI3YMe5tnzdFrufptYVPdNTuj1/7TfpRDuCF4Bmzcubo/+bIb1evi04B1T4FWzfQ9 zOXkyj1Ib1/9Ie2lN8HjhcgpZPHj2f83sWj+AHQSGgAzIP6qkNI0D4OFKFBtPOaTTa+z4x aOwwB4BKN0z1myf4xuHqtmo/Q4yS7EXXZ6JR+0GtdVFMKUnFzs6+LKEjzmRyVQfY07mQyw qReDWI9aPa53U5gsncppx+VuRO1hfgDH7on0v8MvFCuNf87B5PZ11W0XYGwFZg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RQcK60kRgzg0j; Wed, 16 Aug 2023 05:34:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 37G5Yo3Z024057; Wed, 16 Aug 2023 05:34:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 37G5Yo9x024054; Wed, 16 Aug 2023 05:34:50 GMT (envelope-from git) Date: Wed, 16 Aug 2023 05:34:50 GMT Message-Id: <202308160534.37G5Yo9x024054@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Muhammad Moinur Rahman Subject: git: 04ef5f7e604b - main - sysutils/bareos21-*: Fix build on 14 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bofh X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 04ef5f7e604be3c382951983e9d96d6bc046997f Auto-Submitted: auto-generated The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=04ef5f7e604be3c382951983e9d96d6bc046997f commit 04ef5f7e604be3c382951983e9d96d6bc046997f Author: Muhammad Moinur Rahman AuthorDate: 2023-08-16 04:41:05 +0000 Commit: Muhammad Moinur Rahman CommitDate: 2023-08-16 05:34:37 +0000 sysutils/bareos21-*: Fix build on 14 - Utilize USES=localbase - Utilize OPTIONSNG where possible Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation --- sysutils/bareos21-server/Makefile | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/sysutils/bareos21-server/Makefile b/sysutils/bareos21-server/Makefile index 29feacab8afa..13992272e8a7 100644 --- a/sysutils/bareos21-server/Makefile +++ b/sysutils/bareos21-server/Makefile @@ -18,7 +18,7 @@ CONFLICTS?= bareos-server bareos20-server bareos19-server bareos18-server LIB_DEPENDS+= liblzo2.so:archivers/lzo2 \ libjansson.so:devel/jansson -USES+= cmake compiler:c++11-lang cpe localbase perl5 pkgconfig readline \ +USES+= cmake compiler:c++11-lang cpe localbase:ldflags perl5 pkgconfig readline \ shebangfix USE_GITHUB= yes USE_PERL5= run @@ -33,8 +33,7 @@ SHEBANG_LANG= perl SHEBANG_FILES= ${WRKSRC}/core/src/cats/make_catalog_backup.pl.in CFLAGS+= -Wno-error -CPPFLAGS+= -I${LOCALBASE}/readline -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib +CPPFLAGS+= -I${LOCALBASE}/readline OPTIONS_DEFAULT= OPENSSL OPTIONS_SINGLE= CRYPTO @@ -172,22 +171,15 @@ CMAKE_ARGS+= -Dbuild-dird=ON \ -Dbuild_client_only=OFF # Server default database +MTX_RUN_DEPENDS= ${LOCALBASE}/sbin/mtx:misc/mtx +MYSQL_VARS= DBTYPE=mysql +MYSQL_SUB_LIST= REQ_MYSQL=mysql REQ_PGSQL="" PGSQL_CMAKE_ON= -Dpostgresql=ON PGSQL_USES= pgsql +PGSQL_VARS= DBTYPE=postgresql +PGSQL_SUB_LIST= REQ_MYSQL="" REQ_PGSQL=postgresql +SQLITE3_VARS= DBTYPE=sqlite3 -MTX_RUN_DEPENDS= ${LOCALBASE}/sbin/mtx:misc/mtx - -.include - -.if ${PORT_OPTIONS:MMYSQL} -DBTYPE= mysql -SUB_LIST+= REQ_MYSQL=mysql REQ_PGSQL="" -.elif ${PORT_OPTIONS:MSQLITE3} -DBTYPE= sqlite3 -.else -DBTYPE= postgresql -SUB_LIST+= REQ_MYSQL="" REQ_PGSQL=postgresql -.endif PLIST_SUB+= DBTYPE=${DBTYPE} .endif @@ -238,4 +230,14 @@ post-install: .else .include "${MASTERDIR}/Makefile.common" .endif # -client and -server are defined + +.include + +.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 )) +USES+= llvm:max=15 +CC= clang${LLVM_VERSION} +CPP= clang-cpp${LLVM_VERSION} +CXX= clang++${LLVM_VERSION} +.endif + .include