From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7123123395198189568 X-Received: by 2002:a5d:64cf:0:b0:21e:84da:de2 with SMTP id f15-20020a5d64cf000000b0021e84da0de2mr3293229wri.578.1658731659466; Sun, 24 Jul 2022 23:47:39 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a5d:5e84:0:b0:21d:9636:a730 with SMTP id ck4-20020a5d5e84000000b0021d9636a730ls6396333wrb.0.-pod-prod-gmail; Sun, 24 Jul 2022 23:47:38 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vwTUAIkqqMiHYu6ZLgepXulOlpbpLHwAde8C6RvsG6AoPOGGAk7tcWWaA6sYD92Q8OJbr3 X-Received: by 2002:a5d:6b10:0:b0:21e:4bbd:e893 with SMTP id v16-20020a5d6b10000000b0021e4bbde893mr6932399wrw.613.1658731658522; Sun, 24 Jul 2022 23:47:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1658731658; cv=pass; d=google.com; s=arc-20160816; b=vmFDHLhoxLNbzu9yr+rynBYGJUXDCUXWoaZoUfovCRwJTIxBBK4R4d978BUBg4BP03 Uxw2vqiAuFzADma5tUAnE9ZGRhQRXnyWjQmWJzTgqLqhsGT8QUmFNThkE/ldMbSpThP2 GUlgOaQuvdwfa1IeR+BhBlxSueOGi7L5LN4IfhRc+JQqj5pLUiApvbUJoeXDWGZTV/js KkOHPXDJ3c0JL1LKktCOInlXiokITpF+z5tHioEL6B1HVl3aAsAcwC7klcq/EZywBc0j ij7CJtCJ4ie/gxRwILKTjef2sfbsiWyX3qdIdnhgcE5HVMeVMpSkLLZ5dIgmTrNydj0N mnRg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:content-transfer-encoding:document_confidentiality :msip_labels:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=uPB3GQjL4rnjaxgzAzr0IoVaCBzMLLzU4r/BDH6qhpw=; b=GQBF8Bum78nhi65qKOcJ7LSDQmNOjWAvqQ7Fr1LxKKAXtzihk8g54SEEQHByREX3MN Jr5jzxRninBXqeICnTueWWuCEDZZqbvHd7v0jJnzt5TZx6sK2vumB81Cz6NRUTOrTX4h k4BvRydY2OzChFKT8yrgnjELhUIHulX4GuyV8Bj8elMs82niCoZ5C441tsGyR24lXTxw Tq1vDgpdhkeISplIZvkgWys4PxiiXZDLd6YFQ6OVCe3AMreAwDf1S4l0oqbYWWIQVuWV Fz09DCpZXMTFU8zA9r4DTlI11jP8+OZ8j8IOYW29ETHb9cng57JUWJwn8JbjhvrVvlaK 3xxw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b="O/kRZfob"; arc=pass (i=1 spf=pass spfdomain=siemens.com dkim=pass dkdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of felix.moessbauer@siemens.com designates 40.107.15.85 as permitted sender) smtp.mailfrom=felix.moessbauer@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-eopbgr150085.outbound.protection.outlook.com. [40.107.15.85]) by gmr-mx.google.com with ESMTPS id l128-20020a1c2586000000b003a31bb11cdfsi647604wml.2.2022.07.24.23.47.38 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 24 Jul 2022 23:47:38 -0700 (PDT) Received-SPF: pass (google.com: domain of felix.moessbauer@siemens.com designates 40.107.15.85 as permitted sender) client-ip=40.107.15.85; Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b="O/kRZfob"; arc=pass (i=1 spf=pass spfdomain=siemens.com dkim=pass dkdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of felix.moessbauer@siemens.com designates 40.107.15.85 as permitted sender) smtp.mailfrom=felix.moessbauer@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jg3n+wOOFwc0NPIqo9KCJTiL+vaRlDR0ys+mDiwo+H6HoiO0YTu6rrU5D6/57Kz3FOlBUUivcORXtba7td2M7M0OlUgWaz3OyWlv/fCbVDF/a0CqRC6CzRdsfCWiM8TnnLx0RKO0Xc/jLcROTfLd0Blpaa2vaOOtWylf3+dXMGTV+rUz6kXqzuRc67Fe/KYfUuyIfoM/S3QAXd/t6alOThtcW8sH76IkqYRdyxjknuGjKzf1h5TwS41qkoRQfYLmSmV4Mcje9d6+yFet1oQZxcnHZyhijRCS7k/mNyLv/zT0UAhjxGZ5Lot6Sx3ClljFF+PZMZ6+zRddxECLgZygOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=uPB3GQjL4rnjaxgzAzr0IoVaCBzMLLzU4r/BDH6qhpw=; b=c009/yX+h7CXYWxUMfX7sF0+ajTqWeFi78ohDpYrDhrOIDbK9WvEa+bQ8ipI5rjICMwCcZyndRPqDAK0J0qKTyoV3PEpxA6q3npIsYR9qx1gSvLde9Bn+0wVn/FWZdNZjRZqXvGJZ5stwC+burgnRlOc/bx410RigmDe3c4zjTVZCibbclG0TdzhFxa4TBhuufmkoZhBO5anFrU3/MZKB3ZiqLL1lL0JcsRrfcIzH3kc/ExD0OX0vK8pbLOcwvv6KUEsc9AVVH/WChrdbZwGvepTzO568GrL0Kml8/Qk/Iyxvx5vOSaUSBFINMgZw6uD0DJ+LKlWGd3+rrDrYu+cHA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=siemens.com; dmarc=pass action=none header.from=siemens.com; dkim=pass header.d=siemens.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=siemens.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=uPB3GQjL4rnjaxgzAzr0IoVaCBzMLLzU4r/BDH6qhpw=; b=O/kRZfob7QDyC3hLxIsyI0NXaI8GOXxq7T+KLb0BVMo3m3h8BgAKiZPkt/xs9CTg8hGgK1WWSkK+s2OaRag1iuCdR8TtIB01d171QvhOPkGNnJPxoQtLEDHxIY7gIsY4j1Nfs21Qgnb4RtNyjW2l1w1foExkGRFKFVZ8B22JN9kAXCjyGQKHpsTgvQPVe1oBCsUinvwBKrioJwdJ5Y/4UbfyrodCDJE94wVXt7Ksag6HOXM9MfKS0FgqYVlBI6+Y0gtbW6R7AtfTMomf21Q5o7Yw5jr97sPmdWaHgji1/aVSUipZPeGOq5gKrF7Y/DuFpBG0pMojljhzp9YNQjDiuQ== Received: from AM9PR10MB4869.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:418::19) by DBAPR10MB4139.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:10:1c8::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5458.18; Mon, 25 Jul 2022 06:47:37 +0000 Received: from AM9PR10MB4869.EURPRD10.PROD.OUTLOOK.COM ([fe80::b8fc:851:a05c:4760]) by AM9PR10MB4869.EURPRD10.PROD.OUTLOOK.COM ([fe80::b8fc:851:a05c:4760%3]) with mapi id 15.20.5458.024; Mon, 25 Jul 2022 06:47:37 +0000 From: "Moessbauer, Felix" To: Uladzimir Bely , "Schild, Henning" CC: isar-users Subject: RE: sbuild migration help needed Thread-Topic: sbuild migration help needed Thread-Index: AQHYnavEgoFeRAhaJkex6ioHRh4HwK2KPDGAgAAg0ICAABOpgIAAUzUAgAC+5ICAAyTKwA== Date: Mon, 25 Jul 2022 06:47:37 +0000 Message-ID: References: <20220722111635.75271b45@md1za8fc.ad001.siemens.net> <20220722161907.5dde4183@md1za8fc.ad001.siemens.net> <20220722211656.6ab7aceb@md1za8fc.ad001.siemens.net> <4928480.Qq0lBPeGtt@home> In-Reply-To: <4928480.Qq0lBPeGtt@home> Accept-Language: en-US Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_9d258917-277f-42cd-a3cd-14c4e9ee58bc_Enabled=true; MSIP_Label_9d258917-277f-42cd-a3cd-14c4e9ee58bc_SetDate=2022-07-25T06:47:35Z; MSIP_Label_9d258917-277f-42cd-a3cd-14c4e9ee58bc_Method=Standard; MSIP_Label_9d258917-277f-42cd-a3cd-14c4e9ee58bc_Name=restricted; MSIP_Label_9d258917-277f-42cd-a3cd-14c4e9ee58bc_SiteId=38ae3bcd-9579-4fd4-adda-b42e1495d55a; MSIP_Label_9d258917-277f-42cd-a3cd-14c4e9ee58bc_ActionId=67552b01-1e8f-42e4-ae3d-48bc875c7356; MSIP_Label_9d258917-277f-42cd-a3cd-14c4e9ee58bc_ContentBits=0 document_confidentiality: Restricted authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=siemens.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 3bc0c785-b34c-418b-e3e2-08da6e098fcf x-ms-traffictypediagnostic: DBAPR10MB4139:EE_ x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: E0ofrzK5k9nwMA/apCXqw10HR3L1d4UE6BZgvTtd+RClHhychTlc+DlYv8DXU55IxgyCwC/6nkB6jC8DKnfUZlR30L6LUleJJpw0asaPGHyXDIZJNjM/yCzoJHevsmsqRKH06HdVCnEtCBGsHVCN/V8SpyP9bkLPGfh1RHBvtlmpXICQwu5ts3kfrLD/kJhmhJq/8zauvaUi4rJJLjOHnh5GMEKixKpJLfsxY83M5UDK6xxsWP5ftiEN8iuXmVdgArVTWxQokZSS/l6tPwLvYS92tw45VJXCsBCAwdz3Q/lMOTFs1wZsGlfm8CVz3qMAb/u56EY8r5Zh4mYXfP1vBLfvU3457T8ItjCuHDAzBYl9IPDP/hHT/eA9Sj11RHsapBL4vFEe3EtRQ5ILYe5SEJeM/LwnXILhptGmH0HDvpbbYFgHlNZHv/PRihJC60HcbDwEH2SaDX1fwmPGM2PkmsbmxbIseJ8DL4gaAPjMLBDOObkzloeHk5VeWhLdjljBcEGnXhC1YEvAkjiwuH0XXaskXlWq83PfAniAEmaWqbnBZaraLUNmLpZLvPidjG0svfUW6mu46sF8QIU3xEierVM1RZ5YXZWx3SbB2hubVxxzciOjNEOrQ8bF95tUFPxAnTmtQ7Y3AkfklMtW2s9pGO5N6VuFN1Ee/Do8zmyx+pLKzrvqpFL3v/AFu7x8T1HWjiegQhW+JbToJyWLsSMctxtE2Fe5Mbng5gFnhD3yHJPEjCR0BqICyjn8TsqEfQZjVvJ9p6GQVABN9JtPljoZJVTA6/lMdHkK4l5ZaJ8Ny5nnBjFdBgPT4/Eg9gU7VZxaNbeBAZbnrCxtokPvPbsDTy//TEXQL2qXnfzPrtz089w= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM9PR10MB4869.EURPRD10.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230016)(4636009)(136003)(376002)(346002)(366004)(396003)(39860400002)(82960400001)(122000001)(3480700007)(6636002)(66446008)(64756008)(66946007)(4326008)(316002)(66556008)(110136005)(8676002)(55016003)(45080400002)(66476007)(38070700005)(38100700002)(76116006)(2906002)(33656002)(53546011)(6506007)(86362001)(41300700001)(966005)(52536014)(478600001)(71200400001)(84970400001)(186003)(5660300002)(7696005)(9686003)(26005)(83380400001)(8936002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?dowd/xnrfl8SL96dK5S/0wdXjzS2x5/mkQ9R/jnzHudB+YsyhvCZxToSDtSp?= =?us-ascii?Q?JI7JfQkpgZpJRKL+lM79t8O5dIL3dbnec+JOqIdCjmq4nhwnPpzXinfqNDRI?= =?us-ascii?Q?mX3QiRh8iAn9CkOd4mrz2dwMW9aEsoe291ZHevJxcgUIE73DeeRPK2GY9rBA?= =?us-ascii?Q?1d3/MakqOnxAPNC+rN5hL0drD0E6F2QPAX9kbK6YBMR8NFyQSWxSFDkJAvne?= =?us-ascii?Q?JDIilO/WDPx6k7hvKFi3EIajYV5sxA9PzCvqyKMmDEKHEggoYlQEePzQBZhk?= =?us-ascii?Q?7VeLQBGLuqQ3A7CV/yByWOsU9bGxh9g7h+I2UJpSihtrlXqi7EbEKsNI+RFt?= =?us-ascii?Q?l3iC09jZZS/RppgE6dfuno8auijuM7rGfV8ijqHKR30bHta/Ric376MpAVJy?= =?us-ascii?Q?MMfXAO5YX7zLDVPBjRLrLiqofYFYFZnolO8qNxWilyy9NpuRMcistbH9p0DW?= =?us-ascii?Q?JzNXu3hiyXASiTP5DvQU1lFDmT4/ESNjgotFyZkBuNAdanY6K6k+nrGeurl0?= =?us-ascii?Q?2raXnz/UGEhFlAW9kWOq0PfXTqD3dxQ3dK/I3tSx+wzCrG0NxaKV784OdCy5?= =?us-ascii?Q?M3JglvBYsN/2a8onlHlhjqiRpPUQbmwcCdgcedFBFXCeNJVhHGPY90a+kV0Z?= =?us-ascii?Q?nbrNS2xYrZwv6SQQtV8eznFtoNUv6oUF+ey9iutYTRwJQsTSJyowapDsgrde?= =?us-ascii?Q?7ej8o7QDGipohQVBOgEC9QS7B8prxPDu6GA8jNLQH2WFRW990bChHpWAtC5C?= =?us-ascii?Q?/P5rjrcw9kO7ZMt+6FgQf93k23bguuAovPnCuJ6LKoKdChztVbdVk3SJoyhG?= =?us-ascii?Q?EOiVoDfTal+EcUScLumbXSvVBwEGUMw+yaNzg9HeT8QjQA3XFCcPc3GhshDh?= =?us-ascii?Q?Iblt5JNIgBmWSJpvmppj3ju+3e0zepLwuP+4ZkyEN9GXdhJ1EgpAF4TXNaYY?= =?us-ascii?Q?EGbNbHnjTcztzu6KAMFaoSrUMZGwaYZfUbWaTjEAwM0aGfkbHggawTgl6b5C?= =?us-ascii?Q?x67LH+lWrfbaGP+L3qtU3T+h7vDp5mVCZsCbPaf0IBT984Ok56aFhBcZB443?= =?us-ascii?Q?ltlxhyPj441zdi93rQVAp3mroqpLnbm9XVl04k+IVfM37rK2CFQwLesR8atE?= =?us-ascii?Q?IQUKkWV+orSwDyIf432wR3Ge1rBI8jouXuy1FrLctjC6j8H8IHZhB60pMS96?= =?us-ascii?Q?a4nJvVh2pFymTKS2HudcIPoCWtf+vHB6oN2/jdR/I644p/lWcxHOvILsAIcB?= =?us-ascii?Q?wygE3W4v8swA1F1O6W0ClYFLQfOE86cGfVRsGwEORcf+0uCWw4zlmOhTIeza?= =?us-ascii?Q?0mOzqnMOSd0mWT0+qIIlCvSuJ0QmOztzBFxLB25W4PQrCtYR0XDf6l7MDMyp?= =?us-ascii?Q?FbOVD4tNeprMTgcS/TRePflS8bJm7yPngPOG9JL2xLcNW6PLFZr4l3V8PCwe?= =?us-ascii?Q?fecFMlPjozH+srvCbZXMM59pJ2tjQuzdBm++5jxbbyLhU++Gzoxqyhua4ifh?= =?us-ascii?Q?0DRkiR67scBMoGljs0F9i5OP+Za9gs41tRb/tc6cJWZPHoRgqIwMvTjr44hu?= =?us-ascii?Q?TcEiINsPSYP2Aph1JUNVZRypj0ItBsq4AMoIpqj29xxM9Yklnn7rRQW9kFOR?= =?us-ascii?Q?mg=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: siemens.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AM9PR10MB4869.EURPRD10.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: 3bc0c785-b34c-418b-e3e2-08da6e098fcf X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Jul 2022 06:47:37.2248 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 38ae3bcd-9579-4fd4-adda-b42e1495d55a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: F1Cv+vOGAuBPCOamno9pxp/V7ZfLssydHiKWIOKT5SuVm6QcaYf2YPkvq0f4snqa0yAVW++8MZtjWl1sOPNhRn69NZy/FNxTlRCUbtbt3Ho= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAPR10MB4139 X-TUID: WLFGc9EFot9J > -----Original Message----- > From: isar-users@googlegroups.com On > Behalf Of Uladzimir Bely > Sent: Saturday, July 23, 2022 8:40 AM > To: Schild, Henning (T CED SES-DE) > Cc: isar-users > Subject: Re: sbuild migration help needed >=20 > In the email from Friday, 22 July 2022 22:16:56 +03 user Henning Schild w= rote: > > Am Fri, 22 Jul 2022 16:19:07 +0200 > > > > schrieb Henning Schild : > > > Thanks! I will give that a try. Sorry for not sharing that patch, it > > > is trivial. > > > > In fact that patch also does not apply anymore but did before sbuild. > > You made it a > > > > echo "\noverride_dh_usrlocal:" >> ${S}/debian/rules > > > > And i ended up turning into another sed. > > > > > I find it a little worrying that a recipe which worked perfectly > > > before all of a sudden has to be significantly changed. If there > > > would have been a forgotten build-dep i would have been happy, but > > > here we have a maybe dramatic change in how the recipe needs to be > > > written. > > > > This recipe was easy enough to share but it shows a fundamental change > > in isar. Where before sbuild all of WORKDIR became available in the > > buildchroot, now we only get S. > > > > I would not know how many other recipes in countless layers would > > care, but maybe we can somehow get back to WORKDIR and not only S > > being mounted and usable in the chroot. > > > > That recipe is a classic hack where one just packages something with > > deb_debianize and the patch features of isar. Being forced to move > > code around to arrange an S where WORKDIR would simply work (and be > > patchable) is not nice. More involved projects might require more > > involved "constructing S" steps. > > > > We are moving code around and patching Makefile here, so all of a > > sudden you need to really understand what you previously could > > deb_debianize around with. > > > > I guess the whole thing is relevant for projects where parts of the > > code you care about live in a bigger repo. > > >=20 > Yes, there is a topic for the discussion. >=20 > On the other hand, before sbuild the recipe was able to be compiled. But, > what about generated (after the build) source package in workdir? I'm pre= tty > sure, that it was unbuildable outside of Isar due to missing sources. >=20 > I'm trying to say that having ${S} deep in ${WORKDIR} is generally a wron= g > solution producing unbuildable packages (if depends on upper directories)= . Yes, I see it the same way - ${S} should be the root dir of the package. Accessing files outside of ${S} just worked before because there was no iso= lation of the dpkg-buildpackage. Having this isolation brings a huge benefit of generating re-buildable sour= ce packages. We really should not give up on that, but better fix the erroneous packagin= gs downstream. ISAR is not Yocto, so we better stick to Debian policies instead of just ma= king things work. This becomes relevant once not only images are generated but also package r= egistries. Felix >=20 > > > I will change it as you suggested. Thanks again! But we will have to > > > look out for such big changes breaking existing recipes. All the big > > > API changes can and will cause a lot of frustration in all the > > > various layers. > > > > > > And there are the known ones, which are in the changelog ... plus > > > the ones that just happen ... like this one, or the meson/ccache i > > > just sent a patch for. > > > > > > Henning > > > > > > -- > > > Index: ifdtool/Makefile > > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D > =3D=3D=3D=3D=3D=3D=3D=3D=3D > > > --- ifdtool.orig/Makefile > > > +++ ifdtool/Makefile > > > @@ -6,7 +6,7 @@ PROGRAM =3D ifdtool > > > > > > CC =3D gcc > > > INSTALL =3D /usr/bin/env install > > > > > > -PREFIX =3D /usr/local > > > +PREFIX =3D /usr > > > > > > CFLAGS =3D -O2 -g -Wall -Wextra -Wmissing-prototypes -Werror CFLAG= S > > > +=3D -I../../src/commonlib/include > > > > > > -I../../src/commonlib/bsd/include CFLAGS +=3D -I../cbfstool/flashmap > > > -- > > > > > > > > > Am Fri, 22 Jul 2022 16:08:45 +0300 > > > > > > schrieb Uladzimir Bely : > > > > In the email from Friday, 22 July 2022 14:11:19 +03 user Uladzimir > > > > > > > > Bely wrote: > > > > > In the email from Friday, 22 July 2022 12:16:35 +03 user Henning > > > > > Schild > > > > > > > > wrote: > > > > > > Hi, > > > > > > > > > > > > i have a recipe where i am building just a util from a bigger > > > > > > package, so my S is somewhere inside WORKDIR and some headers > > > > > > are below S. > > > > > > > > > > > > With sbuild that recipe stopped working, not finding those > > > > > > headers anymore. I did not yet look into the details, but > > > > > > maybe only S get put into that chroot and not all of WORKDIR. > > > > > > > > > > I've looked a bit at the problem. > > > > > > > > > > Sbulid doesn't use WORKDIR at all, but builds the package basing > > > > > on its .dsc file. It happens that generated `ifdtool_4.14.dsc` > > > > > refers to `ifdtool_4.14.tar.gz`, which simply doesn't contain > > > > > upper directories. > > > > > > > > > > I think, something more complex than automatic `deb_debianize` > > > > > should be used here. > > > > > > > > For instance, it worked for me in form of separate ${S} directory > > > > where I copy required files and modify Makefile to fit new > > > > directory > > > > structure: > > > > > > > > inherit dpkg > > > > > > > > DESCRIPTION =3D "Tool for Fast, secure and flexible OpenSource > > > > firmware" > > > > > > > > SRC_URI =3D > > > > > "https://eur01.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fgith > ub.com%2Fcoreboot%2Fcoreboot%2Farchive%2F%24&data=3D05%7C01% > 7Cfelix.moessbauer%40siemens.com%7C7193295dc78f4bb430cb08da6c76354 > 2%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C6379415522032641 > 54%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luM > zIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=3DM1 > aymRMjQL%2FCLNZBaqNazI2WV3NS%2BVAAqiG6pVNw4DU%3D&rese > rved=3D0{PV}.tar.gz" > > > > SRC_URI[sha256sum] =3D > > > > > "73740c313935f21964577fd6621f9acaddf1244cc704e88046f854d93ed6feab" > > > > > > > > DEBIAN_DEPENDS =3D "\${misc:Depends}" > > > > > > > > S =3D "${WORKDIR}/${PN}-${PV}" > > > > this is nothing but WORKDIR/P ... the default ... can be skipped > > > > > > do_prepare_build[cleandirs] +=3D "${S}/debian" > > > > has to be S not S/debian > > > > > > do_prepare_build() { > > > > > > > > cp -rf ${WORKDIR}/coreboot-${PV}/util/${PN}/* ${S}/ > > > > > > > > # Copy required sources from upper directories > > > > cp -rf ${WORKDIR}/coreboot-${PV}/util/cbfstool/flashmap > > > > > > > > ${S}/ mkdir -p ${S}/commonlib/include > > > > > > > > cp -rf ${WORKDIR}/coreboot-${PV}/src/commonlib/include/* > > > > > > > > ${S}/ commonlib/include/ > > > > > > > > mkdir -p ${S}/commonlib/bsd/include > > > > cp -rf > > > > ${WORKDIR}/coreboot-${PV}/src/commonlib/bsd/include/* > > > > > > > > ${S}/ commonlib/bsd/include/ > > > > > > > > # Fix include paths > > > > sed -i -e "s/\.\.\/cbfstool\/flashmap/flashmap/g" > > > > > > > > ${S}/Makefile sed -i -e "s/\.\.\/\.\.\/src\/commonlib/commonlib/g" > > > > ${S}/Makefile > > > > > > > > deb_debianize > > > > echo "\noverride_dh_usrlocal:" >> ${S}/debian/rules > > > > > > > > } > > > > Thanks again. I managed to get my layer to build with your input and > > ended up simply taking most of your code! > > > > But again i think that isar could maybe learn to put the whole WORKDIR > > into the chroot, where S would be a subdir. So that good old patching > > and good old recipes remain working. > > > > Not sure we really want that, but this very recipe could become part > > of the tests. As a showcase of "we care about some parts" and > > "deb_debianize" them out of the whole thing. Possibly .. ing below S > > > > Henning > > > > > > > > Here is the recipe: > > > > > > > > > > > > ifdtool_4.14.bb: > > > > > > -- > > > > > > inherit dpkg > > > > > > > > > > > > DESCRIPTION =3D "Tool for Fast, secure and flexible OpenSource > > > > > > firmware" > > > > > > > > > > > > SRC_URI =3D > > > > > > > "https://eur01.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fgith > ub.com%2Fcoreboot%2Fcoreboot%2Farchive%2F%24&data=3D05%7C01% > 7Cfelix.moessbauer%40siemens.com%7C7193295dc78f4bb430cb08da6c76354 > 2%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C6379415522032641 > 54%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luM > zIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=3DM1 > aymRMjQL%2FCLNZBaqNazI2WV3NS%2BVAAqiG6pVNw4DU%3D&rese > rved=3D0{PV}.tar.gz" > > > > > > SRC_URI[sha256sum] =3D > > > > > > > "73740c313935f21964577fd6621f9acaddf1244cc704e88046f854d93ed6feab" > > > > > > SRC_URI +=3D "file://Makefile-prefix.patch" > > > > > > > > > > > > DEBIAN_DEPENDS =3D "\${misc:Depends}" > > > > > > > > > > > > S =3D "${WORKDIR}/coreboot-${PV}/util/${PN}" > > > > > > > > > > > > do_prepare_build[cleandirs] +=3D "${S}/debian" > > > > > > do_prepare_build() { > > > > > > > > > > > > deb_debianize > > > > > > > > > > > > } > > > > > > -- > > > > > > > > > > > > Henning >=20 >=20 > -- > Uladzimir Bely >=20 >=20 >=20 > -- > You received this message because you are subscribed to the Google Groups > "isar-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to isar-users+unsubscribe@googlegroups.com. > To view this discussion on the web visit > https://eur01.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fgrou > ps.google.com%2Fd%2Fmsgid%2Fisar- > users%2F4928480.Qq0lBPeGtt%2540home&data=3D05%7C01%7Cfelix.mo > essbauer%40siemens.com%7C7193295dc78f4bb430cb08da6c763542%7C38ae > 3bcd95794fd4addab42e1495d55a%7C1%7C0%7C637941552203264154%7CUnk > nown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6I > k1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=3DmqjvG2wNLTE > %2F7CVQSMSBffu1il%2BVyXhiQRIycuOK4IE%3D&reserved=3D0.