Errors in packaging kupfer

Mamoru Tasaka mtasaka at ioa.s.u-tokyo.ac.jp
Wed May 26 12:43:43 UTC 2010


Ratnadeep Debnath wrote, at 05/26/2010 08:46 PM +9:00:
> On Wed, May 26, 2010 at 2:05 PM, Chen Lei<supercyper1 at gmail.com>  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


More information about the devel mailing list