Hi, 
        I rename the tarball name and works! ok..

        ------------ BUILD KIT POST FILE ---------
# Define your packages here by using a correct packageprofile class.
# Available types are SourcePackage(), RPMPackage(), SRPMPackage(),
# DistroPackage(), BinaryPackage()

firefox_pkg1 = BinaryPackage()
firefox_pkg1.name = 'firefox'
firefox_pkg1.version = '0.0.11'
firefox_pkg1.release = '2'
firefox_pkg1.installroot = '/usr/lib/'
firefox_pkg1.filename = 'firefox.tar.gz'
#firefox_pkg1.filename = 'firefox'


# Define a default component
comp = DefaultComponent()
comp.name = 'firefox'
comp.description = 'firefox component.'

# Add any packages defined earlier by using the comp.addDep method
comp.addDep(firefox_pkg1)


# Define a default kit
# Change arch if needed to fit your needs (x86, x86_64, noarch)
k = DefaultKit()
k.name = 'firefox'
k.description = 'firefox kit.'
k.arch = getArch()

# Adding the component defined earlier
k.addComponent(comp)


# Add post install script. You can modify this shell script or add new
ones in t
he
# sources directory
k.addScript('00-post-script.sh',mode='post')

# Add post uninstall script. You can modify this shell script or add new
ones in
 the
# sources directory
k.addScript('00-postun-script.sh',mode='postun')


Regards,



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Mike Mazur
Sent: Wednesday, February 20, 2008 10:38 PM
To: [email protected]
Subject: Re: [Kusu-users] Binary Tar Files as Kit

Hi Augustin,

On Wed, 20 Feb 2008 11:17:04 -0800
"March, Agustin M" <[EMAIL PROTECTED]> wrote:

> Hi I want to generate a kit from a binary tar file. I create the kit
> structure an selected the components as BinaryPackage() but is seem
> that it is no the corrects choice.
> Someone do you know hot to do it? 
> 
> Verifying the Kit Source directory found
> in /root/kitsdevelop/firefox.. Setting up BuildProfile for this kit..
----------8<---------
>   File "/opt/kusu/lib/python/kusu/buildkit/builder.py", line 532, in
> install
>     cpio_copytree(self.buildsrc,destroot)
>   File "/opt/kusu/lib/python/kusu/util/tools.py", line 139, in
> cpio_copytree
>     if not cwd.exists(): raise IOError, "Source directory does not
> exist!"
> IOError: Source directory does not exist!

>From this error it looks that when your tarball is extracted it does
not create a directory with the same name as the tarball (minus the
extension). For example, if I have a tarball called myapp.tar.gz,
buildkit expects the following:

/tmp $ pwd
/tmp
/tmp $ ls
myapp.tar.gz
/tmp $ tar zxf myapp.tar.gz
/tmp $ ls
myapp  <-------- this directory created when myapp.tar.gz is extracted
myapp.tar.gz

Either rename your tarball to have the same name as the directory
created during extraction, or change the directory name stored in the
tarball.

Also, could you post your build.kit file?

Hope that helps!
Mike
_______________________________________________
Kusu-users mailing list
[email protected]
http://mail.osgdc.org/mailman/listinfo/kusu-users
_______________________________________________
Kusu-users mailing list
[email protected]
http://mail.osgdc.org/mailman/listinfo/kusu-users

Reply via email to