Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#39077 closed defect (fixed)

libvirt 1.0.3: missing libgcrypt dependency

Reported by: shanto@… Owned by: mf2k (Frank Schima)
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc: cooljeanius (Eric Gallager)
Port: libvirt

Description

Build fails at line libvirt.c:58 (include <gcrypt.h>): http://libvirt.org/git/?p=libvirt.git;a=blob;f=src/libvirt.c#l57

Manually installing libgcrypt before installing libvirt fixes the build error. port:libgcrypt should therefore be added as a dependency.

Attachments (2)

libvirt-deps.1622172013.diff (455 bytes) - added by cooljeanius (Eric Gallager) 11 years ago.
port-depcheck.sh output for libvirt
libvirt-deps.1841252013.diff (448 bytes) - added by cooljeanius (Eric Gallager) 11 years ago.
new port-depcheck.sh output for libvirt (no variants this time)

Download all attachments as: .zip

Change History (16)

comment:1 Changed 11 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:2 Changed 11 years ago by larryv (Lawrence Velázquez)

Owner: changed from macports-tickets@… to jclift@…
Port: libvirt added

Thanks. In the future, please Cc relevant port maintainers.

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

jclift is no longer the maintainer as of r106018

comment:4 Changed 11 years ago by larryv (Lawrence Velázquez)

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

comment:5 Changed 11 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to macsforever2000@…
Status: newassigned

comment:6 Changed 11 years ago by mf2k (Frank Schima)

Resolution: fixed
Status: assignedclosed

comment:7 Changed 11 years ago by cooljeanius (Eric Gallager)

Apparently it will opportunistically link against a bunch of other libraries, too... attaching port-depcheck.sh output next.

Changed 11 years ago by cooljeanius (Eric Gallager)

port-depcheck.sh output for libvirt

comment:8 Changed 11 years ago by cooljeanius (Eric Gallager)

wait actually some of those are because I installed it with variants selected... hold on, let me try again...

comment:9 Changed 11 years ago by cooljeanius (Eric Gallager)

OK I think I did it right this time... only knocked of the avahi linkage though; I thought it would also remove the cyrus-sasl2 linkage, too, since I didn't select the +sasl variant this time, but apparently it didn't...

Changed 11 years ago by cooljeanius (Eric Gallager)

new port-depcheck.sh output for libvirt (no variants this time)

comment:10 Changed 11 years ago by mf2k (Frank Schima)

Attaching a portfile patch would be helpful. I don't feel like trying to figure out what the output of your script means.

comment:11 in reply to:  10 ; Changed 11 years ago by cooljeanius (Eric Gallager)

Replying to macsforever2000@…:

Attaching a portfile patch would be helpful. I don't feel like trying to figure out what the output of your script means.

Right, I suppose that's the next step for me to take with improving my script: making it diff against the port's portfile instead of just against a list of its library dependencies. That might be somewhat difficult though, seeing as ports don't always specify their dependencies in the same place in their portfiles, and seeing as also it might be difficult to decide whether a regular, path-style, or lib-style dependency is needed to be added for each additional port... Anyway, opened an issue in my GitHub repo for this script to remind me to do this: https://github.com/cooljeanius/macportsscripts/issues/1

comment:12 in reply to:  11 Changed 11 years ago by larryv (Lawrence Velázquez)

Replying to egall@…:

Right, I suppose that's the next step for me to take with improving my script: making it diff against the port's portfile instead of just against a list of its library dependencies. That might be somewhat difficult though, seeing as ports don't always specify their dependencies in the same place in their portfiles, and seeing as also it might be difficult to decide whether a regular, path-style, or lib-style dependency is needed to be added for each additional port...

What would be way more relevant and useful would be simple otool + port provides output. None of us particularly wants to figure out how your script works or what its output means. Just show us the linkage, and we can figure out where to go from there.

comment:13 Changed 11 years ago by cooljeanius (Eric Gallager)

What would be way more relevant and useful would be simple otool + port provides output.

That's basically what it does though. I suppose though that maybe I could have it save the intermediate information where it calculates that, too...

comment:14 in reply to:  13 Changed 11 years ago by cooljeanius (Eric Gallager)

Replying to egall@…:

What would be way more relevant and useful would be simple otool + port provides output.

That's basically what it does though. I suppose though that maybe I could have it save the intermediate information where it calculates that, too...

OK, now that it saves intermediate information as of r106132, here it is:

Finding MacPorts libraries that libvirt links against...
/opt/local/lib/libcares.2.dylib is provided by: c-ares
/opt/local/lib/libcrypto.1.0.0.dylib is provided by: openssl
/opt/local/lib/libcurl.4.dylib is provided by: curl
/opt/local/lib/libdbus-1.3.dylib is provided by: dbus
/opt/local/lib/libgcrypt.11.dylib is provided by: libgcrypt
/opt/local/lib/libgmp.10.dylib is provided by: gmp
/opt/local/lib/libgnutls.28.dylib is provided by: gnutls
/opt/local/lib/libgpg-error.0.dylib is provided by: libgpg-error
/opt/local/lib/libhogweed.2.dylib is provided by: nettle
/opt/local/lib/libiconv.2.dylib is provided by: libiconv
/opt/local/lib/libidn.11.dylib is provided by: libidn
/opt/local/lib/libintl.8.dylib is provided by: gettext
/opt/local/lib/liblber-2.4.2.dylib is provided by: openldap
/opt/local/lib/libldap-2.4.2.dylib is provided by: openldap
/opt/local/lib/liblzma.5.dylib is provided by: xz
/opt/local/lib/libnettle.4.dylib is provided by: nettle
/opt/local/lib/libreadline.6.2.dylib is provided by: readline
/opt/local/lib/libsasl2.2.dylib is provided by: cyrus-sasl2
/opt/local/lib/libssh2.1.dylib is provided by: libssh2
/opt/local/lib/libssl.1.0.0.dylib is provided by: openssl
/opt/local/lib/libvirt-lxc.0.dylib is provided by: libvirt
/opt/local/lib/libvirt-qemu.0.dylib is provided by: libvirt
/opt/local/lib/libvirt.0.dylib is provided by: libvirt
/opt/local/lib/libxml2.2.dylib is provided by: libxml2
/opt/local/lib/libyajl.2.dylib is provided by: yajl
/opt/local/lib/libz.1.dylib is provided by: zlib

(this is with no variants)

Note: See TracTickets for help on using tickets.