Re: git: 4ca613c4414b - main - irc/eggdrop: Fix build, bump PORTREVISION

From: Ryan Steinmetz <zi_at_freebsd.org>
Date: Tue, 04 Feb 2025 16:10:50 UTC
On (01/30/25 05:57), Alexey Dokuchaev wrote:
>On Wed, Jan 29, 2025 at 06:14:30PM +0000, Ryan Steinmetz wrote:
>> commit 4ca613c4414b2dfaa9de5336b6da5a74aa73f5d4
>>
>>   irc/eggdrop: Fix build, bump PORTREVISION
>>
>>   PR:             283584
>> ...
>>  post-patch:
>> -	@${REINPLACE_CMD} -e 's|tcl.h|tcl${TCL_VER}/tcl.h|g' ${WRKSRC}/src/mod/python.mod/pycmds.c
>> +	@${SED} -i '' -e '25d' ${WRKSRC}/src/mod/python.mod/pycmds.c
>
>There are several issues with this commit.  It doesn't explain what
>was the problem and how removing 25th line fixes it.  Wasn't there
>a better anchor than the line number?  Also, why use ${SED} -i ''
>instead of canonical ${REINPLACE_CMD}?  Last, if it's a *build* fix,
>why bump port revision?

The submitter was following the exiting patterns (use of SED) in the port.

I've updated SED->REINPLACE_CMD and moved the line 25 deletion to a patch as I expect it will be replaced whenever upstream merges the open PR to address this.

Removing the line allows the --with-tclinc CONFIGURE_ARG and USES=tcl 
magic to do their work.

Thanks,
-r


 From the PR:

In file included from .././python.mod/python.c:46:
.././python.mod/pycmds.c:25:10: fatal error: 'tcl8.6/tcl.h' file not found
    25 | #include <tcl8.6/tcl.h>
       |          ^~~~~~~~~~~~~~
1 error generated.
*** Error code 1


>
>./danfe

-- 
Ryan Steinmetz
PGP: 9079 51A3 34EF 0CD4 F228  EDC6 1EF8 BA6B D028 46D7