apkbuild-fixer(1) General Commands Manual apkbuild-fixer(1) NAME apkbuild-fixer - Fix violations found by apkbuild-lint SYNOPSIS apkbuild-fixer [-sh] [-p path] OPTIONS -h Show help mesage and quit -s Be strict, only fix policy violations we are certain are not false positives -p Path to binary used to find violations, defaults to apkbuild-lint DESCRIPTION apkbuild-fixer fixes linting violations found by apkbuild-lint(1) by modifying the APKBUILD in-place. It calls apkbuild-lint after each fix to a particular violation done. Note that not all violations have automatic fixes and while care is taken to avoid breaking the APKBUILD it might happen in some edge cases. FIXES The following violations can be fixed automatically, but manual review is recommended: o AL1 (default-builddir-value) o Remove the builddir variable o AL2 (unnecessary-return-1) o Removes the || return 1 from the line o Removes the line if only the || return 1 is present o Checks previous line for \ and removes it. o AL5 (empty-variable) o Remove the empty variable o AL8 (trailing-whitespace) o Removes trailing whitespace on given line o AL10 (space-before-function-parenthesis) o Fixed by rewriting the function name to match the norm. o AL11 (space-after-function-parenthesis) o Fixed by rewriting the function name to match the norm. o AL13 (superfluous-cd-builddir) o Remove the cd "$builddir" and any following empty lines o AL29 (pkgname-used-in-source) o Replace $pkgname with the value of the variable o AL32 (braced-variable) o Remove the braces around the variable o AL49 (invalid-option) o Remove the invalid option from the line, ignoring comments o AL57 (invalid-arch) o Remove the invalid option from the line, ignoring comments apkbuild-fixer will also rename _builddir to builddir as it is very common from before the builddir variable was a thing. AUTHORS Maintained by Leo SEE ALSO alint(5) apkbuild-lint(1) 2024-10-14 apkbuild-fixer(1)