Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 656468 - dev-db/postgresql-11_beta1: bump / fails to build
Summary: dev-db/postgresql-11_beta1: bump / fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: PgSQL Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-25 05:31 UTC by Patrick Lauer
Modified: 2018-06-13 11:20 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Lauer gentoo-dev 2018-05-25 05:31:22 UTC
For some reason the stdbool.h include fails to do the right thing:

../../src/include/catalog/pg_control.h:218:2: error: unknown type name 'bool'
  bool  float8ByVal; /* float8, int8, etc pass-by-value? */
  ^~~~
In file included from controldata_utils.c:28:0:
../../src/include/common/controldata_utils.h:15:84: error: unknown type name 'bool'; did you mean '_Bool'?
 extern ControlFileData *get_controlfile(const char *DataDir, const char *progname, bool *crc_ok_p);
                                                                                    ^~~~
                                                                                    _Bool
controldata_utils.c:41:60: error: unknown type name 'bool'; did you mean '_Bool'?
 get_controlfile(const char *DataDir, const char *progname, bool *crc_ok_p)
                                                            ^~~~
                                                            _Bool
make[2]: *** [<builtin>: md5.o] Error 1
make[2]: *** [<builtin>: controldata_utils.o] Error 1
In file included from ../../src/include/common/ip.h:18:0,
                 from ip.c:37:
../../src/include/libpq/pqcomm.h:152:8: error: unknown type name 'bool'
 extern bool Db_user_namespace;
        ^~~~
make[2]: *** [<builtin>: exec.o] Error 1
make[2]: *** [<builtin>: ip.o] Error 1
make[2]: Leaving directory '/var/tmp/portage/dev-db/postgresql-11_beta1/work/postgresql-11beta1/src/common'
make[1]: *** [Makefile:42: all-common-recurse] Error 2
make[1]: Leaving directory '/var/tmp/portage/dev-db/postgresql-11_beta1/work/postgresql-11beta1/src'
make: *** [GNUmakefile:11: all-src-recurse] Error 2
 * ERROR: dev-db/postgresql-11_beta1::gentoo failed (compile phase):
 *   emake failed
Comment 1 Aaron W. Swenson gentoo-dev 2018-05-26 16:10:56 UTC
The PPC{,64} workaround is causing the issue. They've thrown in a check for the existence of stdbool.h and use that rather than the other bits they've thrown in.

If I'm reading it correctly, it looks like we can just delete the workaround.

I'll get this in the tree shortly.
Comment 2 Aaron W. Swenson gentoo-dev 2018-06-13 11:20:56 UTC
commit 41cce08f487fd7bba7e12ea942c3c770a379f41c (HEAD -> master, origin/master, origin/HEAD)
Author: Aaron W. Swenson <titanofold@gentoo.org>
Date:   Wed Jun 13 07:19:22 2018 -0400

    dev-db/postgresql: Add 11 beta 1

    Package-Manager: Portage-2.3.40, Repoman-2.3.9