[gentoo-dev] Last rites: net-irc/xaric

2020-08-29 Thread Sam James
# Sam James  (2020-08-30)
# Collection of quite dead net-irc/* pkgs
# Please speak up if you use any of these
# and a modern alternative doesn't work for you.
# None of these have alive upstreams, and we're
# the only distro packaging them in many cases.
# Unmaintained. Removal in 30 days.
# […]
# bug 706898, bug 731188
[…]
net-irc/xaric


signature.asc
Description: Message signed with OpenPGP


[gentoo-dev] Last rites: dev-db/sqliteodbc

2020-08-29 Thread Sam James
# Sam James  (2020-08-30)
# Serious security bug, unmaintained.
# Stuck on long-obsolete EAPI 4.
# Several open bugs.
# bug 720732, bug 729714, bug 722644,
# bug 724184.
dev-db/sqliteodbc



signature.asc
Description: Message signed with OpenPGP


[gentoo-dev] Last rites: www-apps/ampache

2020-08-29 Thread Sam James
# Sam James  (2020-08-30)
# Serious security vulns, outdated.
# bug 699834. Removal in 30 days.
www-apps/ampache


signature.asc
Description: Message signed with OpenPGP


[gentoo-dev] Last rites: net-irc/irc-server

2020-08-29 Thread Sam James
# Sam James  (2020-08-30)
# Collection of quite dead net-irc/* pkgs
# Please speak up if you use any of these
# and a modern alternative doesn't work for you.
# None of these have alive upstreams, and we're
# the only distro packaging them in many cases.
# Unmaintained. Removal in 30 days.
# bug 724940, bug 708408, bug 716264, bug 633346
[…]
net-irc/irc-server



signature.asc
Description: Message signed with OpenPGP


[gentoo-dev] Last rites: net-irc/ptlink-ircd, net-irc/ptlink-opm

2020-08-29 Thread Sam James
# Sam James  (2020-08-30)
# Collection of quite dead net-irc/* pkgs
# Please speak up if you use any of these
# and a modern alternative doesn't work for you.
# None of these have alive upstreams, and we're
# the only distro packaging them in many cases.
# Unmaintained. Removal in 30 days.
# bug 724940
net-irc/ptlink-ircd
net-irc/ptlink-opm


signature.asc
Description: Message signed with OpenPGP


[gentoo-dev] Last rites: dev-embedded/ftdi_eeprom

2020-08-29 Thread Aaron Bauman
# Aaron Bauman  (2020-08-29)
# EAPI=4, use dev-embedded/libftd[tools] instead
# Removal in 30 days
dev-embedded/ftdi_eeprom

-- 
Cheers,
Aaron


signature.asc
Description: PGP signature


[gentoo-dev] Last rites: app-cdr/pburn

2020-08-29 Thread Aaron Bauman
# Aaron Bauman  (2020-08-29)
# EAPI=4, latest release 4.3.19 in 2019.
# Unmaintained. Removal in 30 days.
app-cdr/pburn

-- 
Cheers,
Aaron


signature.asc
Description: PGP signature


[gentoo-dev] Last rites: app-admin/passook

2020-08-29 Thread Aaron Bauman
# Aaron Bauman  (2020-08-29)
# EAPI=4, simple script, relies on hardcoded
# /usr/dict/words for generation. Removal in 30 days.
app-admin/passook

-- 
Cheers,
Aaron


signature.asc
Description: PGP signature


[gentoo-portage-dev] [PATCH] Use cached portage.getpid() function (bug 739540)

2020-08-29 Thread Zac Medico
Use the cached portage.getpid() function to avoid unnecessary syscalls,
and update the cache after each call to os.fork() where the fork may
invoke portage APIs.

Bug: https://bugs.gentoo.org/739540
Signed-off-by: Zac Medico 
---
 bin/quickpkg |  2 +-
 lib/_emerge/EbuildBinpkg.py  |  4 +++-
 lib/_emerge/actions.py   |  2 +-
 lib/portage/_emirrordist/FetchTask.py|  4 ++--
 lib/portage/cache/metadata.py|  4 +++-
 lib/portage/elog/mod_mail_summary.py |  5 ++---
 lib/portage/elog/mod_save_summary.py |  2 +-
 lib/portage/locks.py |  2 +-
 lib/portage/package/ebuild/doebuild.py   |  2 +-
 lib/portage/process.py   | 16 +++-
 lib/portage/tests/locks/test_lock_nonblock.py|  1 +
 .../futures/asyncio/test_wakeup_fd_sigchld.py|  2 +-
 lib/portage/util/__init__.py |  4 ++--
 lib/portage/util/_eventloop/EventLoop.py |  6 +++---
 .../util/_eventloop/asyncio_event_loop.py|  4 ++--
 lib/portage/util/_eventloop/global_event_loop.py |  7 +++
 lib/portage/util/locale.py   |  1 +
 lib/portage/util/movefile.py |  2 +-
 lib/portage/util/socks5.py   |  2 +-
 lib/portage/xpak.py  |  2 +-
 20 files changed, 42 insertions(+), 32 deletions(-)

diff --git a/bin/quickpkg b/bin/quickpkg
index be7d1d7af..a171b3bd5 100755
--- a/bin/quickpkg
+++ b/bin/quickpkg
@@ -111,7 +111,7 @@ def quickpkg_atom(options, infos, arg, eout):
vardb.aux_update(cpv, update_metadata)
xpdata = xpak.xpak(dblnk.dbdir)
binpkg_tmpfile = os.path.join(bintree.pkgdir,
-   cpv + ".tbz2." + str(os.getpid()))
+   cpv + ".tbz2." + str(portage.getpid()))
ensure_dirs(os.path.dirname(binpkg_tmpfile))
binpkg_compression = settings.get("BINPKG_COMPRESS", 
"bzip2")
try:
diff --git a/lib/_emerge/EbuildBinpkg.py b/lib/_emerge/EbuildBinpkg.py
index 6e098eb8a..879b3a9aa 100644
--- a/lib/_emerge/EbuildBinpkg.py
+++ b/lib/_emerge/EbuildBinpkg.py
@@ -3,6 +3,8 @@
 
 from _emerge.CompositeTask import CompositeTask
 from _emerge.EbuildPhase import EbuildPhase
+
+import portage
 from portage import os
 
 class EbuildBinpkg(CompositeTask):
@@ -17,7 +19,7 @@ class EbuildBinpkg(CompositeTask):
root_config = pkg.root_config
bintree = root_config.trees["bintree"]
binpkg_tmpfile = os.path.join(bintree.pkgdir,
-   pkg.cpv + ".tbz2." + str(os.getpid()))
+   pkg.cpv + ".tbz2." + str(portage.getpid()))
bintree._ensure_dir(os.path.dirname(binpkg_tmpfile))
 
self._binpkg_tmpfile = binpkg_tmpfile
diff --git a/lib/_emerge/actions.py b/lib/_emerge/actions.py
index 063f5d4a0..a4ecfe43d 100644
--- a/lib/_emerge/actions.py
+++ b/lib/_emerge/actions.py
@@ -2623,7 +2623,7 @@ def ionice(settings):
if not ionice_cmd:
return
 
-   variables = {"PID" : str(os.getpid())}
+   variables = {"PID" : str(portage.getpid())}
cmd = [varexpand(x, mydict=variables) for x in ionice_cmd]
 
try:
diff --git a/lib/portage/_emirrordist/FetchTask.py 
b/lib/portage/_emirrordist/FetchTask.py
index 457ca2ac6..41f96b962 100644
--- a/lib/portage/_emirrordist/FetchTask.py
+++ b/lib/portage/_emirrordist/FetchTask.py
@@ -415,7 +415,7 @@ class FetchTask(CompositeTask):
self._fetch_tmp_dir_info = 'distfiles'
distdir = self.config.options.distfiles
 
-   tmp_basename = self.distfile + '._emirrordist_fetch_.%s' % 
os.getpid()
+   tmp_basename = self.distfile + '._emirrordist_fetch_.%s' % 
portage.getpid()
 
variables = {
"DISTDIR": distdir,
@@ -622,7 +622,7 @@ class FetchTask(CompositeTask):
 
head, tail = os.path.split(dest)
hardlink_tmp = os.path.join(head, 
".%s._mirrordist_hardlink_.%s" % \
-   (tail, os.getpid()))
+   (tail, portage.getpid()))
 
try:
try:
diff --git a/lib/portage/cache/metadata.py b/lib/portage/cache/metadata.py
index db81b8ba1..bd1b70fa0 100644
--- a/lib/portage/cache/metadata.py
+++ b/lib/portage/cache/metadata.py
@@ -6,6 +6,8 @@ import errno
 import re
 import stat
 from operator import attrgetter
+
+import portage
 from portage import os
 from portage import _encodings
 from portage import _unicode_encode
@@ -122,7 +124,7 @@ class database(flat_hash.database):
 
s = cpv.rfind("/")
fp = os.path.join(self.location,cpv[:s],
-   

Re: [gentoo-dev] [PATCH] acct-*.eclass: Create sysusers.d files

2020-08-29 Thread Michał Górny
On Sat, 2020-08-29 at 21:05 +0100, Alexey Sokolov wrote:
> As this doesn't depend on architecture, why /lib and not /share?
> 

I can only imagine how thrilled systemd authors will be when you ask
them.

-- 
Best regards,
Michał Górny



signature.asc
Description: This is a digitally signed message part


Re: [gentoo-dev] [PATCH] acct-*.eclass: Create sysusers.d files

2020-08-29 Thread Alexey Sokolov
As this doesn't depend on architecture, why /lib and not /share?

сб, 29 авг. 2020 г. в 20:53, Michał Górny :
>
> Thanks to David Michael for the initial patch and upstream fixes.
>
> Signed-off-by: Michał Górny 
> ---
>  eclass/acct-group.eclass | 16 +++-
>  eclass/acct-user.eclass  | 16 +++-
>  2 files changed, 30 insertions(+), 2 deletions(-)
>
> diff --git a/eclass/acct-group.eclass b/eclass/acct-group.eclass
> index 5550e4a2fb10..dc1562974870 100644
> --- a/eclass/acct-group.eclass
> +++ b/eclass/acct-group.eclass
> @@ -80,7 +80,7 @@ S=${WORKDIR}
>
>
>  # << Phase functions >>
> -EXPORT_FUNCTIONS pkg_pretend pkg_preinst
> +EXPORT_FUNCTIONS pkg_pretend src_install pkg_preinst
>
>  # @FUNCTION: acct-group_pkg_pretend
>  # @DESCRIPTION:
> @@ -116,6 +116,20 @@ acct-group_pkg_pretend() {
> fi
>  }
>
> +# @FUNCTION: acct-group_src_install
> +# @DESCRIPTION:
> +# Installs sysusers.d file for the group.
> +acct-group_src_install() {
> +   debug-print-function ${FUNCNAME} "${@}"
> +
> +   insinto /usr/lib/sysusers.d
> +   newins - ${CATEGORY}-${ACCT_GROUP_NAME}.conf < <(
> +   printf "g\t%q\t%q\n" \
> +   "${ACCT_GROUP_NAME}" \
> +   "${ACCT_GROUP_ID/#-*/-}"
> +   )
> +}
> +
>  # @FUNCTION: acct-group_pkg_preinst
>  # @DESCRIPTION:
>  # Creates the group if it does not exist yet.
> diff --git a/eclass/acct-user.eclass b/eclass/acct-user.eclass
> index e82f3c56dbbe..f9772c3cb111 100644
> --- a/eclass/acct-user.eclass
> +++ b/eclass/acct-user.eclass
> @@ -312,7 +312,7 @@ acct-user_pkg_pretend() {
>  # @FUNCTION: acct-user_src_install
>  # @DESCRIPTION:
>  # Installs a keep-file into the user's home directory to ensure it is
> -# owned by the package.
> +# owned by the package, and sysusers.d file.
>  acct-user_src_install() {
> debug-print-function ${FUNCNAME} "${@}"
>
> @@ -321,6 +321,20 @@ acct-user_src_install() {
> # created yet
> keepdir "${ACCT_USER_HOME}"
> fi
> +
> +   insinto /usr/lib/sysusers.d
> +   newins - ${CATEGORY}-${ACCT_USER_NAME}.conf < <(
> +   printf "u\t%q\t%q\t%q\t%q\t%q\n" \
> +   "${ACCT_USER_NAME}" \
> +   "${ACCT_USER_ID/#-*/-}:${ACCT_USER_GROUPS[0]}" \
> +   "${DESCRIPTION//[:,=]/;}" \
> +   "${ACCT_USER_HOME}" \
> +   "${ACCT_USER_SHELL/#-*/-}"
> +   if [[ ${#ACCT_USER_GROUPS[@]} -gt 1 ]]; then
> +   printf "m\t${ACCT_USER_NAME}\t%q\n" \
> +   "${ACCT_USER_GROUPS[@]:1}"
> +   fi
> +   )
>  }
>
>  # @FUNCTION: acct-user_pkg_preinst
> --
> 2.28.0
>
>



[gentoo-dev] [PATCH] acct-*.eclass: Create sysusers.d files

2020-08-29 Thread Michał Górny
Thanks to David Michael for the initial patch and upstream fixes.

Signed-off-by: Michał Górny 
---
 eclass/acct-group.eclass | 16 +++-
 eclass/acct-user.eclass  | 16 +++-
 2 files changed, 30 insertions(+), 2 deletions(-)

diff --git a/eclass/acct-group.eclass b/eclass/acct-group.eclass
index 5550e4a2fb10..dc1562974870 100644
--- a/eclass/acct-group.eclass
+++ b/eclass/acct-group.eclass
@@ -80,7 +80,7 @@ S=${WORKDIR}
 
 
 # << Phase functions >>
-EXPORT_FUNCTIONS pkg_pretend pkg_preinst
+EXPORT_FUNCTIONS pkg_pretend src_install pkg_preinst
 
 # @FUNCTION: acct-group_pkg_pretend
 # @DESCRIPTION:
@@ -116,6 +116,20 @@ acct-group_pkg_pretend() {
fi
 }
 
+# @FUNCTION: acct-group_src_install
+# @DESCRIPTION:
+# Installs sysusers.d file for the group.
+acct-group_src_install() {
+   debug-print-function ${FUNCNAME} "${@}"
+
+   insinto /usr/lib/sysusers.d
+   newins - ${CATEGORY}-${ACCT_GROUP_NAME}.conf < <(
+   printf "g\t%q\t%q\n" \
+   "${ACCT_GROUP_NAME}" \
+   "${ACCT_GROUP_ID/#-*/-}"
+   )
+}
+
 # @FUNCTION: acct-group_pkg_preinst
 # @DESCRIPTION:
 # Creates the group if it does not exist yet.
diff --git a/eclass/acct-user.eclass b/eclass/acct-user.eclass
index e82f3c56dbbe..f9772c3cb111 100644
--- a/eclass/acct-user.eclass
+++ b/eclass/acct-user.eclass
@@ -312,7 +312,7 @@ acct-user_pkg_pretend() {
 # @FUNCTION: acct-user_src_install
 # @DESCRIPTION:
 # Installs a keep-file into the user's home directory to ensure it is
-# owned by the package.
+# owned by the package, and sysusers.d file.
 acct-user_src_install() {
debug-print-function ${FUNCNAME} "${@}"
 
@@ -321,6 +321,20 @@ acct-user_src_install() {
# created yet
keepdir "${ACCT_USER_HOME}"
fi
+
+   insinto /usr/lib/sysusers.d
+   newins - ${CATEGORY}-${ACCT_USER_NAME}.conf < <(
+   printf "u\t%q\t%q\t%q\t%q\t%q\n" \
+   "${ACCT_USER_NAME}" \
+   "${ACCT_USER_ID/#-*/-}:${ACCT_USER_GROUPS[0]}" \
+   "${DESCRIPTION//[:,=]/;}" \
+   "${ACCT_USER_HOME}" \
+   "${ACCT_USER_SHELL/#-*/-}"
+   if [[ ${#ACCT_USER_GROUPS[@]} -gt 1 ]]; then
+   printf "m\t${ACCT_USER_NAME}\t%q\n" \
+   "${ACCT_USER_GROUPS[@]:1}"
+   fi
+   )
 }
 
 # @FUNCTION: acct-user_pkg_preinst
-- 
2.28.0




[gentoo-dev] last rite: media-sound/traverso

2020-08-29 Thread Miroslav Šulc

# Miroslav Šulc  (2020-08-29)
# Upstream has version 1.1.2, but only for Windows,
# sources are gone. Removal in 30 days.
media-sound/traverso