[Slackbuilds-users] Easy typo
B. Watson
urchlay at slackware.uk
Wed Aug 12 09:32:29 UTC 2026
On Wed, 12 Aug 2026, Willy Sudiarto Raharjo wrote:
> yes, that's usually common name used when the program name and source
> is different
That's a terrible idea!
I use SRCNAM for the source... it's the name of the source. PKGNAM
would be "name of the package", but we're already using PRGNAM to
mean the name of the Slackware package we're building. So it's kinda
ambiguous.
PRGNAM and PKGNAM look too similar IMO. I didn't think anyone would
choose to deliberately use both, but apparently I'm wrong.
However, a thought: if PKGNAM is never assigned to, *then* it's a typo
if it's referenced... most likely if you never assigned anything to
PKGNAM, then it's a typo for PRGNAM (same as PRGMAN would be).
I haven't added any code to sbolint to do anything about this.
Just kicking ideas around.
I think we can all agree that SLCKFLAGS is always a typo though. Or
PRGMAN. Or PGK. I made that typo myself last week, I wrote:
gzip -9 $PGK/usr/man/man*/*
Oh, what fun... fortunately gzip won't re-gzip a file that's already
gzipped, so no real harm done, just a minor freak-out as a ton of
"gzip: blah.gz already has .gz suffix" warnings spewed out.
More information about the SlackBuilds-users
mailing list