Opened 8 years ago

Closed 2 years ago

#52306 closed defect (fixed)

mozjs17 @17.0.0_4+universal: js17-config differs in i386 and x86_64 builds, cannot be merged

Reported by: MichalMisiaszek (Michal Misiaszek) Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc: juanrgar@…, mascguy (Christopher Nielsen)
Port: mozjs17

Description (last modified by larryv (Lawrence Velázquez))

The MacPorts are broken without a way to fix it.
....

--->  Computing dependencies for policykit
--->  Dependencies to be installed: mozjs17
--->  Fetching archive for mozjs17
--->  Attempting to fetch mozjs17-17.0.0_4+universal.darwin_14.i386-x86_64.tbz2 from https://packages.macports.org/mozjs17
--->  Attempting to fetch mozjs17-17.0.0_4+universal.darwin_14.i386-x86_64.tbz2 from http://sea.us.packages.macports.org/macports/packages/mozjs17
--->  Attempting to fetch mozjs17-17.0.0_4+universal.darwin_14.i386-x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/mozjs17
--->  Fetching distfiles for mozjs17
--->  Verifying checksums for mozjs17
--->  Extracting mozjs17
--->  Applying patches to mozjs17
--->  Configuring mozjs17
--->  Building mozjs17
--->  Staging mozjs17 into destroot
Error: org.macports.destroot for port mozjs17 returned: js17-config differs in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_mozjs17/mozjs17/work/destroot-i386//opt/local/bin and /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_mozjs17/mozjs17/work/destroot-x86_64//opt/local/bin and cannot be merged
Error: Failed to install mozjs17
Please see the log file for port mozjs17 for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_mozjs17/mozjs17/main.log
Error: The following dependencies were not installed: mozjs17
Error: Problem while installing policykit
Error rebuilding gconf
    while executing
"error "Error rebuilding $portname""
    (procedure "revupgrade_scanandrebuild" line 395)
    invoked from within
"revupgrade_scanandrebuild broken_port_counts $opts"
    (procedure "macports::revupgrade" line 5)
    invoked from within
"macports::revupgrade $opts"
    (procedure "action_revupgrade" line 2)
    invoked from within
"action_revupgrade $action $portlist $opts"
    (procedure "action_target" line 96)
    invoked from within
"$action_proc $action $portlist [array get global_options]"
    (procedure "process_cmd" line 103)
    invoked from within
"process_cmd $remaining_args"
    invoked from within
"if { [llength $remaining_args] > 0 } {

    # If there are remaining arguments, process those as a command
    set exit_status [process_cmd $remaining..."
    (file "/opt/local/bin/port" line 5268) 

Change History (12)

comment:1 Changed 8 years ago by larryv (Lawrence Velázquez)

Cc: juanrgar@… added
Description: modified (diff)
Owner: changed from macports-tickets@… to devans@…
Port: mosjz17 added
Priority: HighNormal
Summary: Cannot instal mozjs17mozjs17 @17.0.0_4+universal: js17-config differs in i386 and x86_64 builds, cannot be merged

In future tickets, please don’t set the “Priority” field.

comment:2 Changed 8 years ago by dbevans (David B. Evans)

Realistically I won't be able to look at this until next week some time so if anyone else would like to take a crack at it, feel free to accept the ticket and go for it. Thanks.

comment:3 Changed 8 years ago by MichalMisiaszek (Michal Misiaszek)

Hello, I understand you dont have time to fix it, can you t least propose workaround ? I am not able to use MacPorts at all. Thank you Michal

comment:4 Changed 8 years ago by MichalMisiaszek (Michal Misiaszek)

Hi, So 2 months passed and problem is not fixed still blocking my use of MacPorts. Anything I can do to fix it ? Regards Michal

comment:5 Changed 8 years ago by raimue (Rainer Müller)

As this stops you from using MacPorts, do you actually need the +universal variant (that means 32-bit and 64-bit in the same binary)? If not, you can simply remove it.

sudo port clean mozjs17
sudo port -n upgrade --enforce-variants mozjs17 -universal

comment:6 Changed 8 years ago by MichalMisiaszek (Michal Misiaszek)

So I did tried your suggestion, but effect is the same:

-->  Attempting to fetch mozjs17-17.0.0_4+universal.darwin_14.i386-x86_64.tbz2 from https://packages.macports.org/mozjs17
--->  Attempting to fetch mozjs17-17.0.0_4+universal.darwin_14.i386-x86_64.tbz2 from http://sea.us.packages.macports.org/macports/packages/mozjs17
--->  Attempting to fetch mozjs17-17.0.0_4+universal.darwin_14.i386-x86_64.tbz2 from http://lil.fr.packages.macports.org/mozjs17
--->  Fetching distfiles for mozjs17
--->  Verifying checksums for mozjs17
--->  Extracting mozjs17
--->  Applying patches to mozjs17
--->  Configuring mozjs17
--->  Building mozjs17
--->  Staging mozjs17 into destroot
Error: org.macports.destroot for port mozjs17 returned: js17-config differs in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_mozjs17/mozjs17/work/destroot-i386//opt/local/bin and /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_mozjs17/mozjs17/work/destroot-x86_64//opt/local/bin and cannot be merged
Error: Failed to install mozjs17
Please see the log file for port mozjs17 for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_mozjs17/mozjs17/main.log
Error: The following dependencies were not installed: mozjs17
Error: Problem while installing policykit
Error rebuilding gconf
    while executing
"error "Error rebuilding $portname""
    (procedure "revupgrade_scanandrebuild" line 395)
    invoked from within
"revupgrade_scanandrebuild broken_port_counts $opts"
    (procedure "macports::revupgrade" line 5)
    invoked from within
"macports::revupgrade $opts"
    (procedure "action_revupgrade" line 2)
    invoked from within
"action_revupgrade $action $portlist $opts"
    (procedure "action_upgrade" line 25)
    invoked from within
"$action_proc $action $portlist [array get global_options]"
    (procedure "process_cmd" line 103)
    invoked from within
"process_cmd $remaining_args"
    invoked from within
"if { [llength $remaining_args] > 0 } {

    # If there are remaining arguments, process those as a command
    set exit_status [process_cmd $remaining..."
    (file "/opt/local/bin/port" line 5286)

comment:7 Changed 8 years ago by raimue (Rainer Müller)

Port: mozjs17 added; mosjz17 removed

Your log excerpt is still using +universal and is talking about policykit. I assume this is again an attempt to upgrade. This will fail in the same way unless you also remove +universal from all dependents of mozjs17. You should focus on why you even have it installed as +universal if you do not know that. You would have to find out which of the ports you want to have installed actually needs +universal (port -q installed requested | grep '\+universal').

Anyway, to add another data point, mozjs17 @17.0.0_4+universal installs fine for me on my macOS 10.12 Sierra with Xcode 8.1. I cannot reproduce the original report.

comment:8 Changed 8 years ago by MichalMisiaszek (Michal Misiaszek)

I executed commands you suggested. How I can enforce to install only 64 bit not universal. I think gtk3 and ploicykit is enforcing universal though your command pointed to something else.

--->  Cleaning gtk3
--->  Computing dependencies for policykit
--->  Dependencies to be installed: mozjs17
--->  Fetching archive for mozjs17
--->  Attempting to fetch mozjs17-17.0.0_4+universal.darwin_14.i386-x86_64.tbz2 from https://packages.macports.org/mozjs17
--->  Attempting to fetch mozjs17-17.0.0_4+universal.darwin_14.i386-x86_64.tbz2 from http://sea.us.packages.macports.org/macports/packages/mozjs17
--->  Attempting to fetch mozjs17-17.0.0_4+universal.darwin_14.i386-x86_64.tbz2 from http://lil.fr.packages.macports.org/mozjs17
--->  Fetching distfiles for mozjs17
--->  Verifying checksums for mozjs17
--->  Extracting mozjs17
--->  Applying patches to mozjs17
--->  Configuring mozjs17
--->  Building mozjs17
--->  Staging mozjs17 into destroot
Error: org.macports.destroot for port mozjs17 returned: js17-config differs in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_mozjs17/mozjs17/work/destroot-i386//opt/local/bin and /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_mozjs17/mozjs17/work/destroot-x86_64//opt/local/bin and cannot be merged
Error: Failed to install mozjs17
Please see the log file for port mozjs17 for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_mozjs17/mozjs17/main.log
Error: The following dependencies were not installed: mozjs17
Error: Problem while installing policykit
Error rebuilding gconf
    while executing
"error "Error rebuilding $portname""
    (procedure "revupgrade_scanandrebuild" line 395)
    invoked from within
"revupgrade_scanandrebuild broken_port_counts $opts"
    (procedure "macports::revupgrade" line 5)
    invoked from within
"macports::revupgrade $opts"
    (procedure "action_revupgrade" line 2)
    invoked from within
"action_revupgrade $action $portlist $opts"
    (procedure "action_target" line 96)
    invoked from within
"$action_proc $action $portlist [array get global_options]"
    (procedure "process_cmd" line 103)
    invoked from within
"process_cmd $remaining_args"
    invoked from within
"if { [llength $remaining_args] > 0 } {

    # If there are remaining arguments, process those as a command
    set exit_status [process_cmd $remaining..."
    (file "/opt/local/bin/port" line 5286)

Michals-MBP:USRP Michal$ port -q installed requested | grep '\+universal'
  boost @1.59.0_2+no_single+no_static+python27+universal (active)
  fftw-3 @3.3.4_1+universal

I am using Yosemite and Xcode 7.1, the OS Sierra is not supported by some of my development tools yet.

comment:9 Changed 8 years ago by juanrgar (Juan R. García Blanco)

mozjs17 @17.0.0_4+universal also builds fine in El Capitan with Xcode 8.1. Unfortunately, I do not have a Yosemite installation...

Could you please attach the log file? i.e. /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_mozjs17/mozjs17/main.log

Or even run the command with the -d switch?

comment:10 Changed 4 years ago by neverpanic (Clemens Lang)

I've removed the attached mojs17.log, because for some reason, four years later, it is being used to (whether inadvertently or maliciously) trigger denial-of-service on our server.

comment:11 Changed 2 years ago by mascguy (Christopher Nielsen)

Cc: mascguy added

comment:12 Changed 2 years ago by mascguy (Christopher Nielsen)

Resolution: fixed
Status: newclosed

AFAIK, all of these issues have been addressed, via various fixes and updates over the past year or two.

If you're still seeing an issue, please reopen.

Note: See TracTickets for help on using tickets.