Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751904AbdLEVXu (ORCPT ); Tue, 5 Dec 2017 16:23:50 -0500 Received: from mail-it0-f42.google.com ([209.85.214.42]:38430 "EHLO mail-it0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751066AbdLEVXs (ORCPT ); Tue, 5 Dec 2017 16:23:48 -0500 X-Google-Smtp-Source: AGs4zMalcG9ojFZaixzM7vq+s1ds7tAZXWdcBIgjMOu8vzUE05u209koioSqjPVrDU4r2UPZ+HUPtq5K8h5iWrkoPF4= MIME-Version: 1.0 In-Reply-To: References: <20171114123834.xsjiy2ynvott4gae@brain> <1511780854-7213-1-git-send-email-paolo.pisati@canonical.com> From: Jim Davis Date: Tue, 5 Dec 2017 14:23:46 -0700 Message-ID: Subject: Re: [PATCH v3] scripts/package: snap-pkg target To: Paolo Pisati Cc: Masahiro Yamada , Michal Marek , Behan Webster , Matthias Kaehlcke , =?UTF-8?Q?Vin=C3=ADcius_Tinti?= , linux-kbuild , linux-kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1060 Lines: 27 On Tue, Dec 5, 2017 at 4:43 AM, Paolo Pisati wrote: >> I noticed that if I tried to make snap-pkg with the O=/some/dir option >> the tar step failed but the rest of the build continued, and seems to >> have finished successfully. Should the snap-pkg target stop after a >> tar failure? > > That is weird, how did you do that? make O=/some/dir defconfig (or your-config-of-choice) make O=/some/dir snap-pkg The snap-pkg target is calling the src_tar command, which bails when $(objtree) isn't $(srctree). Is $(objtree) = $(srctree) a necessary restriction with snap builds? It's a restriction for rpm builds for some reason or another, but I thought that was just a peculiarity of the rpm build process. If the snap's tarball could be built without using src_tar, like the buildtar script does, then Bob's your uncle. Though if the source tree is an essential part of the snap build then perhaps the build should just exit if the tarball can't be generated for whatever reason, including users doing weird things :) -- Jim