Tiny Core Extensions > TCE News

Update to mesa in tc-16.x x86 repo

<< < (4/6) > >>

mjmouse:
I just had the error with xkbcomp not being in the dependencies of xorg-server.tcz after updating.

tce-update doesn't seem to update the dep files when the extension tcz itself hasn't changed.

I used the below script to check my dep files and found a few that needed updating (needs lua-5.4.tcz):

--- Code: ---#!/usr/local/bin/lua

local quiet = arg[1] == '-q'
if arg[1] == '-h' or arg[1] == '--help' then
   print [[
Usage: check_deps.lua [-q]

Check that all the *.tcz.dep files in the current install match dep.db
Prints a comparison of each .dep file except with -q
]]
   return
end

-- make sure we have a dep.db
os.execute'depends-on.sh zzip'

local lib_to_deps = {}

local currlib
for line in io.lines'/etc/sysconfig/tcedir/dep.db' do
   if currlib then
      if line == '' then
         currlib = nil
      else
         table.insert(lib_to_deps[currlib], line)
      end
   else
      currlib = line
      lib_to_deps[currlib] = {}
   end
end

local needs = false
for path in io.popen('ls /etc/sysconfig/tcedir/optional/*.tcz'):lines() do
   local tcz = path:match('[^/]+.tcz$')
   if lib_to_deps[tcz] then
      local currdepsf <close> = io.open(path .. '.dep')
      local currdeps = currdepsf and currdepsf:read'a' or ''

      -- normalise strings for comparison
      currdeps = (currdeps .. '\n'):gsub('%s+\n', '\n')
      local expected_deps = (table.concat(lib_to_deps[tcz], '\n') .. '\n'):gsub('%s+\n', '\n')

      if currdeps ~= expected_deps then
         needs = true
         print(tcz)
         if not quiet then
            print'>>>'
            print(string.format('%q', currdeps))
            print'==='
            print(string.format('%q', expected_deps))
            print'<<<'
         end
      end
   end
end
if needs then os.exit(1) end

--- End code ---

Juanito:

--- Quote from: Zhe on October 23, 2025, 12:43:20 AM ---mesa-dev.tcz.dep should delete libelf-dev.tcz   maybe it's elfutils-dev.tcz?

--- End quote ---

Looks like I used the wrong dep file by mistake, corrected now.

Juanito:

--- Quote from: CNK on October 22, 2025, 07:17:19 PM ---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?)).

--- End quote ---

You could build mesa-24.1.7 (the last version without the libGL dep on libgallium) without software acceleration, which should eliminate the dep on llvm.

Something like this:
--- Code: ---CC="gcc -flto -mtune=generic -Os -pipe" CXX="g++ -flto -mtune=generic -Os -pipe -DNDEBUG" meson --prefix=/usr/local --buildtype=plain -Dvalgrind=disabled -Dlibunwind=disabled -Dplatforms=x11 -Dvulkan-drivers="" -Dgallium-drivers="i915" ../
--- End code ---

..builds lib*GL* without a dep on llvm/libgallium

Rich:
Hi mjmouse

--- Quote from: mjmouse on October 23, 2025, 04:47:01 AM --- ... tce-update doesn't seem to update the dep files when the extension tcz itself hasn't changed. ...
--- End quote ---
Try this:

--- Code: ---tce-audit builddb
tce-audit updatedeps
tce-audit fetchmissing
tce-update
exitcheck.sh reboot
--- End code ---
your  .dep  files should be updated and missing extensions added.

Paul_123:
There is an "update-everything" script.....(It basically does the steps Rich outlined in a single command)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version