www-apache/anyterm: Fix boost::system underlinking
authorDavid Seifert <soap@gentoo.org>
Wed, 13 Apr 2016 20:07:16 +0000 (22:07 +0200)
committerDavid Seifert <soap@gentoo.org>
Wed, 13 Apr 2016 20:07:55 +0000 (22:07 +0200)
Gentoo-Bug: 579522
* EAPI=6
* Remove unnecessary '|| die' on Gentoo helper functions
* Add missing 'toolchain-funcs' inherit
* Make all patches -p1 compliant for eapply

Package-Manager: portage-2.2.28

www-apache/anyterm/anyterm-1.1.29-r1.ebuild
www-apache/anyterm/files/anyterm-1.1.28-respect-LDFLAGS.patch
www-apache/anyterm/files/anyterm-1.1.29-boost-1.50.patch
www-apache/anyterm/files/anyterm-1.1.29-gcc-4.4.patch

index 88c80e5ebda2a8b7a9c40463b734fdf5e4d20117..a627d7c21bd471d5e1bc4db89e277c3ae93c8207 100644 (file)
@@ -1,10 +1,10 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
-EAPI="5"
+EAPI=6
 
-inherit eutils flag-o-matic
+inherit flag-o-matic toolchain-funcs
 
 DESCRIPTION="A terminal anywhere"
 HOMEPAGE="http://anyterm.org/"
@@ -26,25 +26,30 @@ PATCHES=(
 )
 
 src_prepare() {
-       epatch "${PATCHES[@]}"
+       default
+
+       # Fix underlinking issue caused by recent boost versions
+       # depending on boost::system, Gentoo bug #579522
+       sed -e 's/\($(CXX) -o $@ $(LDFLAGS) $(OBJS) $(BLOBS) $(LINK_FLAGS)\)/\1 -lboost_system/' \
+               -i common.mk || die
 }
 
 src_compile() {
        # this package uses `ld -r -b binary` and thus resulting executable contains
        # executable stack
        append-ldflags -Wl,-z,noexecstack
-       emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" || die
+       emake CC="$(tc-getCC)" CXX="$(tc-getCXX)"
 }
 
 src_install() {
-       dosbin anytermd || die
-       dodoc CHANGELOG README || die
-       doman anytermd.1 || die
-       newinitd "${FILESDIR}/anyterm.init.d" anyterm || die
-       newconfd "${FILESDIR}/anyterm.conf.d" anyterm || die
+       dosbin anytermd
+       dodoc CHANGELOG README
+       doman anytermd.1
+       newinitd "${FILESDIR}/anyterm.init.d" anyterm
+       newconfd "${FILESDIR}/anyterm.conf.d" anyterm
 }
 
 pkg_postinst() {
-       elog "To proceed installation, read following:"
+       elog "To proceed with installation, read the following:"
        elog "http://anyterm.org/1.1/install.html"
 }
index 25a12e756ab0081813ddf6b816993154d9348209..ef27604d87e08c17d50856df68b17d6fcd0e0de2 100644 (file)
@@ -1,6 +1,6 @@
 === modified file 'common.mk'
---- common.mk  2009-01-24 12:40:55 +0000
-+++ common.mk  2009-01-24 14:02:19 +0000
+--- anyterm-1.1.29/common.mk   2009-01-24 12:40:55 +0000
++++ anyterm-1.1.29/common.mk   2009-01-24 14:02:19 +0000
 @@ -71,7 +71,7 @@
  OBJS=$(addsuffix .o,$(notdir $(basename $(CC_SRCS))))
  
index b0648a9e3067258dd52ff2d15bc7286145923b8e..c3357247f4eb7f91d0d9b00b51269448a7c18679 100644 (file)
@@ -1,7 +1,7 @@
 Patch by Arfrever; sent to upstream developer.
 
---- libpbe/src/parse_http_request.cc
-+++ libpbe/src/parse_http_request.cc
+--- anyterm-1.1.29/libpbe/src/parse_http_request.cc
++++ anyterm-1.1.29/libpbe/src/parse_http_request.cc
 @@ -18,11 +18,11 @@
  
  #include "parse_http_request.hh"
@@ -28,8 +28,8 @@ Patch by Arfrever; sent to upstream developer.
  
  
  namespace pbe {
---- libpbe/src/URI.cc
-+++ libpbe/src/URI.cc
+--- anyterm-1.1.29/libpbe/src/URI.cc
++++ anyterm-1.1.29/libpbe/src/URI.cc
 @@ -18,11 +18,11 @@
  
  #include "URI.hh"
index 3809f5aac186a39129f6d1940edfbf6c7e623d2c..c6fd2e6ad1ae923c760aba379de10f5c347c38a1 100644 (file)
@@ -1,5 +1,5 @@
---- libpbe/src/SmtpClient.cc
-+++ libpbe/src/SmtpClient.cc
+--- anyterm-1.1.29/libpbe/src/SmtpClient.cc
++++ anyterm-1.1.29/libpbe/src/SmtpClient.cc
 @@ -20,6 +20,7 @@
  #include "ip.hh"
  #include "select.hh"