Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754275AbbHSPOz (ORCPT ); Wed, 19 Aug 2015 11:14:55 -0400 Received: from mx2.suse.de ([195.135.220.15]:50707 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754080AbbHSPOx (ORCPT ); Wed, 19 Aug 2015 11:14:53 -0400 Subject: Re: [PATCH, resend] build: fix broken kernel RPM source symlink To: Espen Carlsen References: <1435664842-17908-1-git-send-email-ec@numascale.com> Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Daniel J Blueman , Steffen Persvold From: Michal Marek Message-ID: <55D49D6B.7050800@suse.cz> Date: Wed, 19 Aug 2015 17:14:51 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <1435664842-17908-1-git-send-email-ec@numascale.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1015 Lines: 21 On 2015-06-30 13:47, Espen Carlsen wrote: > Fix the 'rpm-pkg' makefile target to always generate the correct > /usr/src/kernel/ symlink; this fails on non-RPM-native systems > eg Ubuntu. > > On a non-RPM-native system, the symlink created by rpmbuild points to > the source tree, so the ln -sf commands to overwrite build and source will > create a new link inside the directory pointed to by the build and source > symlinks. This will break the -devel.rpm, as the build and source symlinks > will point to non existing directories after installing them. Which version of rpm do you have installed? $RPM_BUILD_ROOT should be deleted and created empty by rpmbuild. If you have stale files in $RPM_BUILD_ROOT, you will likely have bigger problem than this. Michal -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/