<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>15270</bug_id>
          
          <creation_ts>2003-02-07 09:07 0000</creation_ts>
          <short_desc>atk-1.2.2.ebuild fails when &quot;doc&quot; is in USE</short_desc>
          <delta_ts>2004-10-18 11:12:22 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Library</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>scandium@gentoo.org</reporter>
          <assigned_to>gnome@gentoo.org</assigned_to>
          <cc>carl@hudkins.org</cc>
    
    <cc>carl_ivar@yahoo.com</cc>
    
    <cc>chris@hypocrite.org</cc>
    
    <cc>crude@copymat.net</cc>
    
    <cc>eradicator@gentoo.org</cc>
    
    <cc>gentoo@feeleas.org</cc>
    
    <cc>jn@zeizei.net</cc>
    
    <cc>mholzer@gentoo.org</cc>
    
    <cc>rcm@sasaska.net</cc>
    
    <cc>satai@gentoo.org</cc>
    
    <cc>stefan@sblbs.de</cc>

      

      
          <long_desc isprivate="0">
            <who>scandium@gentoo.org</who>
            <bug_when>2003-02-07 09:07:14 0000</bug_when>
            <thetext>dev-libs/atk/atk-1.2.2.ebuild fails when using &quot;doc&quot; in the USE var.

Setting -doc solved the problem and it compiles</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>hasse-gentoobug@hagenjohansen.dk</who>
            <bug_when>2003-02-07 13:49:35 0000</bug_when>
            <thetext>I have the same error, but it looks like it is not the atk ebuild itself. A lot of the gnome programs are failing. with the folling error

echo &apos;-- Installing ./html/index.sgml&apos; ; \
  /bin/install -c -m 644 ./html/index.sgml 
/var/tmp/portage/bonobo-activation-2.2.0/image//usr/share/gtk-doc/html/bonobo-activation; 
\
fi)
-- Installing ./html/bonobo-activation.png
-- Installing ./html/home.png
-- Installing ./html/left.png
-- Installing ./html/right.png
-- Installing ./html/up.png
-- Installing ./html/index.sgml
/bin/install: cannot stat `./html/index.sgml&apos;: No such file or directory
make[2]: *** [install-data-local] Error 1
make[2]: Leaving directory 
`/var/tmp/portage/bonobo-activation-2.2.0/work/bonobo-activation-2.2.0/api-docs&apos;
make[1]: *** [install-am] Error 2
make[1]: Leaving directory 
`/var/tmp/portage/bonobo-activation-2.2.0/work/bonobo-activation-2.2.0/api-docs&apos;
make: *** [install-recursive] Error 1

hope it helps</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>scandium@gentoo.org</who>
            <bug_when>2003-02-07 16:43:13 0000</bug_when>
            <thetext>Seems like you are right...I may have filled out the report too early...It worked after setting -doc but the compile error was at the same package so I didn&apos;t go into it any further :/</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>foser@gentoo.org</who>
            <bug_when>2003-02-07 18:24:34 0000</bug_when>
            <thetext>upgrade to the latest gtk-doc (1.0) . See if that fixes it.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>scandium@gentoo.org</who>
            <bug_when>2003-02-07 18:36:27 0000</bug_when>
            <thetext>I am already using gtk-doc 1.0, it still fails, same error like Hasse Hagen Johansen  reported</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>foser@gentoo.org</who>
            <bug_when>2003-02-07 19:20:00 0000</bug_when>
            <thetext>can you remove the app-text/* dependencies named in the gtk-doc-1.0 ebuild  and re-emerge gtk-doc . Those deps should be correct, im afraid something else might be interfering, but i have no idea what. These docs are a mess.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tmp@zac.att.ne.jp</who>
            <bug_when>2003-02-10 00:56:37 0000</bug_when>
            <thetext>I had the same problem during emerge --deep -u world.
I tried to re-emerge latest stable ebuilds of openjade,
docbook-xml-dtd and docbook-dsssl-stylesheets as you addvised.
This solved the problem.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>foser@gentoo.org</who>
            <bug_when>2003-02-10 06:04:15 0000</bug_when>
            <thetext>*** Bug 15393 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>foser@gentoo.org</who>
            <bug_when>2003-02-10 06:04:34 0000</bug_when>
            <thetext>*** Bug 15409 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>chris@hypocrite.org</who>
            <bug_when>2003-02-10 10:56:24 0000</bug_when>
            <thetext>gnome-vfs also exhibits this problem.  Changing /etc/make.conf to use -doc instead of 
doc allows gnome-vfs to be emerged successfully. </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tuck@whistlingfish.net</who>
            <bug_when>2003-02-11 07:18:30 0000</bug_when>
            <thetext>This also occurs for me with glib-2.2.1 (as well as pango), and presumably many 
other packages. Re-emerging openjade, docbook-xml-dtd, docbook-sgml-dtd-*, and
docbook-dsssl-stylesheets did _not_ fix the problem.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>foser@gentoo.org</who>
            <bug_when>2003-02-11 11:44:22 0000</bug_when>
            <thetext>it has to do with the sgml changes and fixes, http://cvs.gentoo.org/~satai/sgmlfix.html . Try if that helps.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tuck@whistlingfish.net</who>
            <bug_when>2003-02-11 16:17:16 0000</bug_when>
            <thetext>Just tried the sgml fix. No dice, but thanks for the suggestion. I&apos;m still getting:

  /bin/install -c -m 644 ./html/index.sgml /var/tmp/portage/pango-1.2.1/image//usr/share/gtk-doc/html/pango; \
fi)
-- Installing ./html/home.png
-- Installing ./html/layout.gif
-- Installing ./html/left.png
-- Installing ./html/right.png
-- Installing ./html/up.png
-- Installing ./html/index.sgml
/bin/install: cannot stat `./html/index.sgml&apos;: No such file or directory
make[2]: *** [install-data-local] Error 1
make[2]: Leaving directory `/var/tmp/portage/pango-1.2.1/work/pango-1.2.1/docs&apos;
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/var/tmp/portage/pango-1.2.1/work/pango-1.2.1/docs&apos;
make: *** [install-recursive] Error 1

And further up in the build:

(Sorry, the top of this scrolled off)
.
.
.
../xml/modules.xml:139: error: Entity &apos;nbsp&apos; not defined
&lt;varlistentry&gt;&lt;term&gt;&lt;parameter&gt;wc&lt;/parameter&gt;&amp;nbsp;:&lt;/term&gt;
                                                   ^
../xml/modules.xml:158: error: Entity &apos;nbsp&apos; not defined
&lt;varlistentry&gt;&lt;term&gt;&lt;parameter&gt;module&lt;/parameter&gt;&amp;nbsp;:&lt;/term&gt;
                                                       ^
../xml/modules.xml:169: error: chunk is not well balanced

^
unable to parse ../pango-docs.sgml</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>foser@gentoo.org</who>
            <bug_when>2003-02-11 18:07:30 0000</bug_when>
            <thetext>did you _really_ do everything mentioned on the sgmlfix page ? cause the problem you&apos;re seeing comes from non registered sgml files.

satai can you maybe give some more insight, im not really a doc guy (i only know that gtk-doc-1.0 has correct deps and _really_ should work)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>foser@gentoo.org</who>
            <bug_when>2003-02-12 18:02:47 0000</bug_when>
            <thetext>*** Bug 15600 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mholzer@gentoo.org</who>
            <bug_when>2003-02-13 10:05:33 0000</bug_when>
            <thetext>*** Bug 15630 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mholzer@gentoo.org</who>
            <bug_when>2003-02-13 10:07:36 0000</bug_when>
            <thetext>same as #14348</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>foser@gentoo.org</who>
            <bug_when>2003-02-13 11:10:36 0000</bug_when>
            <thetext>*** Bug 14348 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tuck@whistlingfish.net</who>
            <bug_when>2003-02-13 17:05:14 0000</bug_when>
            <thetext>As I replied to foser privately (I didn&apos;t want to flood this report with the
copious output), I really _did_ do everything on the sgmlfix page, and did it
again to be sure. His followup suggestion was:

    Follow the sgmlfix page up to the point where you re-emerge
    &apos;packnames.txt&apos;, instead of that just do &apos;emerge pango&apos;. It 
    should now pull in gtk-doc-1.0 with all of its needed deps, 
    for me this works over and over again.

I tried that and it failed, so I then tried doing &apos;emerge -u --deep pango&apos;, 
which merged the following:

    dev-libs/libxml2-2.5.1
    app-text/docbook-xsl-stylesheets-1.60.1
    app-text/docbook-xml-dtd-4.2
    app-text/sgml-common-0.6.3-r3
    app-text/openjade-1.3.1-r6
    app-text/docbook-dsssl-stylesheets-1.77-r2
    dev-libs/glib-2.2.1
    x11-libs/pango-1.2.1

This ended up failing during glib before getting to pango. This isn&apos;t really
surprising, since I&apos;d already seen it fail during glib before. This only reason
I was messing around with pango is that I could see it fail sooner, since it
compiles faster than glib.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>foser@gentoo.org</who>
            <bug_when>2003-02-13 17:38:09 0000</bug_when>
            <thetext>How did it fail, i dont see a gtk-doc dep in there. Anyway altough you&apos;re not the only one with this problem, other people seem to get it working after these suggestions which makes me think there&apos;s some local problem.

If you just want to move on USE=-doc .</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tuck@whistlingfish.net</who>
            <bug_when>2003-02-13 18:27:38 0000</bug_when>
            <thetext>It failed in the same way that pango was failing. With the &apos;./html/index.sgml: no such file or directory&apos; error.

You didn&apos;t see gtk-doc in there because it&apos;s already merged on my system and
it&apos;s not in the list of packages that get removed. I actually tried re-emerging
that anyway and the re-did the &apos;emerge pango&apos;, but it didn&apos;t help.
 
I&apos;m willing to believe there&apos;s something wrong (even with my system
specifically), I&apos;d just like to figure out what it is. I know about the USE=-doc
solution, but that&apos;s not really a fix; it&apos;s more of a kludge. I&apos;d like to
actually fix this, if possible. The fact that I&apos;m using ~x86 may be making a
difference, but doesn&apos;t this stuff need be caught and fixed before it&apos;s
unmasked?

I&apos;ll try to see if I can figure out what&apos;s going on here on my own, but if you
come up with any more ideas please let me know.

---

Actually, I just spent some time on it and think I may have a solution. The
problem was that building the html was giving the error:
    failed to load external entity &quot;http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd&quot;

I had /usr/share/sgml/docbook/xml-dtd-4.2/docbookx.dtd on my system, but nothing
under 4.1.2. An &apos;emerge -p app-text/docbook-xml-dtd&apos; showed that it would 
re-merge 4.2, so I manually did &apos;ebuild .../docbooc-xml-dtd-4.1.2.ebuild merge&apos;,
which added it. This allowed pango to build properly. So shouldn&apos;t there be
a dependency in pango (and probably glib, and who knows what else?) of
&quot;doc? (=app-text/docbooc-xml-dtd-4.1.2)&quot;? Or should this go in gtk-doc? Create
a dependancy both on 4.1.2 and 4.2?
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>xkr47@outerspace.dyndns.org</who>
            <bug_when>2003-02-13 19:34:07 0000</bug_when>
            <thetext>Unfortunately, atk-1.2.2 *still* fails for me, even after I did:

emerge &apos;=app-text/docbook-xml-dtd-4.1.2*&apos;
emerge --oneshot pango

I get the same error as before for atk.. =/ (pango merged fine, no problems there)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tuck@whistlingfish.net</who>
            <bug_when>2003-02-13 20:01:08 0000</bug_when>
            <thetext>Looks like atk uses docbook 3.0. Do you have docbook-sgml-dtd-3.0 installed?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>Klaus.Kusche@inode.at</who>
            <bug_when>2003-02-14 15:36:31 0000</bug_when>
            <thetext>Same problem here.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tuck@whistlingfish.net</who>
            <bug_when>2003-02-14 20:12:22 0000</bug_when>
            <thetext>So I had a problem with atk on a different system (my isn&apos;t this fun?) and to
fix it I did:

    * The sgmlfix procedure
    * emerge =docbook-xml-dtd-4.1.2-r3
      (not sure if this is required, but I know something will need it)

After that atk compiled fine.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mholzer@gentoo.org</who>
            <bug_when>2003-02-15 11:54:44 0000</bug_when>
            <thetext>*** Bug 15735 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>carl@hudkins.org</who>
            <bug_when>2003-02-16 18:45:48 0000</bug_when>
            <thetext>I can also confirm that the SGML fix does not help my problem.  I went through it and the only 
two packages that needed to be remerged were libgnome and yelp; they rebuilt without 
problems, as expected.  I also tried, per the above suggestion, not re-merging any packages after 
removing the sgml directories; and I tried explicitly unmerging libgnome and yelp before 
attempting to &quot;emerge gnome&quot;. The process always gets as far as gnome-vfs and then fails when 
it can&apos;t find index.sgml. </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>foser@gentoo.org</who>
            <bug_when>2003-02-16 19:56:48 0000</bug_when>
            <thetext>*** Bug 15781 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>foser@gentoo.org</who>
            <bug_when>2003-02-16 19:59:59 0000</bug_when>
            <thetext>did you guys try matts suggestion ? which could be the problem cause i know for ~x86 users in combination with a new version scrollkeeper may have emerged the wrong version for a while.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>chris@hypocrite.org</who>
            <bug_when>2003-02-16 22:45:28 0000</bug_when>
            <thetext>After trying Matt&apos;s suggestions, I am able to emerge atk (it rebuilds atk) and I do have 
&quot;doc&quot; in use.  I cannot categorically say that this fixed my problem (I think I reported 
vs. a different package) but I can confirm that I can now successfully emerge atk. 
 
Thanks, Matt.  :) 
 </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>foser@gentoo.org</who>
            <bug_when>2003-02-17 07:48:12 0000</bug_when>
            <thetext>thanks matt for opening my eyes, the fix i had done in scrollkeeper i shouldve also done in gtk-doc. Never thought of that. The fix is in the tree and this most likely fixes the problems here.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>xkr47@outerspace.dyndns.org</who>
            <bug_when>2003-02-19 09:10:09 0000</bug_when>
            <thetext>Finally!!!!

I am NOT using the ~x86, still had problems after trying all of your
suggestions..

I did some heavy digging, and finally I found out that the
app-text/docbook-xsl-stylesheets package was causing problems for me..
As a &quot;x86&quot; guy I had 1.57.0 installed. The 1.60.1 which was mentioned
above is &quot;~x86&quot; and thus not applicable in my case. I haven&apos;t tested
whether it would have helped to solve my problems. But switching back
to 1.52.2 *finally* allowed me to compile atk!

So thus, I did:

emerge &apos;=app-text/docbook-xsl-stylesheets-1.52.2&apos;

and now I am a happy man :)

NOTE: atk emerged fine even if I didn&apos;t unmerge 1.57.0 first. And it
      also emerged fine after unmerging it. And it also emerged fine
      after emerging it again (as a part of &quot;emerge -pu --deep ...) =)
      So, conclusively one only needs to run the command I gave above.

I don&apos;t know if the problem is that something would be missing from
the 1.57.0 installation or if the 1.52.2 is used in favour of 1.57.0
when both are installed. But it solved my problem.

I&apos;m going to do the whole sgml update once more (and also emerge
1.52.2) to see that everything still works ok. I&apos;ll report here if it
doesn&apos;t ;)
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>xkr47@outerspace.dyndns.org</who>
            <bug_when>2003-02-19 13:16:42 0000</bug_when>
            <thetext>ok sorry.. linc-1.0.1 does still fail.. =(</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mholzer@gentoo.org</who>
            <bug_when>2003-02-19 14:40:17 0000</bug_when>
            <thetext>linc-1.1.1 is stable

please rsync &amp; update your portage</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>foser@gentoo.org</who>
            <bug_when>2003-02-19 14:56:54 0000</bug_when>
            <thetext>does linc fail on docs ? be a bit more verbose please, these comment are fairly useless like that. And give us some output (in case it is on docs).</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>foser@gentoo.org</who>
            <bug_when>2003-02-20 17:36:51 0000</bug_when>
            <thetext>*** Bug 16101 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>foser@gentoo.org</who>
            <bug_when>2003-03-03 15:29:31 0000</bug_when>
            <thetext>closing, no more traffic. Problems seem to be resolved for most people.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>carl_ivar@yahoo.com</who>
            <bug_when>2003-03-12 13:40:28 0000</bug_when>
            <thetext>I don&apos;t think this should be closed and definitely not FIXED.  What is the fix?  -doc in USE?  That is a workaround, not a fix.

I just had the atk index.sgml problem myself when doing a simple emerge -u world.  I am not using ~x86.  I tried many of the suggestions here, like the 1.52.2 version of docbook-xsl-stylesheets, remerging various things, etc.  No luck.

Finally I had to put -doc in USE to get my emerge -u world to work, but I didn&apos;t really want to do that.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>foser@gentoo.org</who>
            <bug_when>2003-03-12 14:50:58 0000</bug_when>
            <thetext>nah its closed because this shouldnt happen on a clean install anymore, it shouldnt happen if the right docbook stylesheets are installed. I never said the fix was to use -doc, thats a quick workaround (_most_ ppl dont want these docs anyway, they&apos;re only interesting to gnome/gtk app developers). The real problems shouldve been fixed in several ebuilds, making them depend on the right stylesheets and such.

Tried everything mentioned here ? including Satai&apos;s sgmlfix, re-emerging of gtk-doc, scrollkeeper and their deps.

Either the problem crops up again because someone made changes to ebuilds in the tree or you have an old install with the old problems which so far haven&apos;t got corrected. As long as i don&apos;t get more reports i assume the second.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jim@nuttz.org</who>
            <bug_when>2003-07-08 07:37:59 0000</bug_when>
            <thetext>I have to agree. This is not fixed. There is at the least a dependency problem. I should be able to do an emerge -u world and things are supposed to work. That&apos;s the whole point of gentoo. </thetext>
          </long_desc>
      
    </bug>

</bugzilla>