1

Topic: FreeBSD 12.2 cannot build iRedMail-1.4.0

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.4.0
- Deployed with iRedMail Easy or the downloadable installer? Installer
- Linux/BSD distribution name and version: FreeBSD 12.2
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MariaDB
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Fresh install of FreeBSD, getting the following error:

[ INFO ] Ports tree: /usr/ports
[ INFO ] Fetching all distfiles for required ports (make fetch-recursive)
[ INFO ] Fetching all distfiles for port: devel/py-Jinja2
make: "/usr/share/mk/bsd.port.mk" line 32: Cannot open /usr/ports/Mk/bsd.port.mk
make: "/usr/ports/devel/py-Jinja2/Makefile" line 62: Malformed conditional (${PORT_OPTIONS:MEXAMPLES})
make: "/usr/share/mk/bsd.port.mk" line 32: Cannot open /usr/ports/Mk/bsd.port.mk
make: Fatal errors encountered -- cannot continue
make: stopped in /usr/ports/devel/py-Jinja2
<< ERROR >> Tarballs were not downloaded correctly, please fix it manually and then re-execute iRedMail.sh.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2 (edited by GerryM 2021-04-14 06:12:01)

Re: FreeBSD 12.2 cannot build iRedMail-1.4.0

I do see that py-Jinja2 does exist, and with the following change to Makefile I can resolve the Malformed conditional error:

#.if ${PORT_OPTIONS:MEXAMPLES}
.if !empty(PORT_OPTIONS:MEXAMPLES)

But /usr/ports/MK folder does not exist. The offending line 32:

.include "${BSDPORTMK}"

and the variable is defined on line 20:

BSDPORTMK?=     ${PORTSDIR}/Mk/bsd.port.mk

3 (edited by GerryM 2021-04-14 09:40:22)

Re: FreeBSD 12.2 cannot build iRedMail-1.4.0

Reinstalled FreeBSD 12.2 once again. Differences, this time I included ports during installation and did
Freebsd-update fetch
Freebsd-update install
before continuing with iRedMail-1.4.0 installation. Installation is progressing.
No idea why I encountered the above issues today, and installed iRedMail-1.3.9 last week with unrelated issues.

4

Re: FreeBSD 12.2 cannot build iRedMail-1.4.0

Please always use the latest ports tree.

5

Re: FreeBSD 12.2 cannot build iRedMail-1.4.0

Per your documentation, I always start with portsnap fetch extract update before doing pkg install bash-static smile
Why make had issues I do not know, but it's installing now!