summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-dbs/postgresql/postgresql.inc
Commit message (Collapse)AuthorAgeFilesLines
* postgresql: improve reproducibilityHongxu Jia2019-09-041-1/+3
| | | | | | | | | | | | | | | | | | | | - Make pg_config not record var-CC, var-CFLAGS, and configure which contains build paths - Split pgxs in which Makefile.global contains build path from package postgresql to postgresql-server-dev, it refers ubuntu Here is we got from Ubuntu 18.04 $ dpkg -c /var/cache/apt/archives/postgresql-server-dev-10_10.8-0ubuntu0.18.04.1_amd64.deb -rwxr-xr-x root/root 30792 2019-05-07 17:20 ./usr/lib/postgresql/10/bin/pg_config drwxr-xr-x root/root 0 2019-05-07 17:20 ./usr/lib/postgresql/10/lib/ drwxr-xr-x root/root 0 2019-05-07 17:20 ./usr/lib/postgresql/10/lib/pgxs/ drwxr-xr-x root/root 0 2019-05-07 17:20 ./usr/lib/postgresql/10/lib/pgxs/config/ drwxr-xr-x root/root 0 2019-05-07 17:20 ./usr/lib/postgresql/10/lib/pgxs/src/ -rw-r--r-- root/root 31309 2019-05-07 17:20 ./usr/lib/postgresql/10/lib/pgxs/src/Makefile.global Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
* postgresql: fix compile errorChangqing Li2019-05-181-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | configuration: MULTILIB_GLOBAL_VARIANTS_append = " libn32" MULTILIBS ?= "multilib:lib32 multilib:libn32" DEFAULTTUNE_virtclass-multilib-lib32 ?= "mips" DEFAULTTUNE_virtclass-multilib-libn32 ?= "mips64-n32" require conf/multilib.conf SELECTED_OPTIMIZATION = "${DEBUG_OPTIMIZATION}" DEBUG_BUILD = "1" EXTRA_IMAGE_FEATURES += "dbg-pkgs" with above configuration and option -Og, postgresql compile failed with: | make[4]: Nothing to be done for 'all'. | make[4]: Leaving directory '/tmp/work/mips-pokymllib32-linux/lib32-postgresql/11.2-r0/build/src/fe_utils' | {standard input}: Assembler messages: | {standard input}:58887: Error: branch out of range | <builtin>: recipe for target 'tab-complete.o' failed | make[3]: *** [tab-complete.o] Error 1 | make[3]: Leaving directory '/tmp/work/mips-pokymllib32-linux/lib32-postgresql/11.2-r0/build/src/bin/psql' | Makefile:41: recipe for target 'all-psql-recurse' failed | make[2]: *** [all-psql-recurse] Error 2 replace -Og with -O to fix this error Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
* postgresql: correctly build against target perlAlexander Kanavin2019-01-111-2/+6
| | | | | | | | Previously perl-native headers were erroneously included, which was causing issues with the new perl recipe. Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* postgresql: Allow successful run of postgresql-setupOtavio Salvador2018-11-261-4/+4
| | | | | | | | | | | | The postgresql-setup utility log-in on postgres user to create the database, however, the shell was set to bash and it wasn't being installed as runtime dependency. This rework this expectation to use busybox ash as shell and avoid the new dependency Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* postgresql: split one dpg packageHongxu Jia2018-09-181-55/+19
| | | | | | | | | | | Multiple -dbg packages per recipe is not encouraged, and only one is recommended and the code only works properly in some cases for one. Add RPROVIDES_${PN}-dbg to be compatiable with previous dbg packages requiring. Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* postgresql: use util-linux's uuidRoss Burton2018-07-271-1/+1
| | | | | | | | | | Postgreqsql was configured to use ossp-uuid but ossp-uuid is dead and everyone will be building util-linux anyway, so use the libuuid.so from there. Confusing the option is called e2fs because the library originated in e2fsprogs. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* postgresql: remove *_config from SSTATE_SCAN_FILESKai Kang2018-05-261-0/+1
| | | | | | | | | | | | | | | | | It fails to run command pg_config with segment fault. The root cause is function sstate_hardcode_path takes elf file pg_config as a configure file and edits it with 'sed'. And then file pg_config is corrupt: $ readelf -a package/usr/bin/pg_config >/dev/null readelf: Error: Unable to read in 0x700 bytes of section headers readelf: Error: Section headers are not available! There is not other '*_config' file installed by postgresql except pg_config, so remove '*_config' from SSTATE_SCAN_FILES for postgresql. Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* postgresql: Depend on external libnslKhem Raj2018-05-171-1/+1
| | | | | | | glibc has dropped libnsl support Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
* postgres: move to recipes-dbsArmin Kuster2018-03-011-0/+383
Signed-off-by: Armin Kuster <akuster808@gmail.com>