Macaulay2 / M2

The primary source code repository for Macaulay2, a system for computing in commutative algebra, algebraic geometry and related fields.
https://macaulay2.com
330 stars 228 forks source link

finding Singular's Galois field tables #2116

Open DanGrayson opened 3 years ago

DanGrayson commented 3 years ago

The assumption is that the architecture independent files in the Macaulay2 distributions are the same for all debian-based architectures, so that there only has to be one common *.deb file for them. But: if factory is built on one of those architectures, then its *.deb file will contain the gftables directory as /usr/share/Macaulay2/Core/factory/gftables, and M2 will look there for it, whereas the others will install it as /usr/share/singular/factory/gftables.

So, in that case, one has to be careful to upload the fatter common *.deb file.

There has to be a better way.

d-torrance commented 3 years ago

The gftables are in the architecture-independent singular-data package in Debian/Ubuntu, so they should be available no matter what. This is what I have in debian/control:

Package: macaulay2
Architecture: any
Depends: macaulay2-common (= ${source:Version}),
         singular-data,
         ${misc:Depends},
         ${shlibs:Depends}

Of course, one disadvantage is that singular-data has singular-ui in its Recommends, and so we end up getting all of Singular, too, at least until #1681 is dealt with.

DanGrayson commented 3 years ago

One simple fix: if we build gftables, install it in the binary portion of the distribution.