From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6518759238035046400 X-Received: by 2002:a17:902:8:: with SMTP id 8-v6mr9267849pla.35.1517766916646; Sun, 04 Feb 2018 09:55:16 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.99.39.196 with SMTP id n187ls1227344pgn.28.gmail; Sun, 04 Feb 2018 09:55:16 -0800 (PST) X-Google-Smtp-Source: AH8x224O3Lw3rLQgnu7mr2Q+KK/RrU7yrI7JF2MRWYd0rjpoHQkNejt43U2uH+uKz1+NQP+3ycHz X-Received: by 10.101.72.69 with SMTP id i5mr8684667pgs.66.1517766916195; Sun, 04 Feb 2018 09:55:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517766916; cv=none; d=google.com; s=arc-20160816; b=jbSImUkG/bw4rN3NkLxwUhCvuBOxly35dYhicSL4PCnqXAZjtgOuA7ejX2SmGKanRE 6vODoxa83KNuSjsJ51jKwICAMrx/Yf2kaNLVa4KvG3gblIWNs5D7iRSyiofErx8W9a1i 1LPSOYSwLuYVnuBrmV2GaQT7ZcDDVkSCrlWjTKY/s3Kbc7A6ddEOdZxIAkML+eamz6QQ Gs+b4G82kviXqTB8tNuq5JXfKBKSJQr+tmOSsGGua/kxHXSfR0ybPtxafYt48EAKjQ6D 4u2bdFYwwSN1TQ5vh8ievzbH1l8IouFu2HIa7C9dMI8z3vAwaLCr/8OvJcNCHYMpsZNF jBag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:arc-authentication-results; bh=PpLQ3rmx8l4B2N3LWGHZ69Cl4ijIORTNgq8U/Um4QxE=; b=WAWKY2eNwXtpNL9pkDKVIjNq63dNUHXGXrQ3/atZ0S7kcKSOFYYQsK8W5LsWEJGUuC afMfbP90q8tHse/PJdcosAljACp9GO9nTqfgVebp/E0/QCNwOPm0swstFC+IoPUwDw6F SH5QqUtKgitkMoWLaq2rYw6pgK/38NhNq6t2+f7A9eXUHQVRZJIerIi8HjE9uvJKTglW INLsjIqgOzVhF9s9+Qn9Mko42U5IqlkXeyqtpYOp6Izglkaxxs7P455qoNa+h5QAt7P8 R0Z5+0Xg+cgXo7FOrI0kM4XrzTAfQ/B+wYYH9W1QJNkYGlRsWkoCH0ngSC7SXPKw+BHG wFxg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of cedric_hombourger@mentor.com designates 192.94.38.131 as permitted sender) smtp.mailfrom=Cedric_Hombourger@mentor.com Return-Path: Received: from relay1.mentorg.com (relay1.mentorg.com. [192.94.38.131]) by gmr-mx.google.com with ESMTPS id o66si479249pfk.2.2018.02.04.09.55.16 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 04 Feb 2018 09:55:16 -0800 (PST) Received-SPF: pass (google.com: domain of cedric_hombourger@mentor.com designates 192.94.38.131 as permitted sender) client-ip=192.94.38.131; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of cedric_hombourger@mentor.com designates 192.94.38.131 as permitted sender) smtp.mailfrom=Cedric_Hombourger@mentor.com Received: from nat-ies.mentorg.com ([192.94.31.2] helo=svr-ies-mbx-02.mgc.mentorg.com) by relay1.mentorg.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-SHA384:256) id 1eiOVX-0005cO-Te from Cedric_Hombourger@mentor.com for isar-users@googlegroups.com; Sun, 04 Feb 2018 09:55:15 -0800 Received: from 3a23c91bf2ab.anacadf.mentorg.com (137.202.0.87) by svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Sun, 4 Feb 2018 17:55:12 +0000 From: To: CC: Cedric Hombourger Subject: [PATCH 3/5] buildchroot: use reprepro to populate the full repo Date: Sun, 4 Feb 2018 17:54:52 +0000 Message-ID: <20180204175454.220-4-Cedric_Hombourger@mentor.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180204175454.220-1-Cedric_Hombourger@mentor.com> References: <20180204175454.220-1-Cedric_Hombourger@mentor.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [137.202.0.87] X-ClientProxiedBy: svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) To svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) X-TUID: WuDNPJB1vOFA From: Cedric Hombourger Add the populate_repo task to the buildchroot so its packages may also be included in the full repo. Signed-off-by: Cedric Hombourger --- meta/recipes-devtools/buildchroot/buildchroot.bb | 12 ++++++++++++ meta/recipes-devtools/buildchroot/files/distributions.in | 3 +++ 2 files changed, 15 insertions(+) create mode 100644 meta/recipes-devtools/buildchroot/files/distributions.in diff --git a/meta/recipes-devtools/buildchroot/buildchroot.bb b/meta/recipes-devtools/buildchroot/buildchroot.bb index 3bae081..4ebd090 100644 --- a/meta/recipes-devtools/buildchroot/buildchroot.bb +++ b/meta/recipes-devtools/buildchroot/buildchroot.bb @@ -3,6 +3,9 @@ # This software is a part of ISAR. # Copyright (C) 2015-2016 ilbers GmbH +inherit reprepro +addtask cache_config before do_build + DESCRIPTION = "Multistrap development filesystem" LICENSE = "gpl-2.0" @@ -88,3 +91,12 @@ do_build() { sudo chroot ${BUILDCHROOT_DIR} /configscript.sh _do_build_cleanup } + +do_populate_repo() { + call_reprepro -b ${DEPLOY_DIR_APT}/${DISTRO} \ + --dbdir ${DEPLOY_DIR_DB}/${DISTRO} \ + -C main includedeb ${DEBDISTRONAME} \ + ${BUILDCHROOT_DIR}/var/cache/apt/archives/*.deb +} + +addtask populate_repo diff --git a/meta/recipes-devtools/buildchroot/files/distributions.in b/meta/recipes-devtools/buildchroot/files/distributions.in new file mode 100644 index 0000000..cd214c6 --- /dev/null +++ b/meta/recipes-devtools/buildchroot/files/distributions.in @@ -0,0 +1,3 @@ +Codename: {DISTRO_NAME} +Architectures: i386 armhf amd64 source +Components: main -- 2.11.0