Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 255210 - app-i18n/skim-1.4.5-r2 build fails with Python 2.6
Summary: app-i18n/skim-1.4.5-r2 build fails with Python 2.6
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: CJK Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: python-2.6
  Show dependency tree
 
Reported: 2009-01-16 21:50 UTC by Andrey
Modified: 2009-05-18 11:59 UTC (History)
2 users (show)

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


Attachments
Build log (build.log,1.89 KB, text/plain)
2009-01-16 21:54 UTC, Andrey
Details
Emerge info (emerge.info,3.36 KB, text/plain)
2009-01-16 21:55 UTC, Andrey
Details
skim emerge log (emerge_skim_hang.txt,6.14 KB, text/plain)
2009-03-15 04:48 UTC, Yixun Lan
Details
Bug fix (bug255210.patch,4.17 KB, patch)
2009-04-29 03:01 UTC, Jason Stubbs
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey 2009-01-16 21:50:29 UTC
File "/var/tmp/portage/app-i18n/skim-1.4.5-r2/work/skim-1.4.5/scons-local-0.96.1/SCons/Tool/gas.py", line 1

    import as

            ^

SyntaxError: invalid syntax

I think problem is that "as" is a reserved word in Python 2.6


Reproducible: Always
Comment 1 Andrey 2009-01-16 21:54:28 UTC
Created attachment 178731 [details]
Build log
Comment 2 Andrey 2009-01-16 21:55:22 UTC
Created attachment 178732 [details]
Emerge info
Comment 3 Wormo (RETIRED) gentoo-dev 2009-01-17 06:58:46 UTC
Right, 'as' will need to be renamed, like in bug 253582. Assigning to maintainers.
Comment 4 MATSUU Takuto (RETIRED) gentoo-dev 2009-02-01 16:28:39 UTC
fixed in cvs. 1.4.5-r3

Comment 5 Andrey 2009-02-01 17:57:59 UTC
(In reply to comment #4)
> fixed in cvs. 1.4.5-r3
> 

It doesn't fix the problem for me. It tries to patch using python26.patch, but while running emerge it dies before it gets to patching:

    import as

            ^

SyntaxError: invalid syntax

 * 
 * ERROR: app-i18n/skim-1.4.5-r3 failed.
 * Call stack:                          
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3263:  Called die        
 * The specific snippet of code:                          
 *       ./configure prefix=/usr libdir=/usr/$(get_libdir) || die;
 *  The die message:                                              
 *   (no error message)                                   

i.e. it dies on the first of the following lines

       ./configure prefix=/usr libdir=/usr/$(get_libdir) || die
        # bug #255210                                           
        epatch "${FILESDIR}/${P}-python26.patch"                
        sed -i -e "/^compilers/s:\[:\['$(tc-getCXX)',:" scons-local-0.96.1/SCons/Tool/g++.py || die
Comment 6 MATSUU Takuto (RETIRED) gentoo-dev 2009-02-02 01:11:05 UTC
sorry, I'll fix soon
Comment 7 MATSUU Takuto (RETIRED) gentoo-dev 2009-02-14 01:22:12 UTC
skim1.4.5-r4 in cvs.
Comment 8 Andrey 2009-02-14 05:58:50 UTC
(In reply to comment #7)
> skim1.4.5-r4 in cvs.
> 

This version did pass configure stage but hangs on compiling (probably due to wrong -D... defines like -D N O _ C O N F I G _ H and such)



>>> Emerging (1 of 1) app-i18n/skim-1.4.5-r4
 * skim-1.4.5.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                      [ ok ]
 * checking ebuild checksums ;-) ...                                                                       [ ok ]
 * checking auxfile checksums ;-) ...                                                                      [ ok ]
 * checking miscfile checksums ;-) ...                                                                     [ ok ]
>>> Unpacking source...                                                                                          
>>> Unpacking skim-1.4.5.tar.bz2 to /var/tmp/portage/app-i18n/skim-1.4.5-r4/work                                 
 * Applying skim-1.4.5-asneeded.patch ...                                                                   [ ok ]
 * Applying skim-1.4.5-kde3.patch ...                                                                       [ ok ]
 * Applying skim-1.4.5-klineedit.patch ...                                                                  [ ok ]
 * Applying skim-1.4.5-python26.patch ...                                                                   [ ok ]
>>> Source unpacked in /var/tmp/portage/app-i18n/skim-1.4.5-r4/work                                               
>>> Compiling source in /var/tmp/portage/app-i18n/skim-1.4.5-r4/work/skim-1.4.5 ...                               
/var/tmp/portage/app-i18n/skim-1.4.5-r4/work/skim-1.4.5/scons-local-0.96.1/SCons/Sig/MD5.py:5: DeprecationWarning: the md5 module is deprecated; use hashlib instead                                                                
  md5=imp.load_module('md5', file, name, desc)                                                                    
scons: Reading SConscript files ...                                                                               
/var/tmp/portage/app-i18n/skim-1.4.5-r4/work/skim-1.4.5/scons-local-0.96.1/SCons/Platform/posix.py:3: DeprecationWarning: The popen2 module is deprecated.  Use the subprocess module.                                              
  import popen2                                                                                                   
Checking for kde-config           :  kde-config was found                                                         
Checking for kde version          :  3.5.10                                                                       
Checking for the qt library       :  qt is in /usr/qt/3                                                           
Checking for uic                  :  uic was found as /usr/qt/3/bin/uic                                           
Checking for moc                  :  moc was found as /usr/qt/3/bin/moc                                           
Checking for the qt includes      :  ok /usr/qt/3/include/                                                        
Checking for the kde includes     :  ok /usr/kde/3.5/include                                                      
Checking for pkg-config           :  Found                                                                        
Checking for scim >= 1.4.4 ...  Found                                                                             
Checking for scim-x11utils ...  Found                                                                             
scons: done reading SConscript files.                                                                             
scons: Building targets ...                                                                                       
meinproc --check --cache doc/de/index.cache.bz2 doc/de/index.docbook                                              
meinproc --check --cache doc/en/index.cache.bz2 doc/en/index.docbook                                              
dcopidl plugins/compmgrclient/compmgrclient.h > plugins/compmgrclient/compmgrclient.kidl || (rm -f plugins/compmgrclient/compmgrclient.kidl ; false)                                                                                
/usr/qt/3/bin/moc -o plugins/compmgrclient/compmgrclient.moc plugins/compmgrclient/compmgrclient.h                
processing scimkdesettings.kcfgc to get scimkdesettings.h and scimkdesettings.cpp                                 
/usr/kde/3.5/bin/kconfig_compiler -dutils utils/scimkdeconfig.kcfg utils/scimkdesettings.kcfgc                    
x86_64-pc-linux-gnu-g++ -march=core2 -O2 -pipe - D N O _ C O N F I G _ H -I/usr/include/scim-1.0 -I/usr/kde/3.5/include -I/usr/qt/3/include/ -DENABLE_DEBUG=0 -DQT_THREAD_SUPPORT -D_REENTRANT -fPIC -march=core2 -O2 -pipe -DNDEBUG -DNO_DEBUG - D Q T _ N O _ T R A N S L A T I O N -I. -Isrc -Iutils -Iplugins/compmgrclient -c -o plugins/compmgrclient/compmgrclient.os plugins/compmgrclient/compmgrclient.cpp                                                    
dcopidl2cpp --c++-suffix cpp --no-signals --no-stub plugins/compmgrclient/compmgrclient.kidl                      
uic_processing(["plugins/compmgrclient/compositemanagerbase.h", "plugins/compmgrclient/compositemanagerbase.cpp","plugins/compmgrclient/compositemanagerbase.moc"], ["plugins/compmgrclient/compositemanagerbase.ui"])
/usr/qt/3/bin/uic -L /usr/kde/3.5/lib64/kde3/plugins -nounload -o plugins/compmgrclient/compositemanagerbase.h plugins/compmgrclient/compositemanagerbase.ui
x86_64-pc-linux-gnu-g++ -march=core2 -O2 -pipe - D N O _ C O N F I G _ H -I/usr/include/scim-1.0 -I/usr/kde/3.5/include -I/usr/qt/3/include/ -DENABLE_DEBUG=0 -DQT_THREAD_SUPPORT -D_REENTRANT -fPIC -march=core2 -O2 -pipe -DNDEBUG -DNO_DEBUG - D Q T _ N O _ T R A N S L A T I O N -I. -Isrc -Iutils -Iplugins/compmgrclient -c -o plugins/compmgrclient/compmgrclient_skel.os plugins/compmgrclient/compmgrclient_skel.cpp
/usr/qt/3/bin/uic -L /usr/kde/3.5/lib64/kde3/plugins -nounload -tr tr2i18n -impl plugins/compmgrclient/compositemanagerbase.h plugins/compmgrclient/compositemanagerbase.ui >> plugins/compmgrclient/compositemanagerbase.cpp
/usr/qt/3/bin/moc -o plugins/compmgrclient/compositemanagerbase.moc plugins/compmgrclient/compositemanagerbase.h
x86_64-pc-linux-gnu-g++ -march=core2 -O2 -pipe - D N O _ C O N F I G _ H -I/usr/include/scim-1.0 -I/usr/kde/3.5/include -I/usr/qt/3/include/ -DENABLE_DEBUG=0 -DQT_THREAD_SUPPORT -D_REENTRANT -fPIC -march=core2 -O2 -pipe -DNDEBUG -DNO_DEBUG - D Q T _ N O _ T R A N S L A T I O N -I. -Isrc -Iutils -Iplugins/compmgrclient -c -o plugins/compmgrclient/compositemanagerbase.os plugins/compmgrclient/compositemanagerbase.cpp
Comment 9 Yixun Lan archtester gentoo-dev 2009-03-15 04:48:01 UTC
Created attachment 185027 [details]
skim emerge log

HI, I encounter the same problem.
It passed configuration stage, but hang at compile-time

attached the log
Comment 10 MATSUU Takuto (RETIRED) gentoo-dev 2009-03-16 03:03:54 UTC
Could you try to remerge packages it depends on?

# emerge -1 '=qt-3*' '=kdelibs-3*' scim skim
or
# emerge -e skim
Comment 11 Andrey 2009-03-17 05:03:48 UTC
(In reply to comment #10)
> Could you try to remerge packages it depends on?
> 
> # emerge -1 '=qt-3*' '=kdelibs-3*' scim skim
> or
> # emerge -e skim
> 

emerge --sync && emerge -e skim

The same problem
Comment 12 Jason Stubbs 2009-04-29 03:01:47 UTC
Created attachment 189790 [details, diff]
Bug fix

This adds a patch based on http://scons.tigris.org/source/browse/scons/trunk/src/engine/SCons/Util.py?r1=3514&r2=3672
Comment 13 MATSUU Takuto (RETIRED) gentoo-dev 2009-04-30 23:47:45 UTC
thanks.
skim-1.4.5-r5 in cvs now. Please test.
Comment 14 Andrey 2009-05-01 01:24:28 UTC
(In reply to comment #13)
> thanks.
> skim-1.4.5-r5 in cvs now. Please test.
> 

Works now. Thanks a lot!