Re: Errors in packaging kupfer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, May 26, 2010 at 8:43 AM, Mamoru Tasaka
<mtasaka@xxxxxxxxxxxxxxxxxxx> wrote:
>
> Ratnadeep Debnath wrote, at 05/26/2010 08:46 PM +9:00:
> > On Wed, May 26, 2010 at 2:05 PM, Chen Lei<supercyper1@xxxxxxxxx>  wrote:
> >> CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-lm" waf configure --prefix=%{_prefix}
> >> ->
> >> waf configure --prefix=%{_prefix} --no-runtime-deps
> >>
> >>
> >> All python modules are not needed in runtime, don't check them. Also,
> >> the package is noarch, optflags is not needed.
> >
> > That does not answer the current topic.
> > Also, the checking is done by the waf script, not by the rpm packaging method.
> > The question is :
> > Why waf is not able to detect the gtk python module during rpmbuild?
> > pygtk and concerned gtk packages are installed.
> >
> > Thanks,
> > rtnpro
>
> With Fedora's pygtk2, "import gtk" fails if DISPLAY environment is
> not set, and DISPLAY environment is always unset during rpmbuild
> process. You see;
> ------------------------------------------------------------
> Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.sxcUp9
> + umask 022
> + cd /home/rtnpro/rpmbuild/BUILD
> + cd kupfer-v200
> + LANG=C
> + export LANG
> + unset DISPLAY  <====
> ------------------------------------------------------------
>
> Note that why I said "Fedora's pygtk2" is that with Fedora's pygtk2
> the following patch is applied:
> http://cvs.fedoraproject.org/viewvc/rpms/pygtk2/devel/pygtk-nodisplay-exception.patch?view=log
>
> Regards,
> Mamoru
> --
> devel mailing list
> devel@xxxxxxxxxxxxxxxxxxxxxxx
> https://admin.fedoraproject.org/mailman/listinfo/devel

I've actually done a bit of work packaging this, and submitted a patch
for this problem upstream.  It's two releases old, but it you can get
the idea from the patch, which I've added it in this email.

--- kupfer-pandoras-box-1.1.orig/wscript    2010-02-08 06:26:24.000000000 -0500
+++ kupfer-pandoras-box-1.1/wscript    2010-03-13 01:05:42.924787364 -0500
@@ -103,14 +103,10 @@
     if not Options.options.check_deps:
         return

-    python_modules = """
-        gio
-        gtk
-        xdg
-        dbus
-        """
-    for module in python_modules.split():
-        conf.check_python_module(module)
+    conf.check_python_module("gtk")
+    conf.check_python_module("gio")
+    conf.check_python_module("xdg")
+    conf.check_python_module("dbus")

     Utils.pprint("NORMAL", "Checking optional dependencies:")

Since you're doing this now, could you separate out kupfer-provider
into a second binary package, as I'm working with a package that
requires it, but not kupfer, so it'd be helpful to be able to install
them separately.

Best,

Patrick Dignan
-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux