summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2014-08-13 03:59:48 +0000
committerMike Frysinger <vapier@gentoo.org>2014-08-13 03:59:48 +0000
commit786e5b236e5b5bba94f19451905c63a6c84e0bba (patch)
tree7ead53896980ca3891c0831f40987b4f25f3071d /sys-process
parentbump (diff)
downloadgentoo-2-786e5b236e5b5bba94f19451905c63a6c84e0bba.tar.gz
gentoo-2-786e5b236e5b5bba94f19451905c63a6c84e0bba.tar.bz2
gentoo-2-786e5b236e5b5bba94f19451905c63a6c84e0bba.zip
Link with -lm when needed #519552 by René Rhéaume.
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key D2E96200)
Diffstat (limited to 'sys-process')
-rw-r--r--sys-process/acct/ChangeLog8
-rw-r--r--sys-process/acct/acct-6.6.1.ebuild14
-rw-r--r--sys-process/acct/files/acct-6.6.1-math.patch27
3 files changed, 42 insertions, 7 deletions
diff --git a/sys-process/acct/ChangeLog b/sys-process/acct/ChangeLog
index 15604be77bc1..f3dbb5e4c346 100644
--- a/sys-process/acct/ChangeLog
+++ b/sys-process/acct/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sys-process/acct
-# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-process/acct/ChangeLog,v 1.73 2013/12/21 17:22:15 ago Exp $
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-process/acct/ChangeLog,v 1.74 2014/08/13 03:59:48 vapier Exp $
+
+ 13 Aug 2014; Mike Frysinger <vapier@gentoo.org> +files/acct-6.6.1-math.patch,
+ acct-6.6.1.ebuild:
+ Link with -lm when needed #519552 by René Rhéaume.
21 Dec 2013; Agostino Sarubbo <ago@gentoo.org> acct-6.5.5-r3.ebuild:
Stable for ppc, wrt bug #485338
diff --git a/sys-process/acct/acct-6.6.1.ebuild b/sys-process/acct/acct-6.6.1.ebuild
index 0419c6096227..f70b57d9f63e 100644
--- a/sys-process/acct/acct-6.6.1.ebuild
+++ b/sys-process/acct/acct-6.6.1.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-process/acct/acct-6.6.1.ebuild,v 1.1 2013/10/10 19:18:37 chainsaw Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-process/acct/acct-6.6.1.ebuild,v 1.2 2014/08/13 03:59:48 vapier Exp $
EAPI=5
inherit autotools base systemd
@@ -13,9 +13,13 @@ LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
IUSE=""
-PATCHES=( "${FILESDIR}/${P}-cross-compile.patch"
- "${FILESDIR}/${P}-no-gets.patch"
- "${FILESDIR}/${P}-texi-failure.patch" )
+
+PATCHES=(
+ "${FILESDIR}"/${P}-cross-compile.patch
+ "${FILESDIR}"/${P}-no-gets.patch
+ "${FILESDIR}"/${P}-texi-failure.patch
+ "${FILESDIR}"/${P}-math.patch
+)
src_prepare() {
base_src_prepare
diff --git a/sys-process/acct/files/acct-6.6.1-math.patch b/sys-process/acct/files/acct-6.6.1-math.patch
new file mode 100644
index 000000000000..5f69a51aa672
--- /dev/null
+++ b/sys-process/acct/files/acct-6.6.1-math.patch
@@ -0,0 +1,27 @@
+https://savannah.gnu.org/bugs/?42973
+https://bugs.gentoo.org/519552
+
+these files use frexp/ldexp which is in -lm
+
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -26,6 +26,7 @@ accton_SOURCES = accton.c common.c
+
+ dump_acct_SOURCES = dump-acct.c common.c file_rd.c \
+ pacct_rd.c
++dump_acct_LDADD = $(LDADD) -lm
+
+ dump_utmp_SOURCES = dump-utmp.c common.c file_rd.c \
+ utmp_rd.c
+@@ -37,9 +38,11 @@ last_SOURCES = last.c common.c file_rd.c hashtab.c \
+
+ lastcomm_SOURCES = lastcomm.c common.c dev_hash.c file_rd.c \
+ hashtab.c pacct_rd.c uid_hash.c
++sa_LDADD = $(LDADD) -lm
+
+ sa_SOURCES = sa.c common.c file_rd.c hashtab.c \
+ pacct_rd.c uid_hash.c
++sa_LDADD = $(LDADD) -lm
+
+ noinst_HEADERS = common.h config.h dev_hash.h file_rd.h hashtab.h \
+ pacct_rd.h uid_hash.h utmp_rd.h al_share.cpp linux-acct.h