<?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>131141</bug_id>
          
          <creation_ts>2006-04-24 13:17 0000</creation_ts>
          <short_desc>dev-java/xerces USE=&quot;-examples&quot; should not install xercesSamples.jar</short_desc>
          <delta_ts>2006-09-18 14:25:02 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>Ebuilds</component>
          <version>2006.0</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>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>h.mth@web.de</reporter>
          <assigned_to>java@gentoo.org</assigned_to>
          <cc>andrew@andrewyates.net</cc>

      

      
          <long_desc isprivate="0">
            <who>h.mth@web.de</who>
            <bug_when>2006-04-24 13:17:39 0000</bug_when>
            <thetext>Something like
  &apos;use examples || rm ${S}/build/xercesSamples.jar&apos;
in src_install before java-pkg_dojar.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>andrew@andrewyates.net</who>
            <bug_when>2006-08-02 22:34:30 0000</bug_when>
            <thetext>I&apos;m attaching a patch so that xercesSamples.jar is not installed into /usr/share/xerces-2/lib when the examples use flag is not set. The patch is against the xerces 2.7.1-r1 ebuild in portage. I&apos;ve tested it, and the change also works with the java experimental 2.8.0 ebuild.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>andrew@andrewyates.net</who>
            <bug_when>2006-08-02 22:35:15 0000</bug_when>
            <thetext>Created an attachment (id=93313)
only install xercesSamples.jar if examples flag is set

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>andrew@andrewyates.net</who>
            <bug_when>2006-08-02 22:47:50 0000</bug_when>
            <thetext>Created an attachment (id=93314)
examples patch

I realized there was a better way to do this as soon as I submitted the last patch.
This removes the samples jar file earlier in the build process. There&apos;s no reason to wait until the samples jar is in image before removing it.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>caster@gentoo.org</who>
            <bug_when>2006-08-03 02:17:30 0000</bug_when>
            <thetext>Thanks for your attempt. However, compiled examples should never go to /usr/share/package/lib through java-pkg_dojar, no matter the useflag. Examples source should go to /usr/share/doc/${PF}/examples as the ebuild does, and compiled examples are probably of no use so the jar can just be removed in any case. Ideally it wouldn&apos;t even have to be built, that would probably require some manual build.xml patching or finding a better target(s) to pass to eant.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>andrew@andrewyates.net</who>
            <bug_when>2006-08-03 08:27:15 0000</bug_when>
            <thetext>You&apos;re right.
     [echo]  jar      --&gt; generates the xercesImpl.jar file
     [echo]  jars --&gt; generates xercesImpl &amp; xercesSamples jars
It looks like we can change the build target to &apos;jar&apos; and we won&apos;t have to deal with the samples jar. As you mentioned, a binary examples jar isn&apos;t that useful anyway. 
The jars target builds three files: xercesImpl.jar, xercesSamples.jar and xml-apis.jar. The jar target only builds xercesImpl.jar.
xml-commons-external already provides xml-apis.jar, but according to Bug #82561 removing the jar from xerces will break some ebuilds. Those will have to be fixed before the target can be changed.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>caster@gentoo.org</who>
            <bug_when>2006-08-03 08:45:31 0000</bug_when>
            <thetext>(In reply to comment #5)
&gt; You&apos;re right.
&gt;      [echo]  jar      --&gt; generates the xercesImpl.jar file
&gt;      [echo]  jars --&gt; generates xercesImpl &amp; xercesSamples jars
&gt; It looks like we can change the build target to &apos;jar&apos; and we won&apos;t have to deal
&gt; with the samples jar. As you mentioned, a binary examples jar isn&apos;t that useful
&gt; anyway. 

Yeah.

&gt; The jars target builds three files: xercesImpl.jar, xercesSamples.jar and
&gt; xml-apis.jar. The jar target only builds xercesImpl.jar.
&gt; xml-commons-external already provides xml-apis.jar, but according to Bug #82561
&gt; removing the jar from xerces will break some ebuilds. Those will have to be
&gt; fixed before the target can be changed.
 
Well the jars target just copies the xml-apis.jar from one dir to another. It&apos;s taken from xml-commons-external, not built here. So the ebuild could just copy it itself (until bug 82561 is solved and this copying is no more needed) and then jar target would be enough, without building the samples.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>andrew@andrewyates.net</who>
            <bug_when>2006-08-03 10:37:11 0000</bug_when>
            <thetext>Created an attachment (id=93356)
use jar target

This uses the jar target so that the samples are not built, and installs a symlink so that xerces-2/lib/xml-apis.jar points to the xml-commons-external jar that was used in building xerces.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>caster@gentoo.org</who>
            <bug_when>2006-08-08 18:34:47 0000</bug_when>
            <thetext>Fixed in 2.8.0-r1 in migrated-java-experimental-overlay.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>caster@gentoo.org</who>
            <bug_when>2006-09-18 14:25:02 0000</bug_when>
            <thetext>Fixed in xerces-2.7.1-r2 in the tree. Thanks everyone.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>93313</attachid>
            <date>2006-08-02 22:35 0000</date>
            <desc>only install xercesSamples.jar if examples flag is set</desc>
            <filename>examplesflag.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIHhlcmNlcy0yLjcuMS1yMS5lYnVpbGQJMjAwNi0wOC0wMyAwMToyMDoxMi4wMDAwMDAwMDAg
LTA0MDAKKysrIG9sZHhlcmNlcy0yLjcuMS1yMS5lYnVpbGQJMjAwNi0wOC0wMyAwMTozMzowNi4w
MDAwMDAwMDAgLTA0MDAKQEAgLTU4LDggKzU4LDYgQEAKIAlpZiB1c2UgZXhhbXBsZXM7IHRoZW4K
IAkJZG9kaXIgL3Vzci9zaGFyZS9kb2MvJHtQRn0vZXhhbXBsZXMKIAkJY3AgLXIgc2FtcGxlcy8q
ICR7RH0vdXNyL3NoYXJlL2RvYy8ke1BGfS9leGFtcGxlcwotCWVsc2UKLQkJcm0gJHtEfS91c3Iv
c2hhcmUvJHtQTn0tJHtTTE9UfS9saWIveGVyY2VzU2FtcGxlcy5qYXIKIAlmaQogCXVzZSBzb3Vy
Y2UgJiYgamF2YS1wa2dfZG9zcmMgJHtTfS9zcmMvKgogfQo=
</data>        

          </attachment>
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>93314</attachid>
            <date>2006-08-02 22:47 0000</date>
            <desc>examples patch</desc>
            <filename>examples2.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIG9sZAkyMDA2LTA3LTIzIDE4OjQ1OjE3LjAwMDAwMDAwMCAtMDQwMAorKysgeGVyY2VzLTIu
Ny4xLXIxLmVidWlsZAkyMDA2LTA4LTAzIDAxOjQzOjQ1LjAwMDAwMDAwMCAtMDQwMApAQCAtNDks
NiArNDksNyBAQAogfQogCiBzcmNfaW5zdGFsbCgpIHsKKwl1c2UgZXhhbXBsZXMgfHwgcm0gYnVp
bGQveGVyY2VzU2FtcGxlcy5qYXIKIAlqYXZhLXBrZ19kb2phciBidWlsZC94Ki5qYXIKIAogCWRv
ZG9jIFRPRE8gU1RBVFVTIFJFQURNRSBJU1NVRVMK
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>93356</attachid>
            <date>2006-08-03 10:37 0000</date>
            <desc>use jar target</desc>
            <filename>target.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIC91c3IvcG9ydGFnZS9kZXYtamF2YS94ZXJjZXMveGVyY2VzLTIuNy4xLXIxLmVidWlsZAky
MDA2LTA3LTIzIDE4OjQ1OjE3LjAwMDAwMDAwMCAtMDQwMAorKysgeGVyY2VzLTIuNy4xLXIxLmVi
dWlsZAkyMDA2LTA4LTAzIDEyOjAxOjQ1LjAwMDAwMDAwMCAtMDQwMApAQCAtNDMsMTMgKzQzLDE0
IEBACiB9CiAKIHNyY19jb21waWxlKCkgewotCWxvY2FsIGFudGZsYWdzPSJqYXJzIgorCWxvY2Fs
IGFudGZsYWdzPSJqYXIiCiAJdXNlIGRvYyAmJiBhbnRmbGFncz0iJHthbnRmbGFnc30gamF2YWRv
Y3MiCiAJZWFudCAke2FudGZsYWdzfSB8fCBkaWUgIkNvbXBpbGUgZmFpbGVkLiIKIH0KIAogc3Jj
X2luc3RhbGwoKSB7CiAJamF2YS1wa2dfZG9qYXIgYnVpbGQveCouamFyCisJamF2YS1wa2dfZG9q
YXIgdG9vbHMveG1sLWFwaXMuamFyCiAKIAlkb2RvYyBUT0RPIFNUQVRVUyBSRUFETUUgSVNTVUVT
CiAJamF2YS1wa2dfZG9odG1sIFJlYWRtZS5odG1sCg==
</data>        

          </attachment>
    </bug>

</bugzilla>