From nobody Tue Apr 11 11:41:03 2023 X-Original-To: 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 4PwkSP1K2Qz44jSL for ; Tue, 11 Apr 2023 11:41:09 +0000 (UTC) (envelope-from idefix@fechner.net) Received: from anny.lostinspace.de (anny.lostinspace.de [195.30.95.33]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4PwkSN3HhMz3DQq for ; Tue, 11 Apr 2023 11:41:08 +0000 (UTC) (envelope-from idefix@fechner.net) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=fechner.net header.s=default header.b=BA8X+K4I; spf=pass (mx1.freebsd.org: domain of idefix@fechner.net designates 195.30.95.33 as permitted sender) smtp.mailfrom=idefix@fechner.net; dmarc=pass (policy=none) header.from=fechner.net Received: from server.idefix.lan (unknown [93.182.104.69]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: idefix@fechner.net) by anny.lostinspace.de (Postfix) with ESMTPSA id 2CF528BE7F for ; Tue, 11 Apr 2023 13:41:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fechner.net; s=default; t=1681213265; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7KsxEaMdnk/hgLWGTsjZyNnMAmLzmzUyALqR3n1G0zM=; b=BA8X+K4IrWkt8O/lx/0yUCM0ofLqPIvYh+RK/18rD4zVn+mrUjfRj7TOMVt9mW6qDvRRpv 87yKqI8dvQbQEibmZu1MzI61m+8Eoir1hcvxzBo2WO7EKAwktdx4OqBYr/Zf+ij4aRnRp7 s0x27I/hrVysH74Pu01ZUJWCXBBAnZY= Received: from [192.168.0.151] (idefix.idefix.lan [192.168.0.151]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by server.idefix.lan (Postfix) with ESMTPSA id E5353C17965 for ; Tue, 11 Apr 2023 14:41:03 +0300 (EEST) Message-ID: <65d5661f-2dac-d9aa-3516-54958538c7e3@fechner.net> Date: Tue, 11 Apr 2023 14:41:03 +0300 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 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: Questions regarding BUILD_DEPENDS definition Content-Language: en-US To: ports@freebsd.org References: <5fa8902b-d5b9-daf7-efd5-55cb3673343e@fechner.net> From: Matthias Fechner In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Action: no action X-Rspamd-Server: anny.lostinspace.de X-Spamd-Result: default: False [-6.70 / 15.00]; DWL_DNSWL_MED(-2.00)[fechner.net:dkim]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; DMARC_POLICY_ALLOW(-0.50)[fechner.net,none]; R_DKIM_ALLOW(-0.20)[fechner.net:s=default]; RCVD_IN_DNSWL_MED(-0.20)[195.30.95.33:from]; R_SPF_ALLOW(-0.20)[+a]; MIME_GOOD(-0.10)[text/plain]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MLMMJ_DEST(0.00)[ports@freebsd.org]; ASN(0.00)[asn:5539, ipnet:195.30.0.0/16, country:DE]; MIME_TRACE(0.00)[0:+]; DKIM_TRACE(0.00)[fechner.net:+]; RCPT_COUNT_ONE(0.00)[1]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[ports@freebsd.org]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Queue-Id: 4PwkSN3HhMz3DQq X-Spamd-Bar: ------ X-ThisMailContainsUnwantedMimeParts: N Am 11.04.2023 um 13:23 schrieb Matthew Seaman: > Your initial understanding was correct: BUILD_DEPENDS is for software > required to build a package, but not necessary to be installed at > run-time.  In my experience, it works exactly as described. > > If devel/gitlab-shell is pulling in security/heimdal when you're > installing from a package repository, then something is clearly going > wrong.  pkg(8) only records the run-time dependencies in the packages > it handles -- you can see those by `pkg info -d gitlab-shell` > > If you're building the gitlab-shell package locally, then the > BUILD_DEPENDS packages will be installed as part of the build process, > but marked for `pkg autoremove` to delete. ok, then something is here broken: root@gitlab:/usr/local/www/gitlab-ce # pkg info -d gitlab-shell gitlab-shell-14.18.0: If I now try to remove heimdal: root@gitlab:/usr/local/www/gitlab-ce # pkg delete heimdal Checking integrity... done (0 conflicting) Deinstallation has been requested for the following 2 packages (of 0 packages in the universe): Installed packages to be REMOVED:         gitlab-shell: 14.18.0         heimdal: 7.8.0_6 So for an unkown reason, heimdal is recorded as a dependency, even if it should not. Is this maybe a bug in pkg? Gruß Matthias -- "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning." -- Rich Cook