tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

AWK regexps in pkgsrc/mk



I tried to see if using mawk from Debian breaks the builds as reported in [1]:

	# Debian/Ubuntu's awk is mawk, and mawk does not understand
	# some regexps used in pkgsrc/mk.
	if [ -f /etc/debian_version ]; then
		need_awk=yes

... in my preparation to return to GitHub issue #132 [2].
For that I instructed the bootstrap to use native mawk:

--- a/bootstrap/bootstrap
+++ b/bootstrap/bootstrap
@@ -734,10 +734,8 @@ Linux)
        else
                root_group=root
        fi
-       # Debian/Ubuntu's awk is mawk, and mawk does not understand
-       # some regexps used in pkgsrc/mk.
        if [ -f /etc/debian_version ]; then
-               need_awk=yes
+               bootstrap_awk="/usr/bin/mawk"
# Arch uses gawk 5 that breaks some regexps. It doesn't provide pax
        # anymore.
        elif [ -f /etc/arch-release ]; then


But pkgsrc bootstrapped OK, and build the archivers/bsdtar successfully.
What is the quickest way to test all regexps used in pkgsrc/mk, please, so I can see what breaks?

S.

[1]https://github.com/NetBSD/pkgsrc/blob/bc3489d/bootstrap/bootstrap#L737-L738
[2]https://github.com/NetBSD/pkgsrc/issues/132


Home | Main Index | Thread Index | Old Index