On 2021-1-6 18:03 , Jerry wrote:
On 1/4/21 7:35 PM, Joshua Root wrote:
On 2021-1-5 13:57 , Jerry wrote:
Hello.  I am trying to update the alpine portfile.  The standalone
[...]
[2]:
It was created by alpine configure 2.24, which was
generated by GNU Autoconf 2.69.  Invocation command line was

   $ ./configure --prefix=/opt/local

Impossible to know for sure what the problem is without seeing the Portfile, but it looks like you may have accidentally cleared configure.args.

- Josh

Okay thanks!  I fixed the problem.  In the process, I found that Portfile keywords now require a preceding blank line, is this correct?

No, that shouldn't be the case. But check that you don't have any trailing backslashes on the previous line, which would cause the next to be treated as a continuation of the same line.

When I edit a portfile, I usually comment out a line and replace it on the next line.  This practice was acceptable at least through macports v2.6.2.  I guess the portfile parser was updated since then, although from skimming the macports-base changelog, I do not see a related commit.  Anyway, could the lint option check for this condition?

The portfile parser is just the Tcl parser, which hasn't changed recently. But there are some mistakes that it's hard to check for with lint, like the trailing backslash one above.

- Josh

Reply via email to