Date: Sun, 3 Jan 2021 20:41:08 +0100 From: Tomasz CEDRO <tomek@cedro.info> To: FreeBSD Questions Mailing List <freebsd-questions@freebsd.org>, freebsd-ports <freebsd-ports@freebsd.org> Cc: db@freebsd.org, pcc@gmx.net Subject: %%CONFIGURE_TARGET%% in Makefile and pkg-plist Message-ID: <CAM8r67BQ=Ernw4%2Bn1NbLsh19zk3ynKXypo=VSW3hu=yxpH=6gw@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hello world :-) The new port is comms/limesuite. The pkg-plist line affected is: %%OCTAVE%%lib/octave/%%OCTAVE_VERSION%%/site/oct/%%CONFIGURE_TARGET%%/LimeSuite.oct The problem is as reported in [1]. First variable %%OCTAVE_VERSION%% gets replaced and taken from .include "../../math/octave/Makefile.version" (I would really prefer to see currently installed octave here). Second variable %%CONFIGURE_TARGET%% does not get replaced in make package or gets replaced with invalid value in stage (i.e. 12.1 on 12.2 platform) leading to invalid pkg-plist generation and then problems with make package. According to .include <bsd.port.post.mk> or .include <bsd.port.mk> the default value of CONFIGURE_TARGET is ${HOSTARCH}-portbld-${OPSYS:tl}${OSREL}. But it does not get any default value that could be then replaced in pkg-plist. According to Porter's Handbook section 6.5.3. configure Script setting GNU_CONFIGURE or HAS_CONFIGURE should can "CONFIGURE_TARGETO verride default configure target. Default value is ${MACHINE_ARCH}-portbld-freebsd${OSREL}.". But it also does not seem to affect pkg-plist file. Target port uses cmake anyways. The problem is CONFIGURE_TARGET does not seem to be set in Makefile and properly affect the pkg-plist. The problem also is building on 12.2 somehow uses invalid value 12.1 on stage so setting its proper value in Makefile also creates problems on make package: work/stage/usr/local/lib/octave/5.2.0/site/oct/amd64-portbld-freebsd12.1/LimeSuite.oct Why CONFIGURE_TARGET is not set to any default value (anymore) in Makefile? Why stage uses amd64-portbld-freebsd12.1 not amd64-portbld-freebsd12.2 on 12.2-RELEASE? Any hints welcome :-) Tomek [1] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252350 [2] https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/building.html -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAM8r67BQ=Ernw4%2Bn1NbLsh19zk3ynKXypo=VSW3hu=yxpH=6gw>