Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 466650 - Please SLOT dev-lang/swig-1.3
Summary: Please SLOT dev-lang/swig-1.3
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sven Vermeulen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 453512
  Show dependency tree
 
Reported: 2013-04-21 11:05 UTC by Sven Vermeulen (RETIRED)
Modified: 2013-04-22 18:38 UTC (History)
1 user (show)

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


Attachments
swig-1.3.40-r2 ebuild (swig-1.3.40-r2.ebuild,1.26 KB, text/plain)
2013-04-21 11:06 UTC, Sven Vermeulen (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Vermeulen (RETIRED) gentoo-dev 2013-04-21 11:05:11 UTC
The app-admin/setools package still requires swig-1 for its interface building. Attempts at trying to get it to support swig-2 have failed and it doesn't look like this is going to change in the next few weeks/months (the problem is known since august last year).

Currently, app-admin/setools depends on <dev-lang/swig-2 but this generates conflicts as other packages depend on >=dev-lang/swig-2.something

If we SLOT swig-1.3 and have it provide a renamed binary (I suggest to use "swig1.3") then the dependencies can be met more easily. Applications that cannot deal with swig-2 can then use the swig1.3 binary instead.

The next comment will provide a patch against the current swig-1.3.40-r1.ebuild that does this, I'll attach the full ebuild as well for your convenience. I have succesfully built setools-3.3.8 (after having it use swig1.3) using this ebuild.

Reproducible: Always
Comment 1 Sven Vermeulen (RETIRED) gentoo-dev 2013-04-21 11:06:14 UTC
--- swig-1.3.40-r1.ebuild  2012-12-15 13:43:22.970801600 +0100
+++ swig-1.3.40-r2.ebuild  2013-04-21 13:04:06.948957214 +0200
@@ -1,4 +1,4 @@
-# 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/dev-lang/swig/swig-1.3.40-r1.ebuild,v 1.15 2012/12/13 21:01:02 radhermit Exp $
 
@@ -8,8 +8,8 @@
 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
 
 LICENSE="BSD BSD-2"
-SLOT="0"
-KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86 ~ppc-aix ~x86-fbsd ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+SLOT="1"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x86-fbsd ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
 IUSE="ccache doc"
 RESTRICT="test"
 DEPEND=""
@@ -18,6 +18,10 @@
 src_prepare () {
        rm -v aclocal.m4 || die "Unable to remove aclocal.m4"
        ./autogen.sh || die "Autogen script failed"
+
+       # Use swig1.3 as binary instead of swig
+       sed -i -e 's:TARGET_NOEXE= swig:TARGET_NOEXE= swig1.3:' Makefile.in
+       sed -i -e 's:/swig@EXEEXT@:/swig1.3@EXEEXT@:g' Source/Makefile.{am,in}
 }
 
 src_configure () {
Comment 2 Sven Vermeulen (RETIRED) gentoo-dev 2013-04-21 11:06:57 UTC
Created attachment 346174 [details]
swig-1.3.40-r2 ebuild

Ebuild with the suggested modifications.
Comment 3 Tim Harder gentoo-dev 2013-04-21 20:28:44 UTC
Feel free to commit this yourself and fix any breakage you cause. It looks like only setools and dev-python/apse depend on <dev-lang/swig-2 in the tree.
Comment 4 Sven Vermeulen (RETIRED) gentoo-dev 2013-04-22 18:38:15 UTC
Committed to the tree, as well as new ebuilds for apse and setools (indeed only ones that had a dependency on <dev-lang/swig-2*). Keeping it on TEST-REQUEST for a while to see if other breakages come up.