+ Reply to Thread
Results 1 to 10 of 10

Thread: Kitops issue

  1. #1
    abhishek is offline Junior Member
    Join Date
    April 29th, 2008
    Posts
    12
    Downloads
    0
    Uploads
    0

    Question Kitops issue

    I have built a kit for libiodbc-3.52.5-1.i386.rpm with buildkit under /

    I am using 0.6_devel version of kusu.

    Following is the structure of my libiodbc directory under /
    ---------------------------------------------------------------
    [root@alexander205 libiodbc]# ll
    total 912
    drwxr-xr-x 3 root root 1024 Apr 30 07:54 artifacts
    -rw-r--r-- 1 root root 1499 Apr 30 09:19 build.kit
    drwxr-xr-x 2 root root 1024 Apr 30 07:42 docs
    -rw-r--r-- 1 root root 2397 Apr 30 07:56 kitinfo
    -rw-r--r-- 1 root root 917504 Apr 30 07:54 kit-libiodbc-0.1-0.x86.iso
    drwxr-xr-x 2 root root 1024 Apr 30 07:54 packages
    drwxr-xr-x 5 root root 1024 Apr 30 07:42 plugins
    drwxr-xr-x 2 root root 1024 Apr 30 07:45 sources
    drwxr-xr-x 3 root root 1024 Apr 30 07:54 tmp

    -------------------------------------------------------------------

    Now i am trying to add the kit using kitops. i get the following error

    No kits found. Nothing to do.

    I have tried the following combinations for kitops:

    ----------------------------------------------------------------

    [root@alexander205 /]# kitops -a -m /libiodbc/kit-libiodbc-0.1-0.x86.iso
    No kits found. Nothing to do.
    [root@alexander205 /]# kitops -a -m /libiodbc/
    No kits found. Nothing to do.
    [root@alexander205 ~]# kitops -a -m /libiodbc/kit-libiodbc-0.1-0.x86.iso --kitname=libiodbc --kitversion=1.0 --kitarch=x86
    No kits found. Nothing to do.
    [root@alexander205 ~]# kitops --add -m /libiodbc/kit-libiodbc-0.1-0.x86.iso
    No kits found. Nothing to do.

    --------------------------------------------------------------------------

    All combinations give the same error.

    Can someone please help.

  2. #2
    mikem's Avatar
    mikem is offline Project Moderator
    Join Date
    April 10th, 2008
    Posts
    22
    Blog Entries
    9
    Downloads
    0
    Uploads
    0

    Default

    Hello,

    You only need this command:

    Code:
    [root@alexander205 /]# kitops -a -m /libiodbc/kit-libiodbc-0.1-0.x86.iso
    
    Can you take a look inside the ISO? We are expecting a subdirectory which then contains a kit RPM. Something like this:

    Code:
    # mkdir /tmp/libiodbc
    # mount -o loop /libiodbc/kit-libiodbc-0.1-0.x86.iso /tmp/libiodbc
    # ls /tmp/libiodbc
    libiodbc
    # ls /tmp/libiodbc/libiodbc
    kit-libiodbc-0.1-0.x86.rpm
    [other RPMs]
    
    If the contents of /tmp/libiodbc are any different make sure mkisofs is installed correctly on the system building the kit.

  3. #3
    mikem's Avatar
    mikem is offline Project Moderator
    Join Date
    April 10th, 2008
    Posts
    22
    Blog Entries
    9
    Downloads
    0
    Uploads
    0

    Default

    Also you should have a look at /libiodbc/artifacts/packages/RPMS/x86 and make sure you have a kit RPM, a package that looks like kit-<name>-<version>-<release>.<arch>.rpm

  4. #4
    abhishek is offline Junior Member
    Join Date
    April 29th, 2008
    Posts
    12
    Downloads
    0
    Uploads
    0

    Default

    yes you are right.... i have the same directory structure as you have mentioned in your comment.

    My structure looks like below:

    ---------------------------------------------------------------------

    [root@alexander205 libiodbc]# pwd
    /libiodbc
    [root@alexander205 libiodbc]# ll tmp2/libiodbc/
    total 539
    -r--r--r-- 1 root root 1411 Apr 30 07:54 component-libiodbc-0.1-0.noarch.rpm
    -r--r--r-- 1 root root 1443 Apr 30 07:54 component-libiodbc-master-0.1-0.noarch.rpm
    -r--r--r-- 1 root root 1439 Apr 30 07:54 component-libiodbc-slave-0.1-0.noarch.rpm
    -r--r--r-- 1 root root 546005 Mar 18 15:26 libiodbc-3.52.5-1.i386.rpm
    -r--r--r-- 1 root root 992 Apr 30 07:54 TRANS.TBL
    [root@alexander205 libiodbc]#
    ------------------------------------------------------------------------

    the kit rpm is not present. only a basic rpm exists.

    how do i ensure that mkisofs is installed correctly?

  5. #5
    ltsai is offline Project Moderator
    Join Date
    March 4th, 2008
    Posts
    61
    Blog Entries
    3
    Downloads
    3
    Uploads
    0

    Default

    Hi

    for mksiofs, you can use yum to install it:
    yum install mkisofs

    -Liming

  6. #6
    mikem's Avatar
    mikem is offline Project Moderator
    Join Date
    April 10th, 2008
    Posts
    22
    Blog Entries
    9
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by abhishek View Post
    yes you are right.... i have the same directory structure as you have mentioned in your comment.

    My structure looks like below:

    [...]

    how do i ensure that mkisofs is installed correctly?
    If your ISO looks ok, mkisofs is doing installed properly and doing its job.

    Quote Originally Posted by abhishek View Post
    the kit rpm is not present. only a basic rpm exists.
    This is the problem. kitops looks for the kit RPM in order to determine information about the kit.

    Quote Originally Posted by mikem
    Also you should have a look at /libiodbc/artifacts/packages/RPMS/x86 and make sure you have a kit RPM, a package that looks like kit-<name>-<version>-<release>.<arch>.rpm

  7. #7
    abhishek is offline Junior Member
    Join Date
    April 29th, 2008
    Posts
    12
    Downloads
    0
    Uploads
    0

    Unhappy

    mkisofs is correctly installed on my system. I rechecked that.

    Quote:
    Originally Posted by mikem
    Also you should have a look at /libiodbc/artifacts/packages/RPMS/x86 and make sure you have a kit RPM, a package that looks like kit-<name>-<version>-<release>.<arch>.rpm


    Regarding the above quote i donot have any x86 directory under the path
    /libiodbc/artifacts/packages/RPMS/

    So now i have the rpm istalled correctly and directory doesnot exist. So can you suggest something....

  8. #8
    mikem's Avatar
    mikem is offline Project Moderator
    Join Date
    April 10th, 2008
    Posts
    22
    Blog Entries
    9
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by abhishek View Post
    mkisofs is correctly installed on my system. I rechecked that.

    Quote:
    Originally Posted by mikem
    Also you should have a look at /libiodbc/artifacts/packages/RPMS/x86 and make sure you have a kit RPM, a package that looks like kit-<name>-<version>-<release>.<arch>.rpm


    Regarding the above quote i donot have any x86 directory under the path
    /libiodbc/artifacts/packages/RPMS/

    So now i have the rpm istalled correctly and directory doesnot exist. So can you suggest something....
    Sorry, I meant /libiodbc/artifacts/packages/RPMS/i386 (or x86_64, depending on your arch).

    Basically, make sure that somewhere in the artifacts/ subdirectory tree there is a kit RPM. Without a kit RPM kitops will not be able to determine that this is a kit.

    If your kit RPM is not getting generated, make sure that your build.kit file is correct and that buildkit is not reporting any errors.

  9. #9
    abhishek is offline Junior Member
    Join Date
    April 29th, 2008
    Posts
    12
    Downloads
    0
    Uploads
    0

    Default

    Hello Mike,

    I will put down the entire sequence of operations that i am doing in a while so that it gives you a brief idea about the problem

  10. #10
    abhishek is offline Junior Member
    Join Date
    April 29th, 2008
    Posts
    12
    Downloads
    0
    Uploads
    0

    Smile

    You were right... i changed the parameter k.arch in build.kit file from 'x86' to 'i386' and the kit got generated successfully and i have addded it in the repository as well...

    Thanks a lot for your help.

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts