Bug#589196: gnome-shell: FTBFS: AttributeError: 'NoneType' object has no attribute 'endswith'

2010-07-15 Thread Cyril Brulebois
Source: gnome-shell
Version: 2.31.5-1
Severity: serious
Justification: FTBFS

Hi,

looks like the path == None case isn't taken into account?
| /usr/bin/g-ir-scanner \
|   --namespace=St  
\
|   --nsversion=1.0 
\
|   --include=Clutter-1.0   
\
|   --include=Gtk-2.0   
\
|   --add-include-path=.\
|   --libtool=/bin/bash ../libtool
\
|   --library=libst-1.0.la  
\
|   -DST_COMPILATION
\
|   ./st/st-adjustment.h ./st/st-bin.h ./st/st-border-image.h 
./st/st-box-layout.h ./st/st-box-layout-child.h ./st/st-button.h 
./st/st-clickable.h ./st/st-clipboard.h ./st/st-container.h 
./st/st-drawing-area.h ./st/st-entry.h ./st/st-group.h ./st/st-im-text.h 
./st/st-label.h ./st/st-overflow-box.h ./st/st-private.h ./st/st-scrollable.h 
./st/st-scroll-bar.h ./st/st-scroll-view.h ./st/st-shadow.h 
./st/st-subtexture.h ./st/st-table.h ./st/st-table-child.h 
./st/st-texture-cache.h ./st/st-theme.h ./st/st-theme-context.h 
./st/st-theme-node.h ./st/st-tooltip.h ./st/st-types.h ./st/st-widget.h 
   \
|   ./st/st-adjustment.c ./st/st-bin.c ./st/st-border-image.c 
./st/st-box-layout.c ./st/st-box-layout-child.c ./st/st-button.c 
./st/st-clickable.c ./st/st-clipboard.c ./st/st-container.c 
./st/st-drawing-area.c ./st/st-entry.c ./st/st-group.c ./st/st-im-text.c 
./st/st-label.c ./st/st-overflow-box.c ./st/st-private.c ./st/st-scrollable.c 
./st/st-scroll-bar.c ./st/st-scroll-view.c ./st/st-shadow.c 
./st/st-subtexture.c ./st/st-table.c ./st/st-table-child.c 
./st/st-texture-cache.c ./st/st-theme.c ./st/st-theme-context.c 
./st/st-theme-node.c ./st/st-theme-node-drawing.c 
./st/st-theme-node-transition.c ./st/st-tooltip.c ./st/st-widget.c  
 \
|   ./st-enum-types.h   \
|   -I../src -DPREFIX=\/usr\ -DLIBDIR=\/usr/lib\ 
-DG_DISABLE_DEPRECATED -DG_LOG_DOMAIN=\St\ -DST_COMPILATION 
-DPACKAGE_DATA_DIR=\/usr/share/gnome-shell\ -pthread 
-I/usr/include/clutter-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 
-I/usr/include/gtk-2.0 -I/usr/include/json-glib-1.0 -I/usr/include/pixman-1 
-I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/glib-2.0 
-I/usr/lib/glib-2.0/include -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 
-I/usr/include/gio-unix-2.0/ -I/usr/include/libcroco-0.6 -I/usr/include/libxml2 
-I/usr/include/gnome-desktop-2.0 -I/usr/include/startup-notification-1.0
  \
|   -o St-1.0.gir
| Traceback (most recent call last):
|   File /usr/bin/g-ir-scanner, line 38, in module
| sys.exit(scanner_main(sys.argv))
|   File /usr/lib/gobject-introspection/giscanner/scannermain.py, line 266, 
in scanner_main
| cachestore = CacheStore()
|   File /usr/lib/gobject-introspection/giscanner/cachestore.py, line 76, in 
__init__
| self._check_cache_version()
|   File /usr/lib/gobject-introspection/giscanner/cachestore.py, line 80, in 
_check_cache_version
| version = os.path.join(self._directory, _CACHE_VERSION_FILENAME)
|   File /usr/lib/python2.6/posixpath.py, line 67, in join
| elif path == '' or path.endswith('/'):
| AttributeError: 'NoneType' object has no attribute 'endswith'
| make[4]: *** [St-1.0.gir] Error 1

Full build logs:
  https://buildd.debian.org/status/package.php?p=gnome-shellsuite=experimental

Mraw,
KiBi.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#589196: gnome-shell: FTBFS: AttributeError: 'NoneType' object has no attribute 'endswith'

2010-07-15 Thread Gustavo Noronha Silva
Hey,

On Thu, 2010-07-15 at 19:43 +0200, Cyril Brulebois wrote:
 looks like the path == None case isn't taken into account?
[...]
 |   File /usr/lib/gobject-introspection/giscanner/cachestore.py, line 80, 
 in _check_cache_version
 | version = os.path.join(self._directory, _CACHE_VERSION_FILENAME)
 |   File /usr/lib/python2.6/posixpath.py, line 67, in join
 | elif path == '' or path.endswith('/'):
 | AttributeError: 'NoneType' object has no attribute 'endswith'
 | make[4]: *** [St-1.0.gir] Error 1
 
 Full build logs:
   
 https://buildd.debian.org/status/package.php?p=gnome-shellsuite=experimental

Seems to be the case. It's a bug in either gobject-introspection or
python2.6, though =(

Cheers,

-- 
Gustavo Noronha Silva gustavo.noro...@collabora.co.uk
Collabora Ltd.




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#589196: gnome-shell: FTBFS: AttributeError: 'NoneType' object has no attribute 'endswith'

2010-07-15 Thread Emilio Pozuelo Monfort
On 15/07/10 20:04, Gustavo Noronha Silva wrote:
 On Thu, 2010-07-15 at 19:43 +0200, Cyril Brulebois wrote:
 looks like the path == None case isn't taken into account?
 [...]
 |   File /usr/lib/gobject-introspection/giscanner/cachestore.py, line 80, 
 in _check_cache_version
 | version = os.path.join(self._directory, _CACHE_VERSION_FILENAME)
 |   File /usr/lib/python2.6/posixpath.py, line 67, in join
 | elif path == '' or path.endswith('/'):
 | AttributeError: 'NoneType' object has no attribute 'endswith'
 | make[4]: *** [St-1.0.gir] Error 1

 Full build logs:
   
 https://buildd.debian.org/status/package.php?p=gnome-shellsuite=experimental
 
 Seems to be the case. It's a bug in either gobject-introspection or
 python2.6, though =(

Looks like a gobject-introspection one in any case. path isn't a String there.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#589196: gnome-shell: FTBFS: AttributeError: 'NoneType' object has no attribute 'endswith'

2010-07-15 Thread Gustavo Noronha Silva
clone 589196
reassign -1 gobject-introspection 0.6.15~git20100713-1
retitle -1 may pass bad values to os.path.join, causing bad things to happen
thanks

On Thu, 2010-07-15 at 20:29 +0200, Emilio Pozuelo Monfort wrote:
 On 15/07/10 20:04, Gustavo Noronha Silva wrote:
  On Thu, 2010-07-15 at 19:43 +0200, Cyril Brulebois wrote:
  looks like the path == None case isn't taken into account?
  [...]
  |   File /usr/lib/gobject-introspection/giscanner/cachestore.py, line 
  80, in _check_cache_version
  | version = os.path.join(self._directory, _CACHE_VERSION_FILENAME)
  |   File /usr/lib/python2.6/posixpath.py, line 67, in join
  | elif path == '' or path.endswith('/'):
  | AttributeError: 'NoneType' object has no attribute 'endswith'
  | make[4]: *** [St-1.0.gir] Error 1
 
  Full build logs:

  https://buildd.debian.org/status/package.php?p=gnome-shellsuite=experimental
  
  Seems to be the case. It's a bug in either gobject-introspection or
  python2.6, though =(
 
 Looks like a gobject-introspection one in any case. path isn't a String there.

I tend to agree. I'll reassign, and patch gobject-introspection later
today.

Cheers,

-- 
Gustavo Noronha Silva gustavo.noro...@collabora.co.uk
Collabora Ltd.




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org