tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: www/serf failing with missing db4



On Mon, Apr 05, 2021 at 08:26:57AM +0200, Martin Husemann wrote:
> On Sun, Apr 04, 2021 at 03:18:24PM -0700, Tom Spindler (moof) wrote:
> > apr-util/buildlink3.mk has
> > .if !empty(PKG_BUILD_OPTIONS.apr-util:Mdb4)
> > BDB_ACCEPTED?=          db4 db5
> > .  include "../../mk/bdb.buildlink3.mk"
> > .endif
> > 
> > inconsistent/old/binary package from somewhere?
> 
> No, it was build yesterday from the same pkgsrc checkout. I removed and
> build it again, the build shows options db4 being enabled by default as
> well as show-buildlink3:
> 
> devel/apr-util # make show-buildlink3
> db4
>     pthread
> iconv
> apr
> expat
> 
> but that does not propagate to the buildlink in www/serf:
> 
> www/serf # make show-buildlink3
> heimdal
>     sqlite3
>     db1
> apr
> apr-util
>     db1
>     iconv
>     apr
>     expat
>     dl
> pthread
> python38
>     dl
>     pthread
>     gettext
>         iconv
> scons
> zlib
> openssl
> pthread
> 
> 
> and: 
> 
> www/serf # make -v BDB_ACCEPTED
> db1 db2 db3 db4 db5 db6 db18
> 
> So something is wrong here.

The logic is there, in apr-util/buildlink3.mk:

pkgbase := apr-util
.include "../../mk/pkg-build-options.mk"

.if !empty(PKG_BUILD_OPTIONS.apr-util:Mdb4)
BDB_ACCEPTED?=          db4 db5
.  include "../../mk/bdb.buildlink3.mk"
.endif

This checks the options for the apr-util package and then sets
BDB_ACCEPTED.

So you'll have to debug what goes wrong in that part. Perhaps run make
in debug mode and check if this code triggers, and where BDB_ACCEPTED
is modified.
 Thomas


Home | Main Index | Thread Index | Old Index