From owner-freebsd-ports@freebsd.org Sat Apr 20 21:04:11 2019 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5F4681575FF8 for ; Sat, 20 Apr 2019 21:04:11 +0000 (UTC) (envelope-from truckman@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 02DF571FF3; Sat, 20 Apr 2019 21:04:11 +0000 (UTC) (envelope-from truckman@FreeBSD.org) Received: from mousie.catspoiler.org (unknown [76.212.85.177]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: truckman) by smtp.freebsd.org (Postfix) with ESMTPSA id 6E16D1EA5A; Sat, 20 Apr 2019 21:04:10 +0000 (UTC) (envelope-from truckman@FreeBSD.org) Date: Sat, 20 Apr 2019 14:04:07 -0700 (PDT) From: Don Lewis Subject: Re: www/apache24 devel/apr1 LDAP and dependent ports To: tech-lists cc: freebsd-ports@freebsd.org In-Reply-To: <20190420133251.GA1898@rpi3.zyxst.net> Message-ID: References: <20190420133251.GA1898@rpi3.zyxst.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; CHARSET=us-ascii Content-Disposition: INLINE X-Rspamd-Queue-Id: 02DF571FF3 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.97 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.97)[-0.971,0]; ASN(0.00)[asn:11403, ipnet:96.47.64.0/20, country:US] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Apr 2019 21:04:11 -0000 On 20 Apr, tech-lists wrote: > Hi, > > context is poudriere 12-stable ports r499392 > > Shouldn't the prescence of LDAP as an option in one port trigger that > option to be enabled in a dependent port? > > LDAP is enabled in www/apache24. It fails to build giving this error: > > [00:00:22] =======================>============================ > [00:00:23] ===> apache24-2.4.39 LDAP and AUTHNZ_LDAP requires APR-util > to have LDAP > [00:00:23] support built in. Please rebuild APR with LDAP support. > [00:00:23] *** Error code 1 > [00:00:23] > [00:00:23] Stop. > [00:00:23] make: stopped in /usr/ports/www/apache24 > [00:00:39] =>> Cleaning up wrkdir > [00:00:42] ===> Cleaning for apache24-2.4.39 > [00:00:43] build of www/apache24 | apache24-2.4.39 ended at Sat Apr 20 > 07:46:05 BST 2019 > [00:00:43] build time: 00:00:42 > [00:00:43] !!! build failure encountered !!! > > I mean, I can "fix" this by running options for devel/apr1. But I > thought the ports system was meant to take care of it? Am I wrong? No, if you set an option for a port, it only affects that port. Before I switched to poudriere, I used to set options on each port individually, which got to be an unmaintainable mess. Now I set the options in the make.conf files that poudriere uses. In this case, you would put: OPTIONS_SET=LDAP in the make.conf file to set the option globally for all ports. It is also possible to set an option for only one port like this: category_portname_SET=SOMEOPTION Options can also be turned off by using UNSET instead of SET. With poudriere it is also possible to build different collections of ports with different options by using different make.conf files for each.