From patchwork Mon Aug 26 09:53:42 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Riku Voipio X-Patchwork-Id: 19530 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f71.google.com (mail-yh0-f71.google.com [209.85.213.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A2524246F3 for ; Mon, 26 Aug 2013 09:53:49 +0000 (UTC) Received: by mail-yh0-f71.google.com with SMTP id c41sf3411879yho.6 for ; Mon, 26 Aug 2013 02:53:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-gm-message-state:delivered-to:from:to:subject:date :message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=SYsobNNHNRumO4aS1rOLN9z70bwtvl8zSglKE/c+ukM=; b=X7cMtq51/Wz/xZYADxhquz/2tUdF0AvDiB9Z8UZ/lE2g4t7BKVjL4NsomsJf1gbwsn H1WvotPvRrC3W4oeUV0C4W6/qS01BgRdR5i/sgZD2tq5YT3YOVeHra+wHgxgf6A5eIw0 8jlXlJ+iIuNgpNvEbo+V7oRN0PHd2PjdQBIWEvfn91LVJHI7GSCdlQm/bx9dmoSzGiR5 gdVgXTKEehVrrnM1Z/D7rf9r7U2q5DybtSqcyqnrtlI9bn0nCDYk2PmK7t6JTk6G+VQW gKoipvqz9eyETX6RQ+Y3859qy44j+M04Ztp4k3NuS/CPlRm/rMsiWh00KzRw2io8Z+xb 5HJw== X-Received: by 10.236.116.135 with SMTP id g7mr436784yhh.53.1377510829090; Mon, 26 Aug 2013 02:53:49 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.131.68 with SMTP id ok4ls387133qeb.41.gmail; Mon, 26 Aug 2013 02:53:49 -0700 (PDT) X-Received: by 10.52.164.102 with SMTP id yp6mr12358471vdb.14.1377510828962; Mon, 26 Aug 2013 02:53:48 -0700 (PDT) Received: from mail-vb0-f44.google.com (mail-vb0-f44.google.com [209.85.212.44]) by mx.google.com with ESMTPS id to10si3377565vdc.135.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 26 Aug 2013 02:53:48 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.44 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.44; Received: by mail-vb0-f44.google.com with SMTP id e13so1974605vbg.31 for ; Mon, 26 Aug 2013 02:53:48 -0700 (PDT) X-Gm-Message-State: ALoCoQmrNj2Ddik0KIGvNJsPtsnG/8ntyw5375z5UTTY/W500a6LnG5AtKuxKiPCG2lHEDWF3JZw X-Received: by 10.220.88.13 with SMTP id y13mr2201732vcl.20.1377510828840; Mon, 26 Aug 2013 02:53:48 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp226846vcz; Mon, 26 Aug 2013 02:53:48 -0700 (PDT) X-Received: by 10.180.75.239 with SMTP id f15mr6996179wiw.43.1377510827685; Mon, 26 Aug 2013 02:53:47 -0700 (PDT) Received: from afflict.kos.to (afflict.kos.to. [92.243.29.197]) by mx.google.com with ESMTPS id es1si4623612wjd.106.1969.12.31.16.00.00 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 26 Aug 2013 02:53:47 -0700 (PDT) Received-SPF: neutral (google.com: 92.243.29.197 is neither permitted nor denied by best guess record for domain of riku.voipio@linaro.org) client-ip=92.243.29.197; Received: from aimless.elisa-laajakaista.fi (a91-156-63-85.elisa-laajakaista.fi [91.156.63.85]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by afflict.kos.to (Postfix) with ESMTPSA id D1D2026545 for ; Mon, 26 Aug 2013 11:53:45 +0200 (CEST) From: Riku Voipio To: patches@linaro.org Subject: [PATCH] eglibc: fix directory cleanup for 2.17 Date: Mon, 26 Aug 2013 12:53:42 +0300 Message-Id: <1377510822-14385-1-git-send-email-riku.voipio@linaro.org> X-Mailer: git-send-email 1.8.3.1 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: riku.voipio@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.44 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Commit e0c2dd275827a4b37b8116d0f0119333638461af broke building eglibc 2.17, which still ships pt_chown under eglibc/ directory. Fix by only deleting directory when pt_chown is not there. Cc: Khem Raj --- meta/recipes-core/eglibc/eglibc-package.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-core/eglibc/eglibc-package.inc b/meta/recipes-core/eglibc/eglibc-package.inc index c36d16c..3adf1a9 100644 --- a/meta/recipes-core/eglibc/eglibc-package.inc +++ b/meta/recipes-core/eglibc/eglibc-package.inc @@ -75,7 +75,7 @@ do_install_append () { rm -rf ${D}${localstatedir} # remove empty eglibc dir - if [ -d ${D}${libdir}/eglibc ]; then + if [ -d ${D}${libdir}/eglibc -a ! -e ${D}${libdir}/eglibc/pt_chown ]; then rmdir ${D}${libdir}/eglibc fi oe_multilib_header bits/syscall.h