Here is the entire block. The offending line is: .if ${OPSYS} == "OpenBSD" || ${OPSYS} == "Bitrig" # First 'if' statement
I dont "speak shell" so I am lost here. ###########################################################################33 chokes on .if ${OPSYS} == "OpenBSD" || ${OPSYS} == "Bitrig" PKGSRC_USE_STACK_CHECK?= no # Configure this to enable stack boundary verification (on supported platforms). # Possible values: # no: Do not pass any stack protection flags # yes: Pass -fstack-check # Default: no # The default PREFER_PKGSRC should be empty, but due to historical reasons we have the list below. # Please add your platform here once you have confirmed it is correct .if ${OPSYS} == "OpenBSD" || ${OPSYS} == "Bitrig" PREFER_PKGSRC?= .elif (!empty(MACHINE_PLATFORM:MNetBSD-*-*) && \ exists(/usr/X11R7/lib/libX11.so)) PREFER_PKGSRC?= .elif (!empty(MACHINE_PLATFORM:MNetBSD-*-*) && \ exists(/usr/lib/libexpat.so)) PREFER_PKGSRC?= MesaLib Xft2 Xrandr Xrender fontconfig \ freetype2 glu xcursor .elif !empty(MACHINE_PLATFORM:MLinux-*-*) && \ (!defined(X11_TYPE) || ${X11_TYPE} == "native") PREFER_PKGSRC?= .elif !empty(MACHINE_PLATFORM:MDarwin-??.*-*) && \ (!defined(X11_TYPE) || ${X11_TYPE} == "native") PREFER_PKGSRC?= .elif !empty(MACHINE_PLATFORM:MDarwin-9.*-*) && \ (!defined(X11_TYPE) || ${X11_TYPE} == "native") PREFER_PKGSRC?= fontconfig pixman Xft2 .elif !empty(MACHINE_PLATFORM:MCygwin-*-*) && \ exists(/usr/lib/X11/config/xorgversion.def) PREFER_PKGSRC?= .else PREFER_PKGSRC?= MesaLib Xft2 Xrandr Xrender expat fontconfig \ freetype2 glu xcursor .endif PREFER_NATIVE?= yes On Sun, Sep 19, 2021 at 1:33 PM Chavdar Ivanov <ci4...@gmail.com> wrote: > > On Sun, 19 Sept 2021 at 18:27, Brook Milligan <br...@nmsu.edu> wrote: > > > > > > > On Sep 19, 2021, at 11:21 AM, Todd Gruhn <tgru...@gmail.com> wrote: > > > > > > gandalf# make depend > > > make: "/etc/mk.conf" line 304: Malformed conditional (${OPSYS} == > > > "OpenBSD" || ${OPSYS} == "Bitrig") > > > make: "/etc/mk.conf" line 632: Malformed conditional (${OPSYS} == "IRIX") > > > make: Fatal errors encountered -- cannot continue > > > make: stopped in /usr/src/sys/arch/amd64/compile/GENERIC > > > > I think the idea was to see those exact lines in your /etc/mk.conf file. > > > > My guess is that you have not included <bsd.prefs.mk> (I’m pretty sure that > > is the correct file) prior to these conditionals. As a result, I suspect > > ${OPSYS} is not defined to anything and the conditionals look like (== > > “IRIX”), which of course makes no sense. > > I'd suggest running the build without /etc/mk.conf - 632 lines is way > too big for mk.conf, which should contain only some local changes and > pkgsrc preferences. Mine happens to be 69 lines... > > > > > > Cheers, > > Brook > > > > Chavdar > > > -- > ----