Bug 211234 - build-system needs to support building multiple archs from one tree
Summary: build-system needs to support building multiple archs from one tree
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: 389
Classification: Retired
Component: Directory Server
Version: 1.0.2
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Nathan Kinder
QA Contact: Viktor Ashirov
URL:
Whiteboard:
Depends On:
Blocks: 152373 240316
TreeView+ depends on / blocked
 
Reported: 2006-10-17 23:29 UTC by Nathan Kinder
Modified: 2015-12-07 17:18 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-12-07 17:18:33 UTC
Embargoed:


Attachments (Terms of Use)
Proposed Fix (5.46 KB, patch)
2006-10-17 23:29 UTC, Nathan Kinder
no flags Details | Diff

Description Nathan Kinder 2006-10-17 23:29:21 UTC
The new autotools-based DS build system needs to support for building multiple
architectures from one source tree.  This will allow us to do things like:

- Create arch directory and cd into it
- run configure and make from the arch directory

You should be able to repeat this for as many build architectures as you want
from one source tree.  We need to make sure that any files generated during the
build go into the build area, not the source area.

The following attachment makes the necessary changes to support the scenario
described above.  I have omitted the generated Makefile.in file since it is
generated directly from the attached Makefile.am changes by running autoreconf.

Comment 1 Nathan Kinder 2006-10-17 23:29:22 UTC
Created attachment 138734 [details]
Proposed Fix

Comment 2 Rich Megginson 2006-10-18 00:35:32 UTC
Looks good.  How do you use it?

Comment 3 Nathan Kinder 2006-10-18 15:29:18 UTC
There's really little difference in building with these changes.

Instead of running "./configure; make" inside the ldapserver directory, you
would create a subdirectory for the architecture you are building for (such as
"ldapserver/RHEL4_DBG").  You would then cd into the "RHEL4_DBG" directory and
run "../configure".  This will create the Makefile in the RHEL4_DBG directory,
so you would just run Make from there.  All of the built files will be placed in
the subdirectory that you created instead of in the checked out source tree.

Comment 4 Nathan Kinder 2006-10-18 16:34:37 UTC
Checked into ldapserver (HEAD).  Thanks to Rich for the review!

Comment 5 Nathan Kinder 2006-10-18 16:38:23 UTC
Checking in Makefile.am;
/cvs/dirsec/ldapserver/Makefile.am,v  <--  Makefile.am
new revision: 1.2; previous revision: 1.1
done
Checking in Makefile.in;
/cvs/dirsec/ldapserver/Makefile.in,v  <--  Makefile.in
new revision: 1.2; previous revision: 1.1
done

Comment 7 Nathan Kinder 2007-12-21 18:02:21 UTC
We have been successfully building using this method in the nightlies for a long
time now.  Marking as VERIFIED.


Note You need to log in before you can comment on or make changes to this bug.