Received: by 10.223.164.202 with SMTP id h10csp2771756wrb; Tue, 28 Nov 2017 00:43:06 -0800 (PST) X-Google-Smtp-Source: AGs4zMa3FfnByA5LsTQQC6JpJRETuIYnf+jPR1xVSc4OUaZ+iyOiYo8HhB4nXAT4PpySfLMXvr/v X-Received: by 10.99.189.65 with SMTP id d1mr9592751pgp.104.1511858586356; Tue, 28 Nov 2017 00:43:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511858586; cv=none; d=google.com; s=arc-20160816; b=n43NLx7j9mG8dVY+wLs3vsI4oqB7NCvczo/mvXDcp1fgkmVZ8TYkWygrftd82J2PU2 do2U9c8/+eIPm5DjQIBRdBv+joq7fC51NMrwT7HZEIOvpXqrKddWdm//t5CSsuTFmCpu sErpZPo0eh5dZ/Xlm/9FcV3BE3FK0NRMYJoXbPf9qlQnz4kPguujU8/QeZpNgmA1zNH8 PooQ6f4w9nA6mjXtbxjc8+HLrx6bWKNtrmOkAZkqs30WoC3ktzHGAsJkh9lEKqqxI0vr JZ6My+Kk2bAK+hodAg81I41EN9OJ/DWXmEON9a/G1I0LpN4gLk7ooFZdZCaLn1gWz6vH h4Eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=3DJ3ACMhqfCVbntmqesSFJ2z+LmLqfPiCJSSImu4OkA=; b=qHuBCZzgRcEYHY6kauU6GvVHk1MaftzdL3iPdXWkA/OdqXxS+SDABwKEz73A0+xyAo dygNIavXMBwHyLKoRzL8h6inCd14gmCE8WjbR30f60vSljqeCr66XQ1GIvcfrx2sFsQe +tjd9avxC25bm6jM9lJb/cawAaCFyyfBaW5ygqfV2ewvEb+A1zz89YlyOYE08SuW+iWp yxDkdb+MpuwTZlOH4RhKpRVSHe6cBR5Nk8+LM/uw/Cja0bh3OELftVhc5aWnBrGcT8eT nFyPaLxkVH2ceRFz3r5fpzR8nv9LoMDiX8ObYass3U9d+J80EKzSwxjNSyQGgkL50sl2 lzaQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e1si15802782pld.493.2017.11.28.00.42.54; Tue, 28 Nov 2017 00:43:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751680AbdK1ImK (ORCPT + 78 others); Tue, 28 Nov 2017 03:42:10 -0500 Received: from goliath.siemens.de ([192.35.17.28]:56914 "EHLO goliath.siemens.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751063AbdK1ImI (ORCPT ); Tue, 28 Nov 2017 03:42:08 -0500 Received: from mail1.siemens.de (mail1.siemens.de [139.23.33.14]) by goliath.siemens.de (8.15.2/8.15.2) with ESMTPS id vAS8fvHh022095 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 28 Nov 2017 09:41:57 +0100 Received: from md1em3qc (md1pvb1c.ad001.siemens.net [139.25.68.40] (may be forged)) by mail1.siemens.de (8.15.2/8.15.2) with ESMTP id vAS8fvm2002241; Tue, 28 Nov 2017 09:41:57 +0100 Date: Tue, 28 Nov 2017 09:41:56 +0100 From: Henning Schild To: Jim Davis Cc: linux-kernel , Ben Hutchings , Masahiro Yamada , Michal Marek , linux-kbuild , Konrad Schwarz Subject: Re: [PATCH] builddeb: introduce variables for control-file customization Message-ID: <20171128094156.4f2f1cf9@md1em3qc> In-Reply-To: References: <20171127161345.17880-1-henning.schild@siemens.com> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Mon, 27 Nov 2017 16:57:58 -0700 schrieb Jim Davis : > On Mon, Nov 27, 2017 at 9:13 AM, Henning Schild > wrote: > > The debian packages coming out of "make *deb-pkg" lack some critical > > information in the control-files e.g. the "Depends:" field. If one > > tries to install a fresh system with such a "linux-image" > > debootstrap or multistrap might try to install the kernel before > > its deps and the package hooks will fail. > > Has that shown up in practice? The builddeb script goes back some > years now... Yes it has, i came across this issue with a multistrap-based installer. The kernel got picked as one of the first packages. Without explicit deps i can only assume that deboostrap should be affected as well. Maybe it processes the package-tree in another order and happens to work by chance. My guess is that most people use the builddeb script to install additional kernels on a running system, so the missing deps never showed. That said, the patch would allow for much more customization than just adding deps. But others might want to customize the other fields as well. > > + eval 'create_package "$kernel_headers_packagename" \ > > + "$kernel_headers_dir"' "$KDEB_OPTS_IMAGE_HEADERS" > > eval in a shell script with arbitrary input can lead to shenanigans > like > > make bindeb-pkg KDEB_OPTS_IMAGE_HEADERS="; echo All your base" > > and other potentially nastier things. Probably not an issue for a > typical kernel developer sitting in front of his or her laptop, but if > I ran a big automated unattended build farm I might prefer a non-eval > alternative. True. As you said, that might not be an issue for most people. Let us discuss the general approach first. If we agree on applying such a patch and others also raise this issue we might find an implementation without the eval. That is a first shot that can handle the kinds of strings one might want to pass to dpkg-gencontrol. (spaces, pipes and multiple options). Henning From 1585265645329138421@xxx Mon Nov 27 23:58:50 +0000 2017 X-GM-THRID: 1585237326462927011 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread