Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 476952 - sys-cluster/knem live ebuild request
Summary: sys-cluster/knem live ebuild request
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Alexey Shvetsov
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2013-07-15 17:00 UTC by Michelangelo Scopelliti
Modified: 2014-04-03 05:06 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
sys-cluste/knem live ebuild (knem-9999.ebuild,1.53 KB, text/plain)
2013-07-15 17:01 UTC, Michelangelo Scopelliti
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michelangelo Scopelliti 2013-07-15 17:00:30 UTC
On february, 28 kernel developers changed the idr interface (see https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/log/lib/idr.c).
As a consequence, the released knem stopped to compile against recent kernel.
The problem has been fixed upstream, as per the git changelog). Since it is not possible (as far as I know) to dump a snapshot, a live ebuild would be the best solution.

Reproducible: Always




I've prepared an ebuild. Here is the difference with the current one; the full ebuild will be attached.

--- /usr/portage/sys-cluster/knem/knem-1.0.0.ebuild	2012-12-11 19:31:30.000000000 +0100
+++ /usr/local/portage/sys-cluster/knem/knem-9999.ebuild	2013-07-15 16:46:52.440431911 +0200
@@ -1,6 +1,6 @@
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2013 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/knem/knem-1.0.0.ebuild,v 1.2 2012/12/11 18:12:34 axs Exp $
+# $Header: $
 
 EAPI=4
 
@@ -8,7 +8,12 @@
 
 DESCRIPTION="High-Performance Intra-Node MPI Communication"
 HOMEPAGE="http://runtime.bordeaux.inria.fr/knem/"
-SRC_URI="http://runtime.bordeaux.inria.fr/knem/download/${P}.tar.gz"
+if [[ ${PV} == "9999" ]] ; then
+	EGIT_REPO_URI="https://gforge.inria.fr/git/knem/knem.git"
+	inherit git-2
+else
+	SRC_URI="http://runtime.bordeaux.inria.fr/knem/download/${P}.tar.gz"
+fi
 
 LICENSE="GPL-2 LGPL-2"
 SLOT="0"
Comment 1 Michelangelo Scopelliti 2013-07-15 17:01:12 UTC
Created attachment 353380 [details]
sys-cluste/knem live ebuild
Comment 2 Jan Reitz 2013-10-22 16:34:20 UTC
There is an 1.1.0 version of knem available and it works out of the box by just cp'ing the 1.0.0 ebuild to 1.1.0.
Since kernel 3.10 is current and 1.0.0 does not work with these kernels, this is becoming more of an issue.
Comment 3 Michelangelo Scopelliti 2014-04-02 08:38:05 UTC
linux 3.14.0 is in the tree, and it requires knem 1.1.1
Again, simply renaming the ebuild is sufficient in order to build the (right) knem module.
Any news on this?
Comment 4 Alexey Shvetsov archtester gentoo-dev 2014-04-03 05:06:19 UTC
Added to tree. Sorry for delay.