On 08/12/07 18:42 +0100, Harald Radke wrote:
> Hi there!
> 
> After successfully (?) installing SB2, I tried to build ncurses...built went 
> fine, but installation not that good... actually the "make install" 
> called /usr/bin/install which in turn tried to put files in the host /usr/* 
> structure, not the buildroot one...
> 
> My question:
> 
> is this an intended behaviour (in order to compile software for packaging 
> rather than for a running image) or do I have to configure things properly or 
> have to e.g. compile and install tools like "install" for the target?

This is quite expected behaviour from sb2, the installation step is a shitty
one to get right while using as much as possible of the host for the build
step. There's the "sb2 -e" which will do exactly the opposite, but at the
moment it goes so far that you'd need to work inside the buildroot in order
to access the files you want to install into it. I've not yet decided what
would be the best way to deal with this, mainly because this is pretty much a
none-issue when building debian packages. Maybe a special switch "sb2 -i"
which would behave like "-e" but would grant access to $PWD?

In principle if the build system supports installing to a different prefix
than the one used for configuring, use that. In practise do something like
"make install prefix=$HOME/buildroot/usr" or equivalent.

> Another question: libtool was installed in ~/.scratchbox2/TARGET/
> Is this in general the place for software needed for building that should not 
> be placed in the buildroot dir structure (that would be awesome, e.g. I would 
> like to have ncurses accessable during "make" but not inside the 
> buildroot-fs) or should stuff like that go into the toolchain directories?

Typically I would not recommend putting anything into .scratchbox2/TARGET,
but then again I've not thought about it too much. I would recommend you to
put ncurses into ~/buildroot and then creating your target image separately
from that, leaving anything unwanted out.

> If these are quite stupid things, sorry, it's just that I am exploring 
> everything as time goes by (:

These are perfectly valid questions so far that you've asked, I would hope
more people would use the lists to discuss instead of mailing me directly.

/lauri

_______________________________________________
Scratchbox-users mailing list
Scratchbox-users@lists.scratchbox.org
http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users

Reply via email to