Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#49538 closed defect (invalid)

nodejs @ 4.2.1_0+ssl: fails to build

Reported by: breun (Nils Breunese) Owned by: ci42
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc:
Port: nodejs

Description

See attached log file.

Attachments (1)

main.log (101.1 KB) - added by breun (Nils Breunese) 9 years ago.

Download all attachments as: .zip

Change History (7)

Changed 9 years ago by breun (Nils Breunese)

Attachment: main.log added

comment:1 Changed 9 years ago by breun (Nils Breunese)

It seems the port expects Python 2.7 to be present, but it isn't installed on my system and apparently it's not declared as a dependency. (I do have Python 3.4 from MacPorts installed.)

comment:2 in reply to:  1 Changed 9 years ago by ci42

Owner: changed from macports-tickets@… to ciserlohn@…

Replying to nils@…:

It seems the port expects Python 2.7 to be present, but it isn't installed on my system and apparently it's not declared as a dependency. (I do have Python 3.4 from MacPorts installed.)

The port expects python2.x to be installed and the dependencies are declared in the python2X variants. If not variant is selected the port defaults to python27.

Please provide the output of:

$ port installed nodejs
$ port installed python25
$ port installed python26
$ port installed python27

What was the exact command you used to install nodejs?

In the future please don't forget to Cc the port maintainer (port info --maintainer <portname>).

comment:3 Changed 9 years ago by breun (Nils Breunese)

$ port installed nodejs
The following ports are currently installed:
  nodejs @0.12.7_0+ssl (active)
$ port installed python25
None of the specified ports are installed.
$ port installed python26
None of the specified ports are installed.
$ port installed python27
None of the specified ports are installed.

I ran the following command:

$ sudo port upgrade outdated

I can reproduce this issue by trying to upgrade nodejs specifically:

$ sudo port upgrade nodejs
Password:
--->  Computing dependencies for nodejs
--->  Configuring nodejs
Error: org.macports.configure for port nodejs returned: configure failure: command execution failed
Please see the log file for port nodejs for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_nodejs/nodejs/main.log
Error: Unable to upgrade port: 1
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets

comment:4 in reply to:  3 Changed 9 years ago by ci42

Resolution: invalid
Status: newclosed
Summary: nodejs-4.2.1_0+ssl fails to buildnodejs @ 4.2.1_0+ssl: fails to build

Replying to nils@…:

$ port installed nodejs
The following ports are currently installed:
  nodejs @0.12.7_0+ssl (active)

Don't know how and why you installed nodejs without any python variant in the first place. This could only have worked if you actively deselected all python variants while installing nodejs and simultaneously had python27 from MacPorts installed.

Anyway, just installing nodejs with a python variant should fix your problem:

$ sudo port install nodejs +ssl +python27

comment:5 Changed 9 years ago by breun (Nils Breunese)

I'm pretty sure I have never actively deselected a variant for any package. Maybe that variant didn't exist at the time I first installed nodejs?

That install command wouldn't work right away, but after cleaning nodejs it worked:

$ sudo port install nodejs +ssl +python27
Error: Requested variants "+python27+ssl" do not match those the build was started with: "+ssl".
Error: Please use the same variants again, or run 'port clean nodejs' first to remove the existing partially completed build.
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port nodejs failed
$ sudo port clean nodejs
--->  Cleaning nodes
$ sudo port install nodejs +ssl +python27
--->  Computing dependencies for nodes
(...)

I think what may have happened is that I uninstalled the python27 package at some point (since I hadn't installed it willingly) and nothing complained, so I figured it would be fine.

comment:6 in reply to:  5 Changed 9 years ago by ci42

Replying to nils@…:

I'm pretty sure I have never actively deselected a variant for any package. Maybe that variant didn't exist at the time I first installed nodejs?

The variant exists since 2011-04-05 (nodejs version 0.4.5).

I think what may have happened is that I uninstalled the python27 package at some point (since I hadn't installed it willingly) and nothing complained, so I figured it would be fine.

The python27 port must have been installed when you installed nodejs @0.12.7_0+ssl.

Anyway, I'm glad you've got it working.

Note: See TracTickets for help on using tickets.