From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E5AD3138334 for ; Sun, 13 Oct 2019 11:41:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0726DE087C; Sun, 13 Oct 2019 11:41:03 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D9A85E087C for ; Sun, 13 Oct 2019 11:41:02 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1B68534BCC6 for ; Sun, 13 Oct 2019 11:41:02 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8CE0A89D for ; Sun, 13 Oct 2019 11:40:58 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1570966825.10bc08d434359547031d488a35bc721ad36d6b4e.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-office/gnucash/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-office/gnucash/gnucash-3.7.ebuild X-VCS-Directories: app-office/gnucash/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 10bc08d434359547031d488a35bc721ad36d6b4e X-VCS-Branch: master Date: Sun, 13 Oct 2019 11:40:58 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 9adcd971-b756-4c38-9703-5b34520384dd X-Archives-Hash: 80b137ea0305084b9a61cd8dc2d5be08 commit: 10bc08d434359547031d488a35bc721ad36d6b4e Author: Peter Levine gmail com> AuthorDate: Sun Sep 15 20:09:53 2019 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Sun Oct 13 11:40:25 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10bc08d4 app-office/gnucash: Fix testcases that write to /tmp Have testcases write to "${T}" instead of /tmp Closes: https://github.com/gentoo/gentoo/pull/12792 Package-Manager: Portage-2.3.75, Repoman-2.3.17 Signed-off-by: Peter Levine gmail.com> Signed-off-by: Andreas Sturmlechner gentoo.org> app-office/gnucash/gnucash-3.7.ebuild | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/app-office/gnucash/gnucash-3.7.ebuild b/app-office/gnucash/gnucash-3.7.ebuild index 699125271a4..824af8b7d91 100644 --- a/app-office/gnucash/gnucash-3.7.ebuild +++ b/app-office/gnucash/gnucash-3.7.ebuild @@ -97,6 +97,23 @@ src_unpack() { || die "Failed copying scm" } +src_prepare() { + cmake-utils_src_prepare + + # Fix tests writing to /tmp + local fixtestfiles=( + "${S}"/gnucash/report/report-system/test/test-commodity-utils.scm + "${S}"/gnucash/report/report-system/test/test-extras.scm + "${S}"/gnucash/report/report-system/test/test-report-html.scm + "${S}"/gnucash/report/report-system/test/test-report-system.scm + "${S}"/libgnucash/backend/xml/test/test-xml-pricedb.cpp + "${S}"/libgnucash/backend/dbi/test/test-backend-dbi-basic.cpp + ) + for x in "${fixtestfiles[@]}"; do + sed -i -e "s|\"/tmp/|\"${T}/|g" "${x}" || die "sed of "${x}" failed" + done +} + src_configure() { export GUILE_AUTO_COMPILE=0