<?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>38473</bug_id>
          
          <creation_ts>2004-01-16 18:19 0000</creation_ts>
          <short_desc>SDCC-2.3.0 ebuild (new)</short_desc>
          <delta_ts>2004-02-18 20:33:59 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>
          <bug_file_loc>http://sdcc.sourceforge.net/</bug_file_loc>
          
          <keywords>EBUILD</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>arkalis@acn.gr</reporter>
          <assigned_to>dev-embedded@gentoo.org</assigned_to>
          <cc>dragonheart@gentoo.org</cc>
    
    <cc>gralves@gmail.com</cc>

      

      
          <long_desc isprivate="0">
            <who>arkalis@acn.gr</who>
            <bug_when>2004-01-16 18:19:17 0000</bug_when>
            <thetext># Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /home/cvsroot/gentoo-x86/dev-embedded/sdcc/sdcc-2.3.0.ebuild,v 0.1 2004/01/17 05:04:13 slammer Exp $

inherit eutils
S=${WORKDIR}/${PN}

DESCRIPTION=&quot;SDCC  is a Freeware, retargettable, optimizing ANSI - C compiler. The current version targets the Intel 8051, Maxim/Dallas 80DS390/400 and the  Zilog Z80 based MCUs.&quot;
SRC_URI=&quot;mirror://sourceforge/sdcc/${P}.tar.gz&quot;
HOMEPAGE=&quot;http://sdcc.sourceforge.net/&quot;

SLOT=&quot;0&quot;
LICENSE=&quot;GPL-2&quot;
KEYWORDS=&quot;~x86&quot;

DEPEND=&quot;virtual/glibc&quot;

src_compile() {

# Clear CFLAGS... breaks with my Flags!
	unset CFLAGS CXXFLAGS
	cd ${S}
# Fix doc directory
	echo &quot;docdir          = @datadir@/doc/${P}/sdcc&quot; &gt;&gt; Makefile.common.in
	echo &quot;docdir	      = &apos;$&apos;(prefix)/doc/${P}/usim&quot; &gt;&gt; sim/ucsim/doc/Makefile.in		
	./configure \
	--prefix=/usr \
	|| die &quot;configure failed&quot;
	emake 
}

src_install() {
	einstall || die
	dodoc README COPYING ChangeLog 
}


Reproducible: Always
Steps to Reproduce:
1.
2.
3.




dev-embedded/sdcc</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dragonheart@gentoo.org</who>
            <bug_when>2004-02-01 18:51:44 0000</bug_when>
            <thetext>*** Bug 24709 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dragonheart@gentoo.org</who>
            <bug_when>2004-02-01 18:55:11 0000</bug_when>
            <thetext>Which CFLAGS/CXXFLAGS don&apos;t work?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>robbat2@gentoo.org</who>
            <bug_when>2004-02-01 23:33:05 0000</bug_when>
            <thetext>dragonheart: please check back at Bug 24709 and don&apos;t add the package using it&apos;s daily snapshots until upstream has started including a date on the daily snapshots. It makes tracking down problems much more difficult.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>robbat2@gentoo.org</who>
            <bug_when>2004-02-01 23:33:42 0000</bug_when>
            <thetext>dragonheart: you asked a question here, so you are CC&apos;d for when it gets answered.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dragonheart@gentoo.org</who>
            <bug_when>2004-02-02 09:57:31 0000</bug_when>
            <thetext>This ebuild is for a stable version -2.3.0 - released 2001-09-29.
http://sourceforge.net/project/showfiles.php?group_id=599

I take you point about nightly snaps. Given they said &quot;SDCC is in active development, and many bugs have been fixed since the 2.3.0 release. It is recommended to download one of the nightly snapshots, which are currently at version 2.3.7&quot; (homepage), I&apos;ll email them to see if they can do dates on src code. Other snapshots seem to be at a maximium 1 week old. Is this still supportable if we put the code on gentoo mirrors?

Thanks for adding me here too.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>robbat2@gentoo.org</who>
            <bug_when>2004-02-02 17:23:00 0000</bug_when>
            <thetext>Dragonheart: Here is the upstream bug I filed waiting for the versioned tarballs
http://sourceforge.net/tracker/index.php?func=detail&amp;aid=832148&amp;group_id=599&amp;atid=200599

Since you seem interested in this stuff, add yourself to the dev-embedded mail alias (Ask in #gentoo-dev how to do that).</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dragonheart@gentoo.org</who>
            <bug_when>2004-02-04 19:17:04 0000</bug_when>
            <thetext>Robin - thinking along the same lines.

Bernhard - maintainer of SDCC web site, in response to my email (embedded - no pun intended)

From: Bernhard Held &lt;bernhard@bernhardheld.de&gt;
To: Daniel &lt;dragonheart@gentoo.org&gt;
Subject: Re: date stamps on source code images
Date: Wed, 4 Feb 2004 22:02:00 +0100

Hi Daniel!

&gt; A member of the Gentoo comunity has asked for the SDCC to be includes into
&gt; the Gentoo package list. To be able to support this properly it would help
&gt; us if the source code snapshots has some form of date in their filename
&gt; (yyyymmdd preferably). This will enable a consistant tracing between the
&gt; program the user builds and the snapshot we think they are building.
Ok, I&apos;ll have a look. Please give me one or two weeks to fix it.

&gt; Also is there any particular nightly snapshot that would exist on the
&gt; sourceforge mirrors for more than a week?
No. We&apos;re convinced the &quot;latest SDCC is the greatest&quot;. There&apos;s still a lot of 
work to do, and I hardly can imagine that anybody will maintain an old 
version. It&apos;s simply a problem of &quot;human resources&quot;. We&apos;re not happy about 
bug reports on old versions, we&apos;re happy if a bug is fixed in CVS. We don&apos;t 
have time to trace anything. I understand that you&apos;re thinking in a different 
way, but this is all I can do.

&gt; If not we can mirror it on 
&gt; Gentoo&apos;s mirrors however we are trying to use other consistant mirrors,
&gt; such as Sourceforge, for our packages where possible.
&gt;
&gt; Does a version 2.3.7 or any post 2.3.0 tarball exist mirrored at a
&gt; retrievable location?
AFAIK: no. I&apos;d prefer if you could mirror the tarballs on your servers.

Bernhard</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>robbat2@gentoo.org</who>
            <bug_when>2004-02-04 21:07:53 0000</bug_when>
            <thetext>Daniel: an additional response to bernhard on that

we&apos;re perfectly happy telling users to upgrade when they encounter problems particullarly with development type packages (eg our Zope packages, 2.6.3 is broken upstream so everybody is being told to upgrade to 2.6.4pre).

if bernhard would like users to report bugs here first, i&apos;d be perfectly happy with that, and we can escalate them to upstream properly with all the required information.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>robbat2@gentoo.org</who>
            <bug_when>2004-02-09 10:03:21 0000</bug_when>
            <thetext>Bernhard has come thru for us:
http://sdcc.sourceforge.net/snapshots/sdcc-src/sdcc-src-x86-linux2.cf.sourceforge.net-20040209.tar.gz

however we need to mirror the snapshot tarballs ourselves.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>supersi2000@hotmail.com</who>
            <bug_when>2004-02-10 15:32:38 0000</bug_when>
            <thetext>I have adapted the original ebuild to install the nightly snapshot. It takes the date from the ebuild filename so this should be changed to the latest available src snapshot. Its not ideal but I only really did it so I could get an up-to-date version on my gentoo and thought maybe someone else would find it useful. This one installs version 2.3.8. It also works with my CFLAGS (CFLAGS=&quot;-O2 -march=athlon-xp -frename-registers -fomit-frame-pointer&quot;) so have commented out that line.


# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /home/cvsroot/gentoo-x86/dev-embedded/sdcc/sdcc-20040209.ebuild,v 0.1 2004/02/10 22:32:16 supersi2000 Exp $

inherit eutils
S=${WORKDIR}/${PN}

DESCRIPTION=&quot;SDCC  is a Freeware, retargettable, optimizing ANSI - C compiler. The current version targets the Intel 8051, Maxim/Dallas 80DS390/400 and the  Zilog Z80 based MCUs.&quot;
SRC_URI=&quot;http://sdcc.sourceforge.net/snapshots/sdcc-src/${PN}-src-x86-linux2.cf.sourceforge.net-${PV}.tar.gz&quot;
HOMEPAGE=&quot;http://sdcc.sourceforge.net/&quot;

SLOT=&quot;0&quot;
LICENSE=&quot;GPL-2&quot;
KEYWORDS=&quot;~x86&quot;

DEPEND=&quot;virtual/glibc&quot;

src_compile() {

# Clear CFLAGS... breaks with my Flags!
#	unset CFLAGS CXXFLAGS
	cd ${S}
# Fix doc directory
	echo &quot;docdir          = @datadir@/doc/${P}/sdcc&quot; &gt;&gt; Makefile.common.in
	echo &quot;docdir	      = &apos;$&apos;(prefix)/doc/${P}/usim&quot; &gt;&gt; sim/ucsim/doc/Makefile.in		
	./configure \
	--prefix=/usr \
	|| die &quot;configure failed&quot;
	emake 
}

src_install() {
	einstall || die
	dodoc README COPYING ChangeLog 
}
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dragonheart@gentoo.org</who>
            <bug_when>2004-02-18 20:33:59 0000</bug_when>
            <thetext>Thanks Simon, ebuild commited with a few addons for documentation.Any probs please tell us.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>