Reacting to build errors from a Portfile (e.g. giving specific hints)

René J.V. Bertin rjvbertin at gmail.com
Fri Aug 30 20:02:15 UTC 2024


On Friday August 30 2024 15:46:39 Daniel J. Luke wrote:
>It's probably better to fix the build system.

Undoubtedly. But the case I had that made me start this discussion was of the same sort as the problems you can run into whey there's conflicting software installed under /usr/local, except in this case it was on Linux and thus under /usr. This standard advise to "just don't install anything under /usr/local" can't really be applied here, but uninstalling or moving aside the conflicting system resources is still often the only fix.

>Failing that, I think it's more flexible and more supportable if you just wrap the build system with your own script

That's another possibility of course.

>(As a bonus, you don't have to implement your script in tcl if you don't want to).

By now I'm probably better at writing Tcl than [ba]sh code so I'm certain there's any bonus in that :)



More information about the macports-dev mailing list