|
OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD. |
|
Thread Tools | Display Modes |
|
|
|||
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 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. |
|
|||
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. |
|
||||
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. |
|
|||
Ok Sir, I would try that... And I will be posting again for updates. Thanks so much.
|
|
|||
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. |
Thread Tools | |
Display Modes | |
|
|
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 |