tech-pkg archive

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

Re: Application of package options from within buildlink3.mk?



>> What does
>>
>>   $ cd /usr/pkgsrc/multimedia/ffmpeg7
>>   $ make show-var VARNAME=PKG_BUILD_OPTIONS.gnutls
>>
>> output in your case?  In my case it outputs just a blank line,
>> and I suspect that this causes my observed build problem.
>
> " pkcs11"

Figures.

I think I have a handle on what's happening.  Doing "make -d A
show-var ..." reveals that

  work/.stage-install_makevars.mk

is being sourced, and there I find among other things:

d3: {195} pwd
/usr/pkgsrc/multimedia/ffmpeg7
d3: {196} ls -l work/.stage-install_makevars.mk
-rw-r--r--  1 he  125  9669 Jun 19 22:52 work/.stage-install_makevars.mk
d3: {197} grep gnutls work/.stage-install_makevars.mk
BUILDLINK_PREFIX.gnutls=        /usr/pkg
PKG_BUILD_OPTIONS.gnutls=       
_BLNK_PKG_DBDIR.gnutls= /usr/pkg/pkgdb/gnutls-3.8.9nb1
d3: {198} 

If I move it away, I get:

d3: {199} mv work work.old
d3: {200} make show-var VARNAME=PKG_BUILD_OPTIONS.gnutls
 pkcs11
d3: {201}

Note that this file is not old, and must by its location be
created by pkgsrc.  For what purpose I do not know, other than to
make confusing errors :)

And a look reveals I have a number of them, all recently created:

d3: {203} ls -ld */*/work/.stage-install_makevars.mk
-rw-r--r--  1 he  125  2366 Jun 19 20:31 databases/shared-mime-info/work/.stage-install_makevars.mk
-rw-r--r--  1 he  125  7484 Jun 19 23:05 devel/SDL2/work/.stage-install_makevars.mk
-rw-r--r--  1 he  125  4356 Jun 19 20:30 devel/cmake/work/.stage-install_makevars.mk
-rw-r--r--  1 he  125  2947 Jun 19 20:21 devel/git-base/work/.stage-install_makevars.mk
-rw-r--r--  1 he  125   865 Jun 19 23:04 devel/wayland-protocols/work/.stage-install_makevars.mk
-rw-r--r--  1 he  125  2047 Jun 19 23:04 devel/wayland/work/.stage-install_makevars.mk
-rw-r--r--  1 he  125  8212 Jun 19 23:06 graphics/SDL2_image/work/.stage-install_makevars.mk
-rw-r--r--  1 he  125  2510 Jun 19 22:03 graphics/gdk-pixbuf2/work/.stage-install_makevars.mk
-rw-r--r--  1 he  125  9669 Jun 19 22:56 multimedia/ffmpeg4/work/.stage-install_makevars.mk
-rw-r--r--  1 he  125  9669 Jun 19 23:00 multimedia/ffmpeg6/work/.stage-install_makevars.mk
-rw-r--r--  1 he  125  2947 Jun 19 22:24 multimedia/libbluray/work/.stage-install_makevars.mk
-rw-r--r--  1 he  125  1533 Jun 19 20:06 textproc/libxml2/work/.stage-install_makevars.mk
-rw-r--r--  1 he  125  2882 Jun 19 20:17 textproc/xerces-c/work/.stage-install_makevars.mk
-rw-r--r--  1 he  125   847 Jun 19 20:20 textproc/xqilla/work/.stage-install_makevars.mk
-rw-r--r--  1 he  125  3264 Jun 19 20:07 www/curl/work/.stage-install_makevars.mk
-rw-r--r--  1 he  125  1217 Jun 19 20:06 www/nghttp2/work/.stage-install_makevars.mk
-rw-r--r--  1 he  125  3066 Jun 19 23:04 x11/libxkbcommon/work/.stage-install_makevars.mk
d3: {204}

In the bin they go!

We'll see how things fare thereafter.

I appear to have a build issue in qemu which looks different than
this one, so you'll likely hear from me again.

Regards,

- Håvard


Home | Main Index | Thread Index | Old Index