Re: 'USES=shebangfix' doesn't work with samba ports
Date: Fri, 03 Nov 2023 09:15:58 UTC
Hello Makino-san, From: Tatsuki Makino <tatsuki_makino@hotmail.com> Subject: Re: 'USES=shebangfix' doesn't work with samba ports Date: Fri, 3 Nov 2023 12:35:16 +0900 > Tatsuki Makino wrote on 2023/11/02 18:18: >> .include <bsd.port.options.mk> or .include <bsd.port.pre.mk> exist before this line. >> I have a feeling that is the cause :) > > Assuming we knew the reason, we needed to investigate the reason in more depth. > samba4* started shebangfix with the following commit > > https://cgit.freebsd.org/ports/commit/net/samba41/Makefile?id=e58cdfad2027226c15de6ad3508575f0dc3095c4 > > It is written in a way that creates problems at this point. > However, there would have been no problem with this, as there is no reason to leave something that does not work for almost 10 years. > So, that being the case, I checked out Mk/Uses/shebangfix.mk and here is what I found. > > https://cgit.freebsd.org/ports/commit/Mk/Uses/shebangfix.mk?id=c8de8164cad00f45461b3ca801dcad4bd56b993e > > It is possible that side effects have occurred since this time. > > There may have been some other change to Mk/bsd.port.mk being read in two passes, but I have not looked into that. > > Regards. Thanks for investigation. I have submitted the patch fixing the issue to Bugzilla. Bug 274885 net/samba413 net/samba416: Make 'USES=shebangfix' work as is expected https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274885 Regards. --- Yasuhiro Kimura