Bug 256466 - databases/postgresql12-client: fails on parallel build
Summary: databases/postgresql12-client: fails on parallel build
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: pgsql
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-07 11:01 UTC by Paul Armstrong
Modified: 2021-06-07 11:01 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (pgsql)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Armstrong 2021-06-07 11:01:54 UTC
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