Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] possible enhancement

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Jason Flatt <jason AT flattfamily.com>
  • To: sm-discuss AT lists.ibiblio.org
  • Subject: Re: [SM-Discuss] possible enhancement
  • Date: Sun, 20 Feb 2005 10:09:33 -0800

On Sunday 20 February 2005 10:08 am, Treeve Jelbert wrote:
> several software packages reccommend creating a build directory first and
> to do something like
>
> mkdir build
> cd build
> ../configure
> make

I must be totally misunderstanding you, 'cause I thought that was the way it
was already done.

The source is extracted into /usr/src/$SPELL-$VERSION (usually) and the built
in that directory. If no custom build files (BUILD, INSTALL, etc.) are
found, the following code is executed:

From /var/lib/sorcery/modules/libapi:
#---------------------------------------------------------------------
## @Type API
## @See <@function
var.lib.sorcery.modules.libgrimoire.html,real_default_build> for more
details.
## Used if no BUILD script is found for a spell
## Default build for BUILD_API==1 is:
## <pre>
## ./configure --build=$BUILD \
## --prefix=/usr \
## --sysconfdir=/etc \
## --localstatedir=/var \
## $OPTS &&
## make &&
## prepare_install &&
## make install
## </pre>
## Default build for BUILD_API==2 is:
## <pre>
## ./configure --build=$BUILD \
## --prefix=/usr \
## --sysconfdir=/etc \
## --localstatedir=/var \
## $OPTS &&
## make
## </pre>
##
#---------------------------------------------------------------------
function default_build () {
debug "libapi" "default_build - $*"
real_default_build "$@"
}


For BUILD_API 2, there are additional functions which complete the build
process.


> in most cases configure accepts the standard options
>
> t would be useful if this situation could be handled by default_build
>
> mkdir build
> cd build
> default_build BASE=../
>
> or even simply
>
> default_build BUILD_IN=builddir
>
> so that builddir was created automatically
>
> Thoughts?


--
Jason Flatt
Father of five: http://www.flattfamily.com/
Linux user: http://www.sourcemage.org/ - http://www.lvlug.org/




Archive powered by MHonArc 2.6.24.

Top of Page