Artix Linux Forum

Artix Linux => Applications & Software => Topic started by: emmatebibyte on 03 September 2022, 06:04:24

Title: [SOLVED] makepkg says "not a valid identifier"
Post by: emmatebibyte on 03 September 2022, 06:04:24
Whenever I run makepkg on a  PKGBUILD, it outputs something like this twice:
Code: [Select]
/usr/share/makepkg/util/pkgbuild.sh: line 30: declare: `package_xdg-sanity': not a valid identifier

does anyone have an idea of what's going on here?
Title: Re: makepkg says "not a valid identifier"
Post by: emmatebibyte on 06 September 2022, 13:13:52
The problem was `POSIXLY_CORRECT=1`, which disables dashes in environment variable names (https://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap08.html).