You are not logged in.

#1 2016-08-21 20:05:52

JohnBobSmith
Member
From: Canada
Registered: 2014-11-29
Posts: 804

Why is wayland a dependency of mesa? [SOLVED]

Hello everyone,

Relatively recently I've been getting wayland updates. This strikes me as odd, because I have no intention, none whatsoever, of using wayland. So, I've decided to do some basic investigative work and it turns out, mesa requires wayland:

[jbs@dmb-gaming-laptop ~]$ pacman -Sii mesa
Repository      : extra
Name            : mesa
Version         : 12.0.1-7
Description     : an open-source implementation of the OpenGL specification
Architecture    : x86_64
URL             : http://mesa3d.sourceforge.net
Licenses        : custom
Groups          : None
Provides        : ati-dri  intel-dri  nouveau-dri  svga-dri  mesa-dri
Depends On      : libdrm  wayland  libxxf86vm  libxdamage  libxshmfence
                  systemd  elfutils  libomxil-bellagio  expat  libgcrypt
                  libtxc_dxtn  llvm-libs
...

What I'm wondering is... Why? Why isn't this an optional dependency? I have my suspicions its a result of something upstream. It's not a huge deal though; the wayland files in question are small. But I would like to figure out why mesa requires wayland as a dependency, hence why I'm asking here. smile

Last edited by JohnBobSmith (2016-08-22 01:04:21)


I am diagnosed with bipolar disorder. As it turns out, what I thought was my greatest weakness is now my greatest strength.

Everyday, I make a conscious choice to overcome my challenges and my problems. It's not easy, but its better than the alternative...

Offline

#2 2016-08-21 21:41:27

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,463

Re: Why is wayland a dependency of mesa? [SOLVED]

/usr/lib/libgbm.so.1.0.0
  NEEDED               libwayland-client.so.0
  NEEDED               libwayland-server.so.0
/usr/lib/mesa/libEGL.so.1.0.0
  NEEDED               libwayland-client.so.0
  NEEDED               libwayland-server.so.0

Can't really be optional when important binaries link to it.

Online

#3 2016-08-21 21:50:00

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: Why is wayland a dependency of mesa? [SOLVED]

check the build() function in the mesa PKGBUILD, you'll see this as part of the ./configure command :

--with-egl-platforms=x11,drm,wayland \

We could have 2 separate (or should that be 3 ? not sure about egl + drm) packages : mesa-X11 & mesa-wayland .

By providing both X11 and wayland support in 1 package AL users can use X11 or wayland or switch between them.

Last edited by Lone_Wolf (2016-08-21 21:50:30)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#4 2016-08-22 01:03:49

JohnBobSmith
Member
From: Canada
Registered: 2014-11-29
Posts: 804

Re: Why is wayland a dependency of mesa? [SOLVED]

Thanks guys that makes a lot of sense. Again the files are small, so it's not like we're pulling in 150+MB worth of packages. Now I know why. smile

Solved.


I am diagnosed with bipolar disorder. As it turns out, what I thought was my greatest weakness is now my greatest strength.

Everyday, I make a conscious choice to overcome my challenges and my problems. It's not easy, but its better than the alternative...

Offline

Board footer

Powered by FluxBB