Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AEB991720B for ; Thu, 4 Jun 2015 11:48:44 +0000 (UTC) Received: (qmail 36410 invoked by uid 500); 4 Jun 2015 11:48:44 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 36368 invoked by uid 500); 4 Jun 2015 11:48:44 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 36356 invoked by uid 99); 4 Jun 2015 11:48:44 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Jun 2015 11:48:44 +0000 Date: Thu, 4 Jun 2015 11:48:44 +0000 (UTC) From: "Hudson (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-12018) smart-apply-patch.sh fails if the patch edits CR+LF files and is created by 'git diff --no-prefix' 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/HADOOP-12018?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14572619#comment-14572619 ] Hudson commented on HADOOP-12018: --------------------------------- FAILURE: Integrated in Hadoop-Yarn-trunk #948 (See [https://builds.apache.org/job/Hadoop-Yarn-trunk/948/]) HADOOP-12018. smart-apply-patch.sh fails if the patch edits CR+LF files and is created by 'git diff --no-prefix'. Contributed by Kengo Seki. (aajisaka: rev b5f0d294f828240ea9a2395db94492e87af0260b) * hadoop-common-project/hadoop-common/CHANGES.txt * dev-support/smart-apply-patch.sh > smart-apply-patch.sh fails if the patch edits CR+LF files and is created by 'git diff --no-prefix' > -------------------------------------------------------------------------------------------------- > > Key: HADOOP-12018 > URL: https://issues.apache.org/jira/browse/HADOOP-12018 > Project: Hadoop Common > Issue Type: Bug > Components: build > Reporter: Akira AJISAKA > Assignee: Kengo Seki > Priority: Minor > Fix For: 2.8.0 > > Attachments: HADOOP-12018.001.patch, HADOOP-12018.002.patch, HADOOP-12018.003.patch, HADOOP-12018.004.patch, HADOOP-12018.test-noprefix.patch, HADOOP-12018.test-noprefix.patch > > > If the patch edits a file includes CR+LF and created by "git diff --no-prefix", smart-apply-patch.sh fails to patch. smart-apply-patch.sh checks if the patch is created by "git diff" or "patch", however, if a patch is created by "git diff --no-prefix", smart-apply-patch.sh detects the patch is created by "patch" command. That's why https://builds.apache.org/job/PreCommit-HADOOP-Build/6800/console fails. > A workaround is to use "git diff" for creating patch if a file includes CR+LF is edited. -- This message was sent by Atlassian JIRA (v6.3.4#6332)