conda-forge / metis-feedstock

A conda-smithy repository for metis.
BSD 3-Clause "New" or "Revised" License
0 stars 20 forks source link

C++ runtime remains a runtime dependency despite of the ignore_run_exports statement #21

Open SylvainCorlay opened 5 years ago

SylvainCorlay commented 5 years ago

cf @isuruf's comment https://github.com/conda-forge/metis-feedstock/pull/20#discussion_r232060543

conda-render shows the C++ runtime as a runtime dependency

SylvainCorlay commented 5 years ago

Result of conda-render:

package:
    name: metis
    version: 5.1.0
source:
    fn: metis-5.1.0.tar.gz
    patches:
        - vc14.patch
    sha256: 76faebe03f6c963127dbb73c13eab58c9a3faeae48779f049066a21c087c5db2
    url: http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/metis-5.1.0.tar.gz
build:
    binary_relocation: true
    ignore_run_exports:
        - clangxx_osx-64
    number: '1003'
requirements:
    build:
        - rhash 1.3.6 ha12b0ac_0
        - cctools 895 1
        - ld64 274.2 1
        - compiler-rt 4.0.1 hcfea43d_1
        - clang 4.0.1 1
        - clang_osx-64 4.0.1 h1ce6c1d_11
        - xz 5.2.4 h1de35cc_4
        - libcurl 7.62.0 h051b688_0
        - openssl 1.1.1 h1de35cc_0
        - ca-certificates 2018.03.07 0
        - zlib 1.2.11 hf3cbc9b_2
        - llvm 4.0.1 1
        - cmake 3.12.2 haff7e42_0
        - llvm-lto-tapi 4.0.1 1
        - libssh2 1.8.0 ha12b0ac_4
        - expat 2.2.6 h0a44026_0
        - ncurses 6.1 h0a44026_0
        - clangxx_osx-64 4.0.1 h22b1bf0_11
        - libcxx 4.0.1 hcfea43d_1
        - libcxxabi 4.0.1 hcfea43d_1
        - bzip2 1.0.6 h1de35cc_5
        - clangxx 4.0.1 1
    host:
        - libcxxabi 4.0.1 hcfea43d_1
        - libcxx 4.0.1 hcfea43d_1
    run:
        - libcxx >=4.0.1
test:
    commands:
        - graphchk
        - cmpfillin -h
        - mpmetis -h
        - gpmetis -h
        - ndmetis -h
        - gpmetis -h
        - m2gmetis -h
        - test -f $PREFIX/include/metis.h
        - test -f $PREFIX/lib/libmetis.dylib
        - conda inspect linkages -p ${PREFIX} metis
        - conda inspect objects -p ${PREFIX} metis
    source_files:
        - graphs
about:
    description: 'METIS is a set of serial programs for partitioning graphs, partitioning

        finite element meshes, and producing fill reducing orderings for sparse

        matrices. The algorithms implemented in METIS are based on the multilevel

        recursive-bisection, multilevel k-way, and multi-constraint partitioning

        schemes developed in our lab.

        '
    doc_url: http://glaros.dtc.umn.edu/gkhome/metis/metis/faq
    home: http://glaros.dtc.umn.edu/gkhome/metis/metis/overview
    license: Apache 2.0
    license_file: LICENSE.txt
    summary: METIS - Serial Graph Partitioning and Fill-reducing Matrix Ordering
extra:
    copy_test_source_files: true
    final: true
    recipe-maintainers:
        - basnijholt
        - SylvainCorlay
isuruf commented 5 years ago

Use,

build:
  ignore_run_exports:
    - libstdcxx-ng
    - libcxx

and you'll see that the C++ runtimes are not in run requirements.

SylvainCorlay commented 5 years ago

Yeah but it feels wrong to use the actual name of the package.

jakirkham commented 5 years ago

What if we just patch the CMakeLists.txt for now? Arguably that's what they should do anyways. 😉

SylvainCorlay commented 5 years ago

What if we just patch the CMakeLists.txt for now? Arguably that's what they should do anyways. 😉

For reference, I have opened an issue upstream http://glaros.dtc.umn.edu/flyspray/task/167