Hello community, here is the log from the commit of package flint for openSUSE:Factory checked in at 2016-03-26 15:28:51 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/flint (Old) and /work/SRC/openSUSE:Factory/.flint.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "flint" Changes: -------- --- /work/SRC/openSUSE:Factory/flint/flint.changes 2015-07-05 18:03:10.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.flint.new/flint.changes 2016-03-26 17:26:13.000000000 +0100 @@ -1,0 +2,46 @@ +Sun Mar 13 09:43:42 UTC 2016 - jeng...@inai.de + +- Update to git snapshot of 3.0.x branch +* Add implementation of Moller-Granlund invert_limb +* Add implementations of n_div2_preinv and n_divrem2_preinv. +* Add primitive flint exception mechanism. +* Add n_powmod2_ui_preinv +* Add exception for impossible inverse to n_invmod and remove resulting exceptions throughout Flint. +* Remove smooth factorisation since it is completely broken. +- Remove 0002-compile-fixes.diff + +------------------------------------------------------------------- +Sat Nov 14 12:39:56 UTC 2015 - jeng...@inai.de + +- Update to new upstream release 2.5.2 +* LLL (rational, Nguyen-Stehle, from Gram matrix, with_removal, + Storjohann/ULLL) +* Hermite normal form (naive, xgcd, Domich-Kannan-Trotter, + Kannan-Bachem, Pernet-Stein) +* Smith normal form (diagonal, Kannen-Bachem, Iliopoulos) +* Paterson-Stockmeyer algorithm +* modular resultant; hgcd resultant; polynomial discriminant +* multithreaded multimodular Taylor shift +* multithreaded Brent-Kung composition +* multithreaded Kaltofen-Shoup distinct degree factorisation +* multiplication based reduced row echelon form +* place inline functions in library for foreign function interfaces +* Primality tests for large integers (Pocklington, Morrison) +* Probable prime tests for large integers (Lucas, Baillie-PSW, + strong-psp, Brillhart-Lehmer-Selfridge) +* CRT for large integers +* Dixon algorithm for nullspace +* Brent-Kung composition in irreducibility and distinct degree + factorisation +* floating point QR decomposition +* Schwarz-Rutishauser Gram-Schmidt algorithm +* Ogita-Rump-Oishi dot product +* Bodrato matrix squaring +* matrix concatenation functions +* additional functions for returning factor of modulus in polys + over Z/nZ +* Hadamard matrix construction +* series addition/subtraction +* teach flint_printf/sprintf about explicit width format specifiers + +------------------------------------------------------------------- Old: ---- 0002-compile-fixes.diff flint-2.4.5.tar.gz New: ---- _service flint-3.0~5831.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ flint.spec ++++++ --- /var/tmp/diff_new_pack.Jxev8w/_old 2016-03-26 17:26:14.000000000 +0100 +++ /var/tmp/diff_new_pack.Jxev8w/_new 2016-03-26 17:26:14.000000000 +0100 @@ -1,7 +1,7 @@ # # spec file for package flint # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,20 +16,19 @@ # +%define version_unconverted 3.0~5831 + Name: flint %define lname libflint0 -Version: 2.4.5 +Version: 3.0~5831 Release: 0 Summary: C library for doing number theory License: GPL-2.0+ Group: Productivity/Scientific/Math Url: http://flintlib.org/ -#Git-Clone: git://github.com/wbhart/flint2 f14355e9070e235a68b933b3da8c238468e9a0e2 [2.4.4] -#Git-Clone: git://git.inai.de/flint master ec03518870f1aff8bf351ba2c83a0e2a8ba3f7b0 [patch1] -Source: http://flintlib.org/%name-%version.tar.gz +Source: %name-%version.tar.xz Patch1: 0001-build-provide-autotools-files.patch -Patch2: 0002-compile-fixes.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: autoconf BuildRequires: automake @@ -39,6 +38,7 @@ BuildRequires: libtool BuildRequires: mpfr-devel >= 3 BuildRequires: ntl-devel +BuildRequires: xz %description FLINT (Fast Library for Number Theory) is a C library in support of @@ -72,19 +72,19 @@ %prep %setup -q -%patch -P 1 -P 2 -p1 +%patch -P 1 -p1 %build chmod a+x *.sh ./autogen.sh export CFLAGS="%optflags" -export CXXFLAGS="%optflags -std=gnu++11" +export CXXFLAGS="%optflags" %ifarch x86_64 %ix86 export CFLAGS="$CFLAGS -mno-popcnt" export CXXFLAGS="$CXXFLAGS -mno-popcnt" %endif -%configure --disable-static --with-ntl --enable-reentrant --enable-silent-rules -make %{?_smp_mflags} +%configure --disable-static --with-ntl --enable-reentrant +make %{?_smp_mflags} V=0 %install b="%buildroot"; ++++++ 0001-build-provide-autotools-files.patch ++++++ --- /var/tmp/diff_new_pack.Jxev8w/_old 2016-03-26 17:26:14.000000000 +0100 +++ /var/tmp/diff_new_pack.Jxev8w/_new 2016-03-26 17:26:14.000000000 +0100 @@ -1,26 +1,26 @@ -From ec03518870f1aff8bf351ba2c83a0e2a8ba3f7b0 Mon Sep 17 00:00:00 2001 +From bd27c18fc4f70be8407e72d398978dca1d9ad61e Mon Sep 17 00:00:00 2001 From: Jan Engelhardt <jeng...@inai.de> Date: Sat, 8 Dec 2012 22:32:11 +0100 Subject: [PATCH] build: provide autotools files --- - .gitignore | 34 +++++++---- - Makefile.am | 37 ++++++++++++ - autofiles.sh | 43 ++++++++++++++ - autogen.sh | 5 + - configure.ac | 129 ++++++++++++++++++++++++++++++++++++++++++ - fft_tuning.h | 9 ++ - fft_tuning32.h | 19 ++++++ - fft_tuning32.in | 19 ------ - fft_tuning64.h | 19 ++++++ - fft_tuning64.in | 19 ------ - fmpz-conversions-reentrant.h | 10 +++ - fmpz-conversions-reentrant.in | 10 --- - fmpz-conversions-single.h | 10 +++ - fmpz-conversions-single.in | 10 --- - fmpz-conversions.h | 6 + - m4/.gitignore | 2 - 16 files changed, 311 insertions(+), 70 deletions(-) + .gitignore | 32 +++++---- + Makefile.am | 42 ++++++++++++ + autofiles.sh | 51 +++++++++++++++ + autogen.sh | 5 ++ + configure.ac | 147 ++++++++++++++++++++++++++++++++++++++++++ + fft_tuning.h | 9 +++ + fft_tuning32.h | 19 ++++++ + fft_tuning32.in | 19 ------ + fft_tuning64.h | 19 ++++++ + fft_tuning64.in | 19 ------ + fmpz-conversions-reentrant.h | 10 +++ + fmpz-conversions-reentrant.in | 10 --- + fmpz-conversions-single.h | 10 +++ + fmpz-conversions-single.in | 10 --- + fmpz-conversions.h | 6 ++ + m4/.gitignore | 2 + + 16 files changed, 341 insertions(+), 69 deletions(-) create mode 100644 Makefile.am create mode 100755 autofiles.sh create mode 100755 autogen.sh @@ -37,77 +37,32 @@ create mode 100644 fmpz-conversions.h create mode 100644 m4/.gitignore -Index: flint-2.4.5/.gitignore -=================================================================== ---- flint-2.4.5.orig/.gitignore -+++ flint-2.4.5/.gitignore -@@ -1,19 +1,29 @@ - *~ - *.orig --*.d --*.o --*.a --*.so - *.P - *.ppm --*/.deps/* --fmpz/fmpz.c --build/ --config.h --fft_tuning.h --fmpz-conversions.h --Makefile - doc/latex/flint-manual.* - !doc/latex/flint-manual.tex - doc/latex/input/* --doc/latex/create_doc -\ No newline at end of file -+doc/latex/create_doc -+ -+*.la -+*.lo -+*.o -+.deps/ -+.dirstamp -+.libs/ -+Makefile -+Makefile.in -+ -+/aclocal.m4 -+/autom4te.cache/ -+/build-aux/ -+/confdefs.h -+/configure -+/config.* -+/libtool -+/stamp-h1 -+/Mkinclude.am -+ -+/flint-config.h -Index: flint-2.4.5/Makefile.am -=================================================================== +diff --git a/Makefile.am b/Makefile.am +new file mode 100644 +index 0000000..99e517c --- /dev/null -+++ flint-2.4.5/Makefile.am -@@ -0,0 +1,37 @@ ++++ b/Makefile.am +@@ -0,0 +1,42 @@ +# -*- Makefile -*- + +ACLOCAL_AMFLAGS = -I m4 + +include Mkinclude.am + -+AM_CPPFLAGS = -DFLINT_CPIMPORT=\"${pkgdatadir}/CPimport.txt\" -+AM_CFLAGS = -ansi -pedantic -Wall ${FLINT_TUNE} ${FLINT_POPCNT} -+AM_CXXFLAGS = ${AM_CFLAGS} ++AM_CPPFLAGS = -DFLINT_CPIMPORT=\"${pkgdatadir}/CPimport.txt\" -DFLINT_DLL=__attribute__\(\(visibility\(\"default\"\)\)\) ++AM_CFLAGS = -ansi -pedantic -Wall -fvisibility=hidden ${FLINT_TUNE} ${FLINT_POPCNT} ++AM_CXXFLAGS = ${AM_CFLAGS} -std=gnu++11 + -+BUILT_SOURCES = flint-config.h ++BUILT_SOURCES = flint-config.h build/CPimport.h + -+SOURCES = clz_tab.c memory_manager.c version.c profiler.c ++SOURCES = printf.c fprintf.c sprintf.c scanf.c fscanf.c sscanf.c clz_tab.c memory_manager.c version.c profiler.c thread_support.c exception.c + -+pkginclude_HEADERS = config.h flint-config.h ${cwd_headers} ++pkginclude_HEADERS = ${cwd_headers} + +lib_LTLIBRARIES = libflint.la ++noinst_LTLIBRARIES = ${libflint_im} +libflint_la_SOURCES = ${lib_sources} ${SOURCES} -+libflint_la_LIBADD = -lm ${mpfr_LIBS} ${mpir_LIBS} ++libflint_la_LIBADD = ${libflint_im} -lm -lpthread ${mpfr_LIBS} ${mpir_LIBS} + +if ENABLE_REENTRANT +libflint_la_SOURCES += fmpz/link/fmpz_reentrant.c @@ -124,25 +79,30 @@ +libflint_la_LIBADD += ${blas_LIBS} +endif + ++build/CPimport.h: ${srcdir}/qadic/CPimport.txt ++ @${MKDIR_P} build ++ ${AM_V_GEN}sed "s/ /,/g;s/.*/&,/g" $< >$@ ++ +flint-config.h: config.h -+ grep FLINT $< >$@ -Index: flint-2.4.5/autofiles.sh -=================================================================== ++ grep FLINT <$< >$@ +diff --git a/autofiles.sh b/autofiles.sh +new file mode 100755 +index 0000000..42a0b55 --- /dev/null -+++ flint-2.4.5/autofiles.sh -@@ -0,0 +1,43 @@ ++++ b/autofiles.sh +@@ -0,0 +1,51 @@ +#!/bin/sh +# +# Expand wildcards, gobble up all sources and refresh Mkinclude.am. +# If a Makefile already exists at the time of running autofiles.sh, +# autoreconf/configure need not be called again. +# -+BUILD_DIRS="ulong_extras long_extras perm fmpz fmpz_vec fmpz_poly \ -+ fmpq_poly fmpz_mat mpfr_vec mpfr_mat nmod_vec nmod_poly \ -+ nmod_poly_factor arith mpn_extras nmod_mat fmpq fmpq_mat padic \ ++BUILD_DIRS="aprcl ulong_extras long_extras perm fmpz fmpz_vec fmpz_poly \ ++ fmpq_poly fmpz_mat fmpz_lll mpfr_vec mpfr_mat mpf_vec mpf_mat nmod_vec nmod_poly \ ++ nmod_poly_factor arith mpn_extras nmod_mat fmpq fmpq_vec fmpq_mat padic \ + fmpz_poly_q fmpz_poly_mat nmod_poly_mat fmpz_mod_poly \ + fmpz_mod_poly_factor fmpz_factor fmpz_poly_factor fft qsieve \ -+ double_extras padic_poly padic_mat qadic \ ++ double_extras d_vec d_mat padic_poly padic_mat qadic \ + fq fq_vec fq_mat fq_poly fq_poly_factor\ + fq_nmod fq_nmod_vec fq_nmod_mat fq_nmod_poly fq_nmod_poly_factor \ + fq_zech fq_zech_vec fq_zech_mat fq_zech_poly fq_zech_poly_factor" @@ -152,15 +112,15 @@ + +echo "bd_headers = \\"; +for i in $BUILD_DIRS; do -+ echo "$i.h \\"; ++ echo " $i.h \\"; +done; -+echo '$(emptyonpurpose)'; ++echo ' $(emptyonpurpose)'; + +echo "cwd_headers = \\"; +for i in *.h; do -+ echo "$i \\"; ++ echo " $i \\"; +done; -+echo '$(empty)'; ++echo ' $(emptyonpurpose)'; + +wcdir () +{ @@ -170,26 +130,36 @@ + echo '$(empty)'; +} + -+wcdir lib_sources $BUILD_DIRS; -+wcdir exmp_sources examples; -+wcdir test_sources test; -+wcdir prof_sources profile; -Index: flint-2.4.5/autogen.sh -=================================================================== ++libflint_im="" ++for i in $BUILD_DIRS; do ++ # there are quite a lot of .lo files (2414), and building with ++ # intermediate libs reduces the link time of the whole project from ++ # 1m53s to 32s (2600K), less with make -j (e.g. 12s on -j8) ++ wcdir "libflint_${i}_la_SOURCES" "$i" ++ libflint_im="$libflint_im libflint_${i}.la" ++done ++echo "libflint_im = $libflint_im" ++wcdir exmp_sources examples ++wcdir test_sources test ++wcdir prof_sources profile +diff --git a/autogen.sh b/autogen.sh +new file mode 100755 +index 0000000..82cf41a --- /dev/null -+++ flint-2.4.5/autogen.sh ++++ b/autogen.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +./autofiles.sh; +autoreconf -fi; +rm -Rf autom4te.cache; -Index: flint-2.4.5/configure.ac -=================================================================== ---- /dev/null -+++ flint-2.4.5/configure.ac -@@ -0,0 +1,129 @@ -+AC_INIT([flint], [2.3]) +diff --git a/configure.ac b/configure.ac +new file mode 100644 +index 0000000..ee3307c +--- /dev/null ++++ b/configure.ac +@@ -0,0 +1,147 @@ ++AC_INIT([flint], [3.0]) +AC_CONFIG_AUX_DIR([build-aux]) +AC_CONFIG_HEADERS([config.h]) +AC_CONFIG_MACRO_DIR([m4]) @@ -270,13 +240,32 @@ +dnl +dnl NTL interface +dnl ++AC_MSG_CHECKING([whether to enable NTL]) +AC_ARG_WITH([ntl], + [AS_HELP_STRING([--with-ntl], [Use NTL [[no]]])], + [with_ntl="$withval"], + [with_ntl="no"]) -+AM_CONDITIONAL([WITH_NTL], [test "$with_ntl" = yes]) -+ntl_LIBS="" -+AS_IF([test "$with_ntl" = yes], [ntl_LIBS="-lntl"]) ++AS_IF([test "x$with_ntl" = "xno"], ++ [ ++ AM_CONDITIONAL([WITH_NTL], [false]) ++ AC_MSG_RESULT([no]) ++ ], ++ [ ++ AC_MSG_RESULT([yes]) ++ saved_LIBS="$LIBS"; LIBS="$LIBS -lntl"; ++ AC_LANG_PUSH([C++]) ++ AC_LINK_IFELSE([ ++ AC_LANG_SOURCE([ ++ #include <NTL/g_lip.h> ++ int main(void) { _ntl_gsetlength; } ++ ])], ++ [ntl_LIBS="-lntl"], ++ [AC_MSG_ERROR([NTL not found.])] ++ ) ++ LIBS="$saved_LIBS"; ++ AC_LANG_POP([C++]) ++ AM_CONDITIONAL([WITH_NTL], [true]) ++ ]) +AC_SUBST([ntl_LIBS]) + + @@ -315,13 +304,13 @@ +AC_SEARCH_LIBS([__gmpn_get_d], [mpir], [mpir_LIBS="$LIBS"; LIBS=""]) +AC_SUBST([mpir_LIBS]) + -+ +AC_CONFIG_FILES([Makefile]) +AC_OUTPUT -Index: flint-2.4.5/fft_tuning.h -=================================================================== +diff --git a/fft_tuning.h b/fft_tuning.h +new file mode 100644 +index 0000000..988226e --- /dev/null -+++ flint-2.4.5/fft_tuning.h ++++ b/fft_tuning.h @@ -0,0 +1,9 @@ +/* + * Checking for "64-bit" must not depend on uname at all. @@ -332,10 +321,11 @@ +#else +# include "fft_tuning32.h" +#endif -Index: flint-2.4.5/fft_tuning32.h -=================================================================== +diff --git a/fft_tuning32.h b/fft_tuning32.h +new file mode 100644 +index 0000000..27ff431 --- /dev/null -+++ flint-2.4.5/fft_tuning32.h ++++ b/fft_tuning32.h @@ -0,0 +1,19 @@ +/* fft_tuning.h -- autogenerated by tune-fft */ + @@ -356,9 +346,10 @@ + +#endif + -Index: flint-2.4.5/fft_tuning32.in -=================================================================== ---- flint-2.4.5.orig/fft_tuning32.in +diff --git a/fft_tuning32.in b/fft_tuning32.in +deleted file mode 100644 +index 27ff431..0000000 +--- a/fft_tuning32.in +++ /dev/null @@ -1,19 +0,0 @@ -/* fft_tuning.h -- autogenerated by tune-fft */ @@ -380,10 +371,11 @@ - -#endif - -Index: flint-2.4.5/fft_tuning64.h -=================================================================== +diff --git a/fft_tuning64.h b/fft_tuning64.h +new file mode 100644 +index 0000000..f7f94da --- /dev/null -+++ flint-2.4.5/fft_tuning64.h ++++ b/fft_tuning64.h @@ -0,0 +1,19 @@ +/* fft_tuning.h -- autogenerated by tune-fft */ + @@ -404,9 +396,10 @@ + +#endif + -Index: flint-2.4.5/fft_tuning64.in -=================================================================== ---- flint-2.4.5.orig/fft_tuning64.in +diff --git a/fft_tuning64.in b/fft_tuning64.in +deleted file mode 100644 +index f7f94da..0000000 +--- a/fft_tuning64.in +++ /dev/null @@ -1,19 +0,0 @@ -/* fft_tuning.h -- autogenerated by tune-fft */ @@ -428,10 +421,11 @@ - -#endif - -Index: flint-2.4.5/fmpz-conversions-reentrant.h -=================================================================== +diff --git a/fmpz-conversions-reentrant.h b/fmpz-conversions-reentrant.h +new file mode 100644 +index 0000000..a0d9cbd --- /dev/null -+++ flint-2.4.5/fmpz-conversions-reentrant.h ++++ b/fmpz-conversions-reentrant.h @@ -0,0 +1,10 @@ +#ifndef FMPZ_CONVERSIONS_H +#define FMPZ_CONVERSIONS_H @@ -443,9 +437,10 @@ +#define COEFF_TO_PTR(x) ((__mpz_struct *) ((x) << 2)) + +#endif /* FMPZ_CONVERSIONS_H */ -Index: flint-2.4.5/fmpz-conversions-reentrant.in -=================================================================== ---- flint-2.4.5.orig/fmpz-conversions-reentrant.in +diff --git a/fmpz-conversions-reentrant.in b/fmpz-conversions-reentrant.in +deleted file mode 100644 +index a0d9cbd..0000000 +--- a/fmpz-conversions-reentrant.in +++ /dev/null @@ -1,10 +0,0 @@ -#ifndef FMPZ_CONVERSIONS_H @@ -458,10 +453,11 @@ -#define COEFF_TO_PTR(x) ((__mpz_struct *) ((x) << 2)) - -#endif /* FMPZ_CONVERSIONS_H */ -Index: flint-2.4.5/fmpz-conversions-single.h -=================================================================== +diff --git a/fmpz-conversions-single.h b/fmpz-conversions-single.h +new file mode 100644 +index 0000000..a0d9cbd --- /dev/null -+++ flint-2.4.5/fmpz-conversions-single.h ++++ b/fmpz-conversions-single.h @@ -0,0 +1,10 @@ +#ifndef FMPZ_CONVERSIONS_H +#define FMPZ_CONVERSIONS_H @@ -473,9 +469,10 @@ +#define COEFF_TO_PTR(x) ((__mpz_struct *) ((x) << 2)) + +#endif /* FMPZ_CONVERSIONS_H */ -Index: flint-2.4.5/fmpz-conversions-single.in -=================================================================== ---- flint-2.4.5.orig/fmpz-conversions-single.in +diff --git a/fmpz-conversions-single.in b/fmpz-conversions-single.in +deleted file mode 100644 +index a0d9cbd..0000000 +--- a/fmpz-conversions-single.in +++ /dev/null @@ -1,10 +0,0 @@ -#ifndef FMPZ_CONVERSIONS_H @@ -488,10 +485,11 @@ -#define COEFF_TO_PTR(x) ((__mpz_struct *) ((x) << 2)) - -#endif /* FMPZ_CONVERSIONS_H */ -Index: flint-2.4.5/fmpz-conversions.h -=================================================================== +diff --git a/fmpz-conversions.h b/fmpz-conversions.h +new file mode 100644 +index 0000000..a0289ec --- /dev/null -+++ flint-2.4.5/fmpz-conversions.h ++++ b/fmpz-conversions.h @@ -0,0 +1,6 @@ +#include "flint-config.h" +#ifdef FLINT_REENTRANT @@ -499,10 +497,14 @@ +#else +# include "fmpz-conversions-single.h" +#endif -Index: flint-2.4.5/m4/.gitignore -=================================================================== +diff --git a/m4/.gitignore b/m4/.gitignore +new file mode 100644 +index 0000000..64d9bbc --- /dev/null -+++ flint-2.4.5/m4/.gitignore ++++ b/m4/.gitignore @@ -0,0 +1,2 @@ +/libtool.m4 +/lt*.m4 +-- +2.7.0 + ++++++ _service ++++++ <services> <service name="tar_scm" mode="localonly"> <param name="filename">flint</param> <param name="scm">git</param> <param name="url">git://github.com/wbhart/flint2</param> <param name="revision">flint-3.0</param> <param name="parent-tag">0e8613b3336f356e07f7bbd4bb2ae5eded68ca40</param> <param name="versionformat">3.0~@TAG_OFFSET@</param> </service> <service name="recompress" mode="localonly"> <param name="file">*.tar</param> <param name="compression">xz</param> </service> <service name="set_version" mode="localonly"/> </services>