Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 209842 - net-libs/xulrunner-1.8.1.12-r1: patch for building with PyXPCOM support
Summary: net-libs/xulrunner-1.8.1.12-r1: patch for building with PyXPCOM support
Status: RESOLVED DUPLICATE of bug 180309
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement with 1 vote (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-12 13:50 UTC by Michael Dubner
Modified: 2008-03-22 15:11 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Dubner 2008-02-12 13:50:51 UTC
Here is a patch for PyXPCOM support:

$ diff -u xulrunner-1.8.1.12.ebuild xulrunner-1.8.1.12-r1.ebuild
--- /usr/portage/net-libs/xulrunner/xulrunner-1.8.1.12.ebuild   2008-02-11 05:07:18.000000000 +0300
+++ xulrunner-1.8.1.12-r1.ebuild        2008-02-12 15:58:35.000000000 +0300
@@ -15,12 +15,13 @@
 SLOT="0"
 LICENSE="MPL-1.1 GPL-2 LGPL-2.1"
 KEYWORDS="alpha amd64 ~arm hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd"
-IUSE=""
+IUSE="java python"

 RDEPEND=">=sys-libs/zlib-1.1.4
        >=sys-devel/binutils-2.16.1
        >=dev-libs/nss-3.11.5
        >=dev-libs/nspr-4.6.5-r1
+       python? ( >=dev-lang/python-2.4 )
        java? ( >=virtual/jre-1.4 )"

 DEPEND="java? ( >=virtual/jdk-1.4 )
@@ -60,7 +61,11 @@
        mozconfig_init
        mozconfig_config

-       mozconfig_annotate '' --enable-extensions="default,cookie,permissions,spellcheck"
+       if use python ; then
+               mozconfig_annotate '+python' --enable-extensions="default,cookie,permissions,spellcheck,python/xpcom"
+       else
+               mozconfig_annotate '-python' --enable-extensions="default,cookie,permissions,spellcheck"
+       fi
        mozconfig_annotate '' --enable-native-uconv
        mozconfig_annotate '' --enable-image-encoder=all
        mozconfig_annotate '' --enable-canvas


Reproducible: Always

Steps to Reproduce:
Comment 1 Ferris McCormick (RETIRED) gentoo-dev 2008-02-12 14:28:30 UTC
Not devrel --- reassigning to mozilla.
Comment 2 Tim Cera 2008-02-26 03:22:35 UTC
This worked for me.  Thanks!

Tim
Comment 3 Michael Dubner 2008-03-19 15:22:45 UTC
So, due to update(s) of xulrunner-1.8.1.12.ebuild, here is new patch:

--- xulrunner-1.8.1.12.ebuild	2008-03-19 18:19:43.000000000 +0300
+++ xulrunner-1.8.1.12-r1.ebuild	2008-03-19 18:18:55.000000000 +0300
@@ -15,12 +15,13 @@
 SLOT="1.8"
 LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
 KEYWORDS="alpha amd64 ~arm hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd"
-IUSE=""
+IUSE="java python"

 RDEPEND=">=sys-libs/zlib-1.1.4
        >=sys-devel/binutils-2.16.1
        >=dev-libs/nss-3.11.5
        >=dev-libs/nspr-4.6.5-r1
+       python? ( >=dev-lang/python-2.4 )
        java? ( >=virtual/jre-1.4 )"

 DEPEND="java? ( >=virtual/jdk-1.4 )
@@ -60,7 +61,11 @@
        mozconfig_init
        mozconfig_config

-       mozconfig_annotate '' --enable-extensions="default,cookie,permissions,spellcheck"
+       if use python ; then
+               mozconfig_annotate '+python' --enable-extensions="default,cookie,permissions,spellcheck,python/xpcom"
+       else
+               mozconfig_annotate '-python' --enable-extensions="default,cookie,permissions,spellcheck"
+       fi
        mozconfig_annotate '' --enable-native-uconv
        mozconfig_annotate '' --enable-image-encoder=all
        mozconfig_annotate '' --enable-canvas
Comment 4 Raúl Porcel (RETIRED) gentoo-dev 2008-03-22 15:11:17 UTC

*** This bug has been marked as a duplicate of bug 180309 ***