From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756339Ab3BVJ57 (ORCPT ); Fri, 22 Feb 2013 04:57:59 -0500 Received: from cantor2.suse.de ([195.135.220.15]:48712 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750834Ab3BVJ54 (ORCPT ); Fri, 22 Feb 2013 04:57:56 -0500 Date: Fri, 22 Feb 2013 10:57:54 +0100 From: Michal Marek To: "David R. Bild" Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, trivial@kernel.org Subject: Re: [PATCH] kbuild: clear KBUILD_SRC when calling 'make' in RPM spec Message-ID: <20130222095754.GB12402@pobox.suse.cz> References: <1358003959-5533-1-git-send-email-drbild@umich.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1358003959-5533-1-git-send-email-drbild@umich.edu> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jan 12, 2013 at 10:19:19AM -0500, David R. Bild wrote: > From: "David R. Bild" > > 'make rpm-pkg' and 'make binrpm-pkg' fail when the kernel source is > read-only. Specifically, when the RPM spec generated by > scripts/package/mkspec is run, KBUILD_SRC happens to be set to the > source location and thus the invocation of 'make headers_install' > fails when an internal call to 'filechk' tries to write a file into > the source tree. > > The fix is to clear KBUILD_SRC for the 'make headers_install' > invocation in the spec file, as is already done for the 'make > modules_install' invocation. > > Signed-off-by: David R. Bild Applied to kbuild.git#misc, thanks. Michal