diff options
author | Tom Lane <tgl@fedoraproject.org> | 2009-03-11 01:36:52 +0000 |
---|---|---|
committer | Tom Lane <tgl@fedoraproject.org> | 2009-03-11 01:36:52 +0000 |
commit | 18a2a1a2f2ea180d353058877e181df6b71b94f4 (patch) | |
tree | e3a98194bb072781352d2053c7d4be8115f4ae22 /postgresql-sdt-includes.patch | |
parent | 14d34333ddbba64725fcfd8e042ee847585acef6 (diff) | |
download | postgresql-setup-18a2a1a2f2ea180d353058877e181df6b71b94f4.tar.gz postgresql-setup-18a2a1a2f2ea180d353058877e181df6b71b94f4.tar.xz postgresql-setup-18a2a1a2f2ea180d353058877e181df6b71b94f4.zip |
Prevent dependent packages from needing to include sys/sdt.hpostgresql-8_3_6-4_fc11
Diffstat (limited to 'postgresql-sdt-includes.patch')
-rw-r--r-- | postgresql-sdt-includes.patch | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/postgresql-sdt-includes.patch b/postgresql-sdt-includes.patch new file mode 100644 index 0000000..6166397 --- /dev/null +++ b/postgresql-sdt-includes.patch @@ -0,0 +1,51 @@ +Do not expose pg_trace.h (ie, <sys/sdt.h>) as something that every dependent +package will need to #include successfully. Otherwise we'd need to make +postgresql-devel Require: systemtap-sdt-devel, which doesn't seem like a +desirable thing to do. This patch is already applied upstream and won't +be needed in 8.3.7. + + +diff -Naur postgresql-8.3.6.orig/src/backend/access/transam/xact.c postgresql-8.3.6/src/backend/access/transam/xact.c +--- postgresql-8.3.6.orig/src/backend/access/transam/xact.c 2008-04-26 19:35:33.000000000 -0400 ++++ postgresql-8.3.6/src/backend/access/transam/xact.c 2009-03-10 21:17:26.000000000 -0400 +@@ -33,6 +33,7 @@ + #include "executor/spi.h" + #include "libpq/be-fsstubs.h" + #include "miscadmin.h" ++#include "pg_trace.h" + #include "pgstat.h" + #include "storage/fd.h" + #include "storage/lmgr.h" +diff -Naur postgresql-8.3.6.orig/src/backend/storage/lmgr/lock.c postgresql-8.3.6/src/backend/storage/lmgr/lock.c +--- postgresql-8.3.6.orig/src/backend/storage/lmgr/lock.c 2008-03-04 14:54:13.000000000 -0500 ++++ postgresql-8.3.6/src/backend/storage/lmgr/lock.c 2009-03-10 21:17:26.000000000 -0400 +@@ -36,6 +36,7 @@ + #include "access/twophase.h" + #include "access/twophase_rmgr.h" + #include "miscadmin.h" ++#include "pg_trace.h" + #include "pgstat.h" + #include "utils/memutils.h" + #include "utils/ps_status.h" +diff -Naur postgresql-8.3.6.orig/src/backend/storage/lmgr/lwlock.c postgresql-8.3.6/src/backend/storage/lmgr/lwlock.c +--- postgresql-8.3.6.orig/src/backend/storage/lmgr/lwlock.c 2008-01-01 14:45:52.000000000 -0500 ++++ postgresql-8.3.6/src/backend/storage/lmgr/lwlock.c 2009-03-10 21:17:26.000000000 -0400 +@@ -25,6 +25,7 @@ + #include "access/multixact.h" + #include "access/subtrans.h" + #include "miscadmin.h" ++#include "pg_trace.h" + #include "storage/ipc.h" + #include "storage/proc.h" + #include "storage/spin.h" +diff -Naur postgresql-8.3.6.orig/src/include/c.h postgresql-8.3.6/src/include/c.h +--- postgresql-8.3.6.orig/src/include/c.h 2008-02-23 14:11:55.000000000 -0500 ++++ postgresql-8.3.6/src/include/c.h 2009-03-10 21:17:26.000000000 -0400 +@@ -57,7 +57,6 @@ + #include "pg_config_os.h" /* must be before any system header files */ + #endif + #include "postgres_ext.h" +-#include "pg_trace.h" + + #if _MSC_VER >= 1400 + #define errcode __msvc_errcode |