From nobody Tue Apr 11 08:45:00 2023 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 4PwfYH6p6Nz44RBw for ; Tue, 11 Apr 2023 08:45:07 +0000 (UTC) (envelope-from idefix@fechner.net) Received: from anny.lostinspace.de (anny.lostinspace.de [IPv6:2001:608:a02::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 4PwfYH0KpQz3hKQ for ; Tue, 11 Apr 2023 08:45:06 +0000 (UTC) (envelope-from idefix@fechner.net) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=fechner.net header.s=default header.b=O2Zpnlth; spf=pass (mx1.freebsd.org: domain of idefix@fechner.net designates 2001:608:a02::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 9E04C6294A for ; Tue, 11 Apr 2023 10:45:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fechner.net; s=default; t=1681202702; 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; bh=PCebKabPvhs0sVjVlVLZYl1iAVGlkGSCcbGSmoY5c6I=; b=O2ZpnlthN3NdTYbLC2upEZYOxPBHCE/lGR3Q6RQSTtE+top4Kn+Z4tW7qLI0maDtpAsXmW IiNjRJvuoG6Zga/zFR+RIopu5zQYZHeVkwQ4qNknjjgEjx2CPNx9NadN3oAyaD1VKjXayt 9gZJn009f8eqm2ihR4oLrq7x5NUN3o4= 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 340A6C156E9 for ; Tue, 11 Apr 2023 11:45:01 +0300 (EEST) Message-ID: <5fa8902b-d5b9-daf7-efd5-55cb3673343e@fechner.net> Date: Tue, 11 Apr 2023 11:45:00 +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 To: FreeBSD ports list Content-Language: en-US From: Matthias Fechner Subject: Questions regarding BUILD_DEPENDS definition 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.69 / 15.00]; DWL_DNSWL_MED(-2.00)[fechner.net:dkim]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.995]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; DMARC_POLICY_ALLOW(-0.50)[fechner.net,none]; R_SPF_ALLOW(-0.20)[+a]; RCVD_IN_DNSWL_MED(-0.20)[2001:608:a02::33:from]; R_DKIM_ALLOW(-0.20)[fechner.net:s=default]; MIME_GOOD(-0.10)[text/plain]; ASN(0.00)[asn:5539, ipnet:2001:608::/32, country:DE]; MIME_TRACE(0.00)[0:+]; MLMMJ_DEST(0.00)[freebsd-ports@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[fechner.net:+]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; TO_DN_ALL(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ports@freebsd.org]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Queue-Id: 4PwfYH0KpQz3hKQ X-Spamd-Bar: ------ X-ThisMailContainsUnwantedMimeParts: N Dear all, I have a question regarding BUILD_DEPENDS. The manual in bsd.port.mk tells: # BUILD_DEPENDS - A list of "path:dir[:target]" tuples of other ports this #                                 package depends to build (between the "extract" and #                                 "build" stages, inclusive).  The test done to #                                 determine the existence of the dependency is the #                                 same as FETCH_DEPENDS.  If the third field ("target") #                                 exists, it will be used instead of ${DEPENDS_TARGET}. So if I understood it correctly, it should only be used between the extract and build phase but should not be recorded as a dependency if the package is installed with pkg? But it seems that pkg is pulling the BUILD_DEPENDS while installing the package. Clear example is this one: https://cgit.freebsd.org/ports/tree/devel/gitlab-shell/Makefile#n12 How can I define a build dependency that is required to build the port but is not installed with the port? Thanks. 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