bash: /dev/null: Permission denied

Clark Williams clark.williams at gmail.com
Fri Jun 15 13:59:30 UTC 2012


Allen,

Can you do an 'ls -l /dev/null' in the specfile just before you invoke
the configure script?

Clark

On Mon, 11 Jun 2012 21:36:32 -0500
Allen Wayne Best_ esq <avoid.unsolicited at gmail.com> wrote:

> Hello;
> 
> Oops! Please forgive the fumble fingered prior post!
> 
> I am having trouble building atlas and atlas; other's (ie, gcc-4.7) finish with 
> created rpms.
> 
> I am getting a *lot* of "bash: /dev/null: Permission denied" messages. Here 
> are the results of invoking mock --shell and checking permissions for 
> /dev/null, as well as a copy of the mock cfg file being used.
> 
> $ mock --shell
> INFO: mock.py version 1.1.18 starting...
> State Changed: init plugins
> INFO: selinux disabled
> State Changed: start
> State Changed: lock buildroot
> State Changed: shell
> bash: /dev/null: Permission denied
> bash: /dev/null: Permission denied
> bash: /dev/null: Permission denied
> bash: /dev/null: Permission denied
> bash: /dev/null: Permission denied
> bash: /dev/null: Permission denied
> bash: /dev/null: Permission denied
> bash: /dev/null: Permission denied
> bash: /dev/null: Permission denied
> 
> <mock-chroot>$ ls -al /dev/null
> crw-rw-rw- 1 root root 1, 3 Jun 11 21:09 /dev/null
> 
> <mock-chroot>$ exit
> 
> $ cat /etc/mock/fedora-14-x86_64.cfg
> config_opts['root'] = 'fedora-14-x86_64'
> config_opts['target_arch'] = 'x86_64'
> config_opts['legal_host_arches'] = ('x86_64')
> config_opts['chroot_setup_cmd'] = 'groupinstall buildsys-build'
> config_opts['dist'] = 'fc14'  # only useful for --resultdir variable subst
> config_opts['resultdir'] = '/home/best/songs/pub/gnu-tools/log/'
> # config_opts['basedir'] = '/dev/shm/'
> config_opts['basedir']='/home/best/songs/pub/gnu-tools/mock'
> config_opts['chrootuser'] = 'mockbuild'
> config_opts['chrootgroup'] = 'mockbuild'
> config_opts['chrootuid'] = os.geteuid()
> config_opts['chrootgid'] = os.getegid()
> config_opts['cleanup_on_success'] = True
> config_opts['cleanup_on_failure'] = False
> 
> config_opts['yum.conf'] = """
> [main]
> cachedir=/var/cache/yum
> debuglevel=1
> reposdir=/dev/null
> logfile=/home/best/songs/pub/log
> retries=20
> obsoletes=1
> gpgcheck=0
> assumeyes=1
> syslog_ident=mock
> syslog_device=
> 
> [Additional Packages Arches] 
> kernel = i686
> 
> # repos
> 
> [fedora]
> name=fedora
> mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-14&arch=x86_64
> failovermethod=priority
> 
> [updates-released]
> name=updates
> mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-
> f14&arch=x86_64
> failovermethod=priority
> 
> [local]
> name=local
> baseurl=http://kojipkgs.fedoraproject.org/repos/dist-f14-build/latest/x86_64/
> cost=2000
> enabled=0
> 
> [fedora-debug]
> name=fedora-debug
> mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-
> debug-14&arch=x86_64
> failovermethod=priority
> enabled=0
> 
> [updates-debug]
> name=updates-debug
> mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-
> debug-f14&arch=x86_64
> failovermethod=priority
> enabled=0
> """
> 
> # config_opts['macros'] = """
> # %_topdir /builddir/build
> # %_rpmfilename  %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm
> 
> # %vendor    Fedora
> # %distribution Fedora-14
> 
> # please change this to reflect the Distro Tree and Repo hosting packages!
> 
> # %redhat         14
> # %rhel           6
> 
> # %_smp_mflags   -j1
> # """
> 
> $ mock --verbose --installdeps --resultdir=/home/best/songs/pub/tool-rpms -r 
> fedora-14-x86_64 --rebuild atlascpp-0.6.2-3.fc17.src.rpm
> 
> # the final lines output from the above mock command are:
> 
> DEBUG: + export FFLAGS
> DEBUG: + ./configure --build=x86_64-unknown-linux-gnu --host=x86_64-unknown-
> linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-
> prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --
> datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --
> libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --
> mandir=/usr/share/man --infodir=/usr/share/info
> DEBUG: ./configure: line 25: /dev/null: Permission denied
> DEBUG: ./configure: line 72: /dev/null: Permission denied
> DEBUG: ./configure: line 53: /dev/null: Permission denied
> DEBUG: ./configure: line 81: /dev/null: Permission denied
> DEBUG: ./configure: line 88: /dev/null: Permission denied
> DEBUG: ./configure: line 123: /dev/null: Permission denied
> DEBUG: ./configure: line 123: /dev/null: Permission denied
> DEBUG: ./configure: line 123: /dev/null: Permission denied
> DEBUG: ./configure: line 137: /dev/null: Permission denied
> DEBUG: ./configure: line 148: /dev/null: Permission denied
> DEBUG: ./configure: line 170: /dev/null: Permission denied
> DEBUG: ./configure: line 383: /dev/null: Permission denied
> DEBUG: ./configure: line 257: /dev/null: Permission denied
> DEBUG: ./configure: line 257: /dev/null: Permission denied
> DEBUG: ./configure: line 257: /dev/null: Permission denied
> DEBUG: ./configure: line 257: /dev/null: Permission denied
> DEBUG: ./configure: line 257: /dev/null: Permission denied
> DEBUG: This script requires a shell more modern than all the
> DEBUG: shells that I found on your system. Please install a
> DEBUG: modern shell, or manually run the script under such a
> DEBUG: shell if you do have one.
> DEBUG: RPM build errors:
> DEBUG: error: Bad exit status from /var/tmp/rpm-tmp.VAQDQL (%build)
> DEBUG:     Bad exit status from /var/tmp/rpm-tmp.VAQDQL (%build)
> DEBUG: Child returncode was: 1
> INFO: EXCEPTION: Command failed. See logs for output.
>  # ['bash', '--login', '-c', 'rpmbuild -bb --target x86_64 --nodeps 
> builddir/build/SPECS/atlascpp.spec']
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 
> 70, in trace
>     result = func(*args, **kw)
>   File "/usr/lib/python2.7/site-packages/mockbuild/util.py", line 352, in do
>     raise mockbuild.exception.Error, ("Command failed. See logs for output.\n 
> # %s" % (command,), child.returncode)
> Error: Command failed. See logs for output.
>  # ['bash', '--login', '-c', 'rpmbuild -bb --target x86_64 --nodeps 
> builddir/build/SPECS/atlascpp.spec']
> INFO: LEAVE do --> EXCEPTION RAISED
> 
> DEBUG: Executing command: umount -n -l /home/best/songs/pub/gnu-
> tools/mock/fedora-14-x86_64/root/dev/shm
> DEBUG: Child returncode was: 0
> DEBUG: Executing command: umount -n -l /home/best/songs/pub/gnu-
> tools/mock/fedora-14-x86_64/root/dev/pts
> DEBUG: Child returncode was: 0
> DEBUG: Executing command: umount -n /home/best/songs/pub/gnu-
> tools/mock/fedora-14-x86_64/root/tmp/ccache
> DEBUG: Child returncode was: 0
> DEBUG: Executing command: umount -n /home/best/songs/pub/gnu-
> tools/mock/fedora-14-x86_64/root/var/cache/yum
> DEBUG: Child returncode was: 0
> DEBUG: Executing command: umount -n -l /home/best/songs/pub/gnu-
> tools/mock/fedora-14-x86_64/root/sys
> DEBUG: Child returncode was: 0
> DEBUG: Executing command: umount -n -l /home/best/songs/pub/gnu-
> tools/mock/fedora-14-x86_64/root/proc
> DEBUG: Child returncode was: 0
> ERROR: Exception(atlascpp-0.6.2-3.fc17.src.rpm) Config(fedora-14-x86_64) 0 
> minutes 57 seconds
> INFO: Results and/or logs in: /home/best/songs/pub/tool-rpms
> ERROR: Command failed. See logs for output.
>  # ['bash', '--login', '-c', 'rpmbuild -bb --target x86_64 --nodeps 
> builddir/build/SPECS/atlascpp.spec']
> DEBUG: kill orphans
> 
> Any ideas?
> 
> Regards,
> Allen Wayne Best
> 
> 
> --
> buildsys mailing list
> buildsys at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/buildsys
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://lists.fedoraproject.org/pipermail/buildsys/attachments/20120615/35269027/attachment.sig>


More information about the buildsys mailing list