From: "David Seifert" <soap@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-process/acct/, sys-process/acct/files/
Date: Sun, 3 Oct 2021 11:28:35 +0000 (UTC) [thread overview]
Message-ID: <1633260483.c72f950cc703b57d854e42af6decef52be744307.soap@gentoo> (raw)
commit: c72f950cc703b57d854e42af6decef52be744307
Author: David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 3 11:28:03 2021 +0000
Commit: David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sun Oct 3 11:28:03 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c72f950c
sys-process/acct: drop 6.6.4-r1
Signed-off-by: David Seifert <soap <AT> gentoo.org>
sys-process/acct/acct-6.6.4-r1.ebuild | 46 -----
.../acct/files/acct-6.6.4-cross-compile.patch | 220 ---------------------
2 files changed, 266 deletions(-)
diff --git a/sys-process/acct/acct-6.6.4-r1.ebuild b/sys-process/acct/acct-6.6.4-r1.ebuild
deleted file mode 100644
index 6b534384168..00000000000
--- a/sys-process/acct/acct-6.6.4-r1.ebuild
+++ /dev/null
@@ -1,46 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-inherit autotools systemd
-
-DESCRIPTION="GNU system accounting utilities"
-HOMEPAGE="https://savannah.gnu.org/projects/acct/"
-SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ~ppc64 ~sparc x86 ~amd64-linux ~x86-linux"
-IUSE=""
-
-DEPEND="sys-apps/texinfo"
-
-PATCHES=(
- "${FILESDIR}"/${PN}-6.6.4-cross-compile.patch
-)
-
-src_prepare() {
- default
- eautoreconf
-}
-
-src_configure() {
- econf --enable-linux-multiformat
-}
-
-src_install() {
- default
- keepdir /var/account
- newinitd "${FILESDIR}"/acct.initd-r2 acct
- newconfd "${FILESDIR}"/acct.confd-r1 acct
- systemd_dounit "${FILESDIR}"/acct.service
- insinto /etc/logrotate.d
- newins "${FILESDIR}"/acct.logrotate-r1 psacct
-
- # sys-apps/sysvinit already provides this
- rm "${ED}"/usr/bin/last "${ED}"/usr/share/man/man1/last.1 || die
-
- # accton in / is only a temp workaround for #239748
- dodir /sbin
- mv "${ED}"/usr/sbin/accton "${ED}"/sbin/ || die
-}
diff --git a/sys-process/acct/files/acct-6.6.4-cross-compile.patch b/sys-process/acct/files/acct-6.6.4-cross-compile.patch
deleted file mode 100644
index c4938d956dd..00000000000
--- a/sys-process/acct/files/acct-6.6.4-cross-compile.patch
+++ /dev/null
@@ -1,220 +0,0 @@
-Don't generate files.h at build-time using an execution test.
-
-The *_LOC variables are never used in the build itself, but only in the
-built code; this means that they don't need to be known to ./configure at
-all.
-
-Since the previous method made acct not cross-compilable at all, this is
-much preferred.
-
-Author: Diego Elio Pettenò <flameeyes@gmail.com>
-Upstream: https://savannah.gnu.org/patch/?7473
-
---- a/Makefile.am
-+++ b/Makefile.am
-@@ -69,11 +69,6 @@ SYS_LASTCOMM = @SYS_LASTCOMM@
- SYS_AC = @SYS_AC@
- SYS_SA = @SYS_SA@
-
--WTMP_FILE_LOC = @WTMP_FILE_LOC@
--ACCT_FILE_LOC = @ACCT_FILE_LOC@
--SAVACCT_FILE_LOC = @SAVACCT_FILE_LOC@
--USRACCT_FILE_LOC = @USRACCT_FILE_LOC@
--
- compare-ac: ac
- @echo
- @echo "Running tests for ac"
---- a/configure.ac
-+++ b/configure.ac
-@@ -229,97 +229,6 @@ AC_CHECK_HEADER(sys/acct.h,
- AC_EGREP_HEADER([comp_t],[sys/acct.h],[AC_DEFINE(HAVE_COMP_T, 1, Define if <sys/acct.h> uses the COMP_T type.)])
- ) ]
- )
--dnl
--dnl find out where utmp/pacct are stored
--dnl
--AC_RUN_IFELSE([AC_LANG_PROGRAM([[
--#include <stdio.h>
--#include <stdlib.h>
--#include <sys/types.h>
--#include <stdint.h> /* GNU/kFreeBSD */
--#include <sys/acct.h>
--#include <utmp.h>
--
--#ifndef WTMP_FILE
--# if defined(__FreeBSD__) || defined (__NetBSD__) || defined(__linux__) \
-- || defined(__FreeBSD_kernel__) || defined(__GLIBC__)
--# define WTMP_FILE "/var/log/account/wtmp"
--# else
--# if defined(sun) || defined(AMIX)
--# define WTMP_FILE "/var/adm/wtmp"
--# else
--# if defined(sgi) || defined(SVR4)
--# define WTMP_FILE "/usr/adm/wtmp"
--# else
--# define WTMP_FILE "/usr/adm/wtmp"
--# endif
--# endif
--# endif
--#endif
--
--#ifndef ACCT_FILE
--# if defined(__FreeBSD__) || defined(__linux__) \
-- || defined(__FreeBSD_kernel__) || defined(__GLIBC__)
--# define ACCT_FILE "/var/log/account/pacct"
--# else
--# if defined(__NetBSD__)
--# define ACCT_FILE "/var/log/account/acct"
--# else
--# if defined(sun) || defined(AMIX)
--# define ACCT_FILE "/var/adm/pacct"
--# else
--# if defined(sgi) || defined(SVR4) || defined(M_XENIX)
--# define ACCT_FILE "/usr/adm/pacct"
--# else
--# define ACCT_FILE "/usr/adm/acct"
--# endif
--# endif
--# endif
--# endif
--#endif
--
--#ifndef SAVACCT_FILE
--# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__linux__) \
-- || defined(__FreeBSD_kernel__) || defined(__GLIBC__)
--# define SAVACCT_FILE "/var/log/account/savacct"
--# else
--# if defined(sun) || defined(AMIX)
--# define SAVACCT_FILE "/var/adm/savacct"
--# else
--# if defined(sgi) || defined(SVR4)
--# define SAVACCT_FILE "/usr/adm/savacct"
--# else
--# define SAVACCT_FILE "/usr/adm/savacct"
--# endif
--# endif
--# endif
--#endif
--
--#ifndef USRACCT_FILE
--# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__linux__) \
-- || defined(__FreeBSD_kernel__) || defined(__GLIBC__)
--# define USRACCT_FILE "/var/log/account/usracct"
--# else
--# if defined(sun) || defined(AMIX)
--# define USRACCT_FILE "/var/adm/usracct"
--# else
--# if defined(sgi) || defined(SVR4)
--# define USRACCT_FILE "/usr/adm/usracct"
--# else
--# define USRACCT_FILE "/usr/adm/usracct"
--# endif
--# endif
--# endif
--#endif
--]], [[
-- FILE *fp;
-- fp = fopen ("locs", "w");
-- fprintf (fp, "WTMP_FILE_LOC=%s\n", WTMP_FILE);
-- fprintf (fp, "ACCT_FILE_LOC=%s\n", ACCT_FILE);
-- fprintf (fp, "SAVACCT_FILE_LOC=%s\n", SAVACCT_FILE);
-- fprintf (fp, "USRACCT_FILE_LOC=%s\n", USRACCT_FILE);
-- fclose (fp);
--]])],[. ./locs; rm locs],[echo "Error -- could not locate your wtmp and acct files."; exit 1],[echo "Sorry -- you cannot cross-compile this package (FIXME)."; exit 1 ])
-
- dnl types
- AC_TYPE_PID_T dnl for sys/acct.h
-@@ -363,12 +272,6 @@ AC_SUBST(ACCTON_MAN)
- AC_SUBST(LASTCOMM_MAN)
- AC_SUBST(SA_MAN)
-
--dnl Substitutions for file locations
--AC_SUBST(WTMP_FILE_LOC)
--AC_SUBST(ACCT_FILE_LOC)
--AC_SUBST(SAVACCT_FILE_LOC)
--AC_SUBST(USRACCT_FILE_LOC)
--
- dnl Dump the makefiles and etc.
- AC_CONFIG_FILES([Makefile lib/Makefile files.h version.h])
- AC_OUTPUT
---- a/files.h.in
-+++ b/files.h.in
-@@ -30,6 +30,78 @@
-
- #include <utmp.h>
-
-+#ifndef WTMP_FILE
-+# if defined(__FreeBSD__) || defined (__NetBSD__) || defined(__linux__) \
-+ || defined(__FreeBSD_kernel__) || defined(__GLIBC__)
-+# define WTMP_FILE "/var/log/account/wtmp"
-+# else
-+# if defined(sun) || defined(AMIX)
-+# define WTMP_FILE "/var/adm/wtmp"
-+# else
-+# if defined(sgi) || defined(SVR4)
-+# define WTMP_FILE "/usr/adm/wtmp"
-+# else
-+# define WTMP_FILE "/usr/adm/wtmp"
-+# endif
-+# endif
-+# endif
-+#endif
-+
-+#ifndef ACCT_FILE
-+# if defined(__FreeBSD__) || defined(__linux__) \
-+ || defined(__FreeBSD_kernel__) || defined(__GLIBC__)
-+# define ACCT_FILE "/var/log/account/pacct"
-+# else
-+# if defined(__NetBSD__)
-+# define ACCT_FILE "/var/log/account/acct"
-+# else
-+# if defined(sun) || defined(AMIX)
-+# define ACCT_FILE "/var/adm/pacct"
-+# else
-+# if defined(sgi) || defined(SVR4) || defined(M_XENIX)
-+# define ACCT_FILE "/usr/adm/pacct"
-+# else
-+# define ACCT_FILE "/usr/adm/acct"
-+# endif
-+# endif
-+# endif
-+# endif
-+#endif
-+
-+#ifndef SAVACCT_FILE
-+# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__linux__) \
-+ || defined(__FreeBSD_kernel__) || defined(__GLIBC__)
-+# define SAVACCT_FILE "/var/log/account/savacct"
-+# else
-+# if defined(sun) || defined(AMIX)
-+# define SAVACCT_FILE "/var/adm/savacct"
-+# else
-+# if defined(sgi) || defined(SVR4)
-+# define SAVACCT_FILE "/usr/adm/savacct"
-+# else
-+# define SAVACCT_FILE "/usr/adm/savacct"
-+# endif
-+# endif
-+# endif
-+#endif
-+
-+#ifndef USRACCT_FILE
-+# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__linux__) \
-+ || defined(__FreeBSD_kernel__) || defined(__GLIBC__)
-+# define USRACCT_FILE "/var/log/account/usracct"
-+# else
-+# if defined(sun) || defined(AMIX)
-+# define USRACCT_FILE "/var/adm/usracct"
-+# else
-+# if defined(sgi) || defined(SVR4)
-+# define USRACCT_FILE "/usr/adm/usracct"
-+# else
-+# define USRACCT_FILE "/usr/adm/usracct"
-+# endif
-+# endif
-+# endif
-+#endif
-+
- #define WTMP_FILE_LOC "@WTMP_FILE_LOC@"
- #define ACCT_FILE_LOC "@ACCT_FILE_LOC@"
- #define SAVACCT_FILE_LOC "@SAVACCT_FILE_LOC@"
next reply other threads:[~2021-10-03 11:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-03 11:28 David Seifert [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-03-01 7:55 [gentoo-commits] repo/gentoo:master commit in: sys-process/acct/, sys-process/acct/files/ Sam James
2017-12-12 15:10 Lars Wendler
2017-07-27 14:04 Thomas Deutschmann
2017-01-07 21:32 Robin H. Johnson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1633260483.c72f950cc703b57d854e42af6decef52be744307.soap@gentoo \
--to=soap@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox