diff options
author | Hongxu Jia <hongxu.jia@windriver.com> | 2018-09-18 00:05:25 +0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2018-09-18 20:17:02 -0700 |
commit | d9abf69f20e93f6fc47cbb0edd69224f3dba2733 (patch) | |
tree | 6c3a0f1164c3103e5af45ecba82505d90f87a435 /meta-oe/recipes-dbs/postgresql/postgresql.inc | |
parent | face5ee9c157c509ccbf35e2aa99aa272b860a05 (diff) | |
download | meta-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/postgresql/postgresql.inc')
-rw-r--r-- | meta-oe/recipes-dbs/postgresql/postgresql.inc | 74 |
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 44a1b30fe0..3bf71f02e9 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 \ | |||
72 | EXTRA_OECONF_sh4 += "--disable-spinlocks" | 72 | EXTRA_OECONF_sh4 += "--disable-spinlocks" |
73 | EXTRA_OECONF_aarch64 += "--disable-spinlocks" | 73 | EXTRA_OECONF_aarch64 += "--disable-spinlocks" |
74 | 74 | ||
75 | PACKAGES_DYNAMIC += "^${PN}-plperl ^${PN}-plperl-dbg \ | 75 | PACKAGES_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 | ||
80 | python populate_packages_prepend() { | 80 | python 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" | |||
205 | SSTATE_SCAN_FILES_remove = "*_config" | 203 | SSTATE_SCAN_FILES_remove = "*_config" |
206 | 204 | ||
207 | PACKAGES =+ "${PN}-client ${PN}-server-dev ${PN}-timezone \ | 205 | PACKAGES =+ "${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 | ||
213 | RPROVIDES_${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 | |||
215 | FILES_${PN} += "${sysconfdir}/init.d/${BPN}-server \ | 223 | FILES_${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 | ||
227 | FILES_${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 | |||
234 | FILES_${PN}-client = "${bindir}/clusterdb \ | 235 | FILES_${PN}-client = "${bindir}/clusterdb \ |
235 | ${bindir}/createdb \ | 236 | ${bindir}/createdb \ |
236 | ${bindir}/createlang \ | 237 | ${bindir}/createlang \ |
@@ -268,7 +269,6 @@ RDEPENDS_${PN} += "${PN}-timezone" | |||
268 | FILES_${PN}-server-dev = "${includedir}/${BPN}/server" | 269 | FILES_${PN}-server-dev = "${includedir}/${BPN}/server" |
269 | 270 | ||
270 | FILES_libecpg = "${libdir}/libecpg*${SOLIBS}" | 271 | FILES_libecpg = "${libdir}/libecpg*${SOLIBS}" |
271 | FILES_libecpg-dbg = "${libdir}/.debug/libecpg*" | ||
272 | FILES_libecpg-dev = "${libdir}/libecpg*${SOLIBSDEV} \ | 272 | FILES_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" | |||
281 | RDEPENDS_libecpg-staticdev = "libecpg-dev (= ${EXTENDPKGV})" | 281 | RDEPENDS_libecpg-staticdev = "libecpg-dev (= ${EXTENDPKGV})" |
282 | 282 | ||
283 | FILES_libpq = "${libdir}/libpq*${SOLIBS}" | 283 | FILES_libpq = "${libdir}/libpq*${SOLIBS}" |
284 | FILES_libpq-dbg = "${libdir}/.debug/libpq* ${libdir}/${BPN}/pgxs/src/test/regress/.debug/*" | ||
285 | FILES_libpq-dev = "${libdir}/libpq*${SOLIBSDEV} \ | 284 | FILES_libpq-dev = "${libdir}/libpq*${SOLIBSDEV} \ |
286 | ${includedir} \ | 285 | ${includedir} \ |
287 | " | 286 | " |
@@ -290,10 +289,8 @@ SECTION_libpq-staticdev = "devel" | |||
290 | RDEPENDS_libpq-staticdev = "libpq-dev (= ${EXTENDPKGV})" | 289 | RDEPENDS_libpq-staticdev = "libpq-dev (= ${EXTENDPKGV})" |
291 | 290 | ||
292 | FILES_libecpg-compat = "${libdir}/libecpg_compat*${SOLIBS}" | 291 | FILES_libecpg-compat = "${libdir}/libecpg_compat*${SOLIBS}" |
293 | FILES_libecpg-compat-dbg = "${libdir}/.debug/libecpg_compat*" | ||
294 | FILES_libecpg-compat-dev = "${libdir}/libecpg_compat*${SOLIBS}" | 292 | FILES_libecpg-compat-dev = "${libdir}/libecpg_compat*${SOLIBS}" |
295 | FILES_libpgtypes = "${libdir}/libpgtypes*${SOLIBS}" | 293 | FILES_libpgtypes = "${libdir}/libpgtypes*${SOLIBS}" |
296 | FILES_libpgtypes-dbg = "${libdir}/.debug/libpgtypes*" | ||
297 | FILES_libpgtypes-staticdev = "${libdir}/libpgtypes*.a" | 294 | FILES_libpgtypes-staticdev = "${libdir}/libpgtypes*.a" |
298 | FILES_libpgtypes-dev = "${libdir}/libpgtypes*${SOLIBS} ${includedir}/pgtypes*.h" | 295 | FILES_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 | " |
328 | FILES_${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 | " | ||
358 | DESCRIPTION_${PN}-contrib = "The postgresql-contrib package contains \ | 325 | DESCRIPTION_${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 | ||
361 | FILES_${PN}-pltcl = "${libdir}/${BPN}/pltcl.so ${bindir}/pltcl_delmod \ | 328 | FILES_${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" |
364 | FILES_${PN}-pltcl-dbg = "${libdir}/${BPN}/.debug/pltcl.so" | ||
365 | SUMMARY_${PN}-pltcl = "The Tcl procedural language for PostgreSQL" | 331 | SUMMARY_${PN}-pltcl = "The Tcl procedural language for PostgreSQL" |
366 | DESCRIPTION_${PN}-pltcl = "PostgreSQL is an advanced Object-Relational \ | 332 | DESCRIPTION_${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 | ||
370 | FILES_${PN}-plperl = "${libdir}/${BPN}/plperl.so" | 336 | FILES_${PN}-plperl = "${libdir}/${BPN}/plperl.so" |
371 | FILES_${PN}-plperl-dbg = "${libdir}/${BPN}/.debug/plperl.so" | ||
372 | SUMMARY_${PN}-plperl = "The Perl procedural language for PostgreSQL" | 337 | SUMMARY_${PN}-plperl = "The Perl procedural language for PostgreSQL" |
373 | DESCRIPTION_${PN}-plperl = "PostgreSQL is an advanced Object-Relational \ | 338 | DESCRIPTION_${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 |
379 | FILES_${PN}-plpython = "${libdir}/${BPN}/plpython*.so" | 344 | FILES_${PN}-plpython = "${libdir}/${BPN}/plpython*.so" |
380 | FILES_${PN}-plpython-dbg = "${libdir}/${BPN}/.debug/plpython*.so" | ||
381 | SUMMARY_${PN}-plpython = "The Python procedural language for PostgreSQL" | 345 | SUMMARY_${PN}-plpython = "The Python procedural language for PostgreSQL" |
382 | DESCRIPTION_${PN}-plpython = "PostgreSQL is an advanced Object-Relational \ | 346 | DESCRIPTION_${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 \ |