project-lakitu: sys-auth/pambase: fix python compatibility and validation test failures

BUG=b/179427028
TEST=presubmit
RELEASE_NOTE=None

Change-Id: I942c645bb4ab0ee84a23076d99aa52464915d107
Reviewed-on: https://cos-review.googlesource.com/c/cos/overlays/board-overlays/+/13211
Tested-by: Cusky Presubmit Bot <presubmit@cos-infra-prod.iam.gserviceaccount.com>
Reviewed-by: Roy Yang <royyang@google.com>
diff --git a/project-lakitu/sys-auth/pambase/pambase-20201103-r1.ebuild b/project-lakitu/sys-auth/pambase/pambase-20201103-r2.ebuild
similarity index 100%
rename from project-lakitu/sys-auth/pambase/pambase-20201103-r1.ebuild
rename to project-lakitu/sys-auth/pambase/pambase-20201103-r2.ebuild
diff --git a/project-lakitu/sys-auth/pambase/pambase-20201103.ebuild b/project-lakitu/sys-auth/pambase/pambase-20201103.ebuild
index 2f756da..5b4384a 100644
--- a/project-lakitu/sys-auth/pambase/pambase-20201103.ebuild
+++ b/project-lakitu/sys-auth/pambase/pambase-20201103.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-PYTHON_COMPAT=( python3_{7..9} )
+PYTHON_COMPAT=( python3_{6..9} )
 
 inherit pam python-any-r1 readme.gentoo-r1
 
@@ -60,6 +60,11 @@
 }
 
 src_configure() {
+	# Remove envfile option. Otherwise, validation tests fail.
+	# Tried setting envfile to /etc/profile instead of /etc/profile.env,
+	# it caused journald_test to fail.
+	sed -i 's:envfile=/etc/profile\.env::' ./templates/system-login.tpl
+
 	${EPYTHON} ./${PN}.py \
 		$(usex caps '--caps' '') \
 		$(usex debug '--debug' '') \