Date: Fri, 28 Dec 2012 02:23:27 +1100 From: "Dewayne Geraghty" <dewayne.geraghty@heuristicsystems.com.au> To: "'Baptiste Daroussin'" <bapt@freebsd.org> Cc: freebsd-ports@freebsd.org Subject: RE: Problems with devel/apr1 or options_group Message-ID: <1B4401CBAFE34B5DA0E44B201853CC1C@black> In-Reply-To: <20121227145843.GI9441@ithaqua.etoilebsd.net> References: <1TncE1-0005yN-0m@internal.tormail.org> <87r4mdzoog.wl%hskuhra@eumx.net> <826924ADF5944105BFBC01D6A4AA41A8@black> <50DC53C9.7020506@FreeBSD.org> <CA%2B7WWSc3LtHNSm1K8rgaRx=%2B2Aquv3r5dMw_aGZfXPb8BJ1OgQ@mail.gmail.com> <2349A8E64C094F499D854D735852D866@black> <20121227145843.GI9441@ithaqua.etoilebsd.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Thank-you. > -----Original Message----- > From: Baptiste Daroussin > [mailto:baptiste.daroussin@gmail.com] On Behalf Of 'Baptiste > Daroussin' > Sent: Friday, 28 December 2012 1:59 AM > To: Dewayne Geraghty > Cc: 'Kimmo Paasiala'; 'Olli Hauer'; freebsd-ports@freebsd.org > Subject: Re: Problems with devel/apr1 or options_group > > On Fri, Dec 28, 2012 at 01:46:56AM +1100, Dewayne Geraghty wrote: > > > -----Original Message----- > > > From: owner-freebsd-ports@freebsd.org > > > [mailto:owner-freebsd-ports@freebsd.org] On Behalf Of > Kimmo Paasiala > > > Sent: Friday, 28 December 2012 1:21 AM > > > To: Olli Hauer > > > Cc: Baptiste Daroussin; freebsd-ports@freebsd.org; > Dewayne Geraghty > > > Subject: Re: Problems with devel/apr1 or options_group > > > > > > On Thu, Dec 27, 2012 at 3:57 PM, Olli Hauer > > > <ohauer@freebsd.org> wrote: > > > > On 2012-12-27 09:38, Dewayne Geraghty wrote: > > > >> While trying to build apache22 with ldap, the dependency > > > apr1 passes a "--without-ldap" flag to apr-util which results > > > in apache > > > >> failing. > > > >> > > > >> * Background * > > > >> Some 450+ packages are built on a 4 monthly cycle, 149 of > > > these are controlled by ports.conf and built using > > > portmaster. This is the > > > >> second time since 2005 that I've been stuck and would > > > appreciate some advice/guidance whether the problem lies with > > > something in apr > > > >> that I am missing, or the use of ${UNIQUENAME}_SET doesn't > > > work with new OPTIONS_GROUP? > > > >> > > > >> We used a script to modify our ports.conf to accommodate > > > the new optionng _SET and _UNSET which worked nicely last > > > time ports were > > > >> built. > > > >> > > > >> These are the relevant options from ports.conf > > > >> devel/apr1: WITH_THREADS | WITH_BDB | WITH_LDAP | > > > WITHOUT_GDBM | APR1_UNSET=GDBM | APR1_SET=THREADS BDB LDAP > > > > [...] > > > > > > > > I suspect here is the mistake > > > > $> cd devel/apr1 > > > > $> make -V UNIQUENAME > > > > apr (-> not apr1) > > > > > > > > I don't work with portmaster (happy tinderbox user ;). > > > > Can you try the following line in your ports.conf > > > > > > > > file ports.conf: devel/apr1: WITH_THREADS | WITH_BDB | > > > WITH_LDAP | WITHOUT_GDBM | APR_UNSET=GDBM | > APR_SET=THREADS BDB LDAP > > > > > > > > -- > > > > Regards, > > > > olli > > > > > > > > > Is there any particular reason why the UNIQUENAME > couldn't just be the > > > name of the port in all cases? I would make writing the options in > > > optionsng format lot easier. > > > > > > -Kimmo > > > > Olli, > > > > Thank-you for the suggestion, unfortunately the result was > the same, apr-util is built "without-ldap". > > > > I tested on two separate runs modifying ports.conf as follows: > > Run 1: (a desperate try-all run) > > devel/apr1: WITH_THREADS | WITH_BDB | WITH_LDAP | > WITHOUT_GDBM | APR1_UNSET=GDBM | APR1_SET=THREADS BDB LDAP | > APR_UNSET=GDBM | > > APR_SET=THREADS BDB LDAP | APU_UNSET=GDBM | APU_SET=THREADS BDB LDAP > > > > Run2: (in case there was a negative interaction between > variables, apr and apr1?) > > devel/apr1: WITH_THREADS | WITH_BDB | WITH_LDAP | > WITHOUT_GDBM | APR_UNSET=GDBM | APR_SET=THREADS BDB LDAP > > > > s/APR_SET/apr_SET/ > S/APR_UNSET/apr_UNSET/ > > UNIQUENAME is case sensitive > > regards, > Bapt > Thank-you the case-change enabled apr1 to compile per the instructions in ports.conf. I had never used UNIQUENAME, so Ollie's suggestion "make -V UNIQUENAME" was a revelation. Clearly I need to revisit my script that updated ports.conf and include a test for, and correctly set the UNIQUENAME variable's case before appending _SET|_UNSET. Quite an adventure. :) Kind regards, Dewayne.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1B4401CBAFE34B5DA0E44B201853CC1C>