You are not logged in.

#1 2020-11-13 19:08:25

tekstryder
Member
Registered: 2013-02-14
Posts: 127

[SOLVED] makepkg fails immediately with $PKGEXT error

This error started occurring 6-9 months ago. I'd always used the AUR for the google-chrome package to have a secondary browser.

No previous issues building over the years, nor did I modify any related configuration files.

$ makepkg -s
==> ERROR: $PKGEXT does not contain a valid package suffix (needs '.pkg.tar*', got '.tar.gz')

I reinstalled the full base-devel group to ensure current default configs. A misconfigured /etc/makepkg.conf seemed to be the culprit for other users with this error.

$ tail -n6 /etc/makepkg.conf
#########################################################################
# EXTENSION DEFAULTS
#########################################################################
#
PKGEXT='.pkg.tar.zst'
SRCEXT='.src.tar.gz'

Also, explicitly defining the environmental at build time yields the same error:

$ PKGEXT=".pkg.tar" makepkg -s
==> ERROR: $PKGEXT does not contain a valid package suffix (needs '.pkg.tar*', got '.tar.gz')

Thanks in advance for any insight... I'm sure it's something simple I'm overlooking here.

Last edited by tekstryder (2020-11-13 19:37:16)

Offline

#2 2020-11-13 19:26:55

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,525
Website

Re: [SOLVED] makepkg fails immediately with $PKGEXT error

What's the output of each of the following:

type makepkg
pacman -Qo /bin/makepkg
pacman -Qkk pacman

"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2020-11-13 19:36:10

tekstryder
Member
Registered: 2013-02-14
Posts: 127

Re: [SOLVED] makepkg fails immediately with $PKGEXT error

Thanks Trilby, you nailed it! I had a stupid alias defined for makepkg. Marking as solved.

Offline

Board footer

Powered by FluxBB