WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Update to mesa in tc-16.x x86 repo  (Read 458 times)

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 15302
Update to mesa in tc-16.x x86 repo
« on: October 20, 2025, 11:50:07 AM »
Due to changes in the structure of the mesa graphics libraries several graphics extensions have been updated in the tc-16.x x86 repo.

It is almost certain that some gui extensions will now be missing dependencies, please report these here so it can be fixed.

It is also possible that one or more circular dependencies have been created.

Xorg-7.7, Xorg-7.7-3d and Xorg-7.7-3d-vulkan have all been tested on intel hd4400 haswell graphics hardware. Previously it was not possible to start the gui using Xorg-7.7 without first loading xf86-video-intel, but now it will start without it. It is still necessary, however, to use a conf snippet to tell the Xorg-7.7-3d gui to use the crocus driver instead of the (no longer present) i965 driver.

The following have been added/changed/updated:
Xorg-7.7-3d-dev.tcz
Xorg-7.7-3d-vulkan.tcz
Xorg-7.7-3d.tcz
Xorg-7.7-bin.tcz
libEGL-dev.tcz
libEGL.tcz
libGL-dev.tcz
libGL.tcz
libGLESv2-dev.tcz
libGLESv2.tcz
mesa-dev.tcz
mesa-vulkan.tcz
mesa.tcz
xkbcomp.tcz

The following dep files have changed:
firefox-ESR.tcz.dep
libva22-dev.tcz.dep
libva22.tcz.dep
xorg-server-dev.tcz.dep
xorg-server.tcz.dep

Offline CNK

  • Wiki Author
  • Sr. Member
  • *****
  • Posts: 391
Re: Update to mesa in tc-16.x x86 repo
« Reply #1 on: October 21, 2025, 08:40:02 PM »
I see Firefox installed with firefox_getLatest.sh now needs at least "libXdamage.tcz" (previously pulled in via the libGLESv2.tcz dependency) added to firefox.tcz.dep or it won't start. I'll test some more and submit an updated firefox_getLatest.sh script when I get the chance.

It's a shame the llvm19-lib.tcz dependency in mesa.tcz.dep is so huge (compared to most other extensions I use).

Offline Zhe

  • Newbie
  • *
  • Posts: 14
Re: Update to mesa in tc-16.x x86 repo
« Reply #2 on: October 22, 2025, 02:49:00 AM »
After updating xorg-7.7-3d and related components, I need to manually add xkbcomp to onboot.lst;

and it seems that libglapi.so.0 is missing.

Code: [Select]
:~$ pcmanfm
pcmanfm: error while loading shared libraries: libglapi.so.0: cannot open shared object file: No such file or directory

Resolved
Restart and update libGL and libGLESv2 again (these were selected during my first update)
« Last Edit: October 22, 2025, 03:03:25 AM by Zhe »

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 15302
Re: Update to mesa in tc-16.x x86 repo
« Reply #3 on: October 22, 2025, 03:54:40 AM »
It's a shame the llvm19-lib.tcz dependency in mesa.tcz.dep is so huge (compared to most other extensions I use).

The llvm dep could be eliminated if software 3d acceleration were to be dropped - i.e. only have hardware 3d acceleration.

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 15302
Re: Update to mesa in tc-16.x x86 repo
« Reply #4 on: October 22, 2025, 03:56:49 AM »
After updating xorg-7.7-3d and related components, I need to manually add xkbcomp to onboot.lst;

xkbcomp is a dep of xorg-server, did you update its dep file (xorg-server itself was not modified)?

Offline Zhe

  • Newbie
  • *
  • Posts: 14
Re: Update to mesa in tc-16.x x86 repo
« Reply #5 on: October 22, 2025, 05:43:35 AM »
After I updated all the .dep files and fixed the dependencies,

wayland-protocols-dev.tcz is not in the x86 repository.

PS:( I have a question: why does python3.x-dev need to depend on Xorg-7.7-dev?)

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 15302
Re: Update to mesa in tc-16.x x86 repo
« Reply #6 on: October 22, 2025, 05:56:21 AM »
mesa is not compiled against wayland in the x86 repo in order to limit its size, therefore wayland-protocols is not needed.

python3.x can optionally use tk/tcl, hence the dep on Xorg-7.7-dev

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 15302
Re: Update to mesa in tc-16.x x86 repo
« Reply #7 on: October 22, 2025, 05:59:06 AM »
Code: [Select]
:~$ pcmanfm
pcmanfm: error while loading shared libraries: libglapi.so.0: cannot open shared object file: No such file or directory

Is this still a problem, or is it resolved?

Offline Zhe

  • Newbie
  • *
  • Posts: 14
Re: Update to mesa in tc-16.x x86 repo
« Reply #8 on: October 22, 2025, 06:32:34 AM »
x86 repo's  mesa-dev.dep  should delete wayland-protocols-dev.tcz

Solved,Thank you!

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 15302
Re: Update to mesa in tc-16.x x86 repo
« Reply #9 on: October 22, 2025, 06:42:18 AM »
corrected - thanks for reporting this

Offline Zhe

  • Newbie
  • *
  • Posts: 14
Re: Update to mesa in tc-16.x x86 repo
« Reply #10 on: October 22, 2025, 08:44:50 AM »
On my machine, pcmanfm/clipit depends on libXdamage, but libXdamage is missing,

so I manually added Xorg-7.7-lib.tcz (libXdamage) to onboot.lst.

Before this update, Xorg-7.7-lib.tcz was included in Xorg-7.7.dep.

Besides this method, are there any other recommended ways to handle it?

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 15302
Re: Update to mesa in tc-16.x x86 repo
« Reply #11 on: October 22, 2025, 09:33:11 AM »
It was gtk2 that was missing the dep on libXdamage - adjusted

Edit: gtk3 and firefox-ESR deps also adjusted
« Last Edit: October 22, 2025, 09:37:55 AM by Juanito »

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 15302
Re: Update to mesa in tc-16.x x86 repo
« Reply #12 on: October 22, 2025, 09:50:18 AM »
I see Firefox installed with firefox_getLatest.sh now needs at least "libXdamage.tcz"

In fact the libXdamage dep should be added to gtk3, which firefox in turn depends on - adjusted now

Offline CNK

  • Wiki Author
  • Sr. Member
  • *****
  • Posts: 391
Re: Update to mesa in tc-16.x x86 repo
« Reply #13 on: October 22, 2025, 07:17:19 PM »
In fact the libXdamage dep should be added to gtk3, which firefox in turn depends on - adjusted now

Thanks Juanito!

The llvm dep could be eliminated if software 3d acceleration were to be dropped - i.e. only have hardware 3d acceleration.

I'm not actually using hardware 3D acceleration on any of my TC installs. The libGL (libEGL, libGLESv2) deps are pulled in by extensions like librsvg.tcz, freeglut.tcz, and libva2.tcz even though I'm not using any 3D graphics, and often running Xvesa which doesn't support GLX so Mesa is useless anyway. Firefox (from firefox_getLatest.sh) actually works without any of the Mesa deps installed as well.

What I really want is a sort of dummy Mesa build that doesn't really need to do anything, but satisfies the deps for unavoidable (for me) graphical extensions like gtk2.tcz and jwm.tcz (also FFmpeg). I thought I might make substitute extensions to work without libgallium, which seems to be the key part requiring llvm19-lib.tcz. I found reference to "Stand-alone Mesa" in their FAQ which sounds hopeful but I'm not sure how you build that (I found your build notes but I can't find any more about "Stand-alone Mesa" in their docs to know what to change (maybe you just disable all drivers?)).

Offline Zhe

  • Newbie
  • *
  • Posts: 14
Re: Update to mesa in tc-16.x x86 repo
« Reply #14 on: October 23, 2025, 12:43:20 AM »
mesa-dev.tcz.dep should delete libelf-dev.tcz   maybe it's elfutils-dev.tcz?
« Last Edit: October 23, 2025, 12:45:21 AM by Zhe »