Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve https://github.com/gap-system/gap/issues/5761 #24

Merged
merged 1 commit into from
Aug 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ jobs:
- master
- stable-4.13
- stable-4.12
- stable-4.11
- stable-4.10
ABI: ['']
include:
- gap-branch: master
Expand Down
15 changes: 8 additions & 7 deletions PackageInfo.g
Original file line number Diff line number Diff line change
Expand Up @@ -72,23 +72,24 @@ PackageDoc := rec(
),

Dependencies := rec(
GAP := ">= 4.10",
GAP := ">= 4.12",
NeededOtherPackages := [ [ "GAPDoc", ">= 1.5" ] ],
SuggestedOtherPackages := [ ],
ExternalConditions := [ ],
),

AvailabilityTest := function()
if Filename(DirectoriesPackagePrograms("crypting"), "crypting.so") = fail then
return fail;
fi;
return true;
if not IsKernelExtensionAvailable("crypting") then
LogPackageLoadingMessage(PACKAGE_WARNING,
["the kernel module is not compiled, ",
"the package cannot be loaded."]);
return fail;
fi;
return true;
end,

TestFile := "tst/testall.g",

#Keywords := [ "TODO" ],

));


7 changes: 3 additions & 4 deletions init.g
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
#
# Reading the declaration part of the package.
#
_PATH_SO:=Filename(DirectoriesPackagePrograms("crypting"), "crypting.so");
if _PATH_SO <> fail then
LoadDynamicModule(_PATH_SO);

if not LoadKernelExtension("crypting") then
Error("failed to load the crypting package kernel extension");
fi;
Unbind(_PATH_SO);

ReadPackage( "crypting", "gap/crypting.gd");