From nobody Sat Sep 03 18:50:24 2022 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 4MKkPF0y0Lz4bBk5; Sat, 3 Sep 2022 18:50:25 +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 4MKkPF0MnJz3xVn; Sat, 3 Sep 2022 18:50:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662231025; 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=KIjVnPJYUJCwNgSnMSlWbFQfT68fJbROgaHSSzON4T4=; b=aId0JQ4u03B9oO02eZmy2IcA9gwPf0j8Y58hmkl3KEC4EyTTnpZvq8+V6T/ghXEBJ247ET 1ff5AWlNOnT/5x7A6vbMencZ7IlunEUtnSwDTqlsMPOvEUwilBReWCAdQIcPQzPJCDgcZq 6+IzrCBfvrBKbmNE4TJZPbBQcO18ZLMUJkwgolaKbhlRI78epCXwp5yp8xqUQQqR3bmDtO KiINUl4SkMZR429bbDNmofGInr/+e9PEsFIj3teWm5BBsWbJypA4EFmR1ntkzeRdOHZcxp o1xiVRL8aVC6DbWa9NLAI+ALdxvuSG5JgfiEuiKjy9T5YljQ5aMNOZT6atvGHw== 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 4MKkPD6XtrzF4M; Sat, 3 Sep 2022 18:50:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 283IoOp2007041; Sat, 3 Sep 2022 18:50:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 283IoOeA007040; Sat, 3 Sep 2022 18:50:24 GMT (envelope-from git) Date: Sat, 3 Sep 2022 18:50:24 GMT Message-Id: <202209031850.283IoOeA007040@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Matthias Andree Subject: git: 12d7dba8b2e1 - main - archivers/py-borgbackup*: staging without HOME 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: mandree X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 12d7dba8b2e1b11e76dd0ae5c5c60ed3da45a50e Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662231025; 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=KIjVnPJYUJCwNgSnMSlWbFQfT68fJbROgaHSSzON4T4=; b=Uujawaq3rdLD210e+jpA3AqLNIl+jTL2ZFFHaxID8dE82O0Uylvu6U1jzTsxvgH7Qoh+ML Wr/gTN61lX4dHXPXPlAlp6tpKHZ1PyNFlwVGANTph/uI+C+X1oTSAcUnhY1M6S7gFoEYIQ CXJls61DJ4BfSOHsItIzREh3wgdGYHcojLn02WuU9hBaOWnIPeu9W1wcmfBydzDZkmtiBO 8brDNYPEkeG74HFfKoG/yqmygdU4fROD2i4N32x6U7N2aSvR6cLPokBSBL0VpWhzDGXDTM KWRHwwA9KpdyhqfpWql9ZSyjrCsM0JuiCop48HmDCUvNp3S/3aXCcAH+bo1H6A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1662231025; a=rsa-sha256; cv=none; b=ad/wg8vgi40j5+T01cCu6P1h1R3ircolK6kBhFHWsf4iR7Oxm+YOsiKChtbCfwhEmmF5/7 R1UhxrkxycV+dgZTvjrKgsYtCNdJ3jtzWY96AO4m8cUvbBiYCqMgUzG+oFCQwmKC7OSJ5Y 0iSk4vT/zI46dMcXeQkZGCTUfVn+TL5cQV3oST6a5re0Xxr93nbmXezllXs2xVcxqDcymV Pi43Nv37GrEjU7899VnoM+21k8ScJUiHJ19/G2OyjaZosA86SZYNjVdFSSMUB9vJXBKivQ 99U+Aq8i2vMLHNeWLlwVnPO7Vk0NVeIrHlAKLHAhYC89wCIzhCpH9BV0FW3tmg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mandree: URL: https://cgit.FreeBSD.org/ports/commit/?id=12d7dba8b2e1b11e76dd0ae5c5c60ed3da45a50e commit 12d7dba8b2e1b11e76dd0ae5c5c60ed3da45a50e Author: Matthias Andree AuthorDate: 2022-09-03 18:47:24 +0000 Commit: Matthias Andree CommitDate: 2022-09-03 18:50:19 +0000 archivers/py-borgbackup*: staging without HOME Building as non-root often inherits the "nobody" user's would-be home directory, "/nonexistent", which is just that. Provide something blank in the WRKDIR instead. Reported by: Juraj Lutter (otis@) Unrelated to, but still mentioned for... PR: 264816 --- archivers/py-borgbackup/Makefile | 6 ++++-- archivers/py-borgbackup11/Makefile | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/archivers/py-borgbackup/Makefile b/archivers/py-borgbackup/Makefile index ae58736a81ad..9c140f4641f2 100644 --- a/archivers/py-borgbackup/Makefile +++ b/archivers/py-borgbackup/Makefile @@ -33,13 +33,15 @@ OPTIONS_DEFAULT= FUSE FUSE_DESC= Support to mount locally borg backup files FUSE_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}llfuse>0:devel/py-llfuse@${PY_FLAVOR} -_BORGENV=BORG_PASSPHRASE=secret123 PYTHONPATH=${STAGEDIR}${PYTHON_SITELIBDIR} +_BORGHOME=${WRKDIR}/testhome +_BORGENV=BORG_PASSPHRASE=secret123 PYTHONPATH=${STAGEDIR}${PYTHON_SITELIBDIR} HOME=${_BORGHOME} post-install: ${MKDIR} ${STAGEDIR}${MAN1PREFIX}/share/man/man1/ ${INSTALL_MAN} ${WRKSRC}/docs/man/* ${STAGEDIR}${MAN1PREFIX}/share/man/man1/ - @${FIND} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/borg/ -name "*.so" \ + ${FIND} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/borg/ -name "*.so" \ -exec ${STRIP_CMD} {} \; @${ECHO_MSG} "----> running borg smoke tests" + ${MKDIR} ${_BORGHOME} ${SETENV} PYTHONPATH=${STAGEDIR}${PYTHON_SITELIBDIR} ${STAGEDIR}${PREFIX}/bin/borg -V ${RM} -r ${WRKDIR}/borgrepo ${SETENV} ${_BORGENV} ${STAGEDIR}${PREFIX}/bin/borg init --encryption=repokey ${WRKDIR}/borgrepo diff --git a/archivers/py-borgbackup11/Makefile b/archivers/py-borgbackup11/Makefile index ec282fca19d4..0ceafffc2471 100644 --- a/archivers/py-borgbackup11/Makefile +++ b/archivers/py-borgbackup11/Makefile @@ -33,13 +33,15 @@ OPTIONS_DEFAULT= FUSE FUSE_DESC= Support to mount locally borg backup files FUSE_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}llfuse>0:devel/py-llfuse@${PY_FLAVOR} -_BORGENV=BORG_PASSPHRASE=secret123 PYTHONPATH=${STAGEDIR}${PYTHON_SITELIBDIR} +_BORGHOME=${WRKDIR}/testhome +_BORGENV=BORG_PASSPHRASE=secret123 PYTHONPATH=${STAGEDIR}${PYTHON_SITELIBDIR} HOME=${_BORGHOME} post-install: ${MKDIR} ${STAGEDIR}${MAN1PREFIX}/share/man/man1/ ${INSTALL_MAN} ${WRKSRC}/docs/man/* ${STAGEDIR}${MAN1PREFIX}/share/man/man1/ - @${FIND} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/borg/ -name "*.so" \ + ${FIND} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/borg/ -name "*.so" \ -exec ${STRIP_CMD} {} \; @${ECHO_MSG} "----> running borg smoke tests" + ${MKDIR} ${_BORGHOME} ${SETENV} PYTHONPATH=${STAGEDIR}${PYTHON_SITELIBDIR} ${STAGEDIR}${PREFIX}/bin/borg -V ${RM} -r ${WRKDIR}/borgrepo ${SETENV} ${_BORGENV} ${STAGEDIR}${PREFIX}/bin/borg init --encryption=repokey ${WRKDIR}/borgrepo