From patchwork Fri Nov 21 16:19:03 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Guido_Mart=C3=ADnez?= X-Patchwork-Id: 413106 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id DFC2E140186 for ; Sat, 22 Nov 2014 03:20:14 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 257E2A3C83; Fri, 21 Nov 2014 16:20:14 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Xnte3Hnca9l9; Fri, 21 Nov 2014 16:20:13 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id A2721A3CC8; Fri, 21 Nov 2014 16:20:13 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id D69891C257C for ; Fri, 21 Nov 2014 16:20:11 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id CF92590FEF for ; Fri, 21 Nov 2014 16:20:11 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TUqYofJKOaxn for ; Fri, 21 Nov 2014 16:20:10 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-qc0-f173.google.com (mail-qc0-f173.google.com [209.85.216.173]) by whitealder.osuosl.org (Postfix) with ESMTPS id 7E15C90C0F for ; Fri, 21 Nov 2014 16:20:10 +0000 (UTC) Received: by mail-qc0-f173.google.com with SMTP id i17so3977446qcy.32 for ; Fri, 21 Nov 2014 08:20:09 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=VaTsVh019Swo7SwIonff2Iw2h59Qve1JlpZnMk5dFnw=; b=bfuzK+Sn8AmUmiUk0NLWYsdggj8hdhWG6FABNv3AcKyAbQrR3DQVESk4eGgXroxR0p yD7EoyZIwp1r/E3xYWUIpF8d6nhf7psP4Lj+LvBeyRC7hfKuXPhA8+xNqY9gbR61YC9M 2LTQGdBticUElzICpbpWhTTf5FPelQB4x9nOkrickJg1K4JOC03AuW6HQBOaXg72ihpo dlGmYXb45Q90W0gndr5rpftpEQQYtMEem0aIubw0XEfGuptH5r/AX828SNPDYolbpZeL n1XDhgtT552H9gZbd5MRX59g6eWjQ+WPbqud9CT5M2cLc1K41IK+V++MmOz3b7dS6MH2 fAHQ== X-Gm-Message-State: ALoCoQmXmVDu7o0poinxfSVz1nlgyF/WfSHJhE2+R0/zAhZUFDL94f7ogC6Pn1B8lMHknnjTWtuJ X-Received: by 10.140.43.133 with SMTP id e5mr7804470qga.10.1416586809772; Fri, 21 Nov 2014 08:20:09 -0800 (PST) Received: from localhost (host150.181-14-218.telecom.net.ar. [181.14.218.150]) by mx.google.com with ESMTPSA id h10sm5021997qge.16.2014.11.21.08.20.08 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 21 Nov 2014 08:20:08 -0800 (PST) From: =?UTF-8?q?Guido=20Mart=C3=ADnez?= To: buildroot@busybox.net Date: Fri, 21 Nov 2014 13:19:03 -0300 Message-Id: <1416586748-12936-5-git-send-email-guido@vanguardiasur.com.ar> X-Mailer: git-send-email 2.1.3 In-Reply-To: <1416586748-12936-1-git-send-email-guido@vanguardiasur.com.ar> References: <1416586748-12936-1-git-send-email-guido@vanguardiasur.com.ar> MIME-Version: 1.0 Cc: Thomas Petazzoni , "Yann E. MORIN" Subject: [Buildroot] [PATCH v4 4/9] pkg-generic.mk: don't depend on external package permissions X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Reset permissions for rsynced packages (when using OVERRIDE_SRCDIR) to 755/644. We do this under the assumption that source files shouldn't care about their permissions, except possibly for the exec bit. This guarantees that if a package uses 'rsync -a' or 'cp -p' to copy a file from its build dir to the target, it'll end up with the same permissions on the target every time. Signed-off-by: Guido Martínez --- package/pkg-generic.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk index 9643a30..ec2989f 100644 --- a/package/pkg-generic.mk +++ b/package/pkg-generic.mk @@ -117,7 +117,7 @@ $(BUILD_DIR)/%/.stamp_rsynced: @$(call MESSAGE,"Syncing from source dir $(SRCDIR)") @test -d $(SRCDIR) || (echo "ERROR: $(SRCDIR) does not exist" ; exit 1) $(foreach hook,$($(PKG)_PRE_RSYNC_HOOKS),$(call $(hook))$(sep)) - rsync -au $(RSYNC_VCS_EXCLUSIONS) $(SRCDIR)/ $(@D) + rsync -au --chmod=u=rwX,go=rX $(RSYNC_VCS_EXCLUSIONS) $(SRCDIR)/ $(@D) $(foreach hook,$($(PKG)_POST_RSYNC_HOOKS),$(call $(hook))$(sep)) $(Q)touch $@