Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 787563 - sys-apps/portage: ebuild-ipc could handle KeyboardInterrupt
Summary: sys-apps/portage: ebuild-ipc could handle KeyboardInterrupt
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 785484
  Show dependency tree
 
Reported: 2021-05-01 22:16 UTC by Zac Medico
Modified: 2021-07-05 01:40 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Zac Medico gentoo-dev 2021-05-01 22:16:54 UTC
I was testing a fix for bug 787545 and I found this unhandled KeyboardInterrupt in ebuild-ipc:


> Would you like to merge these packages? [Yes/No] Yes                                                                                                                                          
> >>> Running pre-merge checks for acct-group/gluster-0                                                                                                                                         
> ^C                                                                                                                                                                                            
>                                                                                                                                                                                               
> Exiting on signal 2                                                                                                                                                                           
> Traceback (most recent call last):                                                                                                                                                            
>   File "/usr/lib/portage/python3.8/ebuild-ipc.py", line 44, in <module>                                             
>     import portage                                                                                                                                                                            
>   File "/usr/lib/python3.8/site-packages/portage/__init__.py", line 12, in <module>                                           import asyncio                                                                                                                                                                            
>   File "/usr/lib/python3.8/asyncio/__init__.py", line 8, in <module>                                                                                                                          
>     from .base_events import *                                                                                                                                                                
>   File "/usr/lib/python3.8/asyncio/base_events.py", line 23, in <module>                                                                                                                      
>     import socket                                                                                                                                                                             
>   File "/usr/lib/python3.8/socket.py", line 52, in <module>                                                                                                                                   
>     import os, sys, io, selectors                                                                                                                                                             
>   File "/usr/lib/python3.8/selectors.py", line 60, in <module>                                                                                                                                
>     class _SelectorMapping(Mapping):                                                                                                                                                          
> KeyboardInterrupt
Comment 1 Larry the Git Cow gentoo-dev 2021-05-01 23:25:12 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/portage.git/commit/?id=3b518fe224c6b6006eeadf4fe929325ab5cc5c6a

commit 3b518fe224c6b6006eeadf4fe929325ab5cc5c6a
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2021-05-01 23:01:24 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2021-05-01 23:18:00 +0000

    ebuild-ipc: silently handle KeyboardInterrupt
    
    Bug: https://bugs.gentoo.org/787563
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 bin/ebuild-ipc.py | 20 +++++++++++++++++---
 1 file changed, 17 insertions(+), 3 deletions(-)
Comment 2 Larry the Git Cow gentoo-dev 2021-05-24 09:05:14 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cba21902d9a8d1ac07d2ff5b0d932e71fc1fac67

commit cba21902d9a8d1ac07d2ff5b0d932e71fc1fac67
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2021-05-24 07:47:11 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2021-05-24 09:05:08 +0000

    sys-apps/portage: Bump to version 3.0.19
    
     #520378: allow emerge --fetchonly to log to emerge-fetch.log
     #698244: portage(5) document user patch / eapply_user
     #781854: Suggest PORTAGE_LOG_FILTER_FILE_CMD cat fallback
     #782724: sort emerge --unmerge order for determinism
     #783957: lazily evaluate cnf_* variables in tests
     #784566: make emerge insensitive to relative order of optional
                      and positional arguments
     #787545: emerge CTRL C may be ignored when running pkg_pretend
     #787563: ebuild-ipc could handle KeyboardInterrupt
     #788967: emerge --jobs= triggers TypeError
    
    Bug: https://bugs.gentoo.org/785484
    Bug: https://bugs.gentoo.org/788967
    Bug: https://bugs.gentoo.org/787563
    Bug: https://bugs.gentoo.org/787545
    Bug: https://bugs.gentoo.org/784566
    Bug: https://bugs.gentoo.org/783957
    Bug: https://bugs.gentoo.org/782724
    Bug: https://bugs.gentoo.org/781854
    Bug: https://bugs.gentoo.org/698244
    Bug: https://bugs.gentoo.org/520378
    Package-Manager: Portage-3.0.18, Repoman-3.0.3
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 sys-apps/portage/Manifest              |   1 +
 sys-apps/portage/portage-3.0.19.ebuild | 266 +++++++++++++++++++++++++++++++++
 2 files changed, 267 insertions(+)