mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-21 20:38:45 +00:00
The regexp used to change T_USER to T_USERNAME only works if the
symbol is preceded by whitespace. However, on line 64 of servscan.l, the symbol is preceded by a parenthesis, so it is left alone. On i386, T_USER is defined, so the build proceeds, but there may still be adverse side effects due to that routine returning the wrong thing in some cases. The bandaid is to fix the regexp to catch the case where T_USER is used after a parenthesis--this is what's being committed. The real fix is either to make the author use T_USERNAME for us, or, preferably, don't define T_USER when sys/param.h is included since T_USER is in the application namespace. Approved by: maintainer timeout
This commit is contained in:
parent
9249d516af
commit
302878302d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=57598
@ -34,7 +34,7 @@ post-patch:
|
||||
@${PERL} -pi -e "s|/usr|${PREFIX}|g" ${WRKSRC}/$i
|
||||
.endfor
|
||||
@${PERL} -pi -e "s|%%CFLAGS%%|${CFLAGS}|g" ${WRKSRC}/zlib/Makefile
|
||||
@${PERL} -pi -e "s|[\ \t]T_USER| T_USERNAME|g" ${WRKSRC}/*.[chly]
|
||||
@${PERL} -pi -e "s|([\ \t(])T_USER|\1T_USERNAME|g" ${WRKSRC}/*.[chly]
|
||||
|
||||
post-install:
|
||||
@${MKDIR} ${DATADIR}
|
||||
|
Loading…
Reference in New Issue
Block a user