Closed olexandr-konovalov closed 8 years ago
Replacing MutableNullMat and ReadPkg with up-to-date variants was easy. Not sure what to do with LOADED_PACKAGES.guava which currently gives a 3-elt list containing path, version num, and name: [ "/usr/local/lib/gap4r7/pkg/guava-3.13", "3.13", "GUAVA" ]
@osj1961 Thank you very much! I had a look at LOADED_PACKAGES
in the referenced lines, for example in
file := Filename(LOADED_PACKAGES.guava,
Concatenation("tbl/bdtable",String(q),".g") );
It will be very good to get rid of this, indeed, since as recently checked by @fingolfin, GUAVA is the only package that uses LOADED_PACKAGES
- it should be replaced by GAPInfo.PackagesLoaded
. Grepping for LOADED_PACKAGES
reveals this:
lib/obsolete.gd:#V LOADED_PACKAGES - still used by GUAVA (01/2016)
lib/obsolete.gd:BindGlobal( "LOADED_PACKAGES", GAPInfo.PackagesLoaded );
However, I think in this situation using GAPInfo.PackagesLoaded
is not the most optimal way - you should better use DirectoriesPackageLibrary
(see here):
file := Filename( DirectoriesPackageLibrary("guava", "tbl"),
Concatenation("bdtable",String(q),".g") );
Thanks to Alex Konovalov this issue is now closed. There is still a problem however: the bounds data is very out-of-date see issue #4
If one starts GAP with -O option, this shows that GUAVA uses many obsolete names - please see http://www.gap-system.org/Manuals/doc/ref/chap77.html on how to replace them.