[Slackbuilds-users] some SlackBuilds not respecting $MAKEFLAGS
Lumin Etherlight
lumin+slackbuilds at etherlight.link
Thu Mar 12 05:12:04 UTC 2026
fsLeg via SlackBuilds-users
<slackbuilds-users at slackbuilds.org> writes:
> This is actually frowned upon on SBo specifically
> due to overriding MAKEFLAGS.
It wouldn't be hard to define MAKEFLAGS only
if it's not already defined by the user. Or, for
more flexibility, prepend the default -j flag to
MAKEFLAGS, like:
MAKEFLAGS="-j $(nproc --ignore=1) $MAKEFLAGS"
This way, if the user defines other flags, our -j
will still be added. If the user adds a -j flag
of their own, it would override the previous -j
flag as latter -j options take precedence.
I think the average user should not worry
about setting MAKEFLAGS or the number of jobs; the
maintainer should provide reasonable defaults. If
the package is big, I don't expect it to take a
day to build when it could have built in half an
hour, but I also expect builds to not lock up my
machine while I'm using it (some SlackBuilds seem
to use nproc then /add/ to the total number of
jobs, instead of subtracting).
Best Regards,
Lumin Etherlight
More information about the SlackBuilds-users
mailing list