ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ltib] Problem using buildbot and --preconfig


From: Stuart Hughes
Subject: Re: [Ltib] Problem using buildbot and --preconfig
Date: Sat, 13 Nov 2010 18:43:58 +0000
User-agent: Thunderbird 2.0.0.16 (X11/20080707)

Hi Peter,

This is an strange one because it's clearly a permissions problem,
however normally for a query I would not expect you to need any root
permissions.

I just ran this (as my user) and no privilege was needed:

$ /opt/ltib/usr/bin/rpm --root `pwd`/rootfs --dbpath /var/lib/rpm -qa
--queryformat '%{name} '
base_libs dev zlib lzo tpt2000 lighttpd gmp .....

If I look at the permissions on that directory, I see this:

 ls -la rootfs/var/lib/rpm/
total 2588
drwxr-xr-x 2 root root    4096 2010-11-13 18:34 ./
drwxr-sr-x 4 root root    4096 2010-08-17 19:15 ../
-rw-r--r-- 1 root root  589824 2010-11-13 18:34 Basenames
-rw-r--r-- 1 root root   12288 2010-11-13 18:34 Conflictname
-rw-r--r-- 1 root root   94208 2010-11-13 18:34 Dirnames
-rw-r--r-- 1 root root  303104 2010-11-13 18:34 Filemd5s
-rw-r--r-- 1 root root   12288 2010-11-13 18:34 Group
-rw-r--r-- 1 root root    8192 2010-11-13 18:34 Installtid
-rw-r--r-- 1 root root   12288 2010-11-13 18:34 Name
-rw-r--r-- 1 root root 1712128 2010-11-13 18:34 Packages
-rw-r--r-- 1 root root   24576 2010-11-13 18:34 Providename
-rw-r--r-- 1 root root   12288 2010-11-13 18:34 Provideversion
-rw-r--r-- 1 root root   12288 2010-03-29 10:56 Pubkeys
-rw-r--r-- 1 root root   12288 2010-11-13 18:34 Requirename
-rw-r--r-- 1 root root   12288 2010-11-13 18:34 Requireversion
-rw-r--r-- 1 root root   12288 2010-11-13 18:34 Sha1header
-rw-r--r-- 1 root root   12288 2010-11-13 18:34 Sigmd5
-rw-r--r-- 1 root root   12288 2009-06-12 10:54 Triggername


So here's some ideas:

* You have some unexpected permissions in rootfs/var/lib/rpm

* Your auto-build environment has some kind of odd umask, or other
restricted user/environment

* Your rootfs area is NFS or something odd (a wild guess)

BTW: if you don't get anywhere, for a quick hack/test, you could put a
'sudo' at line 2022 to see if that changes behaviour.

Regards, Stuart



Peter Barada wrote:
> I'm trying to setup buildbot to build LTIB, and have the bot checkout
> LTIB then execute:
> 
> ./ltib -b --preconfig config/platform/omap3logic/defconfig
> 
> Where the omap3logic platform and checked in defconfig work fine for me
> on other hosts.  I don't believe hte problem is with buildbot, but the
> machine environment its trying to build in.  I've gotten through all the
> host tools construction w/o error.
> 
> The problem I'm running into is that rpm can't open the index files.  It
> goes through and creates .config, then:
> 
> Processing platform: Logic OMAP35x reference boards
> =====================================================
> using config/platform/omap3logic/.config
> error: cannot open Packages index using db3 - Permission denied (13)
> /opt/ltib/usr/bin/rpm --root
> /home/buildslave/BuildBot/ltib-20091102/full/build\
> /rootfs --dbpath /var/lib/rpm -qa --queryformat '%{name} ' at ./ltib
> line 2025.
> traceback:
>  main::remove_unselected_pkgs:2025
>   main::f_buildrpms:986
>    main:565
> 
> Any suggestions on how to fix this?
> 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]