From nobody Thu Jun 3 18:02:25 2021 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 3E6D7136A00A for ; Thu, 3 Jun 2021 18:02:30 +0000 (UTC) (envelope-from thierry@pompo.net) Received: from erza.lautre.net (erza.lautre.net [80.67.160.89]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "lautre.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Fwtys0MGgz4VY6 for ; Thu, 3 Jun 2021 18:02:28 +0000 (UTC) (envelope-from thierry@pompo.net) Received: from graf.pompo.net (graf.pompo.net [82.66.0.218]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by erza.lautre.net (Postfix) with ESMTPSA id 78043FEF2A for ; Thu, 3 Jun 2021 20:02:26 +0200 (CEST) Received: by graf.pompo.net (Postfix, from userid 1001) id 0417AA1DCB3; Thu, 3 Jun 2021 20:02:25 +0200 (CEST) Date: Thu, 3 Jun 2021 20:02:25 +0200 From: Thierry Thomas To: FreeBSD Ports ML Subject: Re: Forcing options in required ports Message-ID: Mail-Followup-To: FreeBSD Ports ML References: <30e16b2d-0e65-9fd6-37e0-103965731c16@groumpf.org> 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: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="NrPEpLCBhiwCAkCR" Content-Disposition: inline In-Reply-To: <30e16b2d-0e65-9fd6-37e0-103965731c16@groumpf.org> X-Operating-System: FreeBSD 13.0-STABLE amd64 Organization: Kabbale Eros X-Face: (hRbQnK~Pt7$ct`!fupO(`y_WL4^-Iwn4@ly-.,[4xC4xc;y=\ipKMNm<1J>lv@PP~7Z<.tKjAnXLs: X-PGP: 0xF1C516B3C8359753 X-Rspamd-Queue-Id: 4Fwtys0MGgz4VY6 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of thierry@pompo.net designates 80.67.160.89 as permitted sender) smtp.mailfrom=thierry@pompo.net X-Spamd-Result: default: False [-1.56 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(0.00)[+mx]; HAS_ORG_HEADER(0.00)[]; TO_DN_ALL(0.00)[]; SIGNED_PGP(-2.00)[]; FORGED_SENDER(0.30)[thierry@freebsd.org,thierry@pompo.net]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RBL_DBL_DONT_QUERY_IPS(0.00)[80.67.160.89:from]; ASN(0.00)[asn:20766, ipnet:80.67.160.0/19, country:FR]; R_DKIM_NA(0.00)[]; FROM_NEQ_ENVFROM(0.00)[thierry@freebsd.org,thierry@pompo.net]; TO_DOM_EQ_FROM_DOM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.97)[-0.971]; FREEFALL_USER(0.00)[thierry]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-0.96)[-0.963]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ports@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[80.67.160.89:from:127.0.2.255]; RBL_VIRUSFREE_BOTNET(2.00)[80.67.160.89:from]; NEURAL_SPAM_SHORT(0.17)[0.169]; BAD_REP_POLICIES(0.10)[]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-ports] X-ThisMailContainsUnwantedMimeParts: N --NrPEpLCBhiwCAkCR Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Le jeu. 3 juin 21 =C3=A0 19:34:28 +0200, Xavier Humbert =C3=A9crivait=C2=A0: > Hi, Hello, > I need to add a BUILD_DEPENDS to a port (p5-FusionInventory-Agent,=20 > actually) with specifics options required by the port which requires it >=20 > This lead to 12 questions : >=20 > 1- Is there a way to specify options port in the Makefile ? > 2- As a consequence, the port cannot be fetched from packages, it *must*= =20 > be built from ports. How to force this ? The usual solution is to make a slave port from this port, with the required options, and make your new port depend on this slave port. But warning: the original port and the new slave will conflict, and that might result in further conflicts! Another solution is to negociate with the maintainer, and see if he accepts to set your options by default=E2=80=A6 (When sub-packages will be a thing, this could be a hird solution in some cases) Regards. --=20 Th. Thomas. --NrPEpLCBhiwCAkCR Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJ8BAEBCgBmBQJguRkxXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRFNTM2QkU4NTM4NTM5OUQwMEI2RkFBNzZG MUM1MTZCM0M4MzU5NzUzAAoJEPHFFrPINZdThQIP/0r2JOwDtrfWw/Y0I5EwahDB vcrvnS54rVTFuiIZRdSnNFCRtjmXI/25Z8C7SV8izVhCnVJEh0wtZ/xQBSEi5Iix gtCdRPOk5myEZQnrDgkGKv1Glo8WygT1KD5Ul9/HIlGGxktsVVCe0dzzFFbEoXOz JVaFPxGypuUJKjbQUJAQz2AeTR/Ny/3YyR1SfEVi4l2abexfg+23/78MhPitdkRy 4Q1VAo1tdRMNSU/Ozhq4PmHSTEEi9jCdC7KKyFLMT6NBOLJ1Y6on6khDLQJ9WnAt na/cNfqH05o4V/TxfAh9I2t+9ADlOepyB5sMZQ/yoLo7xVfHziJL9EP7b3Y3O+oU yOC6aGSjONXlNQsOiePxqUn3P8WVg4WWBcDfR0H7H/skkmVxCBRzNj9l6Rw0EsYn 5wpUc9gVpj/3ygvV1SiuXg31fa7UW/dYH+0BcBpKzw2Td6EEOq8xM584Raj112q5 fwLxKHyyjp/T4/k701IBp3LHmwvx6ohUa8DGIr6HtFW2X4L3WdbU5zdefZJZDT+S sKtnxkz9SRTXSSb+zrx49roqziDE5ZYCf1uCplFDGzQY5+feWNLT9NRl9xA4MPQ6 IaLbHi145SY31HqxHVLXxXxtOcLIrZrCkrPeG351BR3uR6XmY4DVMaSUiAA4/phX wbUqRXjf2y7xFEPlgz88 =lW7+ -----END PGP SIGNATURE----- --NrPEpLCBhiwCAkCR--