GNU bug report logs -
#47613
[PATCH] add parmetis
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 47613 in the body.
You can then email your comments to 47613 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#47613
; Package
guix-patches
.
(Tue, 06 Apr 2021 10:26:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Franck Pérignon <Franck.Perignon <at> univ-grenoble-alpes.fr>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Tue, 06 Apr 2021 10:26:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hello,
the attached file adds parmetis (http://glaros.dtc.umn.edu/gkhome/metis/parmetis/overview) in guix, saved in gnu/packages/math.scm
[0001-PATCH-Add-parmetis.patch (application/octet-stream, attachment)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#47613
; Package
guix-patches
.
(Tue, 06 Apr 2021 17:45:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 47613 <at> debbugs.gnu.org (full text, mbox):
Subject: [PATCH] [PATCH] Add parmetis
Thanks!
+ (build-system cmake-build-system)
+ (native-inputs `(("gcc" ,gcc)
+ ("openmpi" ,openmpi)))
GCC is made available via the cmake-build-system, so I think we could
leave it out of native-inputs. Or am I missing something?
+ (arguments
+ `(#:tests? #f ;no tests
+ #:configure-flags `("-DSHARED=ON"
+ ,"-DCMAKE_C_COMPILER=mpicc"
+ ,"-DCMAKE_CXX_COMPILER=mpic++"
+ ,"-DCMAKE_VERBOSE_MAKEFILE=1"
+ ,(string-append "-DGKLIB_PATH=../parmetis-4.0.3/metis/GKlib")
+ ,(string-append "-DMETIS_PATH=../parmetis-4.0.3/metis" ))))
We can avoid hard-coding the version string here, like this:
------
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index bdfa051db1..f0ebdd6009 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -3348,8 +3348,10 @@ schemes.")
,"-DCMAKE_C_COMPILER=mpicc"
,"-DCMAKE_CXX_COMPILER=mpic++"
,"-DCMAKE_VERBOSE_MAKEFILE=1"
- ,(string-append "-DGKLIB_PATH=../parmetis-4.0.3/metis/GKlib")
- ,(string-append "-DMETIS_PATH=../parmetis-4.0.3/metis" ))))
+ ,(string-append "-DGKLIB_PATH=../parmetis-"
+ ,(package-version this-version) "/metis/GKlib"))
+ ,(string-append "-DMETIS_PATH=../parmetis-"
+ ,(package-version this-version) "/metis"))))
(home-page "http://glaros.dtc.umn.edu/gkhome/metis/parmetis/overview")
(synopsis "Parallel Graph Partitioning and Fill-reducing Matrix Ordering")
(description
------
+ (license license:asl2.0)))
There is a problem with the licensing, however. In the source code,
LICENSE.txt contains this:
------
Copyright & License Notice
--------------------------
The ParMETIS package is copyrighted by the Regents of the
University of Minnesota. It can be freely used for educational and
research purposes by non-profit institutions and US government
agencies only. Other organizations are allowed to use ParMETIS
only for evaluation purposes, and any further uses will require prior
approval. The software may not be sold or redistributed without prior
approval. One may make copies of the software for their use provided
that the copies, are not sold or distributed, are used under the same
terms and conditions.
As unestablished research software, this code is provided on an
``as is'' basis without warranty of any kind, either expressed or
implied. The downloading, or executing any part of this software
constitutes an implicit agreement to these terms. These terms and
conditions are subject to change at any time without prior notice.
------
I saw in 'metis/Changelog' that a relicensing to Apache 2 was done for
the "metis" program in version 5.0.3. But, this is "parmetis", version
4.0.3.
If the copyright owners intend to release this as free software, they
need to change the 'LICENSE.txt' file.
Information forwarded
to
guix-patches <at> gnu.org
:
bug#47613
; Package
guix-patches
.
(Wed, 07 Apr 2021 14:03:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 47613 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Thanks for the review (of this and of scotch-shared)
Yes, you’re right, gcc native-inputs can be removed and yes, it’s probably better to avoid hard-coding version string
A new patch is attached that works for me.
Regarding the license, I missed this. Is it possible to directly attached the LICENSE.txt in the guix recipe ? If so, what’s the proper syntax ?
Thanks
[0002-fix-parmetis.patch (application/octet-stream, attachment)]
[Message part 3 (text/plain, inline)]
> Le 6 avr. 2021 à 19:43, Leo Famulari <leo <at> famulari.name> a écrit :
>
> Subject: [PATCH] [PATCH] Add parmetis
>
> Thanks!
>
>
> + (build-system cmake-build-system)
> + (native-inputs `(("gcc" ,gcc)
> + ("openmpi" ,openmpi)))
>
> GCC is made available via the cmake-build-system, so I think we could
> leave it out of native-inputs. Or am I missing something?
>
> + (arguments
> + `(#:tests? #f ;no tests
> + #:configure-flags `("-DSHARED=ON"
> + ,"-DCMAKE_C_COMPILER=mpicc"
> + ,"-DCMAKE_CXX_COMPILER=mpic++"
> + ,"-DCMAKE_VERBOSE_MAKEFILE=1"
> + ,(string-append "-DGKLIB_PATH=../parmetis-4.0.3/metis/GKlib")
> + ,(string-append "-DMETIS_PATH=../parmetis-4.0.3/metis" ))))
>
> We can avoid hard-coding the version string here, like this:
>
> ------
> diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
> index bdfa051db1..f0ebdd6009 100644
> --- a/gnu/packages/maths.scm
> +++ b/gnu/packages/maths.scm
> @@ -3348,8 +3348,10 @@ schemes.")
> ,"-DCMAKE_C_COMPILER=mpicc"
> ,"-DCMAKE_CXX_COMPILER=mpic++"
> ,"-DCMAKE_VERBOSE_MAKEFILE=1"
> - ,(string-append "-DGKLIB_PATH=../parmetis-4.0.3/metis/GKlib")
> - ,(string-append "-DMETIS_PATH=../parmetis-4.0.3/metis" ))))
> + ,(string-append "-DGKLIB_PATH=../parmetis-"
> + ,(package-version this-version) "/metis/GKlib"))
> + ,(string-append "-DMETIS_PATH=../parmetis-"
> + ,(package-version this-version) "/metis"))))
> (home-page "http://glaros.dtc.umn.edu/gkhome/metis/parmetis/overview")
> (synopsis "Parallel Graph Partitioning and Fill-reducing Matrix Ordering")
> (description
> ------
>
> + (license license:asl2.0)))
>
> There is a problem with the licensing, however. In the source code,
> LICENSE.txt contains this:
>
> ------
> Copyright & License Notice
> --------------------------
>
> The ParMETIS package is copyrighted by the Regents of the
> University of Minnesota. It can be freely used for educational and
> research purposes by non-profit institutions and US government
> agencies only. Other organizations are allowed to use ParMETIS
> only for evaluation purposes, and any further uses will require prior
> approval. The software may not be sold or redistributed without prior
> approval. One may make copies of the software for their use provided
> that the copies, are not sold or distributed, are used under the same
> terms and conditions.
>
> As unestablished research software, this code is provided on an
> ``as is'' basis without warranty of any kind, either expressed or
> implied. The downloading, or executing any part of this software
> constitutes an implicit agreement to these terms. These terms and
> conditions are subject to change at any time without prior notice.
> ------
>
> I saw in 'metis/Changelog' that a relicensing to Apache 2 was done for
> the "metis" program in version 5.0.3. But, this is "parmetis", version
> 4.0.3.
>
> If the copyright owners intend to release this as free software, they
> need to change the 'LICENSE.txt' file.
Information forwarded
to
guix-patches <at> gnu.org
:
bug#47613
; Package
guix-patches
.
(Thu, 08 Apr 2021 07:17:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 47613 <at> debbugs.gnu.org (full text, mbox):
Hi Franck,
Franck Pérignon <Franck.Perignon <at> univ-grenoble-alpes.fr> skribis:
> Regarding the license, I missed this. Is it possible to directly attached the LICENSE.txt in the guix recipe ? If so, what’s the proper syntax ?
Guix proper only includes free software:
https://guix.gnu.org/manual/en/html_node/Software-Freedom.html
So I’m afraid we cannot get Parmetis in Guix until it’s free (it would
be interesting to discuss this with the authors). :-/
Thanks,
Ludo’.
Added tag(s) fixed.
Request was from
Ludovic Courtès <ludo <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Fri, 09 Apr 2021 15:59:01 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
47613 <at> debbugs.gnu.org and Franck Pérignon <Franck.Perignon <at> univ-grenoble-alpes.fr>
Request was from
Ludovic Courtès <ludo <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Fri, 09 Apr 2021 15:59:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 08 May 2021 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 2 years and 353 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.