So OpenSIPS has one of those obstinate make tools that make it difficult to make a port. I have to override do-confugure, do-build and do-install.
When upgrading the port from v2.1.0 to v2.1.1 it failed to build. Initially I thought it needed some new patching. But eventually I found that it built fine manually (using gmake and gcc) from the ${WRKSRC} directory. After many hours of battling with it, and nearly giving up, I found my solution. It was frustrating because I was usign "make configure" from the port directory, but "make build" would fail with a compiler error. But yet if I cd into ${WRKSRC} and run "CC=gcc48 gmake -j8 all" it built fine. Essentially nothing was different from the way the port built it to doing it manually. Eventually I decided the only difference had to be the environment variables. After comparing them and adding the port make env varibales to my manual build shell session, it also failed. The env variable was MAKEFLAGS. It must have not played nice with the OpenSIPS make files. So, to solve I now use 'unset' in do-build: do-build: cd ${WRKSRC} && unset MAKEFLAGS && ${OPENSIPS_MAKE_ENV} ${GMAKE} ${_MAKE_JOBS} ${ALL_TARGET} And everything works great again. Is this an acceptable solution / workaround? -- Regards, Euan Thoms _______________________________________________ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"