summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-dbs
diff options
context:
space:
mode:
authorHongxu Jia <hongxu.jia@windriver.com>2018-09-18 00:05:25 +0800
committerKhem Raj <raj.khem@gmail.com>2018-09-18 20:17:02 -0700
commitd9abf69f20e93f6fc47cbb0edd69224f3dba2733 (patch)
tree6c3a0f1164c3103e5af45ecba82505d90f87a435 /meta-oe/recipes-dbs
parentface5ee9c157c509ccbf35e2aa99aa272b860a05 (diff)
downloadmeta-openembedded-d9abf69f20e93f6fc47cbb0edd69224f3dba2733.tar.gz
postgresql: split one dpg package
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>
Diffstat (limited to 'meta-oe/recipes-dbs')
-rw-r--r--meta-oe/recipes-dbs/postgresql/postgresql.inc74
1 files changed, 19 insertions, 55 deletions
diff --git a/meta-oe/recipes-dbs/postgresql/postgresql.inc b/meta-oe/recipes-dbs/postgresql/postgresql.inc
index 44a1b30fe..3bf71f02e 100644
--- a/meta-oe/recipes-dbs/postgresql/postgresql.inc
+++ b/meta-oe/recipes-dbs/postgresql/postgresql.inc
@@ -72,21 +72,19 @@ EXTRA_OECONF += "--enable-thread-safety --disable-rpath \
72EXTRA_OECONF_sh4 += "--disable-spinlocks" 72EXTRA_OECONF_sh4 += "--disable-spinlocks"
73EXTRA_OECONF_aarch64 += "--disable-spinlocks" 73EXTRA_OECONF_aarch64 += "--disable-spinlocks"
74 74
75PACKAGES_DYNAMIC += "^${PN}-plperl ^${PN}-plperl-dbg \ 75PACKAGES_DYNAMIC += "^${PN}-plperl \
76 ^${PN}-pltcl ^${PN}-pltcl-dbg \ 76 ^${PN}-pltcl \
77 ^${PN}-plpython ^${PN}-plpython-dbg \ 77 ^${PN}-plpython \
78" 78"
79 79
80python populate_packages_prepend() { 80python populate_packages_prepend() {
81 81
82 def fill_more(name, dbg=True): 82 def fill_more(name):
83 if name is None or name.strip() == "": 83 if name is None or name.strip() == "":
84 return 84 return
85 85
86 fpack=d.getVar('PACKAGES', False) or "" 86 fpack=d.getVar('PACKAGES', False) or ""
87 fpack="${PN}-" + name + " " + fpack 87 fpack="${PN}-" + name + " " + fpack
88 if dbg:
89 fpack="${PN}-" + name + "-dbg" + " " + fpack
90 d.setVar('PACKAGES', fpack) 88 d.setVar('PACKAGES', fpack)
91 89
92 conf=(d.getVar('PACKAGECONFIG') or "").split() 90 conf=(d.getVar('PACKAGECONFIG') or "").split()
@@ -205,13 +203,23 @@ SSTATE_SCAN_FILES += "Makefile.global"
205SSTATE_SCAN_FILES_remove = "*_config" 203SSTATE_SCAN_FILES_remove = "*_config"
206 204
207PACKAGES =+ "${PN}-client ${PN}-server-dev ${PN}-timezone \ 205PACKAGES =+ "${PN}-client ${PN}-server-dev ${PN}-timezone \
208 libecpg-compat-dbg libecpg-compat libecpg-compat-dev \ 206 libecpg-compat libecpg-compat-dev \
209 libecpg-dbg libecpg libecpg-dev libecpg-staticdev libecpg-doc \ 207 libecpg libecpg-dev libecpg-staticdev libecpg-doc \
210 libpq-dbg libpq libpq-dev libpq-staticdev \ 208 libpq libpq-dev libpq-staticdev \
211 libpgtypes-dbg libpgtypes libpgtypes-staticdev libpgtypes-dev \ 209 libpgtypes libpgtypes-staticdev libpgtypes-dev \
212 ${PN}-contrib ${PN}-contrib-dbg \ 210 ${PN}-contrib \
213" 211"
214 212
213RPROVIDES_${PN}-dbg += "libecpg-compat-dbg \
214 libecpg-dbg \
215 libpq-dbg \
216 libpgtypes-dbg \
217 ${PN}-contrib-dbg \
218 ${PN}-pltcl-dbg \
219 ${PN}-plpython-dbg \
220 ${PN}-plperl-dbg \
221 "
222
215FILES_${PN} += "${sysconfdir}/init.d/${BPN}-server \ 223FILES_${PN} += "${sysconfdir}/init.d/${BPN}-server \
216 ${localstatedir}/lib/${BPN}/data ${localstatedir}/lib/${BPN}/backups \ 224 ${localstatedir}/lib/${BPN}/data ${localstatedir}/lib/${BPN}/backups \
217 ${localstatedir}/lib/${BPN}/.bash_profile ${sysconfdir}/default/${BPN} \ 225 ${localstatedir}/lib/${BPN}/.bash_profile ${sysconfdir}/default/${BPN} \
@@ -224,13 +232,6 @@ FILES_${PN} += "${sysconfdir}/init.d/${BPN}-server \
224 else ''} \ 232 else ''} \
225" 233"
226 234
227FILES_${PN}-dbg += " ${libdir}/${BPN}/.debug/dict_snowball.so \
228 ${libdir}/${BPN}/.debug/plpgsql.so \
229 ${libdir}/${BPN}/.debug/euc2004_sjis2004.so \
230 ${libdir}/${BPN}/.debug/libpqwalreceiver.so \
231 ${libdir}/${BPN}/.debug/*_and_*.so \
232"
233
234FILES_${PN}-client = "${bindir}/clusterdb \ 235FILES_${PN}-client = "${bindir}/clusterdb \
235 ${bindir}/createdb \ 236 ${bindir}/createdb \
236 ${bindir}/createlang \ 237 ${bindir}/createlang \
@@ -268,7 +269,6 @@ RDEPENDS_${PN} += "${PN}-timezone"
268FILES_${PN}-server-dev = "${includedir}/${BPN}/server" 269FILES_${PN}-server-dev = "${includedir}/${BPN}/server"
269 270
270FILES_libecpg = "${libdir}/libecpg*${SOLIBS}" 271FILES_libecpg = "${libdir}/libecpg*${SOLIBS}"
271FILES_libecpg-dbg = "${libdir}/.debug/libecpg*"
272FILES_libecpg-dev = "${libdir}/libecpg*${SOLIBSDEV} \ 272FILES_libecpg-dev = "${libdir}/libecpg*${SOLIBSDEV} \
273 ${libdir}/libpgtypes*${SOLIBSDEV} \ 273 ${libdir}/libpgtypes*${SOLIBSDEV} \
274 ${includedir}/ecpg*.h ${includedir}/${BPN}/ecpg*.h \ 274 ${includedir}/ecpg*.h ${includedir}/${BPN}/ecpg*.h \
@@ -281,7 +281,6 @@ SECTION_libecpg-staticdev = "devel"
281RDEPENDS_libecpg-staticdev = "libecpg-dev (= ${EXTENDPKGV})" 281RDEPENDS_libecpg-staticdev = "libecpg-dev (= ${EXTENDPKGV})"
282 282
283FILES_libpq = "${libdir}/libpq*${SOLIBS}" 283FILES_libpq = "${libdir}/libpq*${SOLIBS}"
284FILES_libpq-dbg = "${libdir}/.debug/libpq* ${libdir}/${BPN}/pgxs/src/test/regress/.debug/*"
285FILES_libpq-dev = "${libdir}/libpq*${SOLIBSDEV} \ 284FILES_libpq-dev = "${libdir}/libpq*${SOLIBSDEV} \
286 ${includedir} \ 285 ${includedir} \
287" 286"
@@ -290,10 +289,8 @@ SECTION_libpq-staticdev = "devel"
290RDEPENDS_libpq-staticdev = "libpq-dev (= ${EXTENDPKGV})" 289RDEPENDS_libpq-staticdev = "libpq-dev (= ${EXTENDPKGV})"
291 290
292FILES_libecpg-compat = "${libdir}/libecpg_compat*${SOLIBS}" 291FILES_libecpg-compat = "${libdir}/libecpg_compat*${SOLIBS}"
293FILES_libecpg-compat-dbg = "${libdir}/.debug/libecpg_compat*"
294FILES_libecpg-compat-dev = "${libdir}/libecpg_compat*${SOLIBS}" 292FILES_libecpg-compat-dev = "${libdir}/libecpg_compat*${SOLIBS}"
295FILES_libpgtypes = "${libdir}/libpgtypes*${SOLIBS}" 293FILES_libpgtypes = "${libdir}/libpgtypes*${SOLIBS}"
296FILES_libpgtypes-dbg = "${libdir}/.debug/libpgtypes*"
297FILES_libpgtypes-staticdev = "${libdir}/libpgtypes*.a" 294FILES_libpgtypes-staticdev = "${libdir}/libpgtypes*.a"
298FILES_libpgtypes-dev = "${libdir}/libpgtypes*${SOLIBS} ${includedir}/pgtypes*.h" 295FILES_libpgtypes-dev = "${libdir}/libpgtypes*${SOLIBS} ${includedir}/pgtypes*.h"
299 296
@@ -325,50 +322,18 @@ FILES_${PN}-contrib = " ${bindir}/oid2name ${bindir}/pg_standby \
325 ${libdir}/${BPN}/pg_upgrade_support.so ${libdir}/${BPN}/.so \ 322 ${libdir}/${BPN}/pg_upgrade_support.so ${libdir}/${BPN}/.so \
326 ${libdir}/${BPN}/unaccent.so \ 323 ${libdir}/${BPN}/unaccent.so \
327" 324"
328FILES_${PN}-contrib-dbg = " \
329 ${libdir}/${BPN}/.debug/_int.so ${libdir}/${BPN}/.debug/adminpack.so \
330 ${libdir}/${BPN}/.debug/autoinc.so ${libdir}/${BPN}/.debug/auto_explain.so \
331 ${libdir}/${BPN}/.debug/auth_delay.so ${libdir}/${BPN}/.debug/btree_gin.so \
332 ${libdir}/${BPN}/.debug/btree_gist.so ${libdir}/${BPN}/.debug/.so \
333 ${libdir}/${BPN}/.debug/chkpass.so ${libdir}/${BPN}/.debug/citext.so \
334 ${libdir}/${BPN}/.debug/cube.so ${libdir}/${BPN}/.debug/dblink.so \
335 ${libdir}/${BPN}/.debug/dict_int.so ${libdir}/${BPN}/.debug/dict_xsyn.so \
336 ${libdir}/${BPN}/.debug/dummy_seclabel.so \
337 ${libdir}/${BPN}/.debug/earthdistance.so \
338 ${libdir}/${BPN}/.debug/file_fdw.so ${libdir}/${BPN}/.debug/fuzzystrmatch.so \
339 ${libdir}/${BPN}/.debug/hstore.so ${libdir}/${BPN}/.debug/insert_username.so \
340 ${libdir}/${BPN}/.debug/isn.so ${libdir}/${BPN}/.debug/lo.so \
341 ${libdir}/${BPN}/.debug/ltree.so ${libdir}/${BPN}/.debug/moddatetime.so \
342 ${libdir}/${BPN}/.debug/pageinspect.so \
343 ${libdir}/${BPN}/.debug/pg_buffercache.so \
344 ${libdir}/${BPN}/.debug/pg_freespacemap.so \
345 ${libdir}/${BPN}/.debug/pg_trgm.so \
346 ${libdir}/${BPN}/.debug/pgcrypto.so ${libdir}/${BPN}/.debug/pgrowlocks.so \
347 ${libdir}/${BPN}/.debug/pgstattuple.so \
348 ${libdir}/${BPN}/.debug/pg_stat_statements.so \
349 ${libdir}/${BPN}/.debug/refint.so ${libdir}/${BPN}/.debug/seg.so \
350 ${libdir}/${BPN}/.debug/sslinfo.so \
351 ${libdir}/${BPN}/.debug/tablefunc.so \
352 ${libdir}/${BPN}/.debug/test_parser.so ${libdir}/${BPN}/.debug/timetravel.so \
353 ${libdir}/${BPN}/.debug/tsearch2.so ${libdir}/${BPN}/.debug/uuid-ossp.so \
354 ${libdir}/${BPN}/.debug/pgxml.so ${libdir}/${BPN}/.debug/passwordcheck.so \
355 ${libdir}/${BPN}/.debug/pg_upgrade_support.so \
356 ${libdir}/${BPN}/.debug/unaccent.so \
357"
358DESCRIPTION_${PN}-contrib = "The postgresql-contrib package contains \ 325DESCRIPTION_${PN}-contrib = "The postgresql-contrib package contains \
359 contributed packages that are included in the PostgreSQL distribution." 326 contributed packages that are included in the PostgreSQL distribution."
360 327
361FILES_${PN}-pltcl = "${libdir}/${BPN}/pltcl.so ${bindir}/pltcl_delmod \ 328FILES_${PN}-pltcl = "${libdir}/${BPN}/pltcl.so ${bindir}/pltcl_delmod \
362 ${binddir}/pltcl_listmod ${bindir}/pltcl_loadmod \ 329 ${binddir}/pltcl_listmod ${bindir}/pltcl_loadmod \
363 ${datadir}/${BPN}/unknown.pltcl" 330 ${datadir}/${BPN}/unknown.pltcl"
364FILES_${PN}-pltcl-dbg = "${libdir}/${BPN}/.debug/pltcl.so"
365SUMMARY_${PN}-pltcl = "The Tcl procedural language for PostgreSQL" 331SUMMARY_${PN}-pltcl = "The Tcl procedural language for PostgreSQL"
366DESCRIPTION_${PN}-pltcl = "PostgreSQL is an advanced Object-Relational \ 332DESCRIPTION_${PN}-pltcl = "PostgreSQL is an advanced Object-Relational \
367 database management system. The postgresql-pltcl package contains the PL/Tcl \ 333 database management system. The postgresql-pltcl package contains the PL/Tcl \
368 procedural language for the backend." 334 procedural language for the backend."
369 335
370FILES_${PN}-plperl = "${libdir}/${BPN}/plperl.so" 336FILES_${PN}-plperl = "${libdir}/${BPN}/plperl.so"
371FILES_${PN}-plperl-dbg = "${libdir}/${BPN}/.debug/plperl.so"
372SUMMARY_${PN}-plperl = "The Perl procedural language for PostgreSQL" 337SUMMARY_${PN}-plperl = "The Perl procedural language for PostgreSQL"
373DESCRIPTION_${PN}-plperl = "PostgreSQL is an advanced Object-Relational \ 338DESCRIPTION_${PN}-plperl = "PostgreSQL is an advanced Object-Relational \
374 database management system. The postgresql-plperl package contains the \ 339 database management system. The postgresql-plperl package contains the \
@@ -377,7 +342,6 @@ DESCRIPTION_${PN}-plperl = "PostgreSQL is an advanced Object-Relational \
377# In version 8, it will be plpython.so 342# In version 8, it will be plpython.so
378# In version 9, it might be plpython{2,3}.so depending on python2 or 3 343# In version 9, it might be plpython{2,3}.so depending on python2 or 3
379FILES_${PN}-plpython = "${libdir}/${BPN}/plpython*.so" 344FILES_${PN}-plpython = "${libdir}/${BPN}/plpython*.so"
380FILES_${PN}-plpython-dbg = "${libdir}/${BPN}/.debug/plpython*.so"
381SUMMARY_${PN}-plpython = "The Python procedural language for PostgreSQL" 345SUMMARY_${PN}-plpython = "The Python procedural language for PostgreSQL"
382DESCRIPTION_${PN}-plpython = "PostgreSQL is an advanced Object-Relational \ 346DESCRIPTION_${PN}-plpython = "PostgreSQL is an advanced Object-Relational \
383 database management system. The postgresql-plpython package contains \ 347 database management system. The postgresql-plpython package contains \