Package Details: cado-nfs-git 20210429.6df3f65c8-1

Git Clone URL: https://aur.archlinux.org/cado-nfs-git.git (read-only, click to copy)
Package Base: cado-nfs-git
Description: Implementation of the Number Field Sieve (NFS) algorithm for factoring integers
Upstream URL: http://cado-nfs.gforge.inria.fr/
Licenses: LGPL2
Conflicts: cado-nfs
Provides: cado-nfs
Submitter: jdetrey
Maintainer: AquilaIrreale
Last Packager: AquilaIrreale
Votes: 2
Popularity: 0.29
First Submitted: 2015-12-07 12:57
Last Updated: 2021-05-03 13:43

Dependencies (12)

Required by (0)

Sources (1)

Latest Comments

AquilaIrreale commented on 2021-05-03 13:51

Hello, I took charge of maintaining this package for the time being. It should now be in a usable state once again.

@ccorn thank you for contributing your patch!

Have a nice day

-- AquilaIrreale

ccorn commented on 2021-04-24 00:49

I have made some contemporary updates in my checkout.

  • New source URL
  • Use local.sh for configuration as instructed
  • Configure with curl, hwloc, gmp-ecm
  • Remove 32-bit bounds
  • Adjust *depends
  • Install license
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,11 +7,16 @@ pkgdesc="Implementation of the Number Field Sieve (NFS) algorithm for factoring
 arch=('i686' 'x86_64')
 url="http://cado-nfs.gforge.inria.fr/"
 license=('LGPL2')
-depends=('gmp' 'python' 'sqlite')
-makedepends=('git' 'cmake' 'inetutils')
+# We configure with optional curl, hwloc, gmp-ecm.
+# Configuring with hwloc makes binaries in linalg/bwc depend on it.
+depends=('gmp' 'python' 'sqlite' 'hwloc')
+makedepends=('git' 'cmake' 'inetutils' 'curl' 'gmp-ecm')
+optdepends=('curl: for cado-nfs-client.py'
+            'gmp-ecm: for JL DLP polynomial selection'
+            'perl: for bwc.pl')
 conflicts=('cado-nfs')
 provides=('cado-nfs')
-source=("git://scm.gforge.inria.fr/cado-nfs/${_pkg}.git")
+source=("git+https://gitlab.inria.fr/cado-nfs/${_pkg}.git")
 md5sums=('SKIP')

 pkgver() {
@@ -21,12 +26,21 @@ pkgver() {

 build() {
   cd "$_pkg"
-  make PREFIX="/usr"
+  cat <<EOF >local.sh
+PREFIX=/usr
+HWLOC=$PREFIX
+GMPECM=$PREFIX
+CURL=$PREFIX
+# Remove 32-bit barriers to big factorizations
+FLAGS_SIZE="-DSIZEOF_P_R_VALUES=8 -DSIZEOF_INDEX=8"
+EOF
+  make
 }

 package() {
   cd "$_pkg"
-  make PREFIX="/usr" DESTDIR="$pkgdir" install
+  make DESTDIR="$pkgdir" install
+  install -Dm644 COPYING "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
 }

 # vim:set ts=2 sw=2 et:

hotaru commented on 2020-04-21 11:48

package no longer builds. looks like the git repo has been moved to https://gitlab.inria.fr/cado-nfs/cado-nfs.git.

jdetrey commented on 2016-08-22 13:19

Hi,

Thanks for noticing this! This was fixed by upstream commit c88120d (dated 2016-08-10).
The package now builds without a hitch.

Cheers,
Jérémie.

enteenteente commented on 2016-06-21 17:01

when changing build() in PKGBUILD I can at least build the software:

build() {
cd "$_pkg"
# remove diagnostic errors before compilation
sed -i '/#pragma GCC diagnostic error/d' cado.h
make PREFIX="/usr" -j
}

enteenteente commented on 2016-06-21 16:44

when I try to build this I get the error in [1].

[1]: http://pastebin.com/JpqPUDzv