From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6641861376070385664 X-Received: by 2002:a50:ad61:: with SMTP id z30mr295556edc.0.1547048234481; Wed, 09 Jan 2019 07:37:14 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a17:906:69cd:: with SMTP id g13-v6ls1864720ejs.0.gmail; Wed, 09 Jan 2019 07:37:14 -0800 (PST) X-Google-Smtp-Source: ALg8bN43VWpPz6Ynw9bpAU4+5w871pp7PScRcvlMNAqut89pm7EGYQonCMTDuSQ4/VOuYRu74hnH X-Received: by 2002:a17:906:404f:: with SMTP id y15-v6mr264589ejj.5.1547048234005; Wed, 09 Jan 2019 07:37:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547048234; cv=none; d=google.com; s=arc-20160816; b=EgSRD7W/2l3YOGdkV26nxJKJzNB50RpeIWtVjgaVsfUtLwuziysjT88BvY68kXVg2c m3B+2xMF8Js5GGTh0Dofa4XKdISIkDhCF1zcZOAQW7Vv4KcQ2yULOyZu+wTq/KoJJr2B iWlyBGUsn7fktp3LhPLZvXapwYxnJHDS8NqU4ykTlUUf+HAfBIeRAmWuQjgAh8pQZdJp 6kRIDcod3QyuFadfG7aKxVKP9FkYtofXrjwVOA7TCAhaOZd9rfBJJWXCR4lgzHvTuaU/ gUJE7Ft1BBky4/phunlwnf3RFZZD2hDTDb8xnwTFBYgeh6f4baFlB4lKqHZAnTvDUnWe 9tnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:to:from:date; bh=eOiJnFiWhj3lullf04nYigps6UbAvljrmGiMq8MlXWc=; b=G43tTHFqoalkMHYmBZU0eJCaBGvU+Gnct6yOiRmDKk1w2cKtXKjSW7qTSdWWlTuPDF szOS8IEp9BDPCeu+6n29bJ3AEWDHdo3CoG0FPDwAYdSpDxASXn6DHCZz0YVLm3A8n1z+ avPphfe9zAt1jWDXt6tdnyisNL9pYqrye3oZ5HkKxZLVxFpOgDy8Ny4pxw+DCgDjDy8V EGp9nv9fWChEYtVOpjuuN6MUUP7ounUDj74UI+Z2gzgmxaxkkd2L+JLps4GgmxJxiq8f 1/bgFyODbAfxHjSyoQSJPugdlY1SsAn5ZvihZFJ1uHnhLflEeI1Wgcphw8rVFM8Ul2tG 5IQg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 85.214.62.211 is neither permitted nor denied by best guess record for domain of ibr@radix50.net) smtp.mailfrom=ibr@radix50.net Return-Path: Received: from aqmola.ilbers.de (aqmola.ilbers.de. [85.214.62.211]) by gmr-mx.google.com with ESMTPS id k25si188014edd.1.2019.01.09.07.37.13 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Jan 2019 07:37:13 -0800 (PST) Received-SPF: neutral (google.com: 85.214.62.211 is neither permitted nor denied by best guess record for domain of ibr@radix50.net) client-ip=85.214.62.211; Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 85.214.62.211 is neither permitted nor denied by best guess record for domain of ibr@radix50.net) smtp.mailfrom=ibr@radix50.net Received: from yssyq.m.ilbers.de (dslb-002-200-058-076.002.200.pools.vodafone-ip.de [2.200.58.76]) (authenticated bits=0) by aqmola.ilbers.de (8.14.4/8.14.4/Debian-4+deb7u1) with ESMTP id x09FbB9v015915 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 9 Jan 2019 16:37:12 +0100 Received: from yssyq.m.ilbers.de (localhost [127.0.0.1]) by yssyq.m.ilbers.de (8.15.2/8.15.2/Debian-8) with ESMTPS id x09Fb6Xo016971 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 9 Jan 2019 16:37:06 +0100 Received: (from ibr@localhost) by yssyq.m.ilbers.de (8.15.2/8.15.2/Submit) id x09Fb6Jx016970 for isar-users@googlegroups.com; Wed, 9 Jan 2019 16:37:06 +0100 Date: Wed, 9 Jan 2019 16:37:06 +0100 From: Baurzhan Ismagulov To: isar-users Subject: Re: [PATCH 1/7] dpkg-raw: Respect file permissions defined by recipe Message-ID: <20190109153706.GB12226@yssyq.m.ilbers.de> Mail-Followup-To: isar-users References: <20190107142049.0c5426a3@md1za8fc.ad001.siemens.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-TUID: 5ma/Au7cWbS3 On Mon, Jan 07, 2019 at 02:28:47PM +0100, Jan Kiszka wrote: > > > dh_fixperms overwrites the permissions do_install defined carefully. > > > Skip this step to avoid that. ... > > > --- a/meta/classes/dpkg-raw.bbclass > > > +++ b/meta/classes/dpkg-raw.bbclass > > > @@ -56,9 +56,11 @@ EOF > > > deb_create_rules() { > > > cat << EOF > ${S}/debian/rules > > > #!/usr/bin/make -f > > > + > > > +override_dh_fixperms: > > > + > > > %: > > > dh \$@ > > > - > > > > I think it is not a good idea to do that in general. While you might > > have found an example where dh_fixperms caused problems, there are > > probably many where it helps. Say people use "cp" to fill ${D} or > > "echo" to fill ${D}/bin/ > > I'm open for better suggestions. dh_fixperms -X from a variable / file? override_dh_fixperms in a conditional makefile include, if exists? That said, I think the right way would be to create proper source packages downstream. FWIW, meta-eid has a PoC for dh_making a package from bitbake, but one could start with manually debianized packages first. With kind regards, Baurzhan.