Changeset 138309


Ignore:
Timestamp:
Jul 5, 2015, 1:03:32 PM (4 years ago)
Author:
jmr@…
Message:

Make db_select into a stub that just cleans up the symlinks it formerly enabled, because actually using it caused breakage. (#47921) No rev bumps for db46 and db48; reinstalling them is neither necessary nor sufficient to fix the problem.

Location:
trunk/dports
Files:
3 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/databases/db46/Portfile

    r136823 r138309  
    33PortSystem 1.0
    44PortGroup  muniversal 1.0
    5 PortGroup  select 1.0
    65
    76name            db46
     
    131130
    132131if {$subport == $name} {
    133     depends_run-append  port:db_select
    134     select.group        db
    135     select.file         ${filespath}/db46
    136132
    137133    post-destroot {
     
    143139
    144140        delete ${destroot}${prefix}/share/doc/${name}/java
    145         select::install ${select.group} ${select.file}
    146141    }
    147142
  • trunk/dports/databases/db48/Portfile

    r135061 r138309  
    44PortSystem 1.0
    55PortGroup  muniversal 1.0
    6 PortGroup  select 1.0
    76
    87name            db48
     
    5150configure.cxx ${configure.cxx} ${cxx_stdlibflags}
    5251
    53 depends_run-append  port:db_select
    54 select.group        db
    55 select.file         ${filespath}/db48
    56 
    5752destroot.args       docdir=${prefix}/share/doc/${name}
    5853
  • trunk/dports/sysutils/db_select/Portfile

    r114431 r138309  
    22
    33PortSystem 1.0
    4 PortGroup select 1.0
    54
    65name                db_select
    76version             0.1
    8 revision            2
     7revision            3
    98categories          sysutils
    109platforms           darwin
     
    1211maintainers         nomaintainer
    1312supported_archs     noarch
    14 description         common files for selecting default db version
    15 long_description    db_select installs files that allow 'port select' to \
    16             switch the default version of db. \
    17             It symlinks the standard compiler executables \
    18             in the MacPorts prefix to the selected version.
     13description         stub port
     14long_description    This port is only a stub.
    1915
    2016homepage        http://www.macports.org/
     
    2420build                   {}
    2521destroot {
    26     select::install db ${filespath}/base
    27     select::install db ${filespath}/none
     22    xinstall -d ${destroot}${prefix}/share/doc/${name}
     23    system "echo '$long_description' > ${destroot}${prefix}/share/doc/${name}/README.txt"
     24}
     25
     26# Clean up symlinks from using 'port select db'
     27# https://trac.macports.org/ticket/47921
     28post-activate {
     29    set file_list [list include/db.h include/db_cxx.h lib/libdb.a lib/libdb.dylib lib/libdb_cxx.a lib/libdb_cxx.dylib]
     30    foreach f $file_list {
     31        set fullpath ${prefix}/${f}
     32        if {![catch {file type $fullpath}] && [registry_file_registered $fullpath] == "0"} {
     33            file delete -force $fullpath
     34        }
     35    }
    2836}
    2937
Note: See TracChangeset for help on using the changeset viewer.