# Add libx11 to openSUSE build dependencies \(\#35553\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/1b3d6139b8709c697b9270e3531f0a2bf1862323)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 1b3d6139b8709c697b9270e3531f0a2bf1862323

Requested commit: 1b3d6139b8709c697b9270e3531f0a2bf1862323

Commit: 1b3d6139b8709c697b9270e3531f0a2bf1862323

Tree: f90b7c53493ab7f4023b1166a4a43c4bb03cf107

Author: Ahmed ElSayed

Committer: GitHub

## Message

````
Add libx11 to openSUSE build dependencies (#35553)

building on opensuse fails without `libx11-devel`

**Repro:**

```bash
$ cd $(mktemp -d)
$ git clone https://github.com/zed-industries/zed .
$ docker run --rm -it -v $(pwd):/zed -w /zed opensuse/tumbleweed

(opensuse) $ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
(opensuse) $ ./script/linux
(opensuse) $ cargo build --release
```

**Expected:** to work

**Actual:** 

```
thread 'main' panicked at /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/x11-2.21.0/build.rs:42:14:
  called `Result::unwrap()` on an `Err` value:
  pkg-config exited with status code 1
  > PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 pkg-config --libs --cflags x11 'x11 >= 1.4.99.1'

  The system library `x11` required by crate `x11` was not found.
  The file `x11.pc` needs to be installed and the PKG_CONFIG_PATH environment variable must contain its parent directory.
  The PKG_CONFIG_PATH environment variable is not set.

  HINT: if you have installed the library, try setting PKG_CONFIG_PATH to the directory containing `x11.pc`.

  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
```
````

## Parents

- [2db19e19a540c5a6cfd4e16dbae90493f2a3a8be](https://git.cafe/gitcafe/zed/commit/2db19e19a540c5a6cfd4e16dbae90493f2a3a8be?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/1b3d6139b8709c697b9270e3531f0a2bf1862323?format=markdown)
