pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix lcov duplicate directory specification in non-VPATH builds. 7+ messages / 1 participants [nested] [flat]
* pgsql: Fix lcov duplicate directory specification in non-VPATH builds. @ 2026-10-03 18:45 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2026-10-03 18:45 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix lcov duplicate directory specification in non-VPATH builds. In an in-tree build, "make coverage-html" invoked lcov with two "-d ." options, because $(srcdir) is just ".". With lcov 2.0 (and perhaps earlier versions?) that results in scanning every foo.gcda file twice and producing counts twice what they should be. With later lcov versions (at least 2.3), it results in "duplicate file" errors. In VPATH builds we do need two -d options to cover both regular and generated .c files. But in in-tree builds it suffices to specify "-d .", so suppress the second switch. Author: Narek Galstyan <narek.galstyan@enterprisedb.com> Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/CAHsn6_xCDQWe8_vVFhtFk27_xTdyVV+Dr0yWzaooBZ6+-VH-5w@mail.gmail.com Backpatch-through: 14 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/19ef4c8411556687180b7cfbff636be26fc715b5 Modified Files -------------- src/Makefile.global.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Fix lcov duplicate directory specification in non-VPATH builds. @ 2026-10-03 18:45 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2026-10-03 18:45 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix lcov duplicate directory specification in non-VPATH builds. In an in-tree build, "make coverage-html" invoked lcov with two "-d ." options, because $(srcdir) is just ".". With lcov 2.0 (and perhaps earlier versions?) that results in scanning every foo.gcda file twice and producing counts twice what they should be. With later lcov versions (at least 2.3), it results in "duplicate file" errors. In VPATH builds we do need two -d options to cover both regular and generated .c files. But in in-tree builds it suffices to specify "-d .", so suppress the second switch. Author: Narek Galstyan <narek.galstyan@enterprisedb.com> Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/CAHsn6_xCDQWe8_vVFhtFk27_xTdyVV+Dr0yWzaooBZ6+-VH-5w@mail.gmail.com Backpatch-through: 14 Branch ------ REL_19_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/e1cda300ff7f9c534d215e745b8594b3cdf49d40 Modified Files -------------- src/Makefile.global.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Fix lcov duplicate directory specification in non-VPATH builds. @ 2026-10-03 18:45 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2026-10-03 18:45 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix lcov duplicate directory specification in non-VPATH builds. In an in-tree build, "make coverage-html" invoked lcov with two "-d ." options, because $(srcdir) is just ".". With lcov 2.0 (and perhaps earlier versions?) that results in scanning every foo.gcda file twice and producing counts twice what they should be. With later lcov versions (at least 2.3), it results in "duplicate file" errors. In VPATH builds we do need two -d options to cover both regular and generated .c files. But in in-tree builds it suffices to specify "-d .", so suppress the second switch. Author: Narek Galstyan <narek.galstyan@enterprisedb.com> Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/CAHsn6_xCDQWe8_vVFhtFk27_xTdyVV+Dr0yWzaooBZ6+-VH-5w@mail.gmail.com Backpatch-through: 14 Branch ------ REL_18_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/2a8e94f90c4e387486b02fdca47552b550d09766 Modified Files -------------- src/Makefile.global.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Fix lcov duplicate directory specification in non-VPATH builds. @ 2026-10-03 18:45 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2026-10-03 18:45 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix lcov duplicate directory specification in non-VPATH builds. In an in-tree build, "make coverage-html" invoked lcov with two "-d ." options, because $(srcdir) is just ".". With lcov 2.0 (and perhaps earlier versions?) that results in scanning every foo.gcda file twice and producing counts twice what they should be. With later lcov versions (at least 2.3), it results in "duplicate file" errors. In VPATH builds we do need two -d options to cover both regular and generated .c files. But in in-tree builds it suffices to specify "-d .", so suppress the second switch. Author: Narek Galstyan <narek.galstyan@enterprisedb.com> Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/CAHsn6_xCDQWe8_vVFhtFk27_xTdyVV+Dr0yWzaooBZ6+-VH-5w@mail.gmail.com Backpatch-through: 14 Branch ------ REL_17_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/2dc69bf953af145c6aba5dc9cebce374f6841bba Modified Files -------------- src/Makefile.global.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Fix lcov duplicate directory specification in non-VPATH builds. @ 2026-10-03 18:45 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2026-10-03 18:45 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix lcov duplicate directory specification in non-VPATH builds. In an in-tree build, "make coverage-html" invoked lcov with two "-d ." options, because $(srcdir) is just ".". With lcov 2.0 (and perhaps earlier versions?) that results in scanning every foo.gcda file twice and producing counts twice what they should be. With later lcov versions (at least 2.3), it results in "duplicate file" errors. In VPATH builds we do need two -d options to cover both regular and generated .c files. But in in-tree builds it suffices to specify "-d .", so suppress the second switch. Author: Narek Galstyan <narek.galstyan@enterprisedb.com> Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/CAHsn6_xCDQWe8_vVFhtFk27_xTdyVV+Dr0yWzaooBZ6+-VH-5w@mail.gmail.com Backpatch-through: 14 Branch ------ REL_16_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/7f4e6f50de6e8201f656a0cf55aa5c59166cbe54 Modified Files -------------- src/Makefile.global.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Fix lcov duplicate directory specification in non-VPATH builds. @ 2026-10-03 18:45 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2026-10-03 18:45 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix lcov duplicate directory specification in non-VPATH builds. In an in-tree build, "make coverage-html" invoked lcov with two "-d ." options, because $(srcdir) is just ".". With lcov 2.0 (and perhaps earlier versions?) that results in scanning every foo.gcda file twice and producing counts twice what they should be. With later lcov versions (at least 2.3), it results in "duplicate file" errors. In VPATH builds we do need two -d options to cover both regular and generated .c files. But in in-tree builds it suffices to specify "-d .", so suppress the second switch. Author: Narek Galstyan <narek.galstyan@enterprisedb.com> Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/CAHsn6_xCDQWe8_vVFhtFk27_xTdyVV+Dr0yWzaooBZ6+-VH-5w@mail.gmail.com Backpatch-through: 14 Branch ------ REL_15_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/e299fc2b30f9f58691aa0782f6bc3ae3fd9f1f52 Modified Files -------------- src/Makefile.global.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Fix lcov duplicate directory specification in non-VPATH builds. @ 2026-10-03 18:45 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2026-10-03 18:45 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix lcov duplicate directory specification in non-VPATH builds. In an in-tree build, "make coverage-html" invoked lcov with two "-d ." options, because $(srcdir) is just ".". With lcov 2.0 (and perhaps earlier versions?) that results in scanning every foo.gcda file twice and producing counts twice what they should be. With later lcov versions (at least 2.3), it results in "duplicate file" errors. In VPATH builds we do need two -d options to cover both regular and generated .c files. But in in-tree builds it suffices to specify "-d .", so suppress the second switch. Author: Narek Galstyan <narek.galstyan@enterprisedb.com> Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/CAHsn6_xCDQWe8_vVFhtFk27_xTdyVV+Dr0yWzaooBZ6+-VH-5w@mail.gmail.com Backpatch-through: 14 Branch ------ REL_14_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/9df103328f19b292a0217162ec396bc07157b8b9 Modified Files -------------- src/Makefile.global.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~2026-10-03 18:45 UTC | newest] Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2026-10-03 18:45 pgsql: Fix lcov duplicate directory specification in non-VPATH builds. Tom Lane <tgl@sss.pgh.pa.us> 2026-10-03 18:45 pgsql: Fix lcov duplicate directory specification in non-VPATH builds. Tom Lane <tgl@sss.pgh.pa.us> 2026-10-03 18:45 pgsql: Fix lcov duplicate directory specification in non-VPATH builds. Tom Lane <tgl@sss.pgh.pa.us> 2026-10-03 18:45 pgsql: Fix lcov duplicate directory specification in non-VPATH builds. Tom Lane <tgl@sss.pgh.pa.us> 2026-10-03 18:45 pgsql: Fix lcov duplicate directory specification in non-VPATH builds. Tom Lane <tgl@sss.pgh.pa.us> 2026-10-03 18:45 pgsql: Fix lcov duplicate directory specification in non-VPATH builds. Tom Lane <tgl@sss.pgh.pa.us> 2026-10-03 18:45 pgsql: Fix lcov duplicate directory specification in non-VPATH builds. Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox