From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6693764270886223872 X-Received: by 2002:a05:600c:10ca:: with SMTP id l10mr6810296wmd.23.1558513443040; Wed, 22 May 2019 01:24:03 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:600c:28a:: with SMTP id 10ls411242wmk.3.canary-gmail; Wed, 22 May 2019 01:24:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqxDNZQDen8qs6/hCNRU0U6F5x8AO+EPz3xfLmHE1BqD6bjmTDg0+54oYzwcalHJGPE9k9eg X-Received: by 2002:a1c:d14b:: with SMTP id i72mr6473317wmg.4.1558513442601; Wed, 22 May 2019 01:24:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558513442; cv=none; d=google.com; s=arc-20160816; b=efDeQgdD2MvM+x8H3dbWDveL0ky7LjIhSIZKpppIhpROc9WiYE1CsCUzNvXC/yEc1d K+usmEhqRf3zOQc7hfaKoKpNqRP3mDKVSMRGGLuY/urZs/Eu7Dtr3RnT1utLqj0MPq/W CGB10LDxxJmPhLW1Sx8//u3kZTfeMJqy88CZwIp2bN0N5jCDLLw/g713fjuh/Q8J/pq2 Hj9peCabpT5C3aCrGjuzYx2n9AN3xBlTLNMsVptiUCnDlBn+4Do/HXs3U+z/awkI+BLV A+1kbAdgLdOyBQRp12R3qXziv051FTyL7kni44myzNPFk11XARUs3mkpRdpojxUjAtXN eEWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:mime-version:user-agent :date:message-id:subject:from:to; bh=jQz/+Ub8eVgNFtzYWHxn2S4bdrob4/PufA4K7SibkEg=; b=yQEjwBpNvXtdVTDZ6YZi/ozs+ry1dQbSMk3HTAyuE2/qu5K8nYmdtT78DkbHeHVPN0 YTvGZcvUGGIBKNLGNf97MNqYty3bq5oEPHaNjbTraxcPzBgoFVlABG17dERMKRky5SSM EilPuG8n/j+N6KOY88uGK1lx7zsmt73dsE4Yh4dTVIVgR1XnhiExs09zRj3evAe712mr FqSOs1Lp2W53f4awemWyfbzzcSJxU1OWb2juZv1bB4CHYjnaMZxziYOMF1LYjWS1jc6P IyKDPt7p+mmg52MPDg6gMjEqBmfl1Ids+BQRlo9Y5TE3sNMzYd7to1ygygprLQ+gO9y2 cDnQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of claudius.heine.ext@siemens.com designates 192.35.17.14 as permitted sender) smtp.mailfrom=claudius.heine.ext@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from david.siemens.de (david.siemens.de. [192.35.17.14]) by gmr-mx.google.com with ESMTPS id h3si6158wrw.4.2019.05.22.01.24.02 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 May 2019 01:24:02 -0700 (PDT) Received-SPF: pass (google.com: domain of claudius.heine.ext@siemens.com designates 192.35.17.14 as permitted sender) client-ip=192.35.17.14; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of claudius.heine.ext@siemens.com designates 192.35.17.14 as permitted sender) smtp.mailfrom=claudius.heine.ext@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by david.siemens.de (8.15.2/8.15.2) with ESMTPS id x4M8O2Ik018822 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 22 May 2019 10:24:02 +0200 Received: from [139.25.69.232] (linux-ses-ext02.ppmd.siemens.net [139.25.69.232]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id x4M8O1Dh013822 for ; Wed, 22 May 2019 10:24:01 +0200 To: isar-users From: Claudius Heine Subject: Question about base-apt: Usage of BASE_DISTRO instead of DISTRO Message-ID: <54843fa8-16ea-195c-4ffa-8ec10fa9246c@siemens.com> Date: Wed, 22 May 2019 10:24:01 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: BLGj5iWKSznL Hi, I am currently investigating a CI issue, and some input would be nice to have, since it touches code I am not that familiar with. This is the log: ERROR: mc:qemuarm-buster:isar-image-base-debian-buster-qemuarm do_cache_base_repo: Function failed: do_cache_base_repo (log file is located at /workspace/build/isar_claudius_ilbers_fast_ci/26/build/tmp/work/debian-buster-armhf/isar-image-base-debian-buster-qemuarm/temp/log.do_cache_base_repo.14542) ERROR: Logfile of failure stored in: /workspace/build/isar_claudius_ilbers_fast_ci/26/build/tmp/work/debian-buster-armhf/isar-image-base-debian-buster-qemuarm/temp/log.do_cache_base_repo.14542 Log data follows: | dpkg: warning: failed to open configuration file '/root/.dpkg.cfg' for reading: Permission denied | DEBUG: Executing shell function do_cache_base_repo | Cannot find definition of distribution 'buster'! | There have been errors! | WARNING: exit code 249 from a shell command. | ERROR: Function failed: do_cache_base_repo (log file is located at /workspace/build/isar_claudius_ilbers_fast_ci/26/build/tmp/work/debian-buster-armhf/isar-image-base-debian-buster-qemuarm/temp/log.do_cache_base_repo.14542) NOTE: recipe isar-image-base-debian-buster-qemuarm: task do_cache_base_repo: Failed ERROR: Task (multiconfig:qemuarm-buster:/workspace/build/isar_claudius_ilbers_fast_ci/26/meta-isar/recipes-core/images/isar-image-base.bb:do_cache_base_repo) failed with exit code '1' That happens because 'buster' was not added to the repository configuration: build/downloads/base-apt/apt/debian/conf/distributions: Codename: stretch Architectures: i386 armhf arm64 amd64 source Components: main The reason for that is that base-apt does not add a distribution entry, if there is already a configuration file in place. meta/recipes-devtools/base-apt/base-apt.bb: [...] CACHE_CONF_DIR = "${REPO_BASE_DIR}/${BASE_DISTRO}/conf" [...] if [ ! -e "${CACHE_CONF_DIR}/distributions" ]; then sed -e "s#{CODENAME}#"${BASE_DISTRO_CODENAME}"#g" \ ${WORKDIR}/distributions.in > ${CACHE_CONF_DIR}/distributions if [ "${BASE_REPO_KEY}" ] ; then # To generate Release.gpg echo "SignWith: yes" >> ${CACHE_CONF_DIR}/distributions fi fi [...] What I currently don't understand is why the path to the repositories contains BASE_DISTRO instead of DISTRO and is causing this kind of conflict? I would now just rename the mentions of BASE_DISTRO to use DISTRO, but I don't know if that is possible breaking the design here. To me that looks a bit too deliberate to be just a bug. My question is if the base-apt repository is meant to hold repositories for different codenames and `base-apt` simply sets it wrong, or if we want to have different repositories for each codename to avoid any conflicts. regards, Claudius -- 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