[Bug 256466] databases/postgresql12-client: fails on parallel build

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 07 Jun 2021 11:01:54 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=256466

            Bug ID: 256466
           Summary: databases/postgresql12-client: fails on parallel build
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: pgsql@FreeBSD.org
          Reporter: freebsd@otoh.org
             Flags: maintainer-feedback?(pgsql@FreeBSD.org)
          Assignee: pgsql@FreeBSD.org

When trying to build postgresql12-client using poudriere with MAKE_JOBS=4, it
fails due to LOCALEDIR being used before it's defined.

Here's the relevant snippet from my logs:

cc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement
-Werro
r=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security
-fno-strict-alia
sing -fwrapv -Wno-unused-command-line-argument -O2 -pipe 
-fstack-protector-strong
 -fno-strict-aliasing  -I../../src/port -DFRONTEND -I../../src/include 
-I/usr/loc
al/include -I/usr/local/include -I/usr/local/include  -c -o noblock.o noblock.c
cc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement
-Werro
r=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security
-fno-strict-alia
sing -fwrapv -Wno-unused-command-line-argument -O2 -pipe 
-fstack-protector-strong
 -fno-strict-aliasing  -pthread -D_REENTRANT -D_THREAD_SAFE
-D_POSIX_PTHREAD_SEMAN
TICS -fPIC -DPIC -DFRONTEND -DUNSAFE_STAT_OK -I. -I../../../src/include 
-I/usr/lo
cal/include -I/usr/local/include -I/usr/local/include -I../../../src/port
-I../../
../src/port -DSO_MAJOR_VERSION=5  -c -o fe-print.o fe-print.c
echo "#define PGBINDIR \"/usr/local/bin\"" >pg_config_paths.h
echo "#define PGSHAREDIR \"/usr/local/share/postgresql\"" >>pg_config_paths.h
echo "#define SYSCONFDIR \"/usr/local/etc/postgresql\"" >>pg_config_paths.h
echo "#define INCLUDEDIR \"/usr/local/include\"" >>pg_config_paths.h
echo "#define PKGINCLUDEDIR \"/usr/local/include/postgresql\""
>>pg_config_paths.h
echo "#define INCLUDEDIRSERVER \"/usr/local/include/postgresql/server\""
>>pg_conf
ig_paths.h
echo "#define LIBDIR \"/usr/local/lib\"" >>pg_config_paths.h
echo "#define PKGLIBDIR \"/usr/local/lib/postgresql\"" >>pg_config_paths.h
fe-misc.c:1292:11: error: use of undeclared identifier 'LOCALEDIR'
                        ldir = LOCALEDIR;
                               ^
1 error generated.
gmake[1]: *** [<builtin>: fe-misc.o] Error 1
gmake[1]: *** Waiting for unfinished jobs....
echo "#define LOCALEDIR \"/usr/local/share/locale\"" >>pg_config_paths.h
cc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement
-Werro
r=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security
-fno-strict-alia
sing -fwrapv -Wno-unused-command-line-argument -O2 -pipe 
-fstack-protector-strong
 -fno-strict-aliasing  -I../../src/port -DFRONTEND -I../../src/include 
-I/usr/loc
al/include -I/usr/local/include -I/usr/local/include  -c -o pg_bitutils.o
pg_bitut
ils.c
echo "#define DOCDIR \"/usr/local/share/doc//postgresql\"" >>pg_config_paths.h
echo "#define HTMLDIR \"/usr/local/share/doc//postgresql\"" >>pg_config_paths.h
echo "#define MANDIR \"/usr/local/man\"" >>pg_config_paths.h
cc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement
-Werro
r=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security
-fno-strict-alia
sing -fwrapv -Wno-unused-command-line-argument -O2 -pipe 
-fstack-protector-strong
 -fno-strict-aliasing  -I../../src/port -DFRONTEND -I../../src/include 
-I/usr/loc
al/include -I/usr/local/include -I/usr/local/include  -c -o pgcheckdir.o
pgcheckdi
r.c

-- 
You are receiving this mail because:
You are the assignee for the bug.