From nobody Wed Jul 10 09:48:11 2024 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 4WJtMb6gXLz5QbZv; Wed, 10 Jul 2024 09:48:11 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WJtMb68xXz40wJ; Wed, 10 Jul 2024 09:48:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1720604891; 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=ElUv+lygoQ1Jqa8ABWet0Qb/1sXDtXgS+RKZDz8+phk=; b=OasKUQnfuKSYsSDpdmT0BN5hEdij+HTDu8B8A3Ech2wwoFysBdHRPnQ+LCKlAEQK/2pwSZ Q+mdj+LPRWfGA1NG3r7/691VV9ExtRjF7wyRqkOMdtRM5HSpUBAb7ek9VyfuPMhbc6LMNX fnONoP6iFcyGbXsWCNywwdzGwSNII6d9ZErkxTfJz1OckOPfEGxfzyGJ96XuFST1VJvPA1 6ZzrXZYinNBMw1BiB2Qn7QpMB8GL2umq5BdmfwolTxVIgRLO4Zj2kK9Mq32airToZQcUeQ 2yoJ+FtXOCMvnwxMrw2MlVhsOSjqv5QKsAQFf7P3Vw4OHN8T6kWOwKZyA7i8nA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1720604891; a=rsa-sha256; cv=none; b=XDtWsoEi8xVufRCJkUO0/mTfb64qPK094ODi87TklvnQYuhDi6C/4diQWQmPsLtTK1oXgo TlmfDfCR3ujM94IrdJvK18WxIPTgLwbykpB3hEfyuO1auKwcnsE6oN87AjW4BSVLO2ZLWO odJrXVh4CwvVj1VE8o9nyX7QW70T1aFzybUQEo1SkbxE28YKRCzP4h7KwJZ/lGLCe2M/hC p/qwgi0z9UGg+V02YZWv3BM93K3P1fM5heK18JLQgxrWFQRWHgctLhnQ8DdXgGrfuBOh7c bbADnTtWPaTmoJZIfTHrYh32t2tLE7mNVr7W3yTQnu17cH/GHldl9jcDXBWQHw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1720604891; 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=ElUv+lygoQ1Jqa8ABWet0Qb/1sXDtXgS+RKZDz8+phk=; b=wsJGCH99AE9WWfMTXzDUbac9Qab4nOWeKbh3Bk2nnasshnX2i877Wu+0KXMHCcx6ueRVVe Gq8r3Q5Cy2iGd8DlQh2XZe8CR1V7zmLGJKkCnwWVTBEhnHYkW8/xpIahmG8ja+mUu4oZet cBJ3rXYTvlRI3Ys/Q+zezWbAYLp1vZwM1YQnOuJ5Qr6BHkMTDMM4H5PDNnoeohhIiiCCSc 5xmMFZ3SlPsA1SRqTInHlY1aCTIZz3vjkFCGgHcyP9rxN2Fnv+HCcUUpZ0dmsLujIgQpDE 6F7uOS+9euA1xJ3jQWIS/R6RR1txkKQEvBBmTQiPAR4b5f107iZEWJ8Q5dXNkA== 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 4WJtMb5mFsz1CCB; Wed, 10 Jul 2024 09:48:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 46A9mBG7019464; Wed, 10 Jul 2024 09:48:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 46A9mB0o019461; Wed, 10 Jul 2024 09:48:11 GMT (envelope-from git) Date: Wed, 10 Jul 2024 09:48:11 GMT Message-Id: <202407100948.46A9mB0o019461@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Ronald Klop Subject: git: 0d2c09e66832 - main - databases/mongodb50: update to 5.0.28 and add do-test 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: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ronald X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0d2c09e668321a2d20b0c35bf6675f110305ba4c Auto-Submitted: auto-generated The branch main has been updated by ronald: URL: https://cgit.FreeBSD.org/ports/commit/?id=0d2c09e668321a2d20b0c35bf6675f110305ba4c commit 0d2c09e668321a2d20b0c35bf6675f110305ba4c Author: Ronald Klop AuthorDate: 2024-07-09 08:10:56 +0000 Commit: Ronald Klop CommitDate: 2024-07-10 09:47:15 +0000 databases/mongodb50: update to 5.0.28 and add do-test Changes: https://www.mongodb.com/docs/manual/release-notes/5.0/#5.0.28---jul-09--2024 do-test: The port has had situations in which the code compiled, but the executables did not work. Try to catch this early with make test. --- databases/mongodb50/Makefile | 6 ++++-- databases/mongodb50/distinfo | 6 +++--- databases/mongodb50/files/make.test.sh | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 39 insertions(+), 5 deletions(-) diff --git a/databases/mongodb50/Makefile b/databases/mongodb50/Makefile index ec3e7e3ba4f9..18a6ac7fe6b1 100644 --- a/databases/mongodb50/Makefile +++ b/databases/mongodb50/Makefile @@ -1,7 +1,6 @@ PORTNAME= mongodb DISTVERSIONPREFIX= r -DISTVERSION= 5.0.27 -PORTREVISION= 1 +DISTVERSION= 5.0.28 CATEGORIES= databases net PKGNAMESUFFIX= ${DISTVERSION:R:S/.//} @@ -119,4 +118,7 @@ do-install: .endfor ${RM} ${STAGEDIR}${PREFIX}/bin/resmoke.py +do-test: + ${SH} ${FILESDIR}/make.test.sh "${STAGEDIR}${PREFIX}/bin" + .include diff --git a/databases/mongodb50/distinfo b/databases/mongodb50/distinfo index 9a982189d7f7..f7eb08cae711 100644 --- a/databases/mongodb50/distinfo +++ b/databases/mongodb50/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1719241119 -SHA256 (mongodb-mongo-r5.0.27_GH0.tar.gz) = 62a51dee664b6d2722edc8443c2a8d2e1e7400bf48d44ae25b1ad799d3bee5da -SIZE (mongodb-mongo-r5.0.27_GH0.tar.gz) = 57287707 +TIMESTAMP = 1720509272 +SHA256 (mongodb-mongo-r5.0.28_GH0.tar.gz) = d3d21296ec71e199ff2b66ecf9385210519e37a230ef180f4a92f81439db94f2 +SIZE (mongodb-mongo-r5.0.28_GH0.tar.gz) = 57289502 diff --git a/databases/mongodb50/files/make.test.sh b/databases/mongodb50/files/make.test.sh new file mode 100755 index 000000000000..d479bd7df132 --- /dev/null +++ b/databases/mongodb50/files/make.test.sh @@ -0,0 +1,32 @@ +#! /bin/sh + +set -e + +usage() { + echo "Usage: $0 " + echo " path to the executables" +} + +test "$#" -eq 1 || ( usage && exit 1 ) + +set -x + +PATH="$1:$PATH" + +DBDIR=$( mktemp -d -t tmp.mongodb ) + +trap 'rm -rf "$DBDIR"' EXIT + +# Trivial check if the binaries execute at all. +mongod --version +mongos --version +mongo --version + +# Check if an empty database can be created. +mkdir "$DBDIR/db" +tail -F "$DBDIR/log" | ( grep -qFe "Waiting for connections" && kill $(cat "$DBDIR/pid") ) & +script -eF "$DBDIR/log" \ + timeout -s TERM -k 30s 60s \ + mongod --dbpath "$DBDIR/db" --pidfilepath "$DBDIR/pid" + +echo "Test successful"