From owner-freebsd-ports-bugs@freebsd.org Mon Jun 25 02:50:14 2018 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B3E7010202A8 for ; Mon, 25 Jun 2018 02:50:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 4AE1186AA4 for ; Mon, 25 Jun 2018 02:50:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 0160910202A7; Mon, 25 Jun 2018 02:50:14 +0000 (UTC) Delivered-To: ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CF5A110202A6 for ; Mon, 25 Jun 2018 02:50:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5E61886AA3 for ; Mon, 25 Jun 2018 02:50:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id A9DDBCB70 for ; Mon, 25 Jun 2018 02:50:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w5P2oCiC067349 for ; Mon, 25 Jun 2018 02:50:12 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w5P2oCJ3067348 for ports-bugs@FreeBSD.org; Mon, 25 Jun 2018 02:50:12 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 229325] develop/statsvn dose work on FreeBSD-11-stable Date: Mon, 25 Jun 2018 02:50:12 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: kensaku.masuda@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Jun 2018 02:50:14 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D229325 Bug ID: 229325 Summary: develop/statsvn dose work on FreeBSD-11-stable Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: kensaku.masuda@gmail.com Created attachment 194618 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D194618&action= =3Dedit Patch for SvnStartupUtils.java StatSVN say "Subversion binary is incorrect version. Found: 1.10.0, required: 1.3.0 Updating" And do nothing. So, statsvn compare version information with corrupted method. Collect method is .... --- src/net/sf/statsvn/util/SvnStartupUtils.java.orig 2018-06-25 10:35:11.895337000 +0900 +++ src/net/sf/statsvn/util/SvnStartupUtils.java 2018-06-25 11:00:44.722623000 +0900 @@ -26,6 +26,9 @@ private static final String SVN_VERSION_LINE_PATTERN =3D ".* [0-9]+\\.[0-9]+\\.[0-9]+.*"; private static final String SVN_VERSION_PATTERN =3D "[0-9]+\\.[0-9]+\\.[0-9]+"; + private static final int SVN_MINIMUM_MAJOR_VERSION =3D 1; + private static final int SVN_MINIMUM_MINOR_VERSION =3D 3; + private static final int SVN_MINIMUM_REVISION_VERSION =3D 0; protected ISvnProcessor processor; @@ -62,7 +65,10 @@ final String versionString = =3D line.substring(m.start(), m.end()); // we perform a simple stri= ng comparison against the version numbers - if (versionString.compareTo(SVN_MINIMUM_VERSION) >=3D 0) { + final int[] version =3D parseVersionNumber(versionString); + if (version[0] >=3D SVN_MINIMUM_MAJOR_VERSION && + version[1] >=3D SVN_MINIMUM_MINOR_VERSION && + version[2] >=3D SVN_MINIMUM_REVISION_VERSION) { return versionStrin= g; // success } else { throw new SvnVersionMismatchException(versionString, SVN_MINIMUM_VERSION); @@ -98,4 +104,25 @@ // we perform a simple string comparison against the version numbers return version.compareTo(SVN_MINIMUM_VERSION_DIFF_PER_REV) = >=3D 0; } + + /** + * Get integer version array from version string. + * @param versionString + * @return + * triple of version number=20 + * @exception SvnVersionMismatchException + **/ + static int[] parseVersionNumber(final String versionString) throws SvnVersionMismatchException { + final String[] versionNumberStrings =3D versionString.split("\\."); + + if(versionNumberStrings.length =3D=3D 3) { + int[] version =3D new int[3]; + for(int i =3D 0 ; i < 3 ; i++) { + version[i] =3D Integer.parseInt(versionNumberStrings[i], 10); + } + return version; + } else { + throw new SvnVersionMismatchException(versionString, SVN_MINIMUM_VERSION); + } + } } --=20 You are receiving this mail because: You are the assignee for the bug.=