<?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>181783</bug_id>
          
          <creation_ts>2007-06-12 16:30 0000</creation_ts>
          <short_desc>app-arch/zip-2.32: &quot;crypt&quot; USE flag has no effect (+Ignored {C,LD}FLAGS)</short_desc>
          <delta_ts>2007-06-13 00:30:15 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>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>arfrever@gentoo.org</reporter>
          <assigned_to>base-system@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>arfrever@gentoo.org</who>
            <bug_when>2007-06-12 16:30:03 0000</bug_when>
            <thetext>CFLAGS are always ignored.

### List of files built with LDFLAGS ignored ###
/usr/bin/zip
/usr/bin/zipcloak
/usr/bin/zipsplit
/usr/bin/zipnote
### End of list                              ###</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2007-06-12 17:48:20 0000</bug_when>
            <thetext>OK, that was about enough.

1/ Use common sense when filing bugs (like, what about mailing gentoo-dev mailing list first and asking about the best course of action here?
2/ If you have a patch, submit it *upstream* unless this is a *Gentoo-specific* issue.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>arfrever@gentoo.org</who>
            <bug_when>2007-06-12 18:14:58 0000</bug_when>
            <thetext>This bug report also concerns CFLAGS. Unfortunately you didn&apos;t see it.
http://devmanual.gentoo.org/ebuild-writing/functions/src_compile/building/index.html and http://devmanual.gentoo.org/general-concepts/user-environment/index.html say that CFLAGS should be respected. I think that this bug report should be reopened.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>arfrever@gentoo.org</who>
            <bug_when>2007-06-12 19:48:32 0000</bug_when>
            <thetext>I discovered that target &quot;generic&quot; has broken behaviour (and generally this Makefile is strange). It uses variables from file &quot;flags&quot;, so this file must be recreated.

If &quot;eval $(MAKE) zips `cat flags`&quot; is changed to &quot;eval $(MAKE) zips&quot;, then we have new problems:
 1. CFLAGS doesn&apos;t contain probably necessary -D* flags.
 2. &quot;LFLAGS1 =&quot; line should be changed to &quot;LFLAGS1 = $(LDFLAGS)&quot; using sed.
 3. &quot;LFLAGS2 = -s&quot; line causes &quot;QA Notice: Pre-stripped files found&quot;.
 4. OBJA isn&apos;t set and executable &quot;zip&quot; lacks code from 2 object files, because there is in unix/Makefile:
OBJA =
...
zip$(EXE): $(OBJZ) $(OBJI) $(OBJA)
        $(BIND) -o zip$(EXE) $(LFLAGS1) $(OBJZ) $(OBJI) $(OBJA) $(LFLAGS2)



I think that recreating file &quot;flags&quot; is good decision.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>arfrever@gentoo.org</who>
            <bug_when>2007-06-12 19:49:53 0000</bug_when>
            <thetext>Created an attachment (id=121847)
Patch

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2007-06-13 00:30:15 0000</bug_when>
            <thetext>that patch is certainly not right ... you cant hardcode those flags in the ebuild

ive cleaned up the build process in cvs</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>121847</attachid>
            <date>2007-06-12 19:49 0000</date>
            <desc>Patch</desc>
            <filename>zip.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIGFwcC1hcmNoL3ppcC96aXAtMi4zMi5lYnVpbGQKKysrIGFwcC1hcmNoL3ppcC96aXAtMi4z
Mi5lYnVpbGQKQEAgLTIxLDE3ICsyMSwyMCBAQAogCWVwYXRjaCAiJHtGSUxFU0RJUn0iL3ppcC0y
LjMtdW5peF9jb25maWd1cmUtcGljLnBhdGNoCiAJZXBhdGNoICIke0ZJTEVTRElSfSIvJHtQTn0t
Mi4zMS1leGVjLXN0YWNrLnBhdGNoCiAJZXBhdGNoICIke0ZJTEVTRElSfSIvJHtQTn0tMi4zMS1t
YWtlLnBhdGNoCi0JY2QgdW5peAogCXVzZSBjcnlwdCB8fCBhcHBlbmQtZmxhZ3MgLUROT19DUllQ
VAotCXNlZCAtaSAtZSAiczotTzI6JHtDRkxBR1N9OiIgTWFrZWZpbGUKKworCWNhdCA8PEVPRj5m
bGFncworQ0M9IiQodGMtZ2V0Q0MpIgorQ1BQPSIkKHRjLWdldENDKSAtRSIKK0NGTEFHUz0iJHtD
RkxBR1N9IC1JLiAtRFVOSVggLURBU01WIC1EQVNNX0NSQyAtREhBVkVfRElSRU5UX0ggLURIQVZF
X1RFUk1JT1NfSCAtREhBVkVfRlNFRUtPIgorTEZMQUdTMT0iJHtMREZMQUdTfSIKK0xGTEFHUzI9
IiIKK09CSkE9Im1hdGNoLm8gY3JjX2kzODYubyIKK0VPRgogfQogCiBzcmNfY29tcGlsZSgpIHsK
LQllbWFrZSBcCi0JCS1mIHVuaXgvTWFrZWZpbGUgXAotCQlDQz0iJCh0Yy1nZXRDQykiIFwKLQkJ
Q1BQPSIkKHRjLWdldENDKSAtRSIgXAotCQlnZW5lcmljIHx8IGRpZQorCWVtYWtlIC1mIHVuaXgv
TWFrZWZpbGUgZ2VuZXJpYyB8fCBkaWUKIH0KIAogc3JjX2luc3RhbGwoKSB7Cg==
</data>        

          </attachment>
    </bug>

</bugzilla>