Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package libff for openSUSE:Factory checked 
in at 2021-02-09 21:15:47
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libff (Old)
 and      /work/SRC/openSUSE:Factory/.libff.new.28504 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libff"

Tue Feb  9 21:15:47 2021 rev:1 rq:870673 version:1.0.0

Changes:
--------
New Changes file:

--- /dev/null   2021-01-11 18:20:20.070723563 +0100
+++ /work/SRC/openSUSE:Factory/.libff.new.28504/libff.changes   2021-02-09 
21:15:48.598742790 +0100
@@ -0,0 +1,26 @@
+-------------------------------------------------------------------
+Tue Feb  9 14:49:40 UTC 2021 - Jan Engelhardt <jeng...@inai.de>
+
+- Edit 01_shared_lib.patch and implement the SUSE shlib packaging
+  policy.
+
+-------------------------------------------------------------------
+Fri Feb  5 06:59:22 UTC 2021 - Martin Pluskal <mplus...@suse.com>
+
+- Cleanup spec file
+
+-------------------------------------------------------------------
+Fri Oct 30 07:43:39 UTC 2020 - Adam Mizerski <a...@mizerski.pl>
+
+- update to 1.0.0
+  * no upstream changelog
+- refreshed patches
+
+-------------------------------------------------------------------
+Mon Jan 21 21:26:14 UTC 2019 - Adam Mizerski <a...@mizerski.pl>
+
+- new package; version 0~git63
+- added patches:
+  * 00_no_bn128.patch
+  * 01_shared_lib.patch
+  * 02_config_hpp.patch

New:
----
  00_no_bn128.patch
  01_shared_lib.patch
  02_config_hpp.patch
  libff-1.0.0.tar.gz
  libff.changes
  libff.spec

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ libff.spec ++++++
#
# spec file for package libff
#
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


%define lname libff-1_0_0
Name:           libff
Version:        1.0.0
Release:        0
Summary:        C++ library for Finite Fields and Elliptic Curves
License:        MIT
Group:          Development/Libraries/C and C++
URL:            https://github.com/scipr-lab/libff
Source0:        
https://github.com/scipr-lab/libff/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch0:         00_no_bn128.patch
Patch1:         01_shared_lib.patch
Patch2:         02_config_hpp.patch
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  gmp-devel
BuildRequires:  libopenssl-1_1-devel

%description
libff is a C++ library for finite fields and elliptic curves.

%package -n %{lname}
Summary:        C++ library for finite fields and elliptic curves
Group:          System/Libraries

%description -n %{lname}
libff is a C++ library for finite fields and elliptic curves.

%package devel
Summary:        Development files for libff
Group:          Development/Libraries/C and C++
Requires:       %{lname} = %{version}-%{release}

%description devel
The %{name}-devel package contains libraries and header files for developing 
applications that use libff.

%prep
%autosetup -p1
chmod 0644 LICENSE AUTHORS README.md
# see 00_no_bn128.patch
rm -r depends
rm -r libff/algebra/curves/bn128
rm libff/algebra/scalar_multiplication/multiexp_profile.cpp

%build
%cmake \
    -DWITH_PROCPS=OFF -DPACKAGE_VERSION:STRING="%{version}"
%cmake_build

%check
cd build
make %{?_smp_mflags} check

%install
%cmake_install

%post   -n %{lname} -p /sbin/ldconfig
%postun -n %{lname} -p /sbin/ldconfig

%files -n %{lname}
%doc README.md
%license LICENSE AUTHORS
%{_libdir}/libff-%{version}.so

%files devel
%{_includedir}/libff/

%changelog
++++++ 00_no_bn128.patch ++++++
From: Adam Mizerski <a...@mizerski.pl>
Date: 2019-02-12 20:48:31
Upstream: no
References: https://github.com/scipr-lab/libff/issues/22
Subject: disable BN128

BN128 uses internally bundled dependencies, which would require more work to
package properly.

Index: libff-1.0.0/CMakeLists.txt
===================================================================
--- libff-1.0.0.orig/CMakeLists.txt
+++ libff-1.0.0/CMakeLists.txt
@@ -9,10 +9,10 @@ endif()
 
 set(
   CURVE
-  "BN128"
+  "ALT_BN128"
   CACHE
   STRING
-  "Default curve: one of ALT_BN128, BN128, EDWARDS, MNT4, MNT6"
+  "Default curve: one of ALT_BN128, EDWARDS, MNT4, MNT6"
 )
 
 option(
@@ -135,12 +135,6 @@ add_definitions(
 
 enable_testing()
 
-if(${CURVE} STREQUAL "BN128")
-  add_definitions(
-    -DBN_SUPPORT_SNARK=1
-  )
-endif()
-
 if("${DEBUG}")
   add_definitions(-DDEBUG=1)
 endif()
@@ -226,7 +220,5 @@ if ("${IS_LIBFF_PARENT}")
     COMMAND ${CMAKE_COMMAND}
      -E echo 'Built target finished'
   )
-
-  add_subdirectory(depends)
 endif()
 add_subdirectory(libff)
Index: libff-1.0.0/libff/CMakeLists.txt
===================================================================
--- libff-1.0.0.orig/libff/CMakeLists.txt
+++ libff-1.0.0/libff/CMakeLists.txt
@@ -1,25 +1,3 @@
-set(FF_EXTRASRCS)
-set(FF_EXTRALIBS)
-if(${CURVE} STREQUAL "BN128")
-  set(
-    FF_EXTRASRCS
-
-    ${FF_EXTRASRCS}
-    algebra/curves/bn128/bn128_g1.cpp
-    algebra/curves/bn128/bn128_g2.cpp
-    algebra/curves/bn128/bn128_gt.cpp
-    algebra/curves/bn128/bn128_init.cpp
-    algebra/curves/bn128/bn128_pairing.cpp
-    algebra/curves/bn128/bn128_pp.cpp
-  )
-  set(
-    FF_EXTRALIBS
-
-    ${FF_EXTRALIBS}
-    zm
-  )
-endif()
-
 add_library(
   ff
   STATIC
@@ -48,15 +26,12 @@ add_library(
   common/double.cpp
   common/profiling.cpp
   common/utils.cpp
-
-  ${FF_EXTRASRCS}
 )
 target_link_libraries(
   ff
 
   GMP::gmp
   ${PROCPS_LIBRARIES}
-  ${FF_EXTRALIBS}
 )
 target_include_directories(
   ff
@@ -131,19 +106,4 @@ if ("${IS_LIBFF_PARENT}")
   add_dependencies(check algebra_bilinearity_test)
   add_dependencies(check algebra_groups_test)
   add_dependencies(check algebra_fields_test)
-
-  add_executable(
-    multiexp_profile
-    EXCLUDE_FROM_ALL
-
-    algebra/scalar_multiplication/multiexp_profile.cpp
-  )
-  target_link_libraries(
-    multiexp_profile
-
-    ${OPENSSL_LIBRARIES}
-    ff
-  )
-
-  add_dependencies(profile multiexp_profile)
 endif()
Index: libff-1.0.0/libff/algebra/curves/tests/test_bilinearity.cpp
===================================================================
--- libff-1.0.0.orig/libff/algebra/curves/tests/test_bilinearity.cpp
+++ libff-1.0.0/libff/algebra/curves/tests/test_bilinearity.cpp
@@ -6,9 +6,6 @@
  *****************************************************************************/
 #include <libff/algebra/curves/edwards/edwards_pp.hpp>
 #include <libff/common/profiling.hpp>
-#ifdef CURVE_BN128
-#include <libff/algebra/curves/bn128/bn128_pp.hpp>
-#endif
 #include <libff/algebra/curves/alt_bn128/alt_bn128_pp.hpp>
 #include <libff/algebra/curves/mnt/mnt4/mnt4_pp.hpp>
 #include <libff/algebra/curves/mnt/mnt6/mnt6_pp.hpp>
@@ -128,12 +125,6 @@ int main(void)
     alt_bn128_pp::init_public_params();
     pairing_test<alt_bn128_pp>();
     double_miller_loop_test<alt_bn128_pp>();
-
-#ifdef CURVE_BN128       // BN128 has fancy dependencies so it may be disabled
-    bn128_pp::init_public_params();
-    pairing_test<bn128_pp>();
-    double_miller_loop_test<bn128_pp>();
-#endif
 }
 
 #else // NDEBUG
Index: libff-1.0.0/libff/algebra/curves/tests/test_groups.cpp
===================================================================
--- libff-1.0.0.orig/libff/algebra/curves/tests/test_groups.cpp
+++ libff-1.0.0/libff/algebra/curves/tests/test_groups.cpp
@@ -8,9 +8,6 @@
 #include <libff/algebra/curves/mnt/mnt4/mnt4_pp.hpp>
 #include <libff/algebra/curves/mnt/mnt6/mnt6_pp.hpp>
 #include <libff/common/profiling.hpp>
-#ifdef CURVE_BN128
-#include <libff/algebra/curves/bn128/bn128_pp.hpp>
-#endif
 #include <sstream>
 
 #include <libff/algebra/curves/alt_bn128/alt_bn128_pp.hpp>
@@ -166,14 +163,6 @@ int main(void)
     test_group<G2<alt_bn128_pp> >();
     test_output<G2<alt_bn128_pp> >();
     test_mul_by_q<G2<alt_bn128_pp> >();
-
-#ifdef CURVE_BN128       // BN128 has fancy dependencies so it may be disabled
-    bn128_pp::init_public_params();
-    test_group<G1<bn128_pp> >();
-    test_output<G1<bn128_pp> >();
-    test_group<G2<bn128_pp> >();
-    test_output<G2<bn128_pp> >();
-#endif
 }
 
 #else // NDEBUG
Index: libff-1.0.0/libff/algebra/fields/tests/test_fields.cpp
===================================================================
--- libff-1.0.0.orig/libff/algebra/fields/tests/test_fields.cpp
+++ libff-1.0.0/libff/algebra/fields/tests/test_fields.cpp
@@ -8,9 +8,6 @@
 #include <libff/algebra/curves/mnt/mnt4/mnt4_pp.hpp>
 #include <libff/algebra/curves/mnt/mnt6/mnt6_pp.hpp>
 #include <libff/common/profiling.hpp>
-#ifdef CURVE_BN128
-#include <libff/algebra/curves/bn128/bn128_pp.hpp>
-#endif
 #include <libff/algebra/curves/alt_bn128/alt_bn128_pp.hpp>
 #include <libff/algebra/fields/fp12_2over3over2.hpp>
 #include <libff/algebra/fields/fp6_3over2.hpp>
@@ -237,12 +234,6 @@ int main()
     test_field<alt_bn128_Fq6>();
     test_Frobenius<alt_bn128_Fq6>();
     test_all_fields<alt_bn128_pp>();
-
-#ifdef CURVE_BN128       // BN128 has fancy dependencies so it may be disabled
-    bn128_pp::init_public_params();
-    test_field<Fr<bn128_pp> >();
-    test_field<Fq<bn128_pp> >();
-#endif
 }
 
 #else // NDEBUG
Index: libff-1.0.0/libff/common/default_types/ec_pp.hpp
===================================================================
--- libff-1.0.0.orig/libff/common/default_types/ec_pp.hpp
+++ libff-1.0.0/libff/common/default_types/ec_pp.hpp
@@ -23,14 +23,6 @@ typedef alt_bn128_pp default_ec_pp;
 } // libff
 #endif
 
-#ifdef CURVE_BN128
-#define LIBFF_DEFAULT_EC_PP_DEFINED
-#include <libff/algebra/curves/bn128/bn128_pp.hpp>
-namespace libff {
-typedef bn128_pp default_ec_pp;
-} // libff
-#endif
-
 #ifdef CURVE_EDWARDS
 #define LIBFF_DEFAULT_EC_PP_DEFINED
 #include <libff/algebra/curves/edwards/edwards_pp.hpp>
++++++ 01_shared_lib.patch ++++++
From: Adam Mizerski <a...@mizerski.pl>
Date: 2019-02-12 20:48:31
Upstream: no
Subject: build as shared library

---
 libff/CMakeLists.txt |   12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

Index: libff-1.0.0/libff/CMakeLists.txt
===================================================================
--- libff-1.0.0.orig/libff/CMakeLists.txt
+++ libff-1.0.0/libff/CMakeLists.txt
@@ -1,6 +1,6 @@
 add_library(
   ff
-  STATIC
+  SHARED
 
   algebra/curves/alt_bn128/alt_bn128_g1.cpp
   algebra/curves/alt_bn128/alt_bn128_g2.cpp
@@ -27,6 +27,7 @@ add_library(
   common/profiling.cpp
   common/utils.cpp
 )
+set_target_properties(ff PROPERTIES OUTPUT_NAME ff-${PACKAGE_VERSION})
 target_link_libraries(
   ff
 
@@ -48,7 +49,7 @@ install(
 )
 
 install(
-  TARGETS ff DESTINATION lib
+  TARGETS ff DESTINATION lib${LIB_SUFFIX}
 )
 
 # Tests
@@ -102,6 +103,13 @@ if ("${IS_LIBFF_PARENT}")
     NAME algebra_fields_test
     COMMAND algebra_fields_test
   )
+  set_tests_properties(
+    algebra_bilinearity_test
+    algebra_groups_test
+    algebra_fields_test
+    PROPERTIES
+    ENVIRONMENT LD_LIBRARY_PATH=.
+  )
 
   add_dependencies(check algebra_bilinearity_test)
   add_dependencies(check algebra_groups_test)
++++++ 02_config_hpp.patch ++++++
From: Adam Mizerski <a...@mizerski.pl>
Date: 2019-02-12 20:48:31
Upstream: yes
References: https://github.com/scipr-lab/libff/issues/21
Subject: add a configuration header

Index: libff-1.0.0/CMakeLists.txt
===================================================================
--- libff-1.0.0.orig/CMakeLists.txt
+++ libff-1.0.0/CMakeLists.txt
@@ -124,13 +124,14 @@ if("${WITH_PROCPS}")
     libprocps
   )
 else()
+  set(NO_PROCPS)
   add_definitions(
     -DNO_PROCPS
   )
 endif()
 
 add_definitions(
-  -DCURVE_${CURVE}
+  -DCURVE=${CURVE}
 )
 
 enable_testing()
@@ -156,6 +157,7 @@ if("${MONTGOMERY_OUTPUT}")
 endif()
 
 if(NOT "${USE_PT_COMPRESSION}")
+  set(NO_PT_COMPRESSION)
   add_definitions(-DNO_PT_COMPRESSION=1)
 endif()
 
Index: libff-1.0.0/libff/CMakeLists.txt
===================================================================
--- libff-1.0.0.orig/libff/CMakeLists.txt
+++ libff-1.0.0/libff/CMakeLists.txt
@@ -1,3 +1,5 @@
+configure_file(config.hpp.in config.hpp)
+
 add_library(
   ff
   SHARED
@@ -36,6 +38,7 @@ target_link_libraries(
 target_include_directories(
   ff
   PUBLIC ..
+  ${CMAKE_CURRENT_BINARY_DIR}/..
 )
 
 install(
@@ -48,6 +51,10 @@ install(
 )
 
 install(
+  FILES "${CMAKE_CURRENT_BINARY_DIR}/config.hpp" DESTINATION "include/libff"
+)
+
+install(
   TARGETS ff DESTINATION lib${LIB_SUFFIX}
 )
 
Index: libff-1.0.0/libff/config.hpp.in
===================================================================
--- /dev/null
+++ libff-1.0.0/libff/config.hpp.in
@@ -0,0 +1,22 @@
+#ifndef LIBFF_CONFIG_HPP_
+#define LIBFF_CONFIG_HPP_
+
+#cmakedefine NO_PROCPS
+
+#define ALT_BN128 1
+#define EDWARDS 2
+#define MNT4 3
+#define MNT6 4
+#cmakedefine CURVE ${CURVE}
+
+#cmakedefine DEBUG
+#cmakedefine LOWMEM
+#cmakedefine MULTICORE
+#cmakedefine BINARY_OUTPUT
+#cmakedefine MONTGOMERY_OUTPUT
+#cmakedefine NO_PT_COMPRESSION
+#cmakedefine PROFILE_OP_COUNTS
+#cmakedefine USE_MIXED_ADDITION
+#cmakedefine USE_ASM
+
+#endif // LIBFF_CONFIG_HPP_
Index: libff-1.0.0/libff/common/default_types/ec_pp.hpp
===================================================================
--- libff-1.0.0.orig/libff/common/default_types/ec_pp.hpp
+++ libff-1.0.0/libff/common/default_types/ec_pp.hpp
@@ -13,9 +13,11 @@
 #ifndef EC_PP_HPP_
 #define EC_PP_HPP_
 
+#include <libff/config.hpp>
+
 /************************ Pick the elliptic curve ****************************/
 
-#ifdef CURVE_ALT_BN128
+#if CURVE == ALT_BN128
 #define LIBFF_DEFAULT_EC_PP_DEFINED
 #include <libff/algebra/curves/alt_bn128/alt_bn128_pp.hpp>
 namespace libff {
@@ -23,7 +25,7 @@ typedef alt_bn128_pp default_ec_pp;
 } // libff
 #endif
 
-#ifdef CURVE_EDWARDS
+#if CURVE == EDWARDS
 #define LIBFF_DEFAULT_EC_PP_DEFINED
 #include <libff/algebra/curves/edwards/edwards_pp.hpp>
 namespace libff {
@@ -31,7 +33,7 @@ typedef edwards_pp default_ec_pp;
 } // libff
 #endif
 
-#ifdef CURVE_MNT4
+#if CURVE == MNT4
 #define LIBFF_DEFAULT_EC_PP_DEFINED
 #include <libff/algebra/curves/mnt/mnt4/mnt4_pp.hpp>
 namespace libff {
@@ -39,7 +41,7 @@ typedef mnt4_pp default_ec_pp;
 } // libff
 #endif
 
-#ifdef CURVE_MNT6
+#if CURVE == MNT6
 #define LIBFF_DEFAULT_EC_PP_DEFINED
 #include <libff/algebra/curves/mnt/mnt6/mnt6_pp.hpp>
 namespace libff {
@@ -48,7 +50,7 @@ typedef mnt6_pp default_ec_pp;
 #endif
 
 #ifndef LIBFF_DEFAULT_EC_PP_DEFINED
-#error You must define one of the CURVE_* symbols to pick a curve for pairings.
+#error You must define the CURVE symbol to pick a curve for pairings.
 #endif
 
 #endif // EC_PP_HPP_
Index: libff-1.0.0/libff/algebra/curves/alt_bn128/alt_bn128_g1.hpp
===================================================================
--- libff-1.0.0.orig/libff/algebra/curves/alt_bn128/alt_bn128_g1.hpp
+++ libff-1.0.0/libff/algebra/curves/alt_bn128/alt_bn128_g1.hpp
@@ -9,6 +9,7 @@
 #define ALT_BN128_G1_HPP_
 #include <vector>
 
+#include <libff/config.hpp>
 #include <libff/algebra/curves/alt_bn128/alt_bn128_init.hpp>
 #include <libff/algebra/curves/curve_utils.hpp>
 
Index: libff-1.0.0/libff/algebra/curves/alt_bn128/alt_bn128_g2.hpp
===================================================================
--- libff-1.0.0.orig/libff/algebra/curves/alt_bn128/alt_bn128_g2.hpp
+++ libff-1.0.0/libff/algebra/curves/alt_bn128/alt_bn128_g2.hpp
@@ -9,6 +9,7 @@
 #define ALT_BN128_G2_HPP_
 #include <vector>
 
+#include <libff/config.hpp>
 #include <libff/algebra/curves/alt_bn128/alt_bn128_init.hpp>
 #include <libff/algebra/curves/curve_utils.hpp>
 
Index: libff-1.0.0/libff/algebra/curves/edwards/edwards_g1.hpp
===================================================================
--- libff-1.0.0.orig/libff/algebra/curves/edwards/edwards_g1.hpp
+++ libff-1.0.0/libff/algebra/curves/edwards/edwards_g1.hpp
@@ -9,6 +9,7 @@
 #define EDWARDS_G1_HPP_
 #include <vector>
 
+#include <libff/config.hpp>
 #include <libff/algebra/curves/curve_utils.hpp>
 #include <libff/algebra/curves/edwards/edwards_init.hpp>
 
Index: libff-1.0.0/libff/algebra/curves/edwards/edwards_g2.hpp
===================================================================
--- libff-1.0.0.orig/libff/algebra/curves/edwards/edwards_g2.hpp
+++ libff-1.0.0/libff/algebra/curves/edwards/edwards_g2.hpp
@@ -10,6 +10,7 @@
 #include <iostream>
 #include <vector>
 
+#include <libff/config.hpp>
 #include <libff/algebra/curves/curve_utils.hpp>
 #include <libff/algebra/curves/edwards/edwards_init.hpp>
 
Index: libff-1.0.0/libff/algebra/curves/mnt/mnt4/mnt4_g1.hpp
===================================================================
--- libff-1.0.0.orig/libff/algebra/curves/mnt/mnt4/mnt4_g1.hpp
+++ libff-1.0.0/libff/algebra/curves/mnt/mnt4/mnt4_g1.hpp
@@ -14,6 +14,7 @@
 
 #include <vector>
 
+#include <libff/config.hpp>
 #include <libff/algebra/curves/curve_utils.hpp>
 #include <libff/algebra/curves/mnt/mnt4/mnt4_init.hpp>
 
Index: libff-1.0.0/libff/algebra/curves/mnt/mnt4/mnt4_g2.hpp
===================================================================
--- libff-1.0.0.orig/libff/algebra/curves/mnt/mnt4/mnt4_g2.hpp
+++ libff-1.0.0/libff/algebra/curves/mnt/mnt4/mnt4_g2.hpp
@@ -14,6 +14,7 @@
 
 #include <vector>
 
+#include <libff/config.hpp>
 #include <libff/algebra/curves/curve_utils.hpp>
 #include <libff/algebra/curves/mnt/mnt4/mnt4_init.hpp>
 
Index: libff-1.0.0/libff/algebra/curves/mnt/mnt6/mnt6_g1.hpp
===================================================================
--- libff-1.0.0.orig/libff/algebra/curves/mnt/mnt6/mnt6_g1.hpp
+++ libff-1.0.0/libff/algebra/curves/mnt/mnt6/mnt6_g1.hpp
@@ -14,6 +14,7 @@
 
 #include <vector>
 
+#include <libff/config.hpp>
 #include <libff/algebra/curves/curve_utils.hpp>
 #include <libff/algebra/curves/mnt/mnt6/mnt6_init.hpp>
 
Index: libff-1.0.0/libff/algebra/curves/mnt/mnt6/mnt6_g2.hpp
===================================================================
--- libff-1.0.0.orig/libff/algebra/curves/mnt/mnt6/mnt6_g2.hpp
+++ libff-1.0.0/libff/algebra/curves/mnt/mnt6/mnt6_g2.hpp
@@ -14,6 +14,7 @@
 
 #include <vector>
 
+#include <libff/config.hpp>
 #include <libff/algebra/curves/curve_utils.hpp>
 #include <libff/algebra/curves/mnt/mnt6/mnt6_init.hpp>
 
Index: libff-1.0.0/libff/algebra/fields/fp2.tcc
===================================================================
--- libff-1.0.0.orig/libff/algebra/fields/fp2.tcc
+++ libff-1.0.0/libff/algebra/fields/fp2.tcc
@@ -10,6 +10,7 @@
 #ifndef FP2_TCC_
 #define FP2_TCC_
 
+#include <libff/config.hpp>
 #include <libff/algebra/fields/field_utils.hpp>
 
 namespace libff {
Index: libff-1.0.0/libff/algebra/fields/fp3.tcc
===================================================================
--- libff-1.0.0.orig/libff/algebra/fields/fp3.tcc
+++ libff-1.0.0/libff/algebra/fields/fp3.tcc
@@ -10,6 +10,7 @@
 #ifndef FP3_TCC_
 #define FP3_TCC_
 
+#include <libff/config.hpp>
 #include <libff/algebra/fields/field_utils.hpp>
 
 namespace libff {
Index: libff-1.0.0/libff/algebra/scalar_multiplication/multiexp.tcc
===================================================================
--- libff-1.0.0.orig/libff/algebra/scalar_multiplication/multiexp.tcc
+++ libff-1.0.0/libff/algebra/scalar_multiplication/multiexp.tcc
@@ -18,6 +18,7 @@
 #include <cassert>
 #include <type_traits>
 
+#include <libff/config.hpp>
 #include <libff/algebra/fields/bigint.hpp>
 #include <libff/algebra/fields/fp_aux.tcc>
 #include <libff/algebra/scalar_multiplication/multiexp.hpp>
Index: libff-1.0.0/libff/common/utils.hpp
===================================================================
--- libff-1.0.0.orig/libff/common/utils.hpp
+++ libff-1.0.0/libff/common/utils.hpp
@@ -16,6 +16,8 @@
 #include <string>
 #include <vector>
 
+#include <libff/config.hpp>
+
 namespace libff {
 
 typedef std::vector<bool> bit_vector;
Index: libff-1.0.0/libff/algebra/fields/bigint.tcc
===================================================================
--- libff-1.0.0.orig/libff/algebra/fields/bigint.tcc
+++ libff-1.0.0/libff/algebra/fields/bigint.tcc
@@ -13,6 +13,8 @@
 #include <cstring>
 #include <random>
 
+#include <libff/config.hpp>
+
 namespace libff {
 
 template<mp_size_t n>
Index: libff-1.0.0/libff/algebra/fields/fp.hpp
===================================================================
--- libff-1.0.0.orig/libff/algebra/fields/fp.hpp
+++ libff-1.0.0/libff/algebra/fields/fp.hpp
@@ -10,6 +10,7 @@
 #ifndef FP_HPP_
 #define FP_HPP_
 
+#include <libff/config.hpp>
 #include <libff/algebra/exponentiation/exponentiation.hpp>
 #include <libff/algebra/fields/bigint.hpp>
 
Index: libff-1.0.0/libff/common/serialization.hpp
===================================================================
--- libff-1.0.0.orig/libff/common/serialization.hpp
+++ libff-1.0.0/libff/common/serialization.hpp
@@ -18,6 +18,8 @@
 #include <set>
 #include <vector>
 
+#include <libff/config.hpp>
+
 namespace libff {
 
 /*

Reply via email to