Skip to content

Commit

Permalink
add -devel packages for headers
Browse files Browse the repository at this point in the history
because these packages have a huge amount of headers
  • Loading branch information
minrk committed Nov 18, 2024
1 parent 5cfc09f commit 56a3a34
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 13 deletions.
29 changes: 25 additions & 4 deletions recipes/openpmix/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ source:
sha256: f72d50a5ae9315751684ade8a8e9ac141ae5dd64a8652d594b9bee3531a91376

build:
# TODO: unskip osx on feedstock, staged-recipes mac builds don't work right now
skip: true # [win]
number: 0

Expand All @@ -38,13 +37,15 @@ outputs:
- name: libpmix
files:
# libpmix has everything except for specific exclusions
# reserved for bin
include:
- '**/*'
exclude:
# bin/ and man are in pmix-bin
# bin/ and man are in -bin
- bin/
- share/man/
# include, pkgconfig are in -devel
- include/
- lib/pkgconfig/
# exclude built HTML docs
- share/doc/
build:
Expand Down Expand Up @@ -73,10 +74,30 @@ outputs:
- test -f $PREFIX/lib/libpmix${SHLIB_EXT}
- test ! -f $PREFIX/lib/libpmpix.a
- test ! -f $PREFIX/bin/pmix_info
# - test ! -d $PREFIX/include/pmix/src
- test ! -d $PREFIX/include/pmix/src
- test ! -d $PREFIX/share/doc/pmix
- pkg-config --cflags --libs pmix

- name: libpmix-devel
build:
run_exports:
- {{ pin_subpackage('libpmix', max_pin='x.x') }}
files:
include:
- include/
- lib/pkgconfig/
requirements:
run:
- {{ pin_subpackage('libpmix', exact=True) }}
test:
requires:
- pkg-config
commands:
- test -f $PREFIX/include/pmix.h
- test -d $PREFIX/include/pmix/src
- test -f $PREFIX/lib/libpmix${SHLIB_EXT}
- pkg-config --cflags --libs pmix

- name: pmix-bin
files:
# should only include files excluded by libpmix
Expand Down
2 changes: 1 addition & 1 deletion recipes/prrte/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ set -ex
--with-libevent=$PREFIX \
--with-hwloc=$PREFIX \
--with-pmix=$PREFIX \
--with-sge \
--enable-ipv6 \
--enable-sge \
--disable-dependency-tracking \
--prefix=$PREFIX

Expand Down
32 changes: 24 additions & 8 deletions recipes/prrte/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,22 @@ requirements:
host:
- libevent
- libhwloc
- libpmix
# - pmix-bin
- libpmix-devel

outputs:
- name: libprrte
files:
# libprrte has everything except for specific exclusions
# reserved for bin
include:
- '**/*'
exclude:
# bin/ and man are in prrte-bin
# bin/ and man are in -bin
- bin/
- share/man/
# exclude built HTML docs
# headers in -devel
- include
# exclude RST/HTML docs
- share/prte/rst
- share/doc/
build:
run_exports:
Expand All @@ -56,17 +57,32 @@ outputs:
host:
- libevent
- libhwloc
- libpmix
- libpmix-devel

test:
commands:
- test -f $PREFIX/lib/libprrte${SHLIB_EXT}
- test ! -f $PREFIX/lib/libprrte.a
- test ! -f $PREFIX/bin/prte_info
- test ! -f $PREFIX/bin/prun
# - test ! -d $PREFIX/include/prte/src
- test ! -d $PREFIX/include/prte/src
- test ! -d $PREFIX/share/doc/prte

- name: libprrte-devel
build:
run_exports:
- {{ pin_subpackage('libprrte', max_pin='x.x') }}
files:
include:
- include
requirements:
run:
- {{ pin_subpackage('libprrte', exact=True) }}
test:
commands:
- test -f $PREFIX/include/prte.h
- test -d $PREFIX/include/prte/src

- name: prrte-bin
files:
# should only include files excluded by libprrte
Expand All @@ -81,7 +97,7 @@ outputs:
host:
- libevent
- libhwloc
- libpmix
- libpmix-devel
- {{ pin_subpackage('libprrte', exact=True) }}
run:
- {{ pin_subpackage('libprrte', exact=True) }}
Expand Down

0 comments on commit 56a3a34

Please sign in to comment.