svn commit: r448747 - in head/mail: . smfsav smfsav-devel smfsav-devel/files

Danilo G. Baio dbaio at FreeBSD.org
Sat Aug 26 12:49:49 UTC 2017


On Sat, Aug 26, 2017 at 10:27:21AM +0200, Mathieu Arnold wrote:
> Le 26/08/2017 à 03:18, Danilo G. Baio a écrit :
> >  PLIST_SUB=	SMFSAV_RUN_DIR=${SMFSAV_RUN_DIR}
> >  SUB_FILES+=	pkg-message
> > +SUB_LIST=	${PLIST_SUB}
> 
> This is a very bad idea, it does not do what you think it does.
> 
> $ make -V SUB_LIST
> SMFSAV_RUN_DIR=/var/run/smfs OSREL=11.1 PREFIX=%D LOCALBASE=/usr/local 
> RESETPREFIX=/usr/local PORTDOCS="" PORTEXAMPLES="" LIB32DIR=lib
> DOCSDIR="share/doc/smfsav"  EXAMPLESDIR="share/examples/smfsav" 
> DATADIR="share/smfsav"  WWWDIR="www/smfsav"  ETCDIR="etc/smfsav"
> PREFIX=/usr/local LOCALBASE=/usr/local  DATADIR=/usr/local/share/smfsav
> DOCSDIR=/usr/local/share/doc/smfsav
> EXAMPLESDIR=/usr/local/share/examples/smfsav 
> WWWDIR=/usr/local/www/smfsav ETCDIR=/usr/local/etc/smfsav
> 
> Now, you have two instances of many variables in there, for example:
> 
> $ make -V SUB_LIST:METCDIR*
> ETCDIR="etc/smfsav" ETCDIR=/usr/local/etc/smfsav
> 
> 
> It is completely unsupported, and I am quite sure it would likely break
> very badly.
> 
> A quick fix would be to change = by :=, but := sometime does other
> things that you do not expect. It would probably be better to dupplicate
> the content.
> 
> 
> -- 
> Mathieu Arnold
> 
> 


Fixed in r448767.

Thank you.
-- 
Danilo G. Baio (dbaio)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-ports-head/attachments/20170826/01448e09/attachment.sig>


More information about the svn-ports-head mailing list