Created attachment 206114 [details] svn diff Toybox combines common command line utilities together into a single BSD-licensed executable that's simple, small, fast, reasonably standards-compliant, and powerful. WWW: http://landley.net/toybox/ QA: portlint -AC: looks fine. poudriere testport on 11.2, 11.3, 12.0: builds with some warnings.
Created attachment 206118 [details] Cleaned up diff Cleaned up the Makefile with help from koobs
Thanks! I've been working with toybox upstream to get more of the toys building on FreeBSD and am happy to have a port of it!
Vidar, There is a tool designed to fix shebang lines as you can see in section 17.80 of Porters Handbook [1]. Could you please change Makefile to use it instead of doing that manually? [1] https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/uses-shebangfix.html
(In reply to Renato Botelho from comment #3) The change is basically this: USES= gmake shebangfix SHEBANG_FILES= scripts/change.sh scripts/findglobals.sh \ scripts/genconfig.sh scripts/install.sh \ scripts/make.sh scripts/minicom.sh \ scripts/portability.sh scripts/runtest.sh \ scripts/single.sh scripts/test.sh configure and then remove the for statement used to replace it from post-patch:. Since bash is a supported language you don't need to do much.
Created attachment 209333 [details] Fixed diff
(In reply to Renato Botelho from comment #4) Thanks Renato, I must have tricked myself into thinking the normal shebangfix didn't work in this case, but it does indeed work. Please see the latest attachment for a revised version. While here, I also bumped it to 0.8.2.
A commit references this bug: Author: garga Date: Fri Nov 22 12:15:38 UTC 2019 New revision: 518143 URL: https://svnweb.freebsd.org/changeset/ports/518143 Log: Toybox combines common command line utilities together into a single BSD-licensed executable that's simple, small, fast, reasonably standards-compliant, and powerful. WWW: http://landley.net/toybox/ PR: 239494 Submitted by: vidar@karlsen.tech Changes: head/sysutils/Makefile head/sysutils/toybox/ head/sysutils/toybox/Makefile head/sysutils/toybox/distinfo head/sysutils/toybox/pkg-descr