From: "Miroslav Šulc" <fordfrog@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/jackcess/files/, dev-java/jackcess/
Date: Tue, 20 Apr 2021 13:28:46 +0000 (UTC) [thread overview]
Message-ID: <1618925319.d472cb651c1e61ae9e0ceca2a7f123b3c55ff2e0.fordfrog@gentoo> (raw)
commit: d472cb651c1e61ae9e0ceca2a7f123b3c55ff2e0
Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 20 13:28:18 2021 +0000
Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Tue Apr 20 13:28:39 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d472cb65
dev-java/jackcess: fixed tests in 4.0.0 + re-added arches
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
dev-java/jackcess/files/jackcess-4.0.0-fix-tests.patch | 13 +++++++++++++
dev-java/jackcess/jackcess-4.0.0.ebuild | 14 ++++++++++++--
2 files changed, 25 insertions(+), 2 deletions(-)
diff --git a/dev-java/jackcess/files/jackcess-4.0.0-fix-tests.patch b/dev-java/jackcess/files/jackcess-4.0.0-fix-tests.patch
new file mode 100644
index 00000000000..221710f4fbe
--- /dev/null
+++ b/dev-java/jackcess/files/jackcess-4.0.0-fix-tests.patch
@@ -0,0 +1,13 @@
+diff --git a/src/test/java/com/healthmarketscience/jackcess/DatabaseTest.java b/src/test/java/com/healthmarketscience/jackcess/DatabaseTest.java
+index d127f9f..03885f2 100644
+--- a/src/test/java/com/healthmarketscience/jackcess/DatabaseTest.java
++++ b/src/test/java/com/healthmarketscience/jackcess/DatabaseTest.java
+@@ -687,7 +687,7 @@ public class DatabaseTest extends TestCase
+
+ public void testAncientDates() throws Exception
+ {
+- TimeZone tz = TimeZone.getTimeZone("America/New_York");
++ TimeZone tz = TimeZone.getTimeZone("UTC");
+ SimpleDateFormat sdf = DatabaseBuilder.createDateFormat("yyyy-MM-dd");
+ sdf.getCalendar().setTimeZone(tz);
+
diff --git a/dev-java/jackcess/jackcess-4.0.0.ebuild b/dev-java/jackcess/jackcess-4.0.0.ebuild
index c46dd19bf78..cd0a7e10eb1 100644
--- a/dev-java/jackcess/jackcess-4.0.0.ebuild
+++ b/dev-java/jackcess/jackcess-4.0.0.ebuild
@@ -18,7 +18,7 @@ SRC_URI="https://github.com/jahlborn/${PN}/archive/refs/tags/${P}.tar.gz -> ${P}
LICENSE="Apache-2.0"
SLOT="1"
-KEYWORDS="~amd64 ~ppc64 ~x86"
+KEYWORDS="~amd64 ~ppc64 ~x86 ~amd64-linux ~ppc-macos ~x86-linux"
# Common dependencies
# POM: pom.xml
@@ -43,6 +43,10 @@ RDEPEND="
S="${WORKDIR}/${PN}-${P}"
+PATCHES=(
+ "${FILESDIR}/${P}-fix-tests.patch"
+)
+
JAVA_GENTOO_CLASSPATH="commons-logging,commons-lang-3.6,poi"
JAVA_SRC_DIR="src/main/java"
JAVA_RESOURCE_DIRS="src/main/resources"
@@ -57,7 +61,13 @@ JAVA_TEST_EXCLUDES=(
"com.healthmarketscience.jackcess.TestUtil"
)
+src_prepare() {
+ default
+ java-utils-2_src_prepare
+}
+
src_test() {
- TZ=UTC
+ export TZ=UTC
+ export LC_ALL=C
java-pkg-simple_src_test
}
reply other threads:[~2021-04-20 13:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1618925319.d472cb651c1e61ae9e0ceca2a7f123b3c55ff2e0.fordfrog@gentoo \
--to=fordfrog@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox