From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yann E. MORIN Date: Fri, 12 Mar 2021 23:52:04 +0100 Subject: [Buildroot] [PATCH 6/8] package/opkg-utils: add missing dependencies for host build In-Reply-To: <20210312200534.923-7-ryan.barnett@rockwellcollins.com> References: <20210312200534.923-1-ryan.barnett@rockwellcollins.com> <20210312200534.923-7-ryan.barnett@rockwellcollins.com> Message-ID: <20210312225204.GJ2737665@scaer> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Ryan, All, On 2021-03-12 14:05 -0600, Ryan Barnett spake thusly: > opkg-utils is a collection of bash and python scripts which require > additional commands/tools be available for the bash scripts. The full > list of dependencies that the opkg-util scripts require is: > > bash > binutils > bzip2 > coreutils > diffutils > findutils > grep > gzip > lz4 > python3 > sed > tar > xz > > Since buildroot requires that bash, binutils, bzip2, gzip, sed and tar > be installed on the host system, only add dependencies on the > remaining host tools. > > Signed-off-by: Ryan Barnett > --- > package/opkg-utils/opkg-utils.mk | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) > > diff --git a/package/opkg-utils/opkg-utils.mk b/package/opkg-utils/opkg-utils.mk > index a250b4ef9f..d7f68b8555 100644 > --- a/package/opkg-utils/opkg-utils.mk > +++ b/package/opkg-utils/opkg-utils.mk > @@ -10,7 +10,14 @@ OPKG_UTILS_SITE_METHOD = git > OPKG_UTILS_LICENSE = GPL-2.0+ > OPKG_UTILS_LICENSE_FILES = COPYING > > -HOST_OPKG_UTILS_DEPENDENCIES += $(BR2_PYTHON3_HOST_DEPENDENCY) > +HOST_OPKG_UTILS_DEPENDENCIES += \ > + host-coreutils \ > + host-diffutils \ > + host-findutils \ > + host-grep \ We already implicitely require grep: we're calling it so many times in the existing code. I am of the opinion that grep is a required package. That it is inot in the manual, is probably because it is so wildely installed by default in all distributions that we never had an issue with it missing so far, so it was not added to the list of required packages. Yes, that's basically how that list came to be: someone reported an issue about a tool missing, and it got added to the list (or we instroduced a host version). In the case of grep, I would say we should just require it on the host. find is also on the same page: it is a required package. As for coreutils, I would tend to be on the same page: it is a required package. However, we do have a host-coreutils package, but we only use when a package needs either or both of 'ln --relative' or 'realpath'. See: support/dependencies/check-host-coreutils.sh If that is the case for opkg-utils, then it should add $(BR2_COREUTILS_HOST_DEPENDENCY) to its _DEPENDENCIES. See: package/libselinux/libselinux.mk package/libsepol/libsepol.mk package/systemd/systemd.mk Regards, Yann E. MORIN. > + host-lz4 \ > + $(BR2_PYTHON3_HOST_DEPENDENCY) \ > + host-xz > > define HOST_OPKG_UTILS_INSTALL_CMDS > $(MAKE) -C $(@D) PREFIX=$(HOST_DIR) install-utils > -- > 2.17.1 > > _______________________________________________ > buildroot mailing list > buildroot at busybox.net > http://lists.busybox.net/mailman/listinfo/buildroot -- .-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'