<?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>107435</bug_id>
          
          <creation_ts>2005-09-27 12:32 0000</creation_ts>
          <short_desc>ebuild for automake-1.9.6 with new patch</short_desc>
          <delta_ts>2005-09-29 01:48:16 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>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>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>gentoo@technoplaza.net</reporter>
          <assigned_to>base-system@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>gentoo@technoplaza.net</who>
            <bug_when>2005-09-27 12:32:53 0000</bug_when>
            <thetext>automake has a bug where suffix rules aren&apos;t applied on a directory level correctly.

For example:

if WINDOWS
mpg_SOURCES += res/windows.rc
endif

.rc.o:
        windres @WX_INCLUDES@ -o $@ $&lt;

Assuming you were on Windows (and don&apos;t let that throw you, it&apos;s just an
example, the program occurs on Linux, too), it will compile and put the
windows.o file in the res directory properly, but when linking, it will look for
windows.o, not res/windows.o like it should.

Discussions on the automake list produced a patch for CVS automake, which I
converted to automake 1.9.6. I&apos;m hoping we can add this patch to the portage ebuild.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gentoo@technoplaza.net</who>
            <bug_when>2005-09-27 12:33:38 0000</bug_when>
            <thetext>Created an attachment (id=69369)
patch to fix automake behaviour
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gentoo@technoplaza.net</who>
            <bug_when>2005-09-27 12:34:05 0000</bug_when>
            <thetext>Created an attachment (id=69370)
new ebuild with the patch
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gentoo@technoplaza.net</who>
            <bug_when>2005-09-27 12:35:48 0000</bug_when>
            <thetext>where I said &apos;program occurs on Linux, too, I meant &apos;problem&apos;.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2005-09-27 12:38:26 0000</bug_when>
            <thetext>just so we&apos;re clear ... this patch is a backport of a fix from automake cvs for
automake 1.9.6 ?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gentoo@technoplaza.net</who>
            <bug_when>2005-09-27 18:48:11 0000</bug_when>
            <thetext>No. It is a patch that was created by a user on the automake mailing list. I
have no idea if he (Stepan Kasal) is part of the development team or not. This
is what he told me

&quot;Hello,

On Tue, Sep 27, 2005 at 05:23:43AM -0500, John Ratliff wrote:
&gt; I tested it in Linux with automake 1.9.6 and it still doesn&apos;t work.

indeed, I previously did some quick testing with rule .list-&gt; .c, and it worked.

But for rules .foo -&gt; .o it really doesn&apos;t work.

I wrote a patch which fixes this.  It applies to CVS version, but also to 1.9.6,
so you don&apos;t need to install the CVS versions.
Actually, I guess that you can directly patch /usr/bin/automake.

Please find the patch attached to this mail.
(I haven&apos;t ran &quot;make check&quot; with it, sorry.)

Does this work for you?&quot;

The patch he gave me would not patch for automake 1.9.6 because of new things in
 automake CVS HEAD. So I put his changes (derived from his patch) into automake
1.9.6 and created the patch I submitted against automake 1.9.6.

Originally, he wanted to know if I could test it in automake CVS, which is how
that got into the discussion. But no, this is a patch for automake 1.9.6. that
would also happen to be applicable to automake CVS.

I hope he will send his patch upstream, but until (and if) he does, the patch
only exists on the mailing list, and then the one I submitted here.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2005-09-27 18:54:29 0000</bug_when>
            <thetext>well, if it&apos;s on the automake devel list, that is upstream :)

can you provide URL&apos;s for the relevant discussions please ?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gentoo@technoplaza.net</who>
            <bug_when>2005-09-27 23:03:15 0000</bug_when>
            <thetext>Sure.

http://lists.gnu.org/archive/html/automake/2005-09/msg00088.html
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2005-09-29 01:48:16 0000</bug_when>
            <thetext>in 1.9.6-r1</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>69369</attachid>
            <date>2005-09-27 12:33 0000</date>
            <desc>patch to fix automake behaviour</desc>
            <filename>automake-1.9.6-suffix-rules.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">ZGlmZiAtdXIgYXV0b21ha2UtMS45LjZfb3JpZy9hdXRvbWFrZS5pbiBhdXRvbWFrZS0xLjkuNi9h
dXRvbWFrZS5pbgotLS0gYXV0b21ha2UtMS45LjZfb3JpZy9hdXRvbWFrZS5pbgkyMDA1LTA2LTMw
IDE2OjE3OjEzLjAwMDAwMDAwMCAtMDUwMAorKysgYXV0b21ha2UtMS45LjYvYXV0b21ha2UuaW4J
MjAwNS0wOS0yNyAxMzowNjoyOC4wMDAwMDAwMDAgLTA1MDAKQEAgLTE2OTAsNiArMTY5MCwxMCBA
QAogICAgICAgICAgICAgIyBUaGlzIGlzIHByb2JhYmx5IHRoZSByZXN1bHQgb2YgYSBkaXJlY3Qg
c3VmZml4IHJ1bGUuCiAgICAgICAgICAgICAjIEluIHRoaXMgY2FzZSB3ZSBqdXN0IGFjY2VwdCB0
aGUgcmV3cml0ZS4KICAgICAgICAgICAgICRvYmplY3QgPSAiJGJhc2UkZXh0ZW5zaW9uIjsKKwkg
ICAgaWYgKCRkaXJlY3RvcnkgbmUgJycpCisgICAgICAgICAgICB7CisgICAgICAgICAgICAgICAg
JG9iamVjdCA9ICRkaXJlY3RvcnkgLiAnLycgLiAkb2JqZWN0OworICAgICAgICAgICAgfQogICAg
ICAgICAgICAgJGxpbmtlciA9ICcnOwogICAgICAgICB9CiAgICAgICAgIGVsc2UKQEAgLTE3NTks
NyArMTc2Myw3IEBACiAKIAkJIyBGb3IgSmF2YSwgdGhlIHdheSB3ZSdyZSBoYW5kbGluZyBpdCBy
aWdodCBub3csIGEKIAkJIyBgLi4nIGNvbXBvbmVudCBkb2Vzbid0IG1ha2Ugc2Vuc2UuCi0gICAg
ICAgICAgICAgICAgaWYgKCRsYW5nLT5uYW1lIGVxICdqYXZhJyAmJiAkb2JqZWN0ID1+IC8oXC98
XilcLlwuXC8vKQorCQlpZiAoJGxhbmcgJiYgJGxhbmctPm5hbWUgZXEgJ2phdmEnICYmICRvYmpl
Y3QgPX4gLyhcL3xeKVwuXC5cLy8pCiAJCSAgewogCQkgICAgZXJyX2FtICJgJGZ1bGwnIHNob3Vs
ZCBub3QgY29udGFpbiBhIGAuLicgY29tcG9uZW50IjsKIAkJICB9Cg==
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>69370</attachid>
            <date>2005-09-27 12:34 0000</date>
            <desc>new ebuild with the patch</desc>
            <filename>automake-1.9.6-r1.ebuild</filename>
            <type>text/plain</type>
            <data encoding="base64">IyBDb3B5cmlnaHQgMTk5OS0yMDA1IEdlbnRvbyBGb3VuZGF0aW9uCiMgRGlzdHJpYnV0ZWQgdW5k
ZXIgdGhlIHRlcm1zIG9mIHRoZSBHTlUgR2VuZXJhbCBQdWJsaWMgTGljZW5zZSB2MgojICRIZWFk
ZXI6IC92YXIvY3Zzcm9vdC9nZW50b28teDg2L3N5cy1kZXZlbC9hdXRvbWFrZS9hdXRvbWFrZS0x
LjkuNi5lYnVpbGQsdiAxLjIgMjAwNS8wOC8yMyAyMzo1ODozOCB2YXBpZXIgRXhwICQKCmluaGVy
aXQgZXV0aWxzCgpERVNDUklQVElPT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