From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6547633542169362432 X-Received: by 10.80.135.236 with SMTP id 41mr6124803edz.5.1524489732490; Mon, 23 Apr 2018 06:22:12 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 10.80.204.68 with SMTP id n4ls9830331edi.5.gmail; Mon, 23 Apr 2018 06:22:11 -0700 (PDT) X-Google-Smtp-Source: AIpwx49gvoeOWZgO+TY3Eu+tc+WINx4atcCuZdWNhhBxBnUzjM7E2wPj97qS4y/Nnq6yd8ru3rlh X-Received: by 10.80.242.145 with SMTP id f17mr3807346edm.11.1524489731354; Mon, 23 Apr 2018 06:22:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524489731; cv=none; d=google.com; s=arc-20160816; b=E6oL6WPbjJIx1mFh87F0zKc+ft7+RnKb9/DPtOLmOetB8L/qdVBHjR3dsULPZjclel TEvQpGqzfZmKvJoxthzE2VGF/HYa9bQ7qLsFZmvuJRDWiLBfA4vMNnSp3V7FcprDTnLp NnZlm/5AVbDhR4/yJ88lTVqVruhpoj5l/cTJai2Bm4qehDSTJKe3DfvHfStIa43f9WBQ WbnaCYIpL6MGYC4fujGygjVSErytBJeXduX5mzN57YzVh43Jmfp6zuSWUFR8zOOFULWR VilUFtkX9GDroNfCorqfNwdz5Nt9wEFZty7eBqhQvjf7C1U684Dw2/bd07IaZT3Ov93i Epbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:arc-authentication-results; bh=y9TaH2oKtHq4Lom7WIASi73LlWxSXoZo8XrT99w1L08=; b=fyZlnlDS/QkpSzbc4M9rRAvQVxs2L5poFz5fN9LAPhYcEX0NZ8LjjISeRylNUPjYxD NoX3+ZfeDJ53AodC4fuIgTC+CZKmgDBw8wXtDlCWw2QKUmRP5MHB1e/m/PWIlpckSbUR Ty52GDpvYXetNpDHOmdL9UBXOB0bq1zBY6eIKfmXl2lVGlj4YzevYa3PPuIuhX1BP6uA MpPMPibGhWK33AbER3FJjvRQ76tbrglzNgDQQfX4C84A40E8WYXPhuxkp6faRpo2c+9V K3yMILrm8eYsouUogEDxEtuifBVgrGfnv9RpGCunNEszAF0PH6iw1vGlzuEnG2ue5LK8 1XcA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=asmirnov@ilbers.de Return-Path: Received: from aqmola.ilbers.de (aqmola.ilbers.de. [85.214.62.211]) by gmr-mx.google.com with ESMTPS id z2si200288edq.2.2018.04.23.06.22.11 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Apr 2018 06:22:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) client-ip=85.214.62.211; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=asmirnov@ilbers.de Received: from localhost.localdomain ([188.227.110.165]) (authenticated bits=0) by aqmola.ilbers.de (8.14.4/8.14.4/Debian-4+deb7u1) with ESMTP id w3NDLr5e012434 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 23 Apr 2018 15:22:01 +0200 From: Alexander Smirnov To: isar-users@googlegroups.com Cc: Alexander Smirnov Subject: [RFC][PATCH 0/3] Experiments with .dsc backend Date: Mon, 23 Apr 2018 16:21:43 +0300 Message-Id: <20180423132146.14743-1-asmirnov@ilbers.de> X-Mailer: git-send-email 2.9.5 X-TUID: YjFx9/wdRrFK Hi everybody, as it was planned initially, one of the Isar feature is the ability to rebuild original Debian packages with/without customizations. Doing this manually in classical Yocto/OE style requires manual setting of lots of variables and having a copy of Debian patch (*.debian.tar.xz) for this package in your recipe's folder. Maintenance of this system becomes very complicated. I performed a small research regarding bitbake capabilities and found an interesting trick: during bitbake parsing stage (in anonymous tasks) we could re-construct whole recipe (including tasks and variable), and this snapshot will be stored in recipe's dynamic context, that is used during pipeline execution. This series is just a PoC, lots of issues are still open, like: - Patching upstream packages - Automatic cross-recipe dependency detection to avoid duplications in recipe and debian/control files - etc... To test this series just run: $ bitbake hello After build, in hello workdir there will be a newly-baked identical copy of upstream package :-) Feedbacks, ideas, proposals are welcome! With best regards, Alex Alexander Smirnov (3): buildchroot: Include texinfo to base system classes/dsc: Basic Debian .dsc backend implementation recipes-debian: Add example recipe to test Debian .dsc support meta-isar/recipes-debian/hello/hello.bb | 10 ++ meta/classes/debian-dsc.bbclass | 112 +++++++++++++++++++++++ meta/recipes-devtools/buildchroot/buildchroot.bb | 3 +- 3 files changed, 124 insertions(+), 1 deletion(-) create mode 100644 meta-isar/recipes-debian/hello/hello.bb create mode 100644 meta/classes/debian-dsc.bbclass -- 2.9.5