Created attachment 178262 [details] Proposed patch The attached patch simplifies the port's Makefile a little bit by dropping the "post-build" target that actually builds libss and setting BUILD_WRKSRC instead. I've tested the change on both 12-amd64 and 9.3-i386, and in both cases the "subst" target is built automatically before libss, so everything works as expected.
It's not immediately clear to me just from looking at the patch what would cause the subs target to get built before libss, but you tested, so it should be fine. Thanks for the patch; it is cleaner to have it this way!
It's also a bit weird to me because of the build system, but the Makefile generated in lib/ss does include a dependency on the subst target so I think we're safe here.
A commit references this bug: Author: rakuco Date: Sun Dec 25 19:18:47 UTC 2016 New revision: 429452 URL: https://svnweb.freebsd.org/changeset/ports/429452 Log: Set BUILD_WRKSRC instead of adding a post-build target Simplify the port's Makefile a little bit by dropping the "post-build" target that actually builds libss and setting BUILD_WRKSRC instead. The port's build system takes care of making lib/ss depend on the subst target. PR: 215550 Approved by: bjk (maintainer) Changes: head/devel/e2fsprogs-libss/Makefile