Make-rpms fails to build nethserver-webtop5

v7

(Dan) #1

I’ve had make-rpms fail on me with some other packages, but not with a nethserver-* package so far. I’ve set up a dev environment on a Neth box following the wiki’s instructions, and cloned the git repo for nethserver-webtop5. But when I do make-rpms nethserver-webtop5.spec, this is what I get:

$ make-rpms nethserver-webtop5.spec 
make-rpms [INFO] git describe: 1.2.9 12 g5268254
prep-sources [INFO] source0 git archive: nethserver-webtop5-1.2.9.tar.gz
INFO: mock.py version 1.4.13 starting (python version = 2.7.5)...
Start: init plugins
INFO: selinux disabled
Finish: init plugins
Start: run
INFO: Start(./.tmpSKpsfd3.spec)  Config(nethserver-7-x86_64)
Start: clean chroot
Finish: clean chroot
Start: chroot init
INFO: calling preinit hooks
INFO: enabled root cache
Start: unpacking root cache
Finish: unpacking root cache
INFO: enabled yum cache
Start: cleaning yum metadata
Finish: cleaning yum metadata
INFO: enabled HW Info plugin
Mock Version: 1.4.13
INFO: Mock Version: 1.4.13
Start: yum update
Failed to set locale, defaulting to C
Finish: yum update
Finish: chroot init
Start: buildsrpm
Start: rpmbuild -bs
Failed to create directory /var/lib/mock/nethserver-7-x86_64/root//sys/fs/selinux: Read-only file system
Failed to create directory /var/lib/mock/nethserver-7-x86_64/root//sys/fs/selinux: Read-only file system
Building target platforms: x86_64
Building for target x86_64


RPM build errors:
error: Bad file: /builddir/build/SOURCES/jcharset-2.0.jar: No such file or directory
    Bad file: /builddir/build/SOURCES/jcharset-2.0.jar: No such file or directory
Finish: rpmbuild -bs
Finish: buildsrpm
ERROR: Exception(./.tmpSKpsfd3.spec) Config(nethserver-7-x86_64) 0 minutes 14 seconds
INFO: Results and/or logs in: .
INFO: Cleaning up build root ('cleanup_on_failure=True')
Start: clean chroot
Traceback (most recent call last):
  File "/usr/libexec/mock/mock", line 977, in <module>
    main()
  File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 96, in trace
    result = func(*args, **kw)
  File "/usr/libexec/mock/mock", line 766, in main
    run_command(options, args, config_opts, commands, buildroot, state)
  File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 96, in trace
    result = func(*args, **kw)
  File "/usr/libexec/mock/mock", line 864, in run_command
    do_buildsrpm(config_opts, commands, buildroot, options, args)
  File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 96, in trace
    result = func(*args, **kw)
  File "/usr/libexec/mock/mock", line 559, in do_buildsrpm
    cmd=cmd, post=None, clean=clean)
  File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 96, in trace
    result = func(*args, **kw)
  File "/usr/libexec/mock/mock", line 502, in rebuild_generic
    commands.clean()
  File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 96, in trace
    result = func(*args, **kw)
  File "/usr/lib/python2.7/site-packages/mockbuild/backend.py", line 85, in clean
    self.buildroot.delete()
  File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 96, in trace
    result = func(*args, **kw)
  File "/usr/lib/python2.7/site-packages/mockbuild/buildroot.py", line 615, in delete
    util.rmtree(self.basedir, selinux=self.selinux)
  File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 96, in trace
    result = func(*args, **kw)
  File "/usr/lib/python2.7/site-packages/mockbuild/util.py", line 158, in rmtree
    rmtree(fullname, selinux=selinux, exclude=exclude)
  File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 96, in trace
    result = func(*args, **kw)
  File "/usr/lib/python2.7/site-packages/mockbuild/util.py", line 158, in rmtree
    rmtree(fullname, selinux=selinux, exclude=exclude)
  File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 96, in trace
    result = func(*args, **kw)
  File "/usr/lib/python2.7/site-packages/mockbuild/util.py", line 158, in rmtree
    rmtree(fullname, selinux=selinux, exclude=exclude)
  File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 96, in trace
    result = func(*args, **kw)
  File "/usr/lib/python2.7/site-packages/mockbuild/util.py", line 158, in rmtree
    rmtree(fullname, selinux=selinux, exclude=exclude)
  File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 96, in trace
    result = func(*args, **kw)
  File "/usr/lib/python2.7/site-packages/mockbuild/util.py", line 148, in rmtree
    names = os.listdir(path)
OSError: [Errno 13] Permission denied: '/var/lib/mock/nethserver-7-x86_64/root/var/cache/ldconfig'
Cleaning up temporary files..
removed './.tmpSKpsfd3.spec'
removed './.tmp6HNkTFe.gitlog'

I’m clueless on this stuff–any pointers?


(Mark Verlinde) #2

It looks like that in this particular case (nethserver-webtop5) you need to run the prep-sources bash-script included in the nethserver-webtop5 git-repo before building it.


(Dan) #3

That seems to have done it–thanks.