Changeset 18726 for trunk/base


Ignore:
Timestamp:
Jul 25, 2006, 8:44:14 AM (18 years ago)
Author:
pguyot (Paul Guyot)
Message:

Don't report undeclared dependencies with the extract target, since there's no
way to declare a dependency for the extract target anyway.

This avoids unwanted warnings with bzip2 port (as use_bzip2 will take any bzip2
in path and therefore the one from DP if it's installed).

On the long-run, we might want to specify the path to bzip2 at configure time
or support dependencies for extract.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/port1.0/portutil.tcl

    r18709 r18726  
    11# et:ts=4
    22# portutil.tcl
    3 # $Id: portutil.tcl,v 1.193 2006/07/24 05:55:44 pguyot Exp $
     3# $Id: portutil.tcl,v 1.194 2006/07/25 08:44:14 pguyot Exp $
    44#
    55# Copyright (c) 2004 Robert Shaw <rshaw@opendarwin.org>
     
    680680
    681681                        # Check dependencies & file creations outside workpath.
    682                         if {([info exists ports_trace]
     682                        if {[info exists ports_trace]
    683683                                && $ports_trace == "yes"
    684                                 && $target != "clean")} {
    685                                 set depends {}
    686                                 set deptypes {}
     684                                && $target != "clean"} {
    687685                               
    688                                 # Determine deptypes to look for based on target
    689                                 switch $target {
    690                                         configure       { set deptypes "depends_lib" }
     686                                # Don't check dependencies for extract (they're not honored
     687                                # anyway). This avoids warnings about bzip2.
     688                                if {$target != "extract"} {
     689                                        set depends {}
     690                                        set deptypes {}
    691691                                       
    692                                         build           { set deptypes "depends_lib depends_build" }
     692                                        # Determine deptypes to look for based on target
     693                                        switch $target {
     694                                                configure       { set deptypes "depends_lib" }
     695                                               
     696                                                build           { set deptypes "depends_lib depends_build" }
     697                                               
     698                                                destroot        -
     699                                                install         -
     700                                                archive         -
     701                                                pkg                     -
     702                                                mpkg            -
     703                                                rpmpackage      -
     704                                                dpkg            -
     705                                                ""                      { set deptypes "depends_lib depends_build depends_run" }
     706                                        }
    693707                                       
    694                                         destroot        -
    695                                         install         -
    696                                         archive         -
    697                                         pkg                     -
    698                                         mpkg            -
    699                                         rpmpackage      -
    700                                         dpkg            -
    701                                         ""                      { set deptypes "depends_lib depends_build depends_run" }
     708                                        # Gather the dependencies for deptypes
     709                                        foreach deptype $deptypes {
     710                                                # Add to the list of dependencies if the option exists and isn't empty.
     711                                                if {[info exists PortInfo($deptype)] && $PortInfo($deptype) != ""} {
     712                                                        set depends [concat $depends $PortInfo($deptype)]
     713                                                }
     714                                        }
     715       
     716                                        # Dependencies are in the form verb:[param:]port
     717                                        set depsPorts {}
     718                                        foreach depspec $depends {
     719                                                # grab the portname portion of the depspec
     720                                                set dep_portname [lindex [split $depspec :] end]
     721                                                lappend depsPorts $dep_portname
     722                                        }
     723                                        trace_check_deps $target $depsPorts
    702724                                }
    703725                               
    704                                 # Gather the dependencies for deptypes
    705                                 foreach deptype $deptypes {
    706                                         # Add to the list of dependencies if the option exists and isn't empty.
    707                                         if {[info exists PortInfo($deptype)] && $PortInfo($deptype) != ""} {
    708                                                 set depends [concat $depends $PortInfo($deptype)]
    709                                         }
    710                                 }
    711 
    712                                 # Dependencies are in the form verb:[param:]port
    713                                 set depsPorts {}
    714                                 foreach depspec $depends {
    715                                         # grab the portname portion of the depspec
    716                                         set dep_portname [lindex [split $depspec :] end]
    717                                         lappend depsPorts $dep_portname
    718                                 }
    719                                 trace_check_deps $target $depsPorts
    720726                                trace_check_violations
    721727                               
Note: See TracChangeset for help on using the changeset viewer.