FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Development

 
 
LinkBack Thread Tools
 
Old 04-12-2008, 09:37 AM
"Pavel Shevchuk"
 
Default Help with a code snippet that fails in mock buildroots

It's virtual device. AFAIK mock doesn't bind /dev in chroot


On 4/12/08, Deji Akingunola <dakingun@gmail.com> wrote:
> On Fri, Apr 11, 2008 at 10:17 PM, Lennart Poettering
> <mzerqung@0pointer.de> wrote:
> > On Fri, 11.04.08 22:07, Deji Akingunola (dakingun@gmail.com) wrote:
> >
> > > Hi all,
> > >
> > > Can someone please explain (and possibly provide a solution) to me why
> > > the code below is failing in mock buildroot. It is run to check if the
> > > 'shm_open' function works when configuring latest mpich2 package, and
> > > its result is used to create a definition that's used later when
> > > compiling the package. The code runs fine (and the package builds fine
> > > too) on my rawhide system.
> > > Thanks.
> >
> > Is /dev/shm/ available in the chroot env?
>
> I have no idea; I ran 'rpm -q --whatprovides /dev/shm' on my system
> and it returned 'file /dev/shm is not owned by any package', I wonder
> how it get created. Thanks for your response.
>
>
> Deji
>
>
> > shm_open() is basically the
> > same as open(), however, it prepends /dev/shm to the file name. If
> > that dir is not writable (should be mounted as tmpfs) shm_open() fails,
> >
> > Lennart
> >
> > --
> > Lennart Poettering Red Hat, Inc.
> > lennart [at] poettering [dot] net ICQ# 11060553
> > http://0pointer.net/lennart/ GnuPG 0x1A015CC4
> >
> > --
> > fedora-devel-list mailing list
> > fedora-devel-list@redhat.com
> > https://www.redhat.com/mailman/listinfo/fedora-devel-list
> >
>
> --
> fedora-devel-list mailing list
> fedora-devel-list@redhat.com
> https://www.redhat.com/mailman/listinfo/fedora-devel-list
>


--
http://scwlab.com

--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 
Old 04-14-2008, 04:09 PM
Clark Williams
 
Default Help with a code snippet that fails in mock buildroots

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Lennart Poettering wrote:
> On Fri, 11.04.08 22:07, Deji Akingunola (dakingun@gmail.com) wrote:
>
>> Hi all,
>>
>> Can someone please explain (and possibly provide a solution) to me why
>> the code below is failing in mock buildroot. It is run to check if the
>> 'shm_open' function works when configuring latest mpich2 package, and
>> its result is used to create a definition that's used later when
>> compiling the package. The code runs fine (and the package builds fine
>> too) on my rawhide system.
>> Thanks.
>
> Is /dev/shm/ available in the chroot env? shm_open() is basically the
> same as open(), however, it prepends /dev/shm to the file name. If
> that dir is not writable (should be mounted as tmpfs) shm_open() fails,
>
> Lennart
>

It used to be there, but it may have gotten dropped in the massive code reshuffle
that mock went through in the past few months. The code to make the /dev/pts and
/dev/shm dirs is still there as well as the code to mount/umount these devices, but I
don't actually see them when I run a mock --shell.

I'll dig into it a bit more to see if we have a regression.

Clark
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkgDgbcACgkQHyuj/+TTEp276QCfUQG66x6NocPA78Nps44U4UQ/
LMwAn2GFv1d5yiWkQP7Flg+O0R2qD70E
=oraS
-----END PGP SIGNATURE-----

--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 

Thread Tools




All times are GMT. The time now is 06:04 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org