Skip to content
Closed
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
60 changes: 60 additions & 0 deletions build/pkgs/gap_packages/patches/semigrouups.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
--- a/pkg/semigroups/gapbind14/include/gapbind14/gapbind14.hpp 2024-10-19 05:11:26.000000000 -0600
+++ b/pkg/semigroups//gapbind14/include/gapbind14/gapbind14.hpp 2025-01-17 15:51:00.454986860 -0700
@@ -291,7 +291,7 @@ namespace gapbind14 {
_funcs.push_back({detail::copy_c_str(nm),
sizeof...(Args) - 1,
detail::params_c_str(sizeof...(Args) - 1),
- (GVarFunc) func,
+ (ObjFunc) func,
detail::copy_c_str(fnm + ":Func" + nm)});
}

@@ -305,7 +305,7 @@ namespace gapbind14 {
.push_back({detail::copy_c_str(nm),
sizeof...(Args) - 1,
detail::params_c_str(sizeof...(Args) - 1),
- (GVarFunc) func,
+ (ObjFunc) func,
detail::copy_c_str(flnm + ":Func" + sbtyp + "::" + nm)});
}

--- a/pkg/semigroups//gapbind14/src/gapbind14.cpp 2024-10-19 05:11:26.000000000 -0600
+++ b/pkg/semigroups//gapbind14/src/gapbind14.cpp 2025-01-17 15:43:51.483642580 -0700
@@ -26,7 +26,7 @@
#include "gapbind14/gap_include.hpp" // for Obj etc

#define GVAR_ENTRY(srcfile, name, nparam, params) \
- {#name, nparam, params, (GVarFunc) name, srcfile ":Func" #name}
+ {#name, nparam, params, (ObjFunc) (unsigned long) name, srcfile ":Func" #name}

namespace gapbind14 {
UInt T_GAPBIND14_OBJ = 0;
@@ -241,7 +241,7 @@ namespace gapbind14 {
// TODO(later) remove, use InstallGlobalFunction instead
StructGVarFunc GVarFuncs[]
= {GVAR_ENTRY("gapbind14.cpp", IsValidGapbind14Object, 1, "arg1"),
- {0, 0, 0, 0, 0}};
+ {nullptr, 0, nullptr, nullptr, nullptr}};
} // namespace

Module &module() {
--- a/pkg/semigroups//src/pkg.cpp 2024-10-19 05:11:26.000000000 -0600
+++ b/pkg/semigroups//src/pkg.cpp 2025-01-17 15:44:47.234907535 -0700
@@ -430,7 +430,7 @@ typedef Obj (*GVarFunc)(/*arguments*/);

#define GVAR_ENTRY(srcfile, name, nparam, params) \
{ \
-#name, nparam, params, (GVarFunc) name, srcfile ":Func" #name \
+#name, nparam, params, (ObjFunc) (unsigned long) name, srcfile ":Func" #name \
}

// Table of functions to export
@@ -482,7 +482,7 @@ static StructGVarFunc GVarFuncs[] = {
4,
"o, scc, lookup, nr_threads"),

- {0, 0, 0, 0, 0} /* Finish with an empty entry */
+ {nullptr, 0, nullptr, nullptr, nullptr} /* Finish with an empty entry */
};

/******************************************************************************
20 changes: 18 additions & 2 deletions build/pkgs/gap_packages/spkg-install.in
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ install_compiled_pkg()
#
# These packages have an old ./configure that take the GAP_ROOT as a positional
# argument
for pkg in cohomolo crypting grape guava orb datastructures
for pkg in cohomolo crypting grape orb datastructures
do
echo "Building GAP package $pkg"
CFLAGS="$CFLAGS -Wno-implicit-function-declaration"
Expand All @@ -104,6 +104,14 @@ do
cd "$PKG_SRC_DIR"
done

echo "Building GAP package guava"
export CFLAGS="-std=gnu17 $CFLAGS -Wno-implicit-function-declaration"
cd "$PKG_SRC_DIR/guava"
./configure "$GAP_ROOT"
sdh_make
install_compiled_pkg "guava"
cd "$PKG_SRC_DIR"

# These packages have a new-style autoconf ./configure
# that takes --with-gaproot

Expand All @@ -118,7 +126,7 @@ pararr=( " " " " "--with-external-planarity" "--with-external-libsemigroups" )
##############################################################################

parind=0
for pkg in nq io digraphs semigroups
for pkg in nq io digraphs
do
echo "Building GAP package $pkg"
cd "$PKG_SRC_DIR/$pkg"
Expand All @@ -128,3 +136,11 @@ do
install_compiled_pkg "$pkg"
cd "$PKG_SRC_DIR"
done

echo "Building GAP package semigroups"
export CFLAGS="-std=gnu17 $CFLAGS"
cd "$PKG_SRC_DIR/semigroups"
sdh_configure --with-gaproot="$GAP_ROOT" --with-external-libsemigroups
sdh_make
install_compiled_pkg "semigroups"
cd "$PKG_SRC_DIR"
2 changes: 1 addition & 1 deletion src/doc/en/prep/Logging-On.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ the third option to "export" them will not make sense.
The legacy SageNB has been retired in Sage 9.1.
Please use the Jupyter notebook.
Old SageNB worksheets can be converted to Jupyter notebooks
using the `sage --notebook=export`_ command or to RST
using the `sage --notebook=export` command or to RST
using the `sage-sws2rst <https://pypi.org/project/sage-sws2rst/>`_ package.

Jupyter will bring you to a screen
Expand Down
Loading