Return-Path: X-Original-To: apmail-zookeeper-dev-archive@www.apache.org Delivered-To: apmail-zookeeper-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 012B2178EE for ; Mon, 4 May 2015 04:43:07 +0000 (UTC) Received: (qmail 95685 invoked by uid 500); 4 May 2015 04:43:06 -0000 Delivered-To: apmail-zookeeper-dev-archive@zookeeper.apache.org Received: (qmail 95638 invoked by uid 500); 4 May 2015 04:43:06 -0000 Mailing-List: contact dev-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@zookeeper.apache.org Delivered-To: mailing list dev@zookeeper.apache.org Received: (qmail 95627 invoked by uid 99); 4 May 2015 04:43:06 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 May 2015 04:43:06 +0000 Date: Mon, 4 May 2015 04:43:06 +0000 (UTC) From: "Raul Gutierrez Segales (JIRA)" To: dev@zookeeper.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ZOOKEEPER-2124) Allow Zookeeper version string to have underscore '_' MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/ZOOKEEPER-2124?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14526236#comment-14526236 ] Raul Gutierrez Segales commented on ZOOKEEPER-2124: --------------------------------------------------- +1, lgtm. [~cnauroth]: are you planning on backporting this for 3.4 (so that we can include it with 3.4.7)? Thanks! > Allow Zookeeper version string to have underscore '_' > ----------------------------------------------------- > > Key: ZOOKEEPER-2124 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2124 > Project: ZooKeeper > Issue Type: Bug > Affects Versions: 3.4.6 > Reporter: Jerry He > Assignee: Chris Nauroth > Fix For: 3.5.1, 3.6.0 > > Attachments: ZOOKEEPER-2124.001.patch > > > Using Bigtop or other RPM build for Zookeeper, there is a problem with using the hyphen '-' character in the version string: > {noformat} > [bigdata@bdvs1166 bigtop]$ gradle zookeeper-rpm > :buildSrc:compileJava UP-TO-DATE > :buildSrc:compileGroovy UP-TO-DATE > :buildSrc:processResources UP-TO-DATE > :buildSrc:classes UP-TO-DATE > :buildSrc:jar UP-TO-DATE > :buildSrc:assemble UP-TO-DATE > :buildSrc:compileTestJava UP-TO-DATE > :buildSrc:compileTestGroovy UP-TO-DATE > :buildSrc:processTestResources UP-TO-DATE > :buildSrc:testClasses UP-TO-DATE > :buildSrc:test UP-TO-DATE > :buildSrc:check UP-TO-DATE > :buildSrc:build UP-TO-DATE > :zookeeper_vardefines > :zookeeper-download > :zookeeper-tar > Copy /home/bigdata/bigtop/dl/zookeeper-3.4.6-IBM-1.tar.gz to /home/bigdata/bigtop/build/zookeeper/tar/zookeeper-3.4.6-IBM-1.tar.gz > :zookeeper-srpm > error: line 64: Illegal char '-' in: Version: 3.4.6-IBM-1 > :zookeeper-srpm FAILED > FAILURE: Build failed with an exception. > * Where: > Script '/home/bigdata/bigtop/packages.gradle' line: 462 > * What went wrong: > Execution failed for task ':zookeeper-srpm'. > > Process 'command 'rpmbuild'' finished with non-zero exit value 1 > * Try: > Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. > BUILD FAILED > {noformat} > Also, according to the [rpm-maven-plugin|http://mojo.codehaus.org/rpm-maven-plugin/ident-params.html] documentation: > {noformat} > version > The version number to use for the RPM package. By default, this is the project version. This value cannot contain a dash (-) due to contraints in the RPM file naming convention. Any specified value will be truncated at the first dash > release > The release number of the RPM. > Beginning with release 2.0-beta-2, this is an optional parameter. By default, the release will be generated from the modifier portion of the project version using the following rules: > If no modifier exists, the release will be 1. > If the modifier ends with SNAPSHOT, the timestamp (in UTC) of the build will be appended to end. > All instances of '-' in the modifier will be replaced with '_'. > If a modifier exists and does not end with SNAPSHOT, "_1" will be appended to end. > {noformat} > We should allow underscore '_' as part of the version string. e.g. > 3.4.6_abc_1 -- This message was sent by Atlassian JIRA (v6.3.4#6332)