Re: [gentoo-portage-dev] precisions on installed packages' dependencies

2020-03-22 Thread Zac Medico
On 3/22/20 5:38 PM, michael.lienha...@laposte.net wrote:
> Dear all,
> 
> Still in the process of improving my solver (and make it a usable tool), I 
> need to have a better idea on how installed packages should be managed.

Great!

> I didn't find anything on that topic in the PMS (if I've missed it, I'm 
> sorry).
> Could you confirm/correct my following understanding:
>  1. installed packages that are still in the portage tree can be 
> unmerged/updated without any restriction (as specified in their .ebuild)

True.

>  2. installed packages that are not in the portage tree can only be kept as 
> is or unmerged

Installed packages may also implement pkg_config and pkg_info phases
that can be executed via emerge --config and emerge --info.

>  3. before removing a library, "ebuild unmerge" always checks if it is used 
> by another package: this means that installed packages' dependencies are 
> never broken.

That's true if the package is removed via emerge --depclean, but emerge
--unmerge does not account for dependencies.

Also, it's possible for dependencies of installed packages to be
temporarily broken by upgrades. In cases like this, the breakage will
eventually be resolved by a rebuild (which occurs automatically for slot
operator := deps), upgraded, or by emerge --depclean (which removes
unneeded packages).

> 
> Many thanks!
> Michael
>
-- 
Thanks,
Zac



signature.asc
Description: OpenPGP digital signature


[gentoo-portage-dev] precisions on installed packages' dependencies

2020-03-22 Thread michael . lienhardt
Dear all,

Still in the process of improving my solver (and make it a usable tool), I need 
to have a better idea on how installed packages should be managed.
I didn't find anything on that topic in the PMS (if I've missed it, I'm sorry).
Could you confirm/correct my following understanding:
 1. installed packages that are still in the portage tree can be 
unmerged/updated without any restriction (as specified in their .ebuild)
 2. installed packages that are not in the portage tree can only be kept as is 
or unmerged
 3. before removing a library, "ebuild unmerge" always checks if it is used by 
another package: this means that installed packages' dependencies are never 
broken.

Many thanks!
Michael



[gentoo-dev] Automated Package Removal and Addition Tracker, for the week ending 2020-03-22 23:59 UTC

2020-03-22 Thread Robin H. Johnson
The attached list notes all of the packages that were added or removed
from the tree, for the week ending 2020-03-22 23:59 UTC.

Removals:
app-admin/bcfg2 20200319-08:22 zlogene4bcec5e7410
app-antivirus/skyldav   20200319-07:13 zlogenea52e33ae054
app-backup/tob  20200322-06:09 mgorny 1d5c5ecb0c2
app-editors/nvi 20200318-08:50 zlogene75903d61165
app-misc/pysmssend  20200320-20:30 asturm fd89fe656fc
app-misc/tails-installer20200319-08:15 zlogeneda5688379fa
app-mobilephone/pysms   20200320-20:30 asturm e3ed4015462
app-portage/porthole20200319-07:42 zlogene513d7425f5a
app-text/openlp 20200319-08:24 zlogene64c7a75cfcc
dev-python/asciitable   20200319-07:36 zlogenededcb962325
dev-python/gnuplot-py   20200319-07:44 zlogene5862e0c0c1e
dev-python/Kivy 20200319-07:09 zlogene8706c49730a
dev-python/tlslite  20200321-09:45 zlogene28adac52a58
games-rpg/arx-fatalis-data  20200319-07:15 zlogene5b5ee29fef0
games-rpg/arx-fatalis-demo  20200319-07:15 zlogene5b5ee29fef0
games-rpg/arx-libertatis20200319-07:15 zlogene5b5ee29fef0
games-strategy/lightyears   20200319-07:25 zlogene77e425995f5
games-strategy/outerspace   20200319-07:28 zlogene8efc20cfd27
kde-misc/kwebkitpart20200316-21:37 asturm 0247372bba7
media-gfx/comix 20200322-21:47 asturm 6edf77dba39
media-gfx/cropgui   20200322-06:11 mgorny c5bb261dd6d
media-gfx/greycstoration20200319-07:33 zlogene6eb48ce074f
media-gfx/mirage20200320-20:35 asturm 4c43f3259bc
media-sound/pympd   20200320-20:28 asturm ae181fe257e
media-sound/volti   20200320-20:27 asturm d05ab6438ad
net-analyzer/icinga 20200317-06:30 prometheanfire d4e5a319c2f
net-analyzer/icinga-web 20200317-06:30 prometheanfire d4e5a319c2f
net-libs/gupnp-ui   20200322-06:12 mgorny ee00b80d356
net-p2p/soulseek-qt 20200319-07:22 zlogene739b454de42
net-proxy/http-replicator   20200319-07:37 zlogenef8c30fbcc4a
net-wireless/wifi-radar 20200320-20:31 asturm dbb09ac7ac5
sci-geosciences/tappy   20200319-07:40 zlogene21aac68f9c1
x11-misc/driconf20200320-20:32 asturm 4e1983094cd

Additions:
acct-group/abrt 20200318-21:05 mattst88   c3e437ab789
acct-user/abrt  20200318-21:04 mattst88   96f40993940
app-emacs/meson-mode20200318-16:01 marecki0ce50198ccb
app-eselect/eselect-iptables20200320-00:07 chutzpah   43308778fc9
app-i18n/man-pages-l10n 20200320-10:48 ulmf80348d830c
app-office/gnome-todo   20200322-15:30 leio   220fdfdccc1
dev-lang/janet  20200129-06:21 juippis4345a315c0e
dev-python/dbutils  20200318-10:07 juippis22c8df6bf61
dev-python/exam 20200316-01:32 juippis1493ca72a06
dev-python/zconfig  20200316-14:26 juippis4d1bf8f28fc
dev-util/sysdig-kmod20200319-19:42 mgorny de47cd26f3f
dev-util/ydiff  20200318-00:27 sping  4072fa366a5
games-puzzle/gnome2048  20200322-16:08 leio   8fa40edf9f8
net-im/psimedia 20200314-08:34 asturm 91f22183f43
net-im/teams20200317-13:10 dilfridge  bf517ade393
net-libs/kdsoap 20200319-14:33 asturm 0a8dfd35ec5
net-libs/kdsoap-ws-discovery-client 20200319-14:33 asturm 9fe3d8f56e6
sci-libs/brial  20200319-23:36 mjo55ef90fedba
x11-terms/kitty-terminfo20200320-09:59 juippis34a7049bb64

--
Robin Hugh Johnson
Gentoo Linux Developer
E-Mail : robb...@gentoo.org
GnuPG FP   : 11AC BA4F 4778 E3F6 E4ED  F38E B27B 944E 3488 4E85
Removed Packages:
media-gfx/comix,removed,asturm,20200322-21:47,6edf77dba39
net-libs/gupnp-ui,removed,mgorny,20200322-06:12,ee00b80d356
media-gfx/cropgui,removed,mgorny,20200322-06:11,c5bb261dd6d
app-backup/tob,removed,mgorny,20200322-06:09,1d5c5ecb0c2
dev-python/tlslite,removed,zlogene,20200321-09:45,28adac52a58
media-gfx/mirage,removed,asturm,20200320-20:35,4c43f3259bc
x11-misc/driconf,removed,asturm,20200320-20:32,4e1983094cd
net-wireless/wifi-radar,removed,asturm,20200320-20:31,dbb09ac7ac5
app-misc/pysmssend,removed,asturm,20200320-20:30,fd89fe656fc
app-mobilephone/pysms,removed,asturm,20200320-20:30,e3ed4015462
media-sound/pympd,removed

[gentoo-dev] Last-rites: media-video/gtk-recordmydesktop

2020-03-22 Thread Andreas Sturmlechner
# Andreas Sturmlechner  (2020-03-22)
# Unmaintained revdep on dev-python/pygtk blocking its removal, py2-only
# Bug #710172, masked for removal in 30 days.
media-video/gtk-recordmydesktop





[gentoo-dev] Last-rites: media-video/pymp

2020-03-22 Thread Andreas Sturmlechner
# Andreas Sturmlechner  (2020-03-22)
# Unmaintained revdep on dev-python/pygtk blocking its removal, py2-only
# Bug #708164, masked for removal in 30 days.
media-video/pymp





[gentoo-dev] Last-rites: x11-misc/xplanetFX

2020-03-22 Thread Andreas Sturmlechner
# Andreas Sturmlechner  (2020-03-22)
# Unmaintained revdep on dev-python/pygtk blocking its removal, py2-only
# No signs of porting work, bug #708076, masked for removal in 30 days.
x11-misc/xplanetFX





[gentoo-portage-dev] [PATCH] _hide_url_passwd: replace all occurrences (bug 713726)

2020-03-22 Thread Zac Medico
Adjust the regular expression to avoid overly-greedy .+ groups,
so that is will properly replace all occurrences, as necessary
for the purposes of bug 713726 since PORTAGE_BINHOST may contain
multiple values.

Bug: https://bugs.gentoo.org/713726
Signed-off-by: Zac Medico 
---
 lib/portage/package/ebuild/fetch.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/portage/package/ebuild/fetch.py 
b/lib/portage/package/ebuild/fetch.py
index f7984130f..28e7caf53 100644
--- a/lib/portage/package/ebuild/fetch.py
+++ b/lib/portage/package/ebuild/fetch.py
@@ -67,7 +67,7 @@ _userpriv_spawn_kwargs = (
 )
 
 def _hide_url_passwd(url):
-   return re.sub(r'//(.+):.+@(.+)', r'//\1:*password*@\2', url)
+   return re.sub(r'//([^:\s]+):[^@\s]+@', r'//\1:*password*@', url)
 
 
 def _want_userfetch(settings):
-- 
2.24.1




[gentoo-portage-dev] Re: [PATCH] _post_phase_userpriv_perms: handle $HOME (bug 713100)

2020-03-22 Thread Zac Medico
Please ignor this accidental re-send, it is identical to this previous send:

https://archives.gentoo.org/gentoo-portage-dev/message/a6cb4527a2aa29c3aafccc17d91b44e5

On 3/22/20 12:56 PM, Zac Medico wrote:
> Ensure that the userpriv UID has appropriate permission for files
> created in $HOME during privileged phases like pkg_setup, in the
> same way as for $T. This prevents potential permission issues for
> programs invoked during unprivileged phases, and it improves
> alignment with PMS which specifies identical behavior for both
> $HOME and $T.
> 
> Bug: https://bugs.gentoo.org/713100
> Signed-off-by: Zac Medico 
> ---
>  lib/portage/package/ebuild/doebuild.py | 7 ---
>  1 file changed, 4 insertions(+), 3 deletions(-)
> 
> diff --git a/lib/portage/package/ebuild/doebuild.py 
> b/lib/portage/package/ebuild/doebuild.py
> index 75fcb8a51..2bff94cb1 100644
> --- a/lib/portage/package/ebuild/doebuild.py
> +++ b/lib/portage/package/ebuild/doebuild.py
> @@ -1765,9 +1765,10 @@ def _post_phase_userpriv_perms(mysettings):
>   if "userpriv" in mysettings.features and secpass >= 2:
>   """ Privileged phases may have left files that need to be made
>   writable to a less privileged user."""
> - apply_recursive_permissions(mysettings["T"],
> - uid=portage_uid, gid=portage_gid, dirmode=0o700, 
> dirmask=0,
> - filemode=0o600, filemask=0)
> + for path in (mysettings["HOME"], mysettings["T"]):
> + apply_recursive_permissions(path,
> + uid=portage_uid, gid=portage_gid, 
> dirmode=0o700, dirmask=0,
> + filemode=0o600, filemask=0)
>  
>  
>  def _check_build_log(mysettings, out=None):
> 


-- 
Thanks,
Zac



signature.asc
Description: OpenPGP digital signature


[gentoo-portage-dev] [PATCH] emerge --info: Filter variables for credentials

2020-03-22 Thread Zac Medico
From: "Sam James (sam_c)" 

Closes: https://bugs.gentoo.org/713726
Signed-off-by: Sam James (sam_c) 
Signed-off-by: Zac Medico 
---
 lib/_emerge/actions.py | 4 
 1 file changed, 4 insertions(+)

diff --git a/lib/_emerge/actions.py b/lib/_emerge/actions.py
index 7a39d5ec7..392f98d4d 100644
--- a/lib/_emerge/actions.py
+++ b/lib/_emerge/actions.py
@@ -56,6 +56,7 @@ bad = create_color_func("BAD")
 warn = create_color_func("WARN")
 from portage.package.ebuild._ipc.QueryCommand import QueryCommand
 from portage.package.ebuild.doebuild import _check_temp_dir
+from portage.package.ebuild.fetch import _hide_url_passwd
 from portage._sets import load_default_config, SETPREFIX
 from portage._sets.base import InternalPackageSet
 from portage.util import cmp_sort_key, writemsg, varexpand, \
@@ -1899,6 +1900,9 @@ def action_info(settings, trees, myopts, myfiles):
if default is not None and \
default == v:
continue
+
+   v = _hide_url_passwd(v)
+
append('%s="%s"' % (k, v))
else:
use = set(v.split())
-- 
2.24.1




[gentoo-portage-dev] [PATCH] _post_phase_userpriv_perms: handle $HOME (bug 713100)

2020-03-22 Thread Zac Medico
Ensure that the userpriv UID has appropriate permission for files
created in $HOME during privileged phases like pkg_setup, in the
same way as for $T. This prevents potential permission issues for
programs invoked during unprivileged phases, and it improves
alignment with PMS which specifies identical behavior for both
$HOME and $T.

Bug: https://bugs.gentoo.org/713100
Signed-off-by: Zac Medico 
---
 lib/portage/package/ebuild/doebuild.py | 7 ---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/lib/portage/package/ebuild/doebuild.py 
b/lib/portage/package/ebuild/doebuild.py
index 75fcb8a51..2bff94cb1 100644
--- a/lib/portage/package/ebuild/doebuild.py
+++ b/lib/portage/package/ebuild/doebuild.py
@@ -1765,9 +1765,10 @@ def _post_phase_userpriv_perms(mysettings):
if "userpriv" in mysettings.features and secpass >= 2:
""" Privileged phases may have left files that need to be made
writable to a less privileged user."""
-   apply_recursive_permissions(mysettings["T"],
-   uid=portage_uid, gid=portage_gid, dirmode=0o700, 
dirmask=0,
-   filemode=0o600, filemask=0)
+   for path in (mysettings["HOME"], mysettings["T"]):
+   apply_recursive_permissions(path,
+   uid=portage_uid, gid=portage_gid, 
dirmode=0o700, dirmask=0,
+   filemode=0o600, filemask=0)
 
 
 def _check_build_log(mysettings, out=None):
-- 
2.24.1




Re: [gentoo-dev] reduce load of tinderox' bug reprots to bugs.gentoo.org

2020-03-22 Thread Haelwenn (lanodan) Monnier
[2020-03-22 14:50:25+0100] Toralf Förster:
> I was asked about possible changes of the way how tinderbox detected bugs 
> shall be filed, eg. to reduce the amount of attached files. There were ideas 
> to store eg. logs et al at AWS s3 and use b.g.o. only for the bug report 
> itself.
> 
> I started with the tinderbox being a 1-liner serving my purpose. It grewed up 
> by the needs of other devs. So maybe it is time for changes?
> 
> I do use pybugz to create bugs. Before I do manually check whether it is 
> aalredy reported (yes, this is error prone). Reporting a bug once is my 
> preferred solution. Bercause it is a little bit uncomfortable for me to 
> attach files later manually at individual request.
> 
> I'm open for any opinions / ideas.

I think it might be better to fix bugzilla to be able to send multiple 
attachments at once. AWS S3 might be okay for the long term but I've often seen 
paste services being used and most of them expire in a week/month, so you can 
easily loose the content before it can be read or fixed and absolutely no hope 
to have it be readable if it's an old bug that might have appeared again.



[gentoo-dev] reduce load of tinderox' bug reprots to bugs.gentoo.org

2020-03-22 Thread Toralf Förster
I was asked about possible changes of the way how tinderbox detected bugs shall 
be filed, eg. to reduce the amount of attached files. There were ideas to store 
eg. logs et al at AWS s3 and use b.g.o. only for the bug report itself.

I started with the tinderbox being a 1-liner serving my purpose. It grewed up 
by the needs of other devs. So maybe it is time for changes?

I do use pybugz to create bugs. Before I do manually check whether it is 
aalredy reported (yes, this is error prone). Reporting a bug once is my 
preferred solution. Bercause it is a little bit uncomfortable for me to attach 
files later manually at individual request.

I'm open for any opinions / ideas.

-- 
Toralf
PGP 23217DA7 9B888F45



signature.asc
Description: OpenPGP digital signature