Pathname-based buildreqs not working?

Michael E Brown Michael_E_Brown at dell.com
Tue Dec 11 19:45:31 UTC 2007


On Tue, Dec 11, 2007 at 02:32:15PM -0500, seth vidal wrote:
> 
> On Tue, 2007-12-11 at 13:05 -0600, Michael E Brown wrote:
> > On Tue, Dec 11, 2007 at 06:58:12PM +0000, Paul Howarth wrote:
> > > seth vidal wrote:
> > > >On Tue, 2007-12-11 at 18:24 +0000, Paul Howarth wrote:
> > > >>Michael E Brown wrote:
> > > >>>Paul,
> > > >>>    First, you enabled yum debugging. How did you do that, in the yum
> > > >>>config file? This may throw off mock because atm mock parses stdout
> > > >>>from yum. (this isnt the case here, though, just pointing it out, also
> > > >>>want to know how you did it for my own debugging purposes later.
> > > >>debuglevel=10 in the yum.conf part of the mock config.
> > > >>
> > > >>>    Next:
> > > >>>
> > > >>>$ yum resolvedep ccache mysql-devel pcre-devel groff gd-devel
> > > >>>net-snmp-devel pkgconfig openssl-devel automake lm_sensors-devel
> > > >>>rrdtool-devel >= 1.2.0 libtool /usr/include/tcpd.h /usr/include/pcap.h
> > > >>>autoconf gdbm-devel 
> > > >>>No Package Found for 1.2.0
> > > >>Perhaps this one is a quoting issue; it should be looking for 
> > > >>"rrdtool-devel >= 1.2.0" rather than "rrdtool-devel" ">=" "1.2.0"?
> > > >>
> > > >>>No Package Found for /usr/include/tcpd.h
> > > >>>No Package Found for /usr/include/pcap.h
> > > >>These are the ones I've been having trouble with.
> > > >>
> > > >>>I get the exact same error here on my F-8 box that you are getting. Yum
> > > >>>problem?
> > > >>>
> > > >>>Need some input from yum folks.
> > > >>Ah good, it's not just me then.
> > > >>
> > > >
> > > >yum resolvedep /usr/include/tcpd.h works for me on f8 with 3.2.8 and
> > > >3.2.7 - confirmed with other folks on irc, too.
> > > 
> > > It works for me too from the command line, but not from within mock.
> > 
> > But for me it was failing from the cmdline... :)
> > 
> > It fails for me on F7 and F8, yum 3.2.7 and 3.2.8:
> > 
> > $ yum resolvedep /usr/include/tcpd.h
> > Importing additional filelist information
> > No Package Found for /usr/include/tcpd.h
> > 
> > [michael_e_brown at localhost mock]$ cat /etc/issue
> > Fedora release 8 (Werewolf)
> > Kernel \r on an \m
> > 
> > $ rpm -q yum
> > yum-3.2.8-1.fc8.noarch
> > 
> > 
> 
> are you getting funny mirrors or some other weirdness?
> 
> can you post me a copy of your filelists.sqlite?

I think I have found the root cause of the problem.

Mock runs the 'yum resolvedeps' as the calling (unprivileged) user. This
means that yum cannot download the filelists.sqlite it needs to resolve
the dep.

It was part of a general strategy of trying to run everything that had
user-input components in an unprivileged env.

I can remove the privilege drop around this call and that should fix it.
--
Michael




More information about the Fedora-buildsys-list mailing list