sys-apps/smartmontools-5.39.1 build system uses BSD make syntax when building on FreeBSD. One can either build with FreeBSD /usr/bin/make or remove special BSD syntax from Makefile. Reproducible: Always Steps to Reproduce: emerge smartmontools Actual Results: sys-apps/smartmontools fails compile. Expected Results: sys-apps/smartmontools merges. In sys-apps/smartmontools-5.39.1 on can add something like this to the ebuild in order to use BSD make src_compile() { /usr/bin/make || die }
Created attachment 225277 [details, diff] Patch to remove BSD make stuff that offends GNU make I just now realise that the proper fix is probably to decide on which syntax to use depending on the flavour of make, not the flavour of the operating system.
can you try 'MAKE=make emake ...' instead?
(In reply to comment #2) > can you try 'MAKE=make emake ...' instead? I hadn't thought of that, but it does work! Could MAKE="make" be set at the top of the ebuild in order to avoid adding the trivial implementation of the src_compile() function (it'd only contain MAKE="make" emake ...)?
What you think about dependency on virtual/mailx?
This is fixed by upstream in smartmontools-5.40. The virtual/mailx issue is mentioned in #306321, although I really think that it is a problem with sys-freebsd/freebsd-ubin. Thanks!