Re: building on freeBSD
Bakul Shah <[email protected]> Sat, 23 May 2026 13:49:15 -0700
| Newsgroups | gmane.mail.nmh.devel |
|---|---|
| Message-ID | <[email protected]> |
> On May 23, 2026, at 1:33=E2=80=AFPM, Philipp = <[email protected]> wrote: >=20 > Hi >=20 > When building on FreeBSD you need additional LDFLAGS and CPPFLAGS = which > includes the localbase. For simpler setup the configure.ac contains > a check for FreeBSD and adds the localbase to the compiler flags. >=20 > The problem is the command to find the localbase assumes the portstree > is availible. When the portstree is not availible the configure script > fails while checking for connect. >=20 > So the command is: >=20 >> echo '.include <bsd.port.mk>' | make -k -f /dev/stdin -V LOCALBASE >=20 > and gives following output on my machine: >=20 >> make: /usr/share/mk/bsd.port.mk:27: Cannot open = /usr/ports/Mk/bsd.port.mk >> in /dev/stdin:1 >> make: Fatal errors encountered -- cannot continue >> make: stopped in /home/satanist >=20 > /home/satanist is my home directory. Only the last line is written to > stdout and the exitcode is 1. >=20 > I have some ideas how to fix this: >=20 > * only output a warning when FreeBSD is detected > * fallback to /usr/local/ when the command fails > * remove the special handling completly > * add a specia --localbase to configure when run on *BSD >=20 > I have no idea what the best way is to fix this. What about just creating /usr/port/Mk/* ? I just did that (unmounted /usr/port and added the above dir) and ./configure completed fine.=