From 2d3f6aadf515ddc07c8e6c1776848841db16dcc7 Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Thu, 12 Jun 2025 23:29:17 -0400 Subject: [PATCH] common/xbps-src/shutils/common: only complain about do_install in main pkg this file is also sourced during subpackage install, so a metapackage that has non-meta subpackages will source this and scream because there is no do_install --- common/xbps-src/shutils/common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/xbps-src/shutils/common.sh b/common/xbps-src/shutils/common.sh index f82db7d98a3..e0a67bc8a5e 100644 --- a/common/xbps-src/shutils/common.sh +++ b/common/xbps-src/shutils/common.sh @@ -526,7 +526,7 @@ setup_pkg() { # If build_style is unset, a do_install() function must be defined. if [ -z "$build_style" ]; then # Check that at least do_install() is defined. - if [ "$metapackage" != yes ] && ! declare -f do_install >/dev/null; then + if [ "$metapackage" != yes ] && ! declare -f do_install >/dev/null && [ "${pkgname}" = "${sourcepkg}" ]; then msg_error "$pkgver: missing do_install() function!\n" fi elif [ "$build_style" = meta ]; then