An updated port that incorporates Stuart's input (thank you!) and fixes `make
clean` is attached.

On Tue, Oct 4, 2022 at 5:28 PM Stuart Henderson <[email protected]> wrote:
> > In my testing, this port works on amd64. The build runs out of
> > memory on i386. I don't have hardware suitable for testing on
> > other architectures.
>
> How are your login.conf limits for the relevant login class?

Indeed, that was it. I'd added the user to the `staff` login class, but failed
to increase the limits in /etc/login.conf. Increasing the limits resolved the
OOM issue. The build still fails, though, due to C++ code that expects a 64-bit
platform. The first such error was easy to fix. The second was less so (an
explicit #error saying the code is for 64-bit Unix). I did not try further.

> please remove MODPY_VERSION, that is the default
>
> ports builds should not be silent, set VERBOSE=yes in MAKE_ENV
>
> it should run no more than MAKE_JOBS concurrent jobs during the build.

Done.

> > One detail is that `make clean` fails, because of a 'permission
> > denied' error when attempting to delete a read-only directory. A
> > simple `chmod` resolves the issue, but I didn't find a way in the
> > makefile to invoke `chmod` at the right time.
>
> try FIX_EXTRACT_PERMISSIONS=Yes

This didn't work, but it led me to FIX_CLEANUP_PERMISSIONS, which
fixes the problem.

On Tue, Oct 4, 2022 at 5:28 PM Stuart Henderson <[email protected]> wrote:
>
> On 2022/10/04 16:11, Matt Hildebrand wrote:
> > Here is a draft port of Bazel, a polyglot build tool.
> >
> > Web site: https://bazel.build/
> >
> > In my testing, this port works on amd64. The build runs out of
> > memory on i386. I don't have hardware suitable for testing on
> > other architectures.
>
> How are your login.conf limits for the relevant login class?
> (the "pbuild" class if you are using PORTS_PRIVSEP=Yes in mk.conf
> as would be recommended, "staff" for the initial user created
> during install).
>
> > Would anyone like to test it and/or provide comments? (Thanks go
> > to the developer who offered suggestions on an earlier version of
> > this port. I tried to incorporate all of them.)
>
> Some quick comments, I haven't gone through a full build of it yet
>
> please remove MODPY_VERSION, that is the default
>
> ports builds should not be silent, set VERBOSE=yes in MAKE_ENV
>
> it should run no more than MAKE_JOBS concurrent jobs during the build.
> (actually I guess fixing that may fix i386 too).
>
> > One detail is that `make clean` fails, because of a 'permission
> > denied' error when attempting to delete a read-only directory. A
> > simple `chmod` resolves the issue, but I didn't find a way in the
> > makefile to invoke `chmod` at the right time.
>
> try FIX_EXTRACT_PERMISSIONS=Yes
>
> > Feedback/suggestions are welcome.
> >
> > Thank you.
>
>

Attachment: bazel.tar.gz
Description: GNU Zip compressed data

Reply via email to