From nobody Tue Feb 20 19:56:56 2024 X-Original-To: freebsd-ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TfVYH2QWxz55WlX for ; Tue, 20 Feb 2024 19:57:07 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TfVYH1rS3z4c0n; Tue, 20 Feb 2024 19:57:07 +0000 (UTC) (envelope-from jbeich@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708459027; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=1+PVBZtHtdVol1Cjz1hWtorWSt7eMcpajmi85aG7F1w=; b=QJg39n3Oqh2FicOjKLK02BwAb1cVYkbNxC5bcGBNqr3qd5pXuFgCTpfBPHD+If8tLZ12xf jJ3SQ+q7rbOSoDhDbdFzRUJ6uqZds0cFlOBt8jzyM/ja/nVdceyuv1DYxLquam/G6QvtRW jZ+ycnpxsEZ7CqsxfIzxmM2zYi9RlZW9ffbSkuJiGz2rUTt0ViNVz81jCPtTTqHOO9msxF X8/bwSIPo3zE9c9rQL6RGRGQNPkYhtMnVv2vhM56p9GbaQ2kKipeFuo/m6Xhuhm6CfIdk/ YD8JsY7aUykRVTWtFozeIVft1ol2v3OTWOKUYOTe88/jzkbTYvyzVfHkVWIvJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708459027; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=1+PVBZtHtdVol1Cjz1hWtorWSt7eMcpajmi85aG7F1w=; b=c7Wv7nD9YJbQIVkfMc0dqhiz6FjGioJpYsH4DmI38kLRHGqMgFlTusMpOhIQ92wSY1l2nw zPTo+lZPfKQYqbeRuMM/Ix3jdNddahGNc+BYBE1Q5L+AoB40ougQSvda/OJkbT0TTE7E3l 6kZF+89mzRdjh9B5JBCq1k79jaGVDNQlSu5HuKyiToZo7qUMJPIgI+WSk/UVI/w1KUvzZ4 REoqcljVTaQt2lFE8M8/UJo13PHph50SthLdH8/JeFY1HD8VKAeIA7Bjdc12poBLrT7xdu afVMtoNuepWBGvE6LQ9Oh2M4QtcJJsHn1E9yOqBfOv04g80wCYNb4K76WgxBNg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708459027; a=rsa-sha256; cv=none; b=YUF6hWmG7dewpZnkccPLXxzmICVrlL/AbdHIwr/Sre6GJEnWLrIb5sL3Waqnb9pKZAl/kC ahfjtJqxDyqq7Cn5613UkOQfLDZ7xsx335LCZ3rw99ds0ye3UEVASS0qs084bkKUiJFDG+ G3QjCivc6x0w5axP/GgUzewW4LdWRwjGpKSR99ukr8o83xO1i8ex863EduZ42SrZDFd9+n W2j4B+S/5tpMwu5L1AHvchOqAwR8gIAbed2COC+41h6GJFoNdtwzYPtMflLAY0kjWAOFnu 4/0A/rnFP8E3nuepDxvZvrHvF8Qhb/tNOm/DBdoJMqzNLj2WK4PjoMgeaOmfXA== Received: by freefall.freebsd.org (Postfix, from userid 1354) id 0AE0C14751; Tue, 20 Feb 2024 19:57:07 +0000 (UTC) From: Jan Beich To: jonc@chen.org.nz Cc: freebsd-ports@freebsd.org Subject: Re: Installed audio/alsa-plugins and dependencies In-Reply-To: <1b27f0f5d3062493151897d85e562740@chen.org.nz> (jonc@chen.org.nz's message of "Tue, 20 Feb 2024 19:17:41 +0000") References: <641ffb1d-1a6a-46bc-81ce-1daba2dec27b@chen.org.nz> <1b27f0f5d3062493151897d85e562740@chen.org.nz> Date: Tue, 20 Feb 2024 20:56:56 +0100 Message-ID: List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 Content-Type: text/plain jonc@chen.org.nz writes: >>> It appears to be missing the SUBPACKAGE dependencies. Is this >>> intentional, or a bug? >> >> Intentional. See pkg-message: >> >> Plugins with extra dependencies moved into subpackages: >> - alsa-plugins-ffmpeg >> - alsa-plugins-jack >> - alsa-plugins-pulseaudio >> - alsa-plugins-samplerate >> - alsa-plugins-speex > > In my opinion, that's _not_ correct. When we install any > non-SUBPACKAGE package, anything listed in LIB_DEPENDS or USES are > automatically listed as package dependencies. However, if I install > audio/alsa-plugins, the only way I know what dependencies are required > is to by consulting /usr/ports/audio/alsa-plugins/Makefile. And if > audio/alsa-plugins was to be compiled with non-standard OPTIONS, it's > impossible to tell what dependencies are _actually_ required. Port dependencies are not package dependencies. With subpackages a single port can build multiple packages. As such, runtime dependencies[1] and files are split between multiple packages. However, all build-only dependencies are shared and not recorded in binary packages. When you build from ports you build every subpackage[2], so you need to use options to limit dependencies. If you want to install only "alsa-plugins" (aka "main" subpackage) without extra plugins/dependencies just do it like before with all port options unset. [1] what "make run-depends-list" shows [2] until https://reviews.freebsd.org/D43789