Opened 14 years ago

Closed 14 years ago

Last modified 10 years ago

#22747 closed defect (fixed)

libssh2 universal build fails

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: pmq@…
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: Cc: cooljeanius (Eric Gallager)
Port: libssh2

Description

A universal build of libssh2 fails:

MacPorts running without privileges. You may be unable to complete certain actions (eg install).
--->  Computing dependencies for libssh2
MacPorts running without privileges. You may be unable to complete certain actions (eg install).
--->  Fetching libssh2
MacPorts running without privileges. You may be unable to complete certain actions (eg install).
--->  Verifying checksum(s) for libssh2
MacPorts running without privileges. You may be unable to complete certain actions (eg install).
--->  Extracting libssh2
MacPorts running without privileges. You may be unable to complete certain actions (eg install).
MacPorts running without privileges. You may be unable to complete certain actions (eg install).
--->  Configuring libssh2
--->  Configuring libssh2 for architecture x86_64
--->  Configuring libssh2 for architecture i386
MacPorts running without privileges. You may be unable to complete certain actions (eg install).
--->  Building libssh2
--->  Building libssh2 for architecture x86_64
--->  Building libssh2 for architecture i386
MacPorts running without privileges. You may be unable to complete certain actions (eg install).
--->  Staging libssh2 into destroot
--->  Staging libssh2 into destroot for architecture x86_64
--->  Staging libssh2 into destroot for architecture i386
Error: Target org.macports.destroot returned: /mp/lib/pkgconfig/libssh2.pc differs in /mp/var/macports/build/_Users_rschmidt_macports_dports_devel_libssh2/work/destroot-i386 and /mp/var/macports/build/_Users_rschmidt_macports_dports_devel_libssh2/work/destroot-x86_64 and cannot be merged
Error: Unable to upgrade port: 1

Here's the difference between those files:

--- work/destroot-i386/mp/lib/pkgconfig/libssh2.pc      2009-12-01 18:24:00.000000000 -0600
+++ work/destroot-x86_64/mp/lib/pkgconfig/libssh2.pc    2009-12-01 18:23:58.000000000 -0600
@@ -11,6 +11,6 @@
 URL: http://www.libssh2.org/
 Description: Library for SSH based connunication
 Version: 1.2.1
-Libs: -L${libdir} -lssh2 -L/mp/lib -arch i386 
+Libs: -L${libdir} -lssh2 -L/mp/lib -arch x86_64 
 Libs.private: 
 Cflags: -I${includedir}

The arch flags should be removed from the .pc file.

Change History (3)

comment:1 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed

Fixed in r61564 using a method taken from the curl port.

comment:2 Changed 10 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:3 Changed 10 years ago by cooljeanius (Eric Gallager)

qemu upstream mailing lists seems to think that this is still an issue: https://lists.gnu.org/archive/html/qemu-devel/2014-06/msg02383.html

I am not seeing it myself though, so I will leave this as closed...

Note: See TracTickets for help on using tickets.