Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 497562 - media-libs/harfbuzz-0.9.23 - error parsing file HarfBuzz-0.0.gir: Line 20, character 32: The attribute 'name' on the element 'type' must be specified
Summary: media-libs/harfbuzz-0.9.23 - error parsing file HarfBuzz-0.0.gir: Line 20, ch...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-08 18:44 UTC by Søren
Modified: 2014-02-22 22:22 UTC (History)
2 users (show)

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


Attachments
Output of emerge --info (emerge.info,5.53 KB, text/plain)
2014-01-08 18:44 UTC, Søren
Details
build.log (build.log,52.32 KB, text/plain)
2014-01-09 11:39 UTC, Tamer Higazi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Søren 2014-01-08 18:44:25 UTC
Created attachment 367424 [details]
Output of emerge --info

Hit a build error while updating system using command
  emerge --deep --update --newuse --with-bdeps=y @world

Here is the part of the build output containing the build error:

/bin/sed        -e 's@%prefix%@/usr@g' \
        -e 's@%exec_prefix%@/usr@g' \
        -e 's@%libdir%@/usr/lib64@g' \
        -e 's@%includedir%@/usr/include@g' \
        -e 's@%VERSION%@0.9.23@g' \
"harfbuzz.pc.in" \
> "harfbuzz.pc.tmp" && mv "harfbuzz.pc.tmp" "harfbuzz.pc" || ( rm -f "harfbuzz.pc.tmp"; false )
\
/bin/sed        -e 's@%prefix%@/usr@g' \
        -e 's@%exec_prefix%@/usr@g' \
        -e 's@%libdir%@/usr/lib64@g' \
        -e 's@%includedir%@/usr/include@g' \
        -e 's@%VERSION%@0.9.23@g' \
"harfbuzz-icu.pc.in" \
> "harfbuzz-icu.pc.tmp" && mv "harfbuzz-icu.pc.tmp" "harfbuzz-icu.pc" || ( rm -f "harfbuzz-icu.pc.tmp"; false )
\
/bin/sed        -e 's@%prefix%@/usr@g' \
        -e 's@%exec_prefix%@/usr@g' \
        -e 's@%libdir%@/usr/lib64@g' \
        -e 's@%includedir%@/usr/include@g' \
        -e 's@%VERSION%@0.9.23@g' \
"harfbuzz-gobject.pc.in" \
> "harfbuzz-gobject.pc.tmp" && mv "harfbuzz-gobject.pc.tmp" "harfbuzz-gobject.pc" || ( rm -f "harfbuzz-gobject.pc.tmp"; false )
/usr/bin/g-ir-compiler --includedir=. --includedir=. HarfBuzz-0.0.gir -o HarfBuzz-0.0.typelib
error parsing file HarfBuzz-0.0.gir: Line 20, character 32: The attribute 'name' on the element 'type' must be specified
make[4]: *** [HarfBuzz-0.0.typelib] Error 1


I found a similar build error reported here: http://forum.foresightlinux.org/index.php?action=printpage;topic=1558.0
In that case it turned out that the gobject-introspection version needed to be upgraded.

After updating gobject-introspection-common and gobject-introspection (but also a bunch of other packages) to 1.36.0 and 1.36.0-r1 respectively, building harfbuzz completed succesfully.

Checking the ebuild shows that it depends only on version 1.32:
sboisen@nikanuuranu ~ $ grep gobject $(equery which harfbuzz)
        introspection? ( >=dev-libs/gobject-introspection-1.32 )
# eautoreconf requires gobject-introspection-common
        >=dev-libs/gobject-introspection-common-1.32
                $(use_with glib gobject) \


So I am guessing that my previous versions of these dependencies were >= 1.32 but not recent enough to be compatible with this version of harfbuzz.

I therefore propose that the ebuild is corrected to depend on whichever version is sufficient for the harfbuzz build. The above mentioned versions of 1.36.0 / 1.36.0-r1 worked for me.

Thanks
Søren
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-01-09 01:46:23 UTC
Please attach the entire build log to this bug report.
Comment 2 Tamer Higazi 2014-01-09 02:38:15 UTC
Tried to merge libreoffice, the dependencie "media-libs/harfbuzz-0.9.23" failed to compile, complete build and log:

http://pastebin.com/raw.php?i=dwMcutSq


Tamer
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2014-01-09 11:31:56 UTC
(In reply to Tamer Higazi from comment #2)
> Tried to merge libreoffice, the dependencie "media-libs/harfbuzz-0.9.23"
> failed to compile, complete build and log:
> 
> http://pastebin.com/raw.php?i=dwMcutSq

See comment #1.
Comment 4 Tamer Higazi 2014-01-09 11:39:48 UTC
Created attachment 367474 [details]
build.log

The complete build.log
Comment 5 Tamer Higazi 2014-01-09 11:41:15 UTC
Did it now!
Sorry....



Tamer

(In reply to Jeroen Roovers from comment #3)
> (In reply to Tamer Higazi from comment #2)
> > Tried to merge libreoffice, the dependencie "media-libs/harfbuzz-0.9.23"
> > failed to compile, complete build and log:
> > 
> > http://pastebin.com/raw.php?i=dwMcutSq
> 
> See comment #1.
Comment 6 Tamer Higazi 2014-01-09 21:54:00 UTC
This bug can be closed. 
Everything compiled fun after doing a @system upgrade!
Comment 7 Søren 2014-01-10 12:25:41 UTC
No! Tamer you are missing the point, don't say that a bug report you didn't make can be closed.
The whole point is that the build failure happens at random - since portage doesn't see the right dependency requirement, the build sequence between gobject-introspection and harfbuzz _for a full system update_ is random.
So other people can and will run into the same issue until the ebuild is fixed.
Comment 8 Alexandre Rostovtsev (RETIRED) gentoo-dev 2014-02-22 20:48:54 UTC
Right; >=harfbuzz-0.9.23 with USE=introspection appears to require gobject-introspection-1.34 or higher.

Reported upstream at https://bugs.freedesktop.org/show_bug.cgi?id=75384
Comment 9 Alexandre Rostovtsev (RETIRED) gentoo-dev 2014-02-22 22:22:40 UTC
Fixed, thanks for reporting.

+  22 Feb 2014; Alexandre Rostovtsev <tetromino@gentoo.org>
+  harfbuzz-0.9.23.ebuild, harfbuzz-0.9.26.ebuild, harfbuzz-9999.ebuild:
+  Require >=gobject-introspection-1.34 (bug #497562, thanks to Søren).