[superlu-dist] 07/07: debian patch mc64ad_dist-stub.patch provides stubs for mc64ad_dist.c

Drew Parsons dparsons at moszumanska.debian.org
Wed Nov 8 10:23:31 UTC 2017


This is an automated email from the git hooks/post-receive script.

dparsons pushed a commit to branch master
in repository superlu-dist.

commit 6551d44d6b42f3bc1885d3a8e154ec06a48287df
Author: Drew Parsons <dparsons at debian.org>
Date:   Wed Nov 8 18:02:31 2017 +0800

    debian patch mc64ad_dist-stub.patch provides stubs for mc64ad_dist.c
---
 debian/changelog                      |  2 ++
 debian/patches/mc64ad_dist-stub.patch | 33 +++++++++++++++++++++++++++++++++
 debian/patches/series                 |  1 +
 3 files changed, 36 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 4959ad5..3d21759 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,7 @@
 superlu-dist (5.2.2-1) UNRELEASED; urgency=medium
 
   * Initial release (Closes: #735679).
+    - debian patch mc64ad_dist-stub.patch provides stubs for
+      mc64ad_dist.c (removed, since non-free)
 
  -- Drew Parsons <Drew Parsons <dparsons at debian.org>>  Wed, 13 Sep 2017 12:04:10 +0800
diff --git a/debian/patches/mc64ad_dist-stub.patch b/debian/patches/mc64ad_dist-stub.patch
new file mode 100644
index 0000000..54b89ec
--- /dev/null
+++ b/debian/patches/mc64ad_dist-stub.patch
@@ -0,0 +1,33 @@
+mc64ad_dist.c was removed (DFSG nonfree), create stubs
+Index: superlu-dist/SRC/mc64ad_dist.c
+===================================================================
+--- /dev/null
++++ superlu-dist/SRC/mc64ad_dist.c
+@@ -0,0 +1,27 @@
++/* The original mc64ad_dist.c is nonfree and has been removed.
++   We provide a stub interface here instead.
++*/
++
++#include <stdio.h>
++#include <stdlib.h>
++
++#include "superlu_ddefs.h"
++
++/* only mc64id_dist and mc64ad_dist are referenced by SuperLU-Dist code */
++
++/* Subroutine */ int_t mc64id_dist(int_t *icntl)
++{
++    fprintf(stderr, "SuperLU: MC64 functionality not available (it uses non-free code). Aborting.\n");
++    abort();
++    return 0;
++}
++
++int_t mc64ad_dist(int_t *job, int_t *n, int_t *ne, int_t *
++	ip, int_t *irn, double *a, int_t *num, int_t *cperm,
++	int_t *liw, int_t *iw, int_t *ldw, double *dw, int_t *
++	icntl, int_t *info)
++{
++    fprintf(stderr, "SuperLU: MC64 functionality not available (it uses non-free code). Aborting.\n");
++    abort();
++    return 0;
++}
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..7e9220a
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+mc64ad_dist-stub.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/superlu-dist.git



More information about the debian-science-commits mailing list