Hi Zhang,
Unfortunately there are some technical and infrastructural issues that prevent me from migrating to OpenBSD, although
I am familiar pretty well with it's architecture. Unfortunately, in this case the web-server runs FreeBSD specific Nginx configuration and iRedMail should be only the mailserver, so migrating entirely to OpenBSD is not an option for me.
The error I got is:
===> Checking if security/p5-Authen-SASL already installed
===> Registering installation for p5-Authen-SASL-2.16
Installing p5-Authen-SASL-2.16... done
===> Cleaning for p5-GSSAPI-0.28
===> Cleaning for p5-Authen-SASL-2.16
< INFO > Installing port: mail/altermime (2014-01-22 05:11:44) ...
===> Cleaning for altermime-0.3.11.a1
===> altermime-0.3.11.a1 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by altermime-0.3.11.a1 for building
===> Extracting for altermime-0.3.11.a1
=> SHA256 Checksum OK for altermime-0.3.11.a1.tar.gz.
===> Patching for altermime-0.3.11.a1
===> Applying FreeBSD patches for altermime-0.3.11.a1
===> Configuring for altermime-0.3.11.a1
===> Building for altermime-0.3.11.a1
cc -Wall -Werror -g -I. -O2 -c strstack.c
cc -Wall -Werror -g -I. -O2 -c mime_alter.c
mime_alter.c:709:13: error: variable 'newblock' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized]
} else if (lb[0] == '\n') {
^~~~~~~~~~~~~
mime_alter.c:723:9: note: uninitialized use occurs here
return newblock;
^~~~~~~~
mime_alter.c:709:9: note: remove the 'if' if its condition is always true
} else if (lb[0] == '\n') {
^~~~~~~~~~~~~~~~~~~
mime_alter.c:690:16: note: initialize the variable 'newblock' to silence this warning
char *newblock;
^
= NULL
1 error generated.
*** Error code 1
Stop.
make[1]: stopped in /usr/ports/mail/altermime/work/altermime-0.3.11.a1
*** Error code 1
Stop.
make: stopped in /usr/ports/mail/altermime
< ERROR > Port was not success installed, please fix it manually and then re-execute this script.
Now, correct me if I'm wrong but that has nothing to do with the migration to the new pkgng package management.
You said something about getting familiar with it, I'm not sure it's necessary.
FreeBSD users most of the time compile the packages from the ports tree, so the dependencies you showed above are not really related to the issue, imho, it looks more like some packages are not ready to be compiled with LLVM Clang, which
replaced GCC in FreeBSD 10.x.
//
Since you are more familiar with the mail related packages, how important is "altermime" for a normal iRedMail functionality?
I tried commenting stuff out from the "/functions/packages_freebsd.sh" file, but since I end up with fixing more than 7 packages, I guess it's better for you to verify that it's working.
I can submit a patch that makes iRedMail install, however I'm really not sure what is broken along the way.
Regards,
Vlad Semenov