[Slackbuilds-users] Intent for python SlackBuilds with SLKCFLAGS and LIBDIRSUFFIX

B. Watson urchlay at slackware.uk
Thu Sep 21 04:09:48 UTC 2023

On Thu, 21 Sep 2023, Vladimir Nikishkin wrote:

> Those are not useless.
> Firstly, some python packages build c-based components "behind the
> scenes", and it is better to pass some CFLAGS to them.
> Secondly, python packages install things into
> /usr/lib$LIBDIRSUFFIX/python$PYTHONVERSION/site-packages, and sometimes
> it does not autodetect LIBDIRSUFFIX correctly.

In those cases, sbolint will not complain about them. It only gives
the "note" about SLKCFLAGS or LIBDIRSUFFIX if the variable is set but
never used. The builds you're talking about, you would definitely use
them, so sbolint wouldn't say anything.

Also... you are 100% correct, "it is better to pass some CFLAGS to
them", but *so many* python builds DON'T pass the flags (even though
they get set). sbolint will detect that correctly, that's the whole
point of having the checks.

Basically the rule is "if they're set, but never used, remind the
user of that fact". It's not an error, just a "note, you might have
forgotten to do this".

Probably what should happen in the template: the ARCH-detection if/then
block should stay there, with a comment above it reading something like:

# If your build doesn't require SLKCFLAGS or LIBDIRSUFFIX, you can remove
# this entire block.

More information about the SlackBuilds-users mailing list