Skip to content

Commit 885fc32

Browse files
authored
Merge pull request #2334 from ehfd/gl
Update information about OpenGL due to libglvnd
2 parents 8779654 + 9e5f58b commit 885fc32

File tree

2 files changed

+14
-33
lines changed

2 files changed

+14
-33
lines changed

docs/maintainer/knowledge_base.md

Lines changed: 5 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -697,12 +697,7 @@ practice has been deprecated.) To add a new CDT, make a PR on the
697697

698698
1. When there are system specific configurations are used by the library.
699699
Some examples include:
700-
1. OpenGL: if we provided the OpenGL loader library `libglvnd`.
701-
and the user's system is not using `libglvnd`, then we cannot load the vendor-specific
702-
implementations losing out on accelerator/hardware optimized performance.
703-
(This is only on old distributions and we may finally be able to package `libglvnd`
704-
ourselves)
705-
2. linux-pam: This is a library that allows pluggable authentication modules and the
700+
1. linux-pam: This is a library that allows pluggable authentication modules and the
706701
configuration files for these modules usually live in `/etc/pam.d`. The issue is that
707702
the pluggable modules live in a distro specific location. For example:
708703
`/usr/lib/x86_64-linux-gnu/security/`. The default modules are built into the
@@ -730,41 +725,19 @@ practice has been deprecated.) To add a new CDT, make a PR on the
730725
run OpenCL because we have a conda packaged installation, but if there is a system wide
731726
implementation that is accelerated by specific hardware, we can use those.
732727

733-
In conda-forge the primary usages of CDTs is currently for packages that link against libGL.
734-
735728
<a id="libgl"></a>
736729

737-
#### libGL
730+
### libGL
738731

739-
In addition to the required compilers `{{ compiler('c') }}` and/or `{{ compiler('cxx') }}`,
740-
the following CDT packages are required for linking against libGL:
732+
Note that packages dependent on OpenGL and/or libGL should no longer use CDTs. Instead, use the host dependency `libgl-devel` from the [libglvnd-feedstock](https://github.com/conda-forge/libglvnd-feedstock).
741733

742734
```yaml
743735
requirements:
744-
build:
745-
- {{ cdt('mesa-libgl-devel') }} # [linux]
746-
- {{ cdt('mesa-dri-drivers') }} # [linux]
747-
- {{ cdt('libselinux') }} # [linux]
748-
- {{ cdt('libxdamage') }} # [linux]
749-
- {{ cdt('libxxf86vm') }} # [linux]
750-
- {{ cdt('libxext') }} # [linux]
751736
host:
752-
- xorg-libxfixes # [linux]
753-
```
754-
755-
If you need a fully functional binary in the test phase, you have to also provide the shared
756-
libraries via `yum_requirements.txt` (see [yum_requirements.txt](#yum-deps)).
757-
758-
```text
759-
mesa-libGL
760-
mesa-dri-drivers
761-
libselinux
762-
libXdamage
763-
libXxf86vm
764-
libXext
737+
- libgl-devel # [linux]
765738
```
766739

767-
You will need to re-render the feedstock after making these changes.
740+
Other OpenGL API variants such as `libegl-devel`, `libgles-devel`, `libglx-devel`, and `libopengl-devel` are also available, and will automatically add non-development `run_exports` dependencies.
768741

769742
<a id="linking-numpy"></a>
770743

docs/maintainer/maintainer_faq.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,15 @@ Error:
131131
ImportError: libGL.so.1: cannot open shared object file: No such file or directory
132132
```
133133

134-
If you saw this error while building a package in your feedstock, create a [yum_requirements.txt](knowledge_base.md#yum-deps) file and add `mesa-libGL`. See also [CDTs: `libgl`](./knowledge_base.md#libgl).
134+
If you saw this error while building a package in your feedstock, add the Linux host dependency `libgl-devel`, provided by the [libglvnd-feedstock](https://github.com/conda-forge/libglvnd-feedstock).
135+
136+
```yaml
137+
requirements:
138+
host:
139+
- libgl-devel # [linux]
140+
```
141+
142+
Other OpenGL API variants such as `libegl-devel`, `libgles-devel`, `libglx-devel`, and `libopengl-devel` are also available, and will automatically add non-development `run_exports` dependencies.
135143

136144
If you are seeing this error after installing a package locally, then you are missing an [OpenGL](https://en.wikipedia.org/wiki/OpenGL) provider in your system dependencies. This is more likely to happen in headless systems with no graphics (servers, Docker images, etc). To fix it, you must install a provider like [Mesa](https://www.mesa3d.org/) with your system package manager.
137145

0 commit comments

Comments
 (0)