Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Oct 2021 21:52:28 -0700
From:      Mark Millard via freebsd-ports <freebsd-ports@freebsd.org>
To:        freebsd-ports@freebsd.org, Bryan Drewery <bdrewery@FreeBSD.org>
Subject:   poudriere-devel's implicit LC_COLLATE use (a default): does it mix well with python3?
Message-ID:  <A2ABA7EC-3337-4982-BA92-168279D457A0@yahoo.com>
References:  <A2ABA7EC-3337-4982-BA92-168279D457A0.ref@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
I've a case of my poudriere-devel builds of www/chromium in
python code that is executing but the builds on the FreeBSD
servers do not get the error.

This lead me to look at my log vs. one from the servers
and I found a difference that I think might change python
behavior, not that I've proved that the specifics are
involved in my issue. (The bulk -a with the failure still
has days to go.)

=46rom what I read locale.strcoll(string1,string2) and
locale.strxfrm(string) are based on LC_COLLATE. From
what I gather, for python3, this LC_COLLATE assignment
may be rather unusual (i.e., not some UTF mode). (I do
not claim to have found all uses of LC_COLLATE, just
a couple of examples.)

The difference is having the LC_COLLATE assignment, as
shown in the log from my build but not in the one from
the FreeBSD servers that I looked at (that bulk -a also
still running). My log shows:

POUDRIERE_VERSION=3D3.3.99.20210907_1
MASTERMNT=3D/usr/local/poudriere/data/.m/main-CA72-default/ref
LC_COLLATE=3DC
POUDRIERE_BUILD_TYPE=3Dbulk
PACKAGE_BUILDING=3Dyes

LC_COLLATE=3DC seems to be from:

. . .
 ${BUILDNAME_FORMAT:=3D"%Y-%m-%d_%Hh%Mm%Ss"}
: ${BUILDNAME:=3D$(date +${BUILDNAME_FORMAT})}

: ${HTML_TYPE:=3Dinline}
: ${LC_COLLATE:=3DC}
export LC_COLLATE

if [ -n "${MAX_MEMORY}" ]; then
        MAX_MEMORY_BYTES=3D"$((MAX_MEMORY * 1024 * 1024 * 1024))"
fi
. . .

in /usr/local/share/poudriere/common.sh from
poudriere-devel (i.e., the main branch). The two
LC_COLLATE lines are not in the release branch
that I looked at.

Eventually I'll probably test if this is involved in my context's
failure, unless I figure out something else that might make the
difference first.

=3D=3D=3D
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A2ABA7EC-3337-4982-BA92-168279D457A0>