From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6499063932287713280 X-Received: by 10.46.80.14 with SMTP id e14mr516154ljb.30.1513260770063; Thu, 14 Dec 2017 06:12:50 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.46.101.66 with SMTP id z63ls741206ljb.7.gmail; Thu, 14 Dec 2017 06:12:49 -0800 (PST) X-Google-Smtp-Source: ACJfBos+GxpN+IL5TTNBp57sKBGsFY34aOEsKzjGHt/EFtoCqMZSCtlEsBahVtO7W4CLEwnjXF8b X-Received: by 10.46.29.214 with SMTP id w83mr478030lje.43.1513260769427; Thu, 14 Dec 2017 06:12:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513260769; cv=none; d=google.com; s=arc-20160816; b=EKqCDu1unGDUuGUPy0sxWdg7KUO39DTrEnZRAYiIJD0tYL0s/AOZthL2HebzfC4Oea fkh6iMplDU/uJXY3pujeBL0Y1mq+LpQ37tHymIWBNxMUcGmQTrcbXwDtpEXfWfC5ZL5+ FaCFd452/P1N6p8qMeVEeMGpPRUSwVDcSh20DJvYJJED20JE6ILeFm8JNhWycUmDX1n6 HNDaL5g0RQy0SP4aUX8MIWDY8UxX9FSStuMStcuJL0MF0o6G/50RqU2T8AyXig1WN/BK jg6ilgH0wt+g6beAewmXjY3E9nlXhmlbD2zq2eZrAcHNFyThgUxOrR/V+DNH9mb6ZZk7 WBuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:references:in-reply-to:date:cc:to:from:subject :message-id:arc-authentication-results; bh=vnj3tXkXew56aj0+Kb5N644pHIKcKx1msWHxQEL6H+8=; b=tLbObNKkMf4UxbmFvvYvlml6YsF96pXim2e2ZSkIDgobiwzD3JKc20+ckTwtCPpOvJ Fwexxzo106bYkekpoEAt+gfZgnQsha1ZP4HVA2CRIrbwMnLvJxokLafECcx0abHvxDum rFqvZRg1bFJqyFj8ldSvsIG/bRSFPr62bjXF9Rmd9R+6iGzVQj+cTpESFLlhvEmbDCOk 5T4GdlW4quo1MBceMYysrC8eYdrDMSJVbWjipHQArOrprLws3cB76Cky1KcRKmU3UAvs /Ap1zeuXX7/8hI4TJRJ6hJ5cPBSwugWU3C/UJ0HUrRarwUsfd9hpbhfxQNSu8mTZaEiP LNNA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 2001:a60:0:28:0:1:25:1 is neither permitted nor denied by best guess record for domain of ch@denx.de) smtp.mailfrom=ch@denx.de Return-Path: Received: from mail-out.m-online.net (mail-out.m-online.net. [2001:a60:0:28:0:1:25:1]) by gmr-mx.google.com with ESMTPS id 64si393276ljz.5.2017.12.14.06.12.49 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Dec 2017 06:12:49 -0800 (PST) Received-SPF: neutral (google.com: 2001:a60:0:28:0:1:25:1 is neither permitted nor denied by best guess record for domain of ch@denx.de) client-ip=2001:a60:0:28:0:1:25:1; Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 2001:a60:0:28:0:1:25:1 is neither permitted nor denied by best guess record for domain of ch@denx.de) smtp.mailfrom=ch@denx.de Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3yyFrc5sWZz1qwfT; Thu, 14 Dec 2017 15:12:48 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 3yyFrc5ZhXz1qql9; Thu, 14 Dec 2017 15:12:48 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id CgT4Me0upDDz; Thu, 14 Dec 2017 15:12:47 +0100 (CET) X-Auth-Info: jSFwVzk40Ev/zmhQh3S2NFpJhj9TnNnm6Yicn3LBkfc= Received: from orrorin (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Thu, 14 Dec 2017 15:12:47 +0100 (CET) Message-ID: <1513260757.31110.23.camel@denx.de> Subject: Re: [RFC PATCH 0/1] Special debian depends entries From: Claudius Heine To: Henning Schild , "[ext] claudius.heine.ext@siemens.com" Cc: isar-users@googlegroups.com Date: Thu, 14 Dec 2017 15:12:37 +0100 In-Reply-To: <20171214144205.063a6c49@mmd1pvb1c.ad001.siemens.net> References: <20171213160710.3610-1-claudius.heine.ext@siemens.com> <20171214144205.063a6c49@mmd1pvb1c.ad001.siemens.net> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-ohNoEaQoAJRqfudt2uPb" X-Mailer: Evolution 3.26.2 Mime-Version: 1.0 X-TUID: 7KhZrfyySHtK --=-ohNoEaQoAJRqfudt2uPb Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Henning, On Thu, 2017-12-14 at 14:42 +0100, Henning Schild wrote: > Am Wed, 13 Dec 2017 17:07:09 +0100 > schrieb "[ext] claudius.heine.ext@siemens.com" > : >=20 > > From: Claudius Heine > >=20 > > Hi, > >=20 > > this patch is to start the discussion about how to implement the > > debian depends. > >=20 > > Instead of going the just 'echo ${DEBIAN_DEPENDS}' route, I chose > > to > > be backwards compatible. Another reason for this is also for the > > possible next feature where ISAR 'DEPENDS' or 'RDEPENDS' will be > > converted to the package specific 'DEBIAN_DEPENDS'. >=20 > With the current nature of dpkg-raw DEPENDS and RDEPENDS make no > sense. > Maybe some day the class will do more than just wrap stuff in a > package, but at the moment i do not see that coming. > And even if that ever happened the class could take care of turning > the > bitbake-list (R)DEPENDS into a Debian comma-seperated list. >=20 > I tried your code in a bash (not in Isar/bitbake etc.) and i got a > few > more commas that i would have expected. >=20 > 'libc, (>=3D, 2.16)', 'tar, |, bsdtar', systemd >=20 > Shell code is nasty, i think i do not even want to know why it worked > for you or wether it would work in Isar with my build env. I works in here because the ${DEBIAN_DEPENDS} is inserted by bitbake before any shell is executed. So in shell code for this example looks like this: DEBIAN_DEPS=3D"$(for i in 'libc (>=3D 2.16)' 'tar | bsdtar' systemd;do echo $i,;done|tr '\n' ' '|sed 's/, *$//')" If you try that out with your shell: $ echo "$(for i in 'libc (>=3D 2.16)' 'tar | bsdtar' systemd;do echo $i,;done|tr '\n' ' '|sed 's/, *$//')" libc (>=3D 2.16), tar | bsdtar, systemd It works correctly just like in bitbake. DEBIAN_DEPENDS is not a shell variable but a bitbake one. But I get your point that this is confusing and error-prone. Doing it with python might be easier. Cheers, Claudius --=20 DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-54 Fax: (+49)-8142-66989-80 Email: ch@denx.de PGP key: 6FF2 E59F 00C6 BC28 31D8 64C1 1173 CB19 9808 B153 Keyserver: hkp://pool.sks-keyservers.net --=-ohNoEaQoAJRqfudt2uPb Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEb/LlnwDGvCgx2GTBEXPLGZgIsVMFAloyhtUACgkQEXPLGZgI sVPdXRAAxpVOZQJLHbMQcg4EVX7H+HMLpT0GvkeUpCZkT98fiPlrtN/v4o3VO6Nt oJjufPC1dJJXvmLq9l91zJbTUmOVEqbWL6zkLdFrbOPgM97mMRb5XYIf6F7pNLCR P40FLs44njmhygbzYCiwkJGa48V/PBoMKqJgzNtLQC2+/HUW/C6Z0vMj1m4TXrSL C7tylEktmMx6TU9FHjxSaumMAmlMer9Mj6UjYMDvr5JvzsOPKlfnEeink0/Bah01 QcSKQ0djwDMHCMSJvrXX4S0YYYa+IuREdrQOpTsNP9KI6D1hqbTsclwVzzqksbnV 7uMyp6TUlu3QSVVHqIvEEuv9fd5ySvCIXvxzUKmJ6p2m62BHV0qTxfJcPUXG09qK o5gG7OnpnUr2Pwk4EUylgseDes47T/F0wCVo5eT3OWOEln9GWkov6zvLKpHVui65 VdaMzN8xcjiqi3ioNXexttle9zKt+HvqS3FLmJTiXtFCTdHoLvTp4dcDRi4Ysmln 0G4nQBcrQ+dAS+daEu7eSM/sj/DvcAE/nXohJyf9EMigdiPuRTU1oBEPEiiNnTdY yfI+1t2hdYv8SfeNEL5n+Oj1Pqztwfp5OFaqgfVhcZVa2NQPFvrYmnRp2hPQAI2Q ehXiKiPYJ1tIrwSKuJnawWx9jRPAqfK0YGzcqDJWTic/rhU5Ke0= =LNYi -----END PGP SIGNATURE----- --=-ohNoEaQoAJRqfudt2uPb--