diff options
3 files changed, 43 insertions, 1 deletions
diff --git a/meta-oe/recipes-dbs/postgresql/files/0001-Improve-reproducibility.patch b/meta-oe/recipes-dbs/postgresql/files/0001-Improve-reproducibility.patch new file mode 100644 index 000000000..32b7f4284 --- /dev/null +++ b/meta-oe/recipes-dbs/postgresql/files/0001-Improve-reproducibility.patch | |||
@@ -0,0 +1,39 @@ | |||
1 | From 3c13315447fa175da6c9ebe59a039e611cdb5bd1 Mon Sep 17 00:00:00 2001 | ||
2 | From: Hongxu Jia <hongxu.jia@windriver.com> | ||
3 | Date: Tue, 4 Jun 2019 13:45:30 +0800 | ||
4 | Subject: [PATCH] Improve reproducibility, | ||
5 | |||
6 | Remove build patch from binaries which pg_config do | ||
7 | not record var-CC, var-CFLAGS, and configure | ||
8 | |||
9 | $ /usr/bin/pg_config --cc | ||
10 | not recorded | ||
11 | |||
12 | $ /usr/bin/pg_config --configure | ||
13 | not recorded | ||
14 | |||
15 | Upstream-Status: Inappropriate [oe specific] | ||
16 | |||
17 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
18 | --- | ||
19 | src/common/Makefile | 4 ---- | ||
20 | 1 file changed, 4 deletions(-) | ||
21 | |||
22 | diff --git a/src/common/Makefile b/src/common/Makefile | ||
23 | index 1fc2c66..5e6c457 100644 | ||
24 | --- a/src/common/Makefile | ||
25 | +++ b/src/common/Makefile | ||
26 | @@ -27,10 +27,6 @@ include $(top_builddir)/src/Makefile.global | ||
27 | # don't include subdirectory-path-dependent -I and -L switches | ||
28 | STD_CPPFLAGS := $(filter-out -I$(top_srcdir)/src/include -I$(top_builddir)/src/include,$(CPPFLAGS)) | ||
29 | STD_LDFLAGS := $(filter-out -L$(top_builddir)/src/common -L$(top_builddir)/src/port,$(LDFLAGS)) | ||
30 | -override CPPFLAGS += -DVAL_CONFIGURE="\"$(configure_args)\"" | ||
31 | -override CPPFLAGS += -DVAL_CC="\"$(CC)\"" | ||
32 | -override CPPFLAGS += -DVAL_CPPFLAGS="\"$(STD_CPPFLAGS)\"" | ||
33 | -override CPPFLAGS += -DVAL_CFLAGS="\"$(CFLAGS)\"" | ||
34 | override CPPFLAGS += -DVAL_CFLAGS_SL="\"$(CFLAGS_SL)\"" | ||
35 | override CPPFLAGS += -DVAL_LDFLAGS="\"$(STD_LDFLAGS)\"" | ||
36 | override CPPFLAGS += -DVAL_LDFLAGS_EX="\"$(LDFLAGS_EX)\"" | ||
37 | -- | ||
38 | 2.7.4 | ||
39 | |||
diff --git a/meta-oe/recipes-dbs/postgresql/postgresql.inc b/meta-oe/recipes-dbs/postgresql/postgresql.inc index 6e2023143..0fe5d58e1 100644 --- a/meta-oe/recipes-dbs/postgresql/postgresql.inc +++ b/meta-oe/recipes-dbs/postgresql/postgresql.inc | |||
@@ -280,7 +280,9 @@ FILES_${PN}-timezone = "${datadir}/${BPN}/timezone \ | |||
280 | ${datadir}/${BPN}/timezonesets \ | 280 | ${datadir}/${BPN}/timezonesets \ |
281 | " | 281 | " |
282 | RDEPENDS_${PN} += "${PN}-timezone" | 282 | RDEPENDS_${PN} += "${PN}-timezone" |
283 | FILES_${PN}-server-dev = "${includedir}/${BPN}/server" | 283 | FILES_${PN}-server-dev = "${includedir}/${BPN}/server \ |
284 | ${libdir}/${BPN}/pgxs \ | ||
285 | " | ||
284 | 286 | ||
285 | FILES_libecpg = "${libdir}/libecpg*${SOLIBS}" | 287 | FILES_libecpg = "${libdir}/libecpg*${SOLIBS}" |
286 | FILES_libecpg-dev = "${libdir}/libecpg*${SOLIBSDEV} \ | 288 | FILES_libecpg-dev = "${libdir}/libecpg*${SOLIBSDEV} \ |
diff --git a/meta-oe/recipes-dbs/postgresql/postgresql_11.3.bb b/meta-oe/recipes-dbs/postgresql/postgresql_11.3.bb index ff9306c1a..a18eca320 100644 --- a/meta-oe/recipes-dbs/postgresql/postgresql_11.3.bb +++ b/meta-oe/recipes-dbs/postgresql/postgresql_11.3.bb | |||
@@ -5,6 +5,7 @@ LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=87da2b84884860b71f5f24ab37e7da78" | |||
5 | SRC_URI += "\ | 5 | SRC_URI += "\ |
6 | file://not-check-libperl.patch \ | 6 | file://not-check-libperl.patch \ |
7 | file://0001-Add-support-for-RISC-V.patch \ | 7 | file://0001-Add-support-for-RISC-V.patch \ |
8 | file://0001-Improve-reproducibility.patch \ | ||
8 | " | 9 | " |
9 | 10 | ||
10 | SRC_URI[md5sum] = "c2a729b754b8de86a969c86ec25db076" | 11 | SRC_URI[md5sum] = "c2a729b754b8de86a969c86ec25db076" |