[openblas] broken symlinks

Problems with packages? Post here, using [tags] of the package name.

[openblas] broken symlinks

Postby flocke » Wed Jul 27, 2022 7:33 am

Some of the symlinks created inside the PKGBUILD are broken for aarch64.

In line 50 and 51 of the PKGBUILD the following symlinks are created:

$this->bbcode_second_pass_code('', '
ln -s libopenblasp-r$pkgver.so libblas.so
ln -s libopenblasp-r$pkgver.so libblas.so.3
')

This works fine on x86_64, as the library libopenblasp-r0.3.20.so exists there.
But on aarch64, the built library is named differently (libopenblasp_armv8p-r0.3.20.so).
Because of this the two symlinks are broken, which in turn breaks packages depending on those two symlinks (e.g. home-assistant).

My suggestion would be to either directly link against libopenblas.so.3, which is a symlink created during make install that always points to the correct library (on x86_64 as well as aarch64) or use that symlink to resolve the actual library name before linking:

$this->bbcode_second_pass_code('', '
ln -s $(readlink libopenblas.so.3) libblas.so
ln -s $(readlink libopenblas.so.3) libblas.so.3
')
flocke
 
Posts: 4
Joined: Tue Apr 26, 2016 7:24 pm

Return to Packages

Who is online

Users browsing this forum: No registered users and 4 guests

cron