[gentoo-commits] repo/gentoo:master commit in: sys-apps/utempter/files/, sys-apps/utempter/

2024-05-08 Thread Sam James
commit: cf89ce244af18d0d54ed206ddac1dff02f687a88
Author: Brahmajit Das  gmail  com>
AuthorDate: Sun May 28 06:33:36 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Thu May  9 01:13:08 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cf89ce24

sys-apps/utempter: Fix undeclared gettimeofday

Closes: https://bugs.gentoo.org/898552
Signed-off-by: Brahmajit Das  gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/31197
Signed-off-by: Sam James  gentoo.org>

 .../files/utempter-0.5.5.6-no_gettimeofday.patch   | 23 ++
 sys-apps/utempter/utempter-0.5.5.6-r2.ebuild   | 50 ++
 2 files changed, 73 insertions(+)

diff --git a/sys-apps/utempter/files/utempter-0.5.5.6-no_gettimeofday.patch 
b/sys-apps/utempter/files/utempter-0.5.5.6-no_gettimeofday.patch
new file mode 100644
index ..26bfdb9e9eb0
--- /dev/null
+++ b/sys-apps/utempter/files/utempter-0.5.5.6-no_gettimeofday.patch
@@ -0,0 +1,23 @@
+From: Brahmajit Das 
+Date: Sun, 28 May 2023 06:25:33 +
+Subject: [PATCH] Fix undeclared funtion gettimeofday.
+
+Signed-off-by: Brahmajit Das 
+---
+ utempter.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/utempter.c b/utempter.c
+index 3f2f3a2..13214cc 100644
+--- a/utempter.c
 b/utempter.c
+@@ -11,6 +11,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ #ifndef __UCLIBC__
+ #include 
+ #endif
+--
+2.40.1

diff --git a/sys-apps/utempter/utempter-0.5.5.6-r2.ebuild 
b/sys-apps/utempter/utempter-0.5.5.6-r2.ebuild
new file mode 100644
index ..92d7dd374dd3
--- /dev/null
+++ b/sys-apps/utempter/utempter-0.5.5.6-r2.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MY_PN="${P%.*}"
+MY_P="${MY_PN}-${PV##*.}"
+
+inherit flag-o-matic rpm toolchain-funcs
+
+DESCRIPTION="App that allows non-privileged apps to write utmp (login) info"
+HOMEPAGE="https://www.redhat.com/;
+SRC_URI="mirror://gentoo/${MY_P}.src.rpm"
+S="${WORKDIR}/${MY_PN}"
+
+LICENSE="|| ( MIT LGPL-2 )"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
+
+BDEPEND="acct-group/utmp"
+RDEPEND="
+   ${BDEPEND}
+   !sys-libs/libutempter
+"
+
+PATCHES=(
+   "${FILESDIR}"/${PN}-0.5.5.6-no_utmpx.patch
+   "${FILESDIR}"/${PN}-0.5.5.6-fix-build-system.patch
+   "${FILESDIR}"/${PN}-0.5.5.6-no_gettimeofday.patch
+)
+
+src_prepare() {
+   default
+   tc-export CC
+   append-cflags -Wall
+}
+
+src_install() {
+   local myemakeargs=(
+   LIBDIR="/usr/$(get_libdir)"
+   RPM_BUILD_ROOT="${ED}"
+   )
+
+   emake "${myemakeargs[@]}" install
+
+   dobin utmp
+
+   fowners root:utmp /usr/sbin/utempter
+   fperms 2755 /usr/sbin/utempter
+}



[gentoo-commits] repo/gentoo:master commit in: sys-apps/utempter/

2022-05-07 Thread Conrad Kostecki
commit: c4fb474cb6658ab67ccceee9998db60cdea1fa93
Author: Conrad Kostecki  gentoo  org>
AuthorDate: Sat May  7 19:57:03 2022 +
Commit: Conrad Kostecki  gentoo  org>
CommitDate: Sat May  7 19:57:29 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c4fb474c

sys-apps/utempter: drop 0.5.5.6

Closes: https://bugs.gentoo.org/781584
Signed-off-by: Conrad Kostecki  gentoo.org>

 sys-apps/utempter/utempter-0.5.5.6.ebuild | 58 ---
 1 file changed, 58 deletions(-)

diff --git a/sys-apps/utempter/utempter-0.5.5.6.ebuild 
b/sys-apps/utempter/utempter-0.5.5.6.ebuild
deleted file mode 100644
index 6d31a543cdcb..
--- a/sys-apps/utempter/utempter-0.5.5.6.ebuild
+++ /dev/null
@@ -1,58 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit flag-o-matic rpm toolchain-funcs user
-
-MY_P=${P%.*}-${PV##*.}
-
-DESCRIPTION="App that allows non-privileged apps to write utmp (login) info"
-HOMEPAGE="https://www.redhat.com/;
-SRC_URI="mirror://gentoo/${MY_P}.src.rpm"
-
-LICENSE="|| ( MIT LGPL-2 )"
-SLOT="0"
-KEYWORDS="~alpha amd64 arm ~hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86"
-IUSE=""
-
-RDEPEND="
-   !sys-libs/libutempter
-   !dev-python/utmp"
-
-S=${WORKDIR}/${P%.*}
-PATCHES=(
-   "${FILESDIR}"/${P}-no_utmpx.patch
-   "${FILESDIR}"/${P}-fix-build-system.patch
-)
-
-pkg_setup() {
-   enewgroup utmp 406
-}
-
-src_configure() {
-   tc-export CC
-   append-cflags -Wall
-}
-
-src_install() {
-   emake \
-   RPM_BUILD_ROOT="${ED}" \
-   LIBDIR=/usr/$(get_libdir) \
-   install
-   dobin utmp
-
-   fowners root:utmp /usr/sbin/utempter
-   fperms 2755 /usr/sbin/utempter
-}
-
-pkg_postinst() {
-   if [[ -f "${EROOT%/}"/var/log/wtmp ]] ; then
-   chown root:utmp "${EROOT%/}"/var/log/wtmp
-   chmod 664 "${EROOT%/}"/var/log/wtmp
-   fi
-   if [[ -f "${EROOT%/}"/var/run/utmp ]] ; then
-   chown root:utmp "${EROOT%/}"/var/run/utmp
-   chmod 664 "${EROOT%/}"/var/run/utmp
-   fi
-}



[gentoo-commits] repo/gentoo:master commit in: sys-apps/utempter/

2022-05-06 Thread Jakov Smolić
commit: debebcab52a211aa146b944b900d0163cd91078f
Author: Jakov Smolić  gentoo  org>
AuthorDate: Fri May  6 08:57:58 2022 +
Commit: Jakov Smolić  gentoo  org>
CommitDate: Fri May  6 08:57:58 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=debebcab

sys-apps/utempter: Stabilize 0.5.5.6-r1 amd64, #842828

Signed-off-by: Jakov Smolić  gentoo.org>

 sys-apps/utempter/utempter-0.5.5.6-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-apps/utempter/utempter-0.5.5.6-r1.ebuild 
b/sys-apps/utempter/utempter-0.5.5.6-r1.ebuild
index c5966c9fe4b5..d90bfe7141c8 100644
--- a/sys-apps/utempter/utempter-0.5.5.6-r1.ebuild
+++ b/sys-apps/utempter/utempter-0.5.5.6-r1.ebuild
@@ -15,7 +15,7 @@ S="${WORKDIR}/${MY_PN}"
 
 LICENSE="|| ( MIT LGPL-2 )"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 arm ~hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86"
+KEYWORDS="~alpha amd64 arm ~hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86"
 
 BDEPEND="acct-group/utmp"
 RDEPEND="



[gentoo-commits] repo/gentoo:master commit in: sys-apps/utempter/

2022-05-06 Thread Arthur Zamarin
commit: 4b21a486fc31a9dc46e7db017eadb5c616643588
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Fri May  6 07:59:44 2022 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Fri May  6 07:59:44 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b21a486

sys-apps/utempter: Stabilize 0.5.5.6-r1 arm, #842828

Signed-off-by: Arthur Zamarin  gentoo.org>

 sys-apps/utempter/utempter-0.5.5.6-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-apps/utempter/utempter-0.5.5.6-r1.ebuild 
b/sys-apps/utempter/utempter-0.5.5.6-r1.ebuild
index 1b3e30b9949f..c5966c9fe4b5 100644
--- a/sys-apps/utempter/utempter-0.5.5.6-r1.ebuild
+++ b/sys-apps/utempter/utempter-0.5.5.6-r1.ebuild
@@ -15,7 +15,7 @@ S="${WORKDIR}/${MY_PN}"
 
 LICENSE="|| ( MIT LGPL-2 )"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86"
+KEYWORDS="~alpha ~amd64 arm ~hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86"
 
 BDEPEND="acct-group/utmp"
 RDEPEND="



[gentoo-commits] repo/gentoo:master commit in: sys-apps/utempter/

2022-05-06 Thread Agostino Sarubbo
commit: dc0555991de1e7713fa154b83be2e37507248afc
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Fri May  6 07:59:24 2022 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Fri May  6 07:59:24 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dc055599

sys-apps/utempter: x86 stable wrt bug #842828

Package-Manager: Portage-3.0.30, Repoman-3.0.3
RepoMan-Options: --include-arches="x86"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 sys-apps/utempter/utempter-0.5.5.6-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-apps/utempter/utempter-0.5.5.6-r1.ebuild 
b/sys-apps/utempter/utempter-0.5.5.6-r1.ebuild
index 970369cc2634..1b3e30b9949f 100644
--- a/sys-apps/utempter/utempter-0.5.5.6-r1.ebuild
+++ b/sys-apps/utempter/utempter-0.5.5.6-r1.ebuild
@@ -15,7 +15,7 @@ S="${WORKDIR}/${MY_PN}"
 
 LICENSE="|| ( MIT LGPL-2 )"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ppc ppc64 ~s390 sparc ~x86"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86"
 
 BDEPEND="acct-group/utmp"
 RDEPEND="



[gentoo-commits] repo/gentoo:master commit in: sys-apps/utempter/

2022-05-06 Thread Arthur Zamarin
commit: edea54350a5cc01d14decc5979ae9f0cd2625fc5
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Fri May  6 07:55:25 2022 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Fri May  6 07:55:25 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=edea5435

sys-apps/utempter: Stabilize 0.5.5.6-r1 sparc, #842828

Signed-off-by: Arthur Zamarin  gentoo.org>

 sys-apps/utempter/utempter-0.5.5.6-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-apps/utempter/utempter-0.5.5.6-r1.ebuild 
b/sys-apps/utempter/utempter-0.5.5.6-r1.ebuild
index baf32537daae..970369cc2634 100644
--- a/sys-apps/utempter/utempter-0.5.5.6-r1.ebuild
+++ b/sys-apps/utempter/utempter-0.5.5.6-r1.ebuild
@@ -15,7 +15,7 @@ S="${WORKDIR}/${MY_PN}"
 
 LICENSE="|| ( MIT LGPL-2 )"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ppc ppc64 ~s390 ~sparc ~x86"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ppc ppc64 ~s390 sparc ~x86"
 
 BDEPEND="acct-group/utmp"
 RDEPEND="



[gentoo-commits] repo/gentoo:master commit in: sys-apps/utempter/

2022-05-05 Thread Sam James
commit: 2b4caf8b61df490813993c57b0a73c9dbc05b53f
Author: Sam James  gentoo  org>
AuthorDate: Thu May  5 20:28:23 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Thu May  5 20:28:23 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b4caf8b

sys-apps/utempter: Stabilize 0.5.5.6-r1 ppc64, #842828

Signed-off-by: Sam James  gentoo.org>

 sys-apps/utempter/utempter-0.5.5.6-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-apps/utempter/utempter-0.5.5.6-r1.ebuild 
b/sys-apps/utempter/utempter-0.5.5.6-r1.ebuild
index 7ee10ece26cc..baf32537daae 100644
--- a/sys-apps/utempter/utempter-0.5.5.6-r1.ebuild
+++ b/sys-apps/utempter/utempter-0.5.5.6-r1.ebuild
@@ -15,7 +15,7 @@ S="${WORKDIR}/${MY_PN}"
 
 LICENSE="|| ( MIT LGPL-2 )"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ppc ~ppc64 ~s390 ~sparc ~x86"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ppc ppc64 ~s390 ~sparc ~x86"
 
 BDEPEND="acct-group/utmp"
 RDEPEND="



[gentoo-commits] repo/gentoo:master commit in: sys-apps/utempter/

2022-05-05 Thread Sam James
commit: f649959f31f5b71dcc924e6920bde45c304d4845
Author: Sam James  gentoo  org>
AuthorDate: Thu May  5 20:28:09 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Thu May  5 20:28:09 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f649959f

sys-apps/utempter: Stabilize 0.5.5.6-r1 ppc, #842828

Signed-off-by: Sam James  gentoo.org>

 sys-apps/utempter/utempter-0.5.5.6-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-apps/utempter/utempter-0.5.5.6-r1.ebuild 
b/sys-apps/utempter/utempter-0.5.5.6-r1.ebuild
index f52de8c53368..7ee10ece26cc 100644
--- a/sys-apps/utempter/utempter-0.5.5.6-r1.ebuild
+++ b/sys-apps/utempter/utempter-0.5.5.6-r1.ebuild
@@ -15,7 +15,7 @@ S="${WORKDIR}/${MY_PN}"
 
 LICENSE="|| ( MIT LGPL-2 )"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ppc ~ppc64 ~s390 ~sparc ~x86"
 
 BDEPEND="acct-group/utmp"
 RDEPEND="



[gentoo-commits] repo/gentoo:master commit in: sys-apps/utempter/

2022-03-27 Thread Conrad Kostecki
commit: 2053cc85f3ffab5c526da278c48b5f7ab88278a9
Author: Conrad Kostecki  gentoo  org>
AuthorDate: Sun Mar 27 19:21:31 2022 +
Commit: Conrad Kostecki  gentoo  org>
CommitDate: Sun Mar 27 19:56:52 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2053cc85

sys-apps/utempter: update EAPI 6 -> 8

This bump also migrates to GLEP-81.

Closes: https://github.com/gentoo/gentoo/pull/24781
Bug: https://bugs.gentoo.org/781584
Signed-off-by: Conrad Kostecki  gentoo.org>

 sys-apps/utempter/utempter-0.5.5.6-r1.ebuild | 49 
 1 file changed, 49 insertions(+)

diff --git a/sys-apps/utempter/utempter-0.5.5.6-r1.ebuild 
b/sys-apps/utempter/utempter-0.5.5.6-r1.ebuild
new file mode 100644
index ..f52de8c53368
--- /dev/null
+++ b/sys-apps/utempter/utempter-0.5.5.6-r1.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MY_PN="${P%.*}"
+MY_P="${MY_PN}-${PV##*.}"
+
+inherit flag-o-matic rpm toolchain-funcs
+
+DESCRIPTION="App that allows non-privileged apps to write utmp (login) info"
+HOMEPAGE="https://www.redhat.com/;
+SRC_URI="mirror://gentoo/${MY_P}.src.rpm"
+S="${WORKDIR}/${MY_PN}"
+
+LICENSE="|| ( MIT LGPL-2 )"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
+
+BDEPEND="acct-group/utmp"
+RDEPEND="
+   ${BDEPEND}
+   !sys-libs/libutempter
+"
+
+PATCHES=(
+   "${FILESDIR}"/${PN}-0.5.5.6-no_utmpx.patch
+   "${FILESDIR}"/${PN}-0.5.5.6-fix-build-system.patch
+)
+
+src_prepare() {
+   default
+   tc-export CC
+   append-cflags -Wall
+}
+
+src_install() {
+   local myemakeargs=(
+   LIBDIR="/usr/$(get_libdir)"
+   RPM_BUILD_ROOT="${ED}"
+   )
+
+   emake "${myemakeargs[@]}" install
+
+   dobin utmp
+
+   fowners root:utmp /usr/sbin/utempter
+   fperms 2755 /usr/sbin/utempter
+}



[gentoo-commits] repo/gentoo:master commit in: sys-apps/utempter/

2019-11-26 Thread Matt Turner
commit: 8581aca499c73548d4b1e62d32823ae5d11edd1b
Author: Matt Turner  gentoo  org>
AuthorDate: Tue Nov 26 22:50:45 2019 +
Commit: Matt Turner  gentoo  org>
CommitDate: Tue Nov 26 22:50:45 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8581aca4

sys-apps/utempter: Drop x11@ from maintainers

I think x11@ was a maintainer due to the reverse dependency of xterm,
but we now no longer are a maintainer of xterm.

Signed-off-by: Matt Turner  gentoo.org>

 sys-apps/utempter/metadata.xml | 4 
 1 file changed, 4 deletions(-)

diff --git a/sys-apps/utempter/metadata.xml b/sys-apps/utempter/metadata.xml
index 910808b6e1f..56c12441305 100644
--- a/sys-apps/utempter/metadata.xml
+++ b/sys-apps/utempter/metadata.xml
@@ -5,8 +5,4 @@
base-sys...@gentoo.org
Gentoo Base System
 
-
-   x...@gentoo.org
-   X11
-
 



[gentoo-commits] repo/gentoo:master commit in: sys-apps/utempter/, sys-apps/utempter/files/

2017-12-02 Thread David Seifert
commit: ed24ab01691c2d03fc21562f78b6a05e71803d62
Author: David Seifert  gentoo  org>
AuthorDate: Sat Dec  2 14:49:59 2017 +
Commit: David Seifert  gentoo  org>
CommitDate: Sat Dec  2 16:14:26 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed24ab01

sys-apps/utempter: Port to EAPI 6

Package-Manager: Portage-2.3.16, Repoman-2.3.6

 sys-apps/utempter/Manifest |  2 +-
 .../utempter/files/utempter-0.5.5.6-build.patch| 11 -
 ...tch => utempter-0.5.5.6-fix-build-system.patch} | 29 ++---
 .../utempter/files/utempter-0.5.5.6-no_utmpx.patch |  4 +-
 sys-apps/utempter/utempter-0.5.5.6.ebuild  | 48 +++---
 5 files changed, 52 insertions(+), 42 deletions(-)

diff --git a/sys-apps/utempter/Manifest b/sys-apps/utempter/Manifest
index 8b18dda0755..031d8a62a83 100644
--- a/sys-apps/utempter/Manifest
+++ b/sys-apps/utempter/Manifest
@@ -1 +1 @@
-DIST utempter-0.5.5-6.src.rpm 21099 SHA256 
617c28d579fa54349b8a706e8346c2442f2ef39523db7e0501701a0919651f3c SHA512 
81eeac830631922f2d1b2099a559b60bfd21818b38a524d3c5f61aec143b3e70e95a9ccc300f649dd81f515837fe3befaba6b93bb2e22767e71eee7acb711655
 WHIRLPOOL 
3ae0a32eae886f2ac14dcf36b4e96e4bb8c25966389c6608a83673149a3045b580b35832e5c69836a18a4f88b55e8c20d254470f84424e30f758a820a87ce13a
+DIST utempter-0.5.5-6.src.rpm 21099 BLAKE2B 
a4a8c53ab31d53ec56d60a16e5c1d3a0a2ec6c73c3c3025c15dfc389da75f969545392b46976017cfcde1d9f9ca974b14786bbf39709aebdda890df13a7866ed
 SHA512 
81eeac830631922f2d1b2099a559b60bfd21818b38a524d3c5f61aec143b3e70e95a9ccc300f649dd81f515837fe3befaba6b93bb2e22767e71eee7acb711655

diff --git a/sys-apps/utempter/files/utempter-0.5.5.6-build.patch 
b/sys-apps/utempter/files/utempter-0.5.5.6-build.patch
deleted file mode 100644
index 8fbfb96..000
--- a/sys-apps/utempter/files/utempter-0.5.5.6-build.patch
+++ /dev/null
@@ -1,11 +0,0 @@
 Makefile
-+++ Makefile
-@@ -37,7 +37,7 @@
-   ln -sf $(SHAREDLIB).$(VERSION) 
$(RPM_BUILD_ROOT)/$(LIBDIR)/$(SHAREDLIB).$(SOMAJOR)
- 
- $(SHAREDLIB): utmpintf.os
--  $(CC) -o $@ -shared -Wl,-soname,$(SONAME) $^ -lc
-+  $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,$(SONAME) $^ -lc
- 
- utmpintf.o: utmpintf.c utempter.h
- 

diff --git a/sys-apps/utempter/files/utempter-0.5.5.6-soname-makefile-fix.patch 
b/sys-apps/utempter/files/utempter-0.5.5.6-fix-build-system.patch
similarity index 55%
rename from sys-apps/utempter/files/utempter-0.5.5.6-soname-makefile-fix.patch
rename to sys-apps/utempter/files/utempter-0.5.5.6-fix-build-system.patch
index 123c77eb357..83b41a04b25 100644
--- a/sys-apps/utempter/files/utempter-0.5.5.6-soname-makefile-fix.patch
+++ b/sys-apps/utempter/files/utempter-0.5.5.6-fix-build-system.patch
@@ -1,6 +1,6 @@
 Makefile.orig  2005-04-15 08:54:32.0 -0400
-+++ Makefile   2005-04-15 08:56:17.0 -0400
-@@ -5,6 +5,10 @@
+--- a/Makefile
 b/Makefile
+@@ -5,12 +5,14 @@
  CVSROOT=$(shell cat CVS/Root)
  # major number of the .so lib
  SOMAJOR = 0
@@ -11,7 +11,22 @@
  
  SHAREDLIB = lib$(NAME).so
  SONAME = $(SHAREDLIB).$(SOMAJOR)
-@@ -29,6 +33,8 @@
+ 
+-CFLAGS = -Wall $(RPM_OPT_FLAGS)
+-
+ TARGETS = $(NAME) utmp $(SHAREDLIB)
+ 
+ all:  $(TARGETS)
+@@ -19,7 +21,7 @@
+   rm -f *.so utempter utmp *.os
+ 
+ %.os : %.c
+-  $(CC) -c $(CFLAGS) -fPIC $< -o $@
++  $(CC) -c $(CFLAGS) $(CPPFLAGS) -fPIC $< -o $@
+ 
+ install:
+   mkdir -p $(RPM_BUILD_ROOT)/usr/sbin
+@@ -29,9 +31,11 @@
install -m 644 utempter.h $(RPM_BUILD_ROOT)/usr/include
install -m 644 $(SHAREDLIB) 
$(RPM_BUILD_ROOT)/$(LIBDIR)/$(SHAREDLIB).$(VERSION)
ln -sf $(SHAREDLIB).$(VERSION) $(RPM_BUILD_ROOT)/$(LIBDIR)/$(SHAREDLIB)
@@ -19,4 +34,8 @@
 +  ln -sf $(SHAREDLIB).$(VERSION) 
$(RPM_BUILD_ROOT)/$(LIBDIR)/$(SHAREDLIB).$(SOMAJOR)
  
  $(SHAREDLIB): utmpintf.os
-   $(CC) -o $@ -shared -Wl,-soname,$(SONAME) $^ -lc
+-  $(CC) -o $@ -shared -Wl,-soname,$(SONAME) $^ -lc
++  $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,$(SONAME) $^ -lc $(LIBS)
+ 
+ utmpintf.o: utmpintf.c utempter.h
+ 

diff --git a/sys-apps/utempter/files/utempter-0.5.5.6-no_utmpx.patch 
b/sys-apps/utempter/files/utempter-0.5.5.6-no_utmpx.patch
index 8644db837f4..b6fc7ea7d27 100644
--- a/sys-apps/utempter/files/utempter-0.5.5.6-no_utmpx.patch
+++ b/sys-apps/utempter/files/utempter-0.5.5.6-no_utmpx.patch
@@ -1,5 +1,5 @@
 utempter-0.5.5/utempter.c.mps  2004-12-11 14:54:06.0 +0100
-+++ utempter-0.5.5/utempter.c  2004-12-11 14:57:46.0 +0100
+--- a/utempter.c
 b/utempter.c
 @@ -11,7 +11,9 @@
  #include 
  #include 

diff --git a/sys-apps/utempter/utempter-0.5.5.6.ebuild 
b/sys-apps/utempter/utempter-0.5.5.6.ebuild
index 4866160d3cd..6fd2931dcb4 100644
--- a/sys-apps/utempter/utempter-0.5.5.6.ebuild
+++ b/sys-apps/utempter/utempter-0.5.5.6.ebuild
@@ -1,10 +1,12 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU