Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 245181 Details for
Bug 334603
net-mail/mess822 does not respect LDFLAGS
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to mess822-0.58-r1.ebuild to modernize the build system and respect LDFLAGS along the way
mess822-0.58-r1.ebuild.patch (text/plain), 2.27 KB, created by
Kevin Pyle
on 2010-08-29 00:20:18 UTC
(
hide
)
Description:
Patch to mess822-0.58-r1.ebuild to modernize the build system and respect LDFLAGS along the way
Filename:
MIME Type:
Creator:
Kevin Pyle
Created:
2010-08-29 00:20:18 UTC
Size:
2.27 KB
patch
obsolete
>diff -ru a/mess822-0.58-r1.ebuild b/mess822-0.58-r1.ebuild >--- a/mess822-0.58-r1.ebuild 2009-09-23 19:36:25.000000000 +0000 >+++ b/mess822-0.58-r1.ebuild 2010-08-29 00:03:43.904371760 +0000 >@@ -2,7 +2,9 @@ > # Distributed under the terms of the GNU General Public License v2 > # $Header: /var/cvsroot/gentoo-x86/net-mail/mess822/mess822-0.58-r1.ebuild,v 1.11 2009/09/23 19:08:27 patrick Exp $ > >-inherit multilib >+EAPI="2" >+ >+inherit multilib toolchain-funcs > > DESCRIPTION="Collection of utilities for parsing Internet mail messages." > SRC_URI="http://cr.yp.to/software/${P}.tar.gz" >@@ -15,19 +17,44 @@ > > DEPEND=">=sys-apps/sed-4" > >-src_unpack() { >- unpack ${A} >- cd ${S} >- echo "gcc ${CFLAGS}" > conf-cc >- echo "gcc" > conf-ld >+src_prepare() { > echo "/usr/" > conf-home > > # fix errno.h problem; bug #26165 > sed -i 's/^extern int errno;/#include <errno.h>/' error.h >+ # Avoid the need for automatic discovery. >+ (echo '#include <sys/types.h>'; echo '#include <unistd.h>') > fork.h >+ (echo '#include <stdint.h>'; echo 'typedef uint32_t uint32;') > uint32.h >+ (echo '#include <stdint.h>'; echo 'typedef uint64_t uint64;') > uint64.h >+ echo '#include <sys/select.h>' >select.h >+ echo '#include <unistd.h>' >readwrite.h >+ echo '#define HASSIGACTION 1' >hassgact.h >+ echo '#define HASWAITPID 1' >haswaitp.h >+ # Rewrite compilation rules to use Make variables >+ # Drop dependency on removed compile helper >+ # Do the same two operations for load (an ld wrapper) and makelib (an ar >+ # wrapper) >+ # Delete definitions that build files rendered obsolete by the steps in this >+ # function. >+ sed -i \ >+ -e 's:^ \./compile : $(COMPILE.c) $(OUTPUT_OPTION) :' \ >+ -e '/^compile .*\.c/s:compile ::' \ >+ -e 's:^ \./load \([^ ]\+\): $(LINK.o) $(OUTPUT_OPTION) \1.o:' \ >+ -e '/^load .*\.o/s:load ::' \ >+ -e 's:^ \./makelib : $(AR) cs$(ARFLAGS) :' \ >+ -e '/^makelib .*\.o/s:makelib ::' \ >+ -e '/^\(auto-ccld\.sh\|compile\|load\|makelib\|hassgact\.h\|haswaitp\.h\|fork\.h\|select\\.h\|uint32\.h\|uint64\.h\): /,/^$/d' \ >+ Makefile || die >+ # Upstream puts() is a wrapper around their own code, not a >+ # reimplementation of the stdio puts. >+ sed -i \ >+ -e 's/\<puts\>/avoid_system_&/g' \ >+ auto-str.c ofmipd.c new-inject.c || die > } > > src_compile() { >- emake || die >+ tc-export CC >+ default_src_compile > } > > src_install() {
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 334603
:
244707
| 245181