[Top][All Lists]

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

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

From: Peter Barada
Subject: Re: [Ltib] Problem using buildbot and --preconfig
Date: Sun, 14 Nov 2010 09:06:21 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20101027 Thunderbird/3.0.10

On 11/13/2010 01:43 PM, Stuart Hughes wrote:
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

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
Indeed it did; buildbot had a bizarre umask default for slaves; adding "--umask=022" on slave creation fixed it. Thanks!
* 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
/rootfs --dbpath /var/lib/rpm -qa --queryformat '%{name} ' at ./ltib
line 2025.

Any suggestions on how to fix this?

Peter Barada

reply via email to

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