Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 15542 Details for
Bug 23253
procmail stuck on strstr() benchmark with gcc-3.3
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
work around for gcc < 3 for strstr bug
procmail-3.22-r5.ebuild (text/plain), 2.37 KB, created by
Douglas Russell (RETIRED)
on 2003-08-05 07:14:49 UTC
(
hide
)
Description:
work around for gcc < 3 for strstr bug
Filename:
MIME Type:
Creator:
Douglas Russell (RETIRED)
Created:
2003-08-05 07:14:49 UTC
Size:
2.37 KB
patch
obsolete
># Copyright 1999-2003 Gentoo Technologies, Inc. ># Distributed under the terms of the GNU General Public License v2 ># $Header: /home/cvsroot/gentoo-x86/net-mail/procmail/procmail-3.22-r5.ebuild,v 1.12 2003/06/17 21:02:15 gmsoft Exp $ > >S=${WORKDIR}/${P} >DESCRIPTION="Mail delivery agent/filter" >SRC_URI="http://www.procmail.org/${P}.tar.gz" >HOMEPAGE="http://www.procmail.org/" > >IUSE="" > >DEPEND="virtual/glibc > virtual/mta" > >RDEPEND="virtual/glibc" > >PROVIDE="virtual/mda" > >SLOT="0" >LICENSE="Artistic | GPL-2" >KEYWORDS="x86 ppc sparc alpha arm hppa" > ># Altered by puggy, puggy@bobspants.com ># Strip the troublesome -finline-functions CFLAG to eliminate the ># gcc-3.1 strstr() bug with more aggressive optimization flags > >inherit flag-o-matic eutils > >test_flag () { > if gcc -S -xc $1 -o /dev/null /dev/null >/dev/null 2>&1; then > echo "$1" > fi >} > >pkg_setup(){ >filter-flags "-finline-functions" >replace-flags "-O3" "-O2 -frename-registers" > ># This section is basically a new eclass function which isn't part of ># the flag-o-matic eclass but I'm hoping will be in one form or another > >for x in ${CFLAGS} >do > NEW_CFLAGS=${NEW_CFLAGS}" ""`test_flag ${x}`" >done >for x in ${CXXFLAGS} >do > NEW_CXXFLAGS=${NEW_CXXFLAGS}" ""`test_flag ${x}`" >done > >CFLAGS="${NEW_CFLAGS}" >CXXFLAGS="${NEW_CXXFLAGS}" > >} ># End of Puggy's editing > >src_compile() { > > cp Makefile Makefile.orig ># More Puggy's Editing ># Override interactive lockingtest, and replace Makefile CFLAGS with Gentoo CFLAGS > sed -e "s:CFLAGS0 = -O:CFLAGS0 = ${CFLAGS}:" \ > -e "s:LOCKINGTEST=__defaults__:#LOCKINGTEST=__defaults__:" \ > -e "s:#LOCKINGTEST=/tmp:LOCKINGTEST=/tmp:" Makefile.orig > Makefile ># End of More Puggy's Editing > > if [ -z "`use mbox`" ]; > then > echo "# Use maildir-style mailbox in user's home directory" > ${S}/procmailrc > echo 'DEFAULT=$HOME/.maildir/' >> ${S}/procmailrc > cd ${S} > patch -p1 <${FILESDIR}/gentoo-maildir.diff > > else > echo '# Use mbox-style mailbox in /var/spool/mail' > ${S}/procmail > echo 'DEFAULT=/var/spool/mail/$LOGNAME' >> ${S}/procmailrc > fi > > emake || die >} > >src_install () { > cd ${S}/new > insinto /usr/bin > insopts -m 6755 > doins procmail > > insopts -m 2755 > doins lockfile > > dobin formail mailstat > > doman *.1 *.5 > > cd ${S} > dodoc Artistic COPYING FAQ FEATURES HISTORY INSTALL KNOWN_BUGS README > > insinto /etc > doins procmailrc > > docinto examples > dodoc examples/* >} >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 23253
:
15374
|
15376
|
15442
|
15443
|
15541
|
15542
|
15573
|
15574