Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Dec 2017 11:15:01 -0500
From:      Steve Wills <swills@FreeBSD.org>
To:        Alexey Dokuchaev <danfe@FreeBSD.org>
Cc:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org, Jason Unovitch <junovitch@FreeBSD.org>, Kurt Jaeger <pi@FreeBSD.org>, erkn@fysik.dtu.dk
Subject:   Re: svn commit: r455594 - in head/science/mcstas: . files
Message-ID:  <5377178e-9559-11dc-603f-5cb60c06e01e@FreeBSD.org>
In-Reply-To: <20171206070552.GA29159@FreeBSD.org>
References:  <201712051732.vB5HWbUA018987@repo.freebsd.org> <20171206070552.GA29159@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

On 12/06/2017 02:05, Alexey Dokuchaev wrote:
> On Tue, Dec 05, 2017 at 05:32:37PM +0000, Steve Wills wrote:
>> New Revision: 455594
>> URL: https://svnweb.freebsd.org/changeset/ports/455594
>>
>> Log:
>>    science/mcstas: simplify Makefile
>>    
>>    While here, remove unecessary pkg-install/deinstall
>>    
>>    PR:		223905
>>    Submitted by:	Erik B Knudsen <erkn@fysik.dtu.dk> (maintainer)
>>
>> ...
>>   PORTNAME=	mcstas
>> -PORTVERSION=	2.2a
>> +DISTVERSION=	2.2a
> 
> Ok, so PKGVERSION had changed now, I think you might need PORTEPOCH :(
> 
> $ make -V PKGVERSION
> 2.2.a
> $ pkg version -t 2.2.a 2.2a
> <
> 

I will do as Mat suggested and put back PORTVERSION, I like it better 
anyway.

>>   
>> -PLIST_SUB+=	PORTVERSION=${PORTVERSION}
>> -SUB_FILES=	pkg-deinstall pkg-install
>> +MANDIRS=	${PREFIX}/${PORTNAME}/${DISTVERSION}/doc/man/man1
> 
> There is MANPREFIX for manpages, but more importantly, why embed version
> in the path at all?
> 
>> +PLIST_SUB+=	DISTVERSION=${DISTVERSION}
>>   
>> +MCEXECS=	mcstas mcformat
>> +
>>   post-install:
>> -	${STRIP_CMD} ${STAGEDIR}${PREFIX}/mcstas/${PORTVERSION}/bin/mcformat
>> -	${STRIP_CMD} ${STAGEDIR}${PREFIX}/mcstas/${PORTVERSION}/bin/mcstas
>> +.for e in ${MCEXECS}
>> +	${STRIP_CMD} ${STAGEDIR}${PREFIX}/${PORTNAME}/${DISTVERSION}/bin/${e}
>> +	${LN} -s ${PREFIX}/${PORTNAME}/${DISTVERSION}/bin/${e} ${STAGEDIR}${PREFIX}/bin/${e}
> 
> Symlinks should not point to an absolute path.
> 
>> @@ -1,2 +1,3 @@
>> +TIMESTAMP = 1511649139
> 
> This change was uncalled for since the remaining of distinfo was left
> intact.  It should have been removed from the commit bach to reduce
> the diff noise and repo churn.
> 
>> -mcstas/%%PORTVERSION%%/share/ref-lib.h
>> -mcstas/%%PORTVERSION%%/share/vitess-lib.c
>> -mcstas/%%PORTVERSION%%/share/vitess-lib.h
>> +mcstas/%%DISTVERSION%%/LGPL
>> +mcstas/%%DISTVERSION%%/LICENSE.LIB
>> +mcstas/%%DISTVERSION%%/NOMENCLATURE
>> +mcstas/%%DISTVERSION%%/README
>> +mcstas/%%DISTVERSION%%/bin/mcformat
>> +mcstas/%%DISTVERSION%%/bin/mcstas
>> +mcstas/%%DISTVERSION%%/data/Al.nxs
>> +mcstas/%%DISTVERSION%%/data/Cu.nxs
>> +mcstas/%%DISTVERSION%%/doc/man/man1/mcformat-%%DISTVERSION%%.1.gz
>> +mcstas/%%DISTVERSION%%/doc/man/man1/mcstas-%%DISTVERSION%%.1.gz
> 
> Ditt (what's the reason behind having PORTVERSION in the path?  I don't
> see any potentially conflicting versions of the port in the tree.  This
> also breaks its conformance to hier(7).

Dunno, it was like that when I found it. Perhaps the maintainer or 
previous committers can say?

Steve



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5377178e-9559-11dc-603f-5cb60c06e01e>