inconsistent dependency information

Scott Webster sewebster at gmail.com
Tue Jun 15 15:55:07 PDT 2010


On Wed, Jun 9, 2010 at 5:09 PM, Joshua Root <jmr at macports.org> wrote:
> On 2010-6-10 09:50 , Scott Webster wrote:
>> I have three ports installed that claim they have no dependencies:
>>
>> [~@skadi]$ port dependents p5-xml-sax-expat
>> p5-xml-sax-expat has no dependents.
>> [~@skadi]$ port dependents xorg-libpthread-stubs
>> xorg-libpthread-stubs has no dependents.
>> [~@skadi]$ port dependents xorg-xineramaproto
>> xorg-xineramaproto has no dependents.
>>
>> But other ports claim that these are in fact library dependencies:
>>
>> [~@skadi]$ port deps p5-xml-simple
>> Library Dependencies: perl5, p5-xml-namespacesupport, p5-xml-sax,
>>                       p5-xml-sax-expat
>> [~@skadi]$ port deps xorg-libXp
>> Build Dependencies:   pkgconfig, xorg-util-macros, autoconf, automake, libtool
>> Library Dependencies: xorg-libXext, xorg-printproto, xorg-libpthread-stubs
>> [~@skadi]$ port deps xorg-libXinerama
>> Build Dependencies:   pkgconfig
>> Library Dependencies: xorg-libXext, xorg-xineramaproto
>>
>> All these ports are installed.  Is this a bug?  If so, in what?  Base?
>
> Probably the dependencies were changed without bumping the revision, and
> you installed before the changes.
>

Ok, so now I have a similar, but perhaps more complicated issue that
just arose somehow.  The yasm port is required by x264 at build time
for 64-bit.

[~@swmb]$ port dependents yasm
yasm has no dependents.

This is not unexpected since it is just a build dep.

[~@swmb]$ port info x264
x264 @20100412 (multimedia)
Variants:             asm, universal

Description:          x264 is a free library for encoding H264/AVC
video streams. The code is written by Laurent Aimar, Eric Petit(OS X),
Min Chen
                      (vfw/nasm), Justin Clay(vfw), Måns Rullgård and
Loren Merritt from scratch. It is released under the terms of the GPL
license.
Homepage:             http://www.videolan.org/x264.html

Build Dependencies:   yasm
Platforms:            darwin
License:              unknown
Maintainers:          devans at macports.org, openmaintainer at macports.org
[~@swmb]$ port echo depof:x264
yasm

The above two commands show that macports "knows" that yasm is a
(build) dependency.

[~@swmb]$ port_cutleaves -b -l
yasm @1.0.0_0

But here the previously reliable-to-figure-this-out port_cutleaves
shows yasm as a leaf, even with the -b (exclude build deps) option.
The reason seems to be that x264 doesn't insert the build-dep on yasm
into the registry:

[~@swmb]$ /usr/bin/tclsh
% package require macports
1.0
% mportinit
% mportlookup x264
x264 {variants {universal asm} portdir multimedia/x264 description
{x264 - a free h264/avc encoder} homepage
http://www.videolan.org/x264.html epoch 0 platforms darwin name x264
maintainers {devans openmaintainer} long_description {x264 is a free
library for encoding H264/AVC video streams. The code is written by
Laurent Aimar, Eric Petit(OS X), Min Chen (vfw/nasm), Justin
Clay(vfw), Måns Rullgård and Loren Merritt from scratch. It is
released under the terms of the GPL license.} license unknown
categories multimedia version 20100412 revision 0 porturl
file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/multimedia/x264}

Any ideas?

Scott


More information about the macports-users mailing list