DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 28th January 2017
yezster yezster is offline
Port Guard
 
Join Date: Jan 2014
Posts: 17
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
  #2   (View Single Post)  
Old 28th January 2017
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

Welcome back!

The first error message contains a clue:
Code:
ERROR: The executable /tmp/ports/obj/firefox-51.0/build-amd64/_virtualenv/bin/python2.7 could not be run: [Errno 13] Permission denied
Part of this application's build includes executing code from within $WRKOBJDIR, which you have assigned to /tmp.

I'll guess that /tmp has a mount option "noexec" -- or perhaps does not have the "wxallowed" option, which may be needed for python.
Reply With Quote
  #3   (View Single Post)  
Old 29th January 2017
yezster yezster is offline
Port Guard
 
Join Date: Jan 2014
Posts: 17
Default

Hi again sir, yes I did assigned my $WRKOBJDIR to /tmp
I'll look into this, thanks much for the suggestion I will try doing some work-arounds and post again my findings, I also posted my current fstab as of the moment.

--/etc/fstab---
Code:
638caa29da601110.b none swap sw
638caa29da601110.a / ffs rw 1 1
638caa29da601110.l /home ffs rw,nodev,nosuid 1 2
638caa29da601110.d /tmp ffs rw,nodev,nosuid 1 2
638caa29da601110.f /usr ffs rw,nodev 1 2
638caa29da601110.g /usr/X11R6 ffs rw,nodev 1 2
638caa29da601110.h /usr/local ffs rw,wxallowed,nodev 1 2
638caa29da601110.k /usr/obj ffs rw,nodev,nosuid 1 2
638caa29da601110.j /usr/src ffs rw,nodev,nosuid 1 2
638caa29da601110.e /var ffs rw,nodev,nosuid 1 2

Last edited by ocicat; 29th January 2017 at 04:00 AM. Reason: Please use [code] & [/code] tags when posting file contents.
Reply With Quote
  #4   (View Single Post)  
Old 29th January 2017
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

The "permissions" error could be a W^X issue. If so, you could add wxallowed to /tmp. A check of /var/log/messages may be helpful, as W^X violations are recorded there.

Another option would be to reach out to Landry Breuil, who maintains the application.
Reply With Quote
  #5   (View Single Post)  
Old 29th January 2017
yezster yezster is offline
Port Guard
 
Join Date: Jan 2014
Posts: 17
Default

Ok Sir, I would try that... And I will be posting again for updates. Thanks so much.
Reply With Quote
  #6   (View Single Post)  
Old 29th January 2017
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

And, now that I think of it, you have nosuid set, which could also be a "permissions" related issue for whatever this script needs to do.
Reply With Quote
  #7   (View Single Post)  
Old 29th January 2017
yezster yezster is offline
Port Guard
 
Join Date: Jan 2014
Posts: 17
Default

I did some experimenting... I think setting /tmp with the wxallowed in the /etc/fstab fixes the problem, and compilation was able to proceed... Thanks much...

Sidetrack:
I never realized that compiling mozilla firefox from ports requires a very large $WRKOBJDIR, my /tmp folder quickly run out of space...

Thank you very much. I hope this will serve as a learning experience for everyone.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mozilla patches Firefox and Thunderbird J65nko News 0 29th April 2011 06:54 PM
Mozilla delays Firefox 3.6.4 J65nko News 0 2nd June 2010 08:08 PM
UPDATE: mozilla-firefox-2.0.0.16 BSDfan666 OpenBSD Packages and Ports 0 17th July 2008 07:45 PM
Mozilla Firefox 2.0.0.14 update.. BSDfan666 OpenBSD Packages and Ports 1 19th May 2008 06:11 PM
Building Mozilla Firefox 3 Beta 5 on FreeBSD vi5in FreeBSD General 6 12th May 2008 11:25 PM


All times are GMT. The time now is 04:48 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick