Re: About the new %sdt macro in F-11 package

Started by Tom Laneabout 17 years ago4 messageshackers
Jump to latest
#1Tom Lane
tgl@sss.pgh.pa.us

Devrim =?ISO-8859-1?Q?G=DCND=DCZ?= <devrim@gunduz.org> writes:

I was trying to make a scratch build in Koji for orafce package, and it
failed:

http://koji.fedoraproject.org/koji/getfile?taskID=1235602&amp;name=build.log

I consulted #fedora-devel @ Freenode, and the conclusion was this:

<walters> devrimgunduz: the devel subpackage needs a Requires:
systemtap-sdt-devel

He is talking about postgresql-devel package actually.

The reason this is a problem is that in 8.3, pg_trace.h is included by
c.h, which means that *anything* built against Postgres headers needs
access to the dtrace headers if we configured --enable-dtrace.

As of CVS HEAD, I see that we got rid of that, and pg_trace.h is now
included only by the .c files that actually need it. ISTM that we
should make 8.3 do likewise. Having postgresql-devel drag in
systemtap-sdt-devel would pretty much suck IMHO.

Comments?

regards, tom lane

#2Alvaro Herrera
alvherre@2ndquadrant.com
In reply to: Tom Lane (#1)

Tom Lane wrote:

As of CVS HEAD, I see that we got rid of that, and pg_trace.h is now
included only by the .c files that actually need it. ISTM that we
should make 8.3 do likewise.

Here's a patch for this.

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

Attachments:

dtrace-83.patchtext/x-diff; charset=us-asciiDownload+3-1
#3Tom Lane
tgl@sss.pgh.pa.us
In reply to: Alvaro Herrera (#2)

Alvaro Herrera <alvherre@commandprompt.com> writes:

Tom Lane wrote:

As of CVS HEAD, I see that we got rid of that, and pg_trace.h is now
included only by the .c files that actually need it. ISTM that we
should make 8.3 do likewise.

Here's a patch for this.

Oh, thanks, I was just about to go off and do that myself, but you
saved me the trouble. Please commit.

regards, tom lane

#4Alvaro Herrera
alvherre@2ndquadrant.com
In reply to: Tom Lane (#3)

Tom Lane wrote:

Alvaro Herrera <alvherre@commandprompt.com> writes:

Tom Lane wrote:

As of CVS HEAD, I see that we got rid of that, and pg_trace.h is now
included only by the .c files that actually need it. ISTM that we
should make 8.3 do likewise.

Here's a patch for this.

Oh, thanks, I was just about to go off and do that myself, but you
saved me the trouble. Please commit.

Done.

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support