flex/bison output wrongly created in the source directory

Started by Warren Turkalabout 18 years ago5 messages
#1Warren Turkal
wturkal@gmail.com

I was wondering if there is a reason that the flex and bison and other
generated source files end up in the source directory when doing an
out-of-tree build. Would a patch that puts those files in the build
trees be accepted?

wt

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Warren Turkal (#1)
Re: flex/bison output wrongly created in the source directory

"Warren Turkal" <wturkal@gmail.com> writes:

I was wondering if there is a reason that the flex and bison and other
generated source files end up in the source directory when doing an
out-of-tree build. Would a patch that puts those files in the build
trees be accepted?

Probably not, since our intention is that those files be distributed as
part of source tarballs.

Also, since they are (or should be) architecture-independent, what's the
point? Out-of-tree builds are intended to support building for multiple
architectures in parallel; but there's no reason to force independent
reconstructions of these common derived files.

regards, tom lane

#3Warren Turkal
wturkal@gmail.com
In reply to: Tom Lane (#2)
Re: flex/bison output wrongly created in the source directory

On Jan 9, 2008 9:51 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:

"Warren Turkal" <wturkal@gmail.com> writes:

I was wondering if there is a reason that the flex and bison and other
generated source files end up in the source directory when doing an
out-of-tree build. Would a patch that puts those files in the build
trees be accepted?

Probably not, since our intention is that those files be distributed as
part of source tarballs.

That makes sense.

Also, since they are (or should be) architecture-independent, what's the
point? Out-of-tree builds are intended to support building for multiple
architectures in parallel; but there's no reason to force independent
reconstructions of these common derived files.

I was not building multiple builds in parallel as I thought they might
get fouled by the different builds. Since they do appear to not
change, I think they are just fine. Thanks for the help!

wt

#4Gregory Stark
stark@enterprisedb.com
In reply to: Tom Lane (#2)
Re: flex/bison output wrongly created in the source directory

"Tom Lane" <tgl@sss.pgh.pa.us> writes:

Also, since they are (or should be) architecture-independent, what's the
point? Out-of-tree builds are intended to support building for multiple
architectures in parallel; but there's no reason to force independent
reconstructions of these common derived files.

That's not the only reason for out-of-tree builds. Packagers often find it
easier to build out-of-tree since it means they can generate a clean diff
against the original source.

--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Ask me about EnterpriseDB's 24x7 Postgres support!

#5Andrew Dunstan
andrew@dunslane.net
In reply to: Gregory Stark (#4)
Re: flex/bison output wrongly created in the source directory

Gregory Stark wrote:

"Tom Lane" <tgl@sss.pgh.pa.us> writes:

Also, since they are (or should be) architecture-independent, what's the
point? Out-of-tree builds are intended to support building for multiple
architectures in parallel; but there's no reason to force independent
reconstructions of these common derived files.

That's not the only reason for out-of-tree builds. Packagers often find it
easier to build out-of-tree since it means they can generate a clean diff
against the original source.

Right. We actually have to take some special steps in the buildfarm
client script to clean up files generated in the tree by vpath builds so
we have a clean repo on the next run.

But arguably packagers should be building from tarballs anyway rather
than from CVS, in which case the build shouldn't put anything in the
source tree.

cheers

andrew