View Single Post
  #1   (View Single Post)  
Old 28th January 2017
yezster yezster is offline
New User
 
Join Date: Jan 2014
Posts: 8
Default Beginner's Error in building Mozilla-firefox from ports.

Greetings all,

I have been using OpenBSD for quite some time now for the sole purpose of learning Unix operating system, previously I was using the 6.0 -Stable branch, after experimenting I decided to go -current branch. In the stable branch I'm able to compile openbsd from source and able to fetch and compile packages from ports. Now in the current branch I encountered these weird errors in ports. After I updated all my /usr/src, /usr/xenocara and /usr/ports via cvs, compiled my kernel, userland, xenocara from the current source, I was hoping to update my mozilla firefox 50.1.0 to mozilla firefox 51.0 using ports and this error poped up. I'm stuck here don't know what to do next. (Although I was able to update mozilla firefox thru pkg_add -u firefox, but I'm curious as to how to fix this error and be able to get this update done on ports rather than thru pkg_add -u.)

Thank you very much.


--- My /etc/mk.conf file---
Code:
SUDO=/usr/bin/doas
WRKOBJDIR=/tmp/ports/obj
DISTDIR=/home/yez/foo/build/distfiles
PACKAGE_REPOSITORY=/usr/ports/packages
--- My Error ---
Code:
$ doas make update
... --->>> Lots of things done here... <<<--- ...
===>  Configuring for firefox-51.0
Creating Python environment
New python executable in /tmp/ports/obj/firefox-51.0/build-amd64/_virtualenv/bin/python2.7
Not overwriting existing python script /tmp/ports/obj/firefox-51.0/build-amd64/_virtualenv/bin/python (you must use /tmp/ports/obj/firefox-51.0/build-amd64/_virtualenv/bin/python2.7)
ERROR: The executable /tmp/ports/obj/firefox-51.0/build-amd64/_virtualenv/bin/python2.7 could not be run: [Errno 13] Permission denied
Traceback (most recent call last):
  File "/tmp/ports/obj/firefox-51.0/firefox-51.0/configure.py", line 107, in <module>
    sys.exit(main(sys.argv))
  File "/tmp/ports/obj/firefox-51.0/firefox-51.0/configure.py", line 26, in main
    sandbox.run(os.path.join(os.path.dirname(__file__), 'moz.configure'))
  File "/tmp/ports/obj/firefox-51.0/firefox-51.0/python/mozbuild/mozbuild/configure/__init__.py", line 231, in run
    self.include_file(path)
  File "/tmp/ports/obj/firefox-51.0/firefox-51.0/python/mozbuild/mozbuild/configure/__init__.py", line 222, in include_file
    exec_(code, self)
  File "/tmp/ports/obj/firefox-51.0/firefox-51.0/python/mozbuild/mozbuild/util.py", line 59, in exec_
    exec(object, globals, locals)
  File "/tmp/ports/obj/firefox-51.0/firefox-51.0/moz.configure", line 7, in <module>
    include('build/moz.configure/init.configure')
  File "/tmp/ports/obj/firefox-51.0/firefox-51.0/python/mozbuild/mozbuild/configure/__init__.py", line 477, in include_impl
    self.include_file(what)
  File "/tmp/ports/obj/firefox-51.0/firefox-51.0/python/mozbuild/mozbuild/configure/__init__.py", line 222, in include_file
    exec_(code, self)
  File "/tmp/ports/obj/firefox-51.0/firefox-51.0/python/mozbuild/mozbuild/util.py", line 59, in exec_
    exec(object, globals, locals)
  File "/tmp/ports/obj/firefox-51.0/firefox-51.0/build/moz.configure/init.configure", line 136, in <module>
    @imports('distutils.sysconfig')
  File "/tmp/ports/obj/firefox-51.0/firefox-51.0/python/mozbuild/mozbuild/configure/__init__.py", line 458, in decorator
    self._value_for(dummy)
  File "/tmp/ports/obj/firefox-51.0/firefox-51.0/python/mozbuild/mozbuild/configure/__init__.py", line 302, in _value_for
    return self._value_for_depends(obj)
  File "/tmp/ports/obj/firefox-51.0/firefox-51.0/python/mozbuild/mozbuild/util.py", line 925, in method_call
    cache[args] = self.func(instance, *args)
  File "/tmp/ports/obj/firefox-51.0/firefox-51.0/python/mozbuild/mozbuild/configure/__init__.py", line 329, in _value_for_depends
    return func(*resolved_args)
  File "/tmp/ports/obj/firefox-51.0/firefox-51.0/python/mozbuild/mozbuild/configure/__init__.py", line 773, in wrapped
    return new_func(*args, **kwargs)
  File "/tmp/ports/obj/firefox-51.0/firefox-51.0/build/moz.configure/init.configure", line 183, in virtualenv_python
    manager.build(python)
  File "/tmp/ports/obj/firefox-51.0/firefox-51.0/python/mozbuild/mozbuild/virtualenv.py", line 439, in build
    self.create(python)
  File "/tmp/ports/obj/firefox-51.0/firefox-51.0/python/mozbuild/mozbuild/virtualenv.py", line 203, in create
    'Failed to create virtualenv: %s' % self.virtualenv_root)
Exception: Failed to create virtualenv: /tmp/ports/obj/firefox-51.0/build-amd64/_virtualenv
*** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2664 '/tmp/ports/obj/firefox-51.0/build-amd64/.configure_done')
*** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:1884 '/usr/ports/packages/amd64/all/firefox-51.0.tgz')
*** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2409 '_internal-package')
*** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:1910 '/usr/ports/update/amd64/firefox-51.0')
*** Error 1 in /usr/ports/www/mozilla-firefox (/usr/ports/infrastructure/mk/bsd.port.mk:2389 'update')

$

Last edited by ocicat; 28th January 2017 at 04:25 PM. Reason: Please use [code] & [/code] tags when posting command output.
Reply With Quote