Skip to content
Open
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
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ jobs:
- debian:forky
- ghcr.io/void-linux/void-glibc-full
- archlinux
#- ubuntu:22.04 - fails due to issue with cypari2
#- ubuntu:24.04 - fails due to issue with cypari2
#- ubuntu:22.04 - gap is outdated there (only 4.11)
- ubuntu:24.04
- ubuntu:25.04
container:
image: ${{ matrix.container }}
Expand All @@ -46,6 +46,10 @@ jobs:
# but we need the maxima help to be in place
sed -i '/^NoExtract/d' /etc/pacman.conf
fi
if [ "${{ matrix.container }}" = "ubuntu:22.04" ]; then
apt-get update
apt-get install -y git
fi

- name: Checkout code
# cannot use v4 yet because of https://github.com/actions/checkout/issues/1487
Expand Down
2 changes: 1 addition & 1 deletion build/bin/sage-print-system-package-command
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ case $system:$command in
fi
;;
@(fedora*|redhat*|centos*):install)
[ "$YES" = yes ] && options="$options -y"
[ "$YES" = yes ] && options="$options -y --allowerasing"
[ "$IGNORE_MISSING" = yes ] && options="$options --skip-unavailable"
[ -n "$system_packages" ] && print_shell_command ${SUDO}dnf install $options $system_packages
;;
Expand Down
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ project(
version: files('VERSION.txt'),
license: 'GPL v3',
default_options: ['c_std=c17', 'cpp_std=c++17', 'python.install_env=auto'],
meson_version: '>=1.2',
meson_version: '>=1.5',
)

# Python module
Expand Down
26 changes: 26 additions & 0 deletions src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,32 @@ except Exception:
endif
# Cannot be found via pkg-config
pari = cc.find_library('pari', required: not is_windows, disabler: true)
if pari.found() and not meson.is_cross_build()
# Verify PARI version
pari_version_code = '''
#include <stdio.h>
#include <pari/pari.h>
int main(void) {
pari_init(1000000, 2);
GEN v = pari_version(), M = gel(v,1), m = gel(v,2), p = gel(v,3);
printf("%ld.%ld.%ld", itos(M), itos(m), itos(p));
pari_close();
return 0;
}
'''
pari_version = cc.run(
pari_version_code,
args: ['-v'],
name: 'pari version',
dependencies: [pari],
required: true,
).stdout().strip()
if pari_version.version_compare('<=2.17.0')
message('PARI version > 2.17.0 required, found ' + pari_version)
pari = disabler()
endif
endif


mpfr = dependency('mpfr')

Expand Down
4 changes: 3 additions & 1 deletion subprojects/flint.wrap
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ url = https://github.com/flintlib/flint.git
revision = main
depth = 1
patch_directory = flint
diff_files = flint/cmakelinux.patch
method = cmake

[provide]
dependency_names = flint
flint = flint_dep
15 changes: 15 additions & 0 deletions subprojects/packagefiles/flint/cmakelinux.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8d959fb..5dcbf6e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -12,10 +12,6 @@

cmake_minimum_required(VERSION 3.22)

-if(NOT WIN32)
- message(FATAL_ERROR "Detected system is not Windows. Please use the Autotools configuration along with the Makefile instead as it is more up-to-date. Read INSTALL.md.")
-endif()
-
include(CheckCCompilerFlag)
include(CheckCSourceRuns)
include(CheckIPOSupported)
Loading