[baker-baker] unpacked source packages

Mika Pesu pmika at japo.fi
Wed Dec 3 16:46:31 EST 2003


T. Onoma wrote:

>On Wednesday 03 December 2003 08:34 am, Mika Pesu wrote:
>  
>
>>T. Onoma wrote:
>>    
>>
>>>Okay so I started making a recipe for Ruby 1.8.1 preview 2, which I've
>>>called Ruby--1.8.1p2. The source package file is
>>>ruby-1.8.1-preview2.tar.gz, but when it unpacks it creates a directory
>>>called ruby-1.8.1. Obviously this would clash with preview 0, 1, etc. as
>>>well as final. Should I care about that and thus have source downloads go
>>>into further subdirs based on version number, i.e. /Ruby/1.8.1p2/ ? Also,
>>>there's no way for Baker to know what the unpacked directory will be
>>>called, I had assumed it would be the same as the source file name w/o
>>>the .tar.gz stuff, but appearently that was a bad assumption. I guess I
>>>have no choice but to add another field to recipes: unpacked_dirname or
>>>something like that.
>>>
>>>Any thoughts?
>>>      
>>>
>>hmm,when unpacking source code it doesnt shouldn't matter what will be
>>unpacked directory called,
>>as long as make install creates proper directory layout in install for
>>example:/usr/lib/ruby/1..8.1 etc...
>>    
>>
>
>please explain more. baker needs to descend into that directory and move/copy 
>it for compiling to run make install. how will it get int hte directory w/o 
>knowing the name?
>
>  
>
>>i made some experiments with chrooted install by
>>making fake_root lets call /var/tmp/fake_root
>>mounting real root with read only to /var/tmp/fake_root/real_root
>>and chrooting to /var/tmp/fake_root
>>/var/tmp/fake_root should contain programs /bin/bash /lib/.... to chroot
>>to propely work.
>>
>>and setting path inside chroot
>>taking snapshot of tree structure(not taking real_root)
>>then compiling,installing
>>and taking snapshot
>>and when we compare these we know what files changed....
>>
>>so far no luck but i'll experiment more....
>>    
>>
>
>:-) it'll come. i don't think we need to chroot for compile actually. we need 
>to somehow temporarly mount everything read-only except build directory, but 
>i have no idea how. I will expore subject on net today. then chroot for 
>install.
>  
>

i think we can compile as normal because by compiling some stuff it 
doesnt execute any build binary yet.

so build process would come like this:
./configure
make
dir snapshot
chroot
make install
exit chroot
dir snapshot

those dir snapsnot arent essential,because we keep track what will be 
copied to chroot,just need libs to get install util to work





More information about the Baker-baker mailing list