Atri Bhattacharya wrote:
I am trying to take care of the apparently incorrect packaging of *-32bit biarch libraries for lapack, which currently have 0-byte files instead of the intended update-alternatives symlinks.
Think I figured it out: it requires one to also create the /etc/alternatives symlink manually as part of post as well! Here is what I ended up with, that seems to work to the extent of my limited testing [1]: ``` libblas3 requires "update-alternatives" postin "ln -sf /etc/alternatives/libblas.so.3_<extension>bit /usr/%_lib/libblas.so.3" postin "/usr/sbin/update-alternatives --force --install /usr/%_lib/libblas.so.3 libblas.so.3_<extension>bit /usr/%_lib/blas/libblas.so.3 50" postun "/usr/sbin/update-alternatives --remove libblas.so.3_<extension>bit /usr/%_lib/blas/libblas.so.3" ``` Still, if anyone can certify this is the correct way, I would be very grateful to you. [1] <https://build.opensuse.org/projects/home:badshah400:lapack2023/packages/lapack/files/baselibs.conf?expand=1&rev=21> Best wishes, -- Atri