Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 947282 - sys-apps/portage-9999: "stty: 'standard input': Inappropriate ioctl for device" when piped into after 3e3bb8e
Summary: sys-apps/portage-9999: "stty: 'standard input': Inappropriate ioctl for devic...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: Low normal
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS, REGRESSION
Depends on:
Blocks:
 
Reported: 2024-12-31 18:44 UTC by Alfred Wingate
Modified: 2025-01-01 00:37 UTC (History)
1 user (show)

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


Attachments
emerge --info (emerge--info.txt,22.85 KB, text/plain)
2024-12-31 18:44 UTC, Alfred Wingate
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alfred Wingate 2024-12-31 18:44:11 UTC
Created attachment 915616 [details]
emerge --info

After:
$ EMERGE_DEFAULT_OPTS="" echo "portage" | xargs emerge -p
stty: 'standard input': Inappropriate ioctl for device

These are the packages that would be merged, in order:

Calculating dependencies                                    ... done!
Dependency resolution took 3.45 s (backtrack: 0/20).

[ebuild   R   *] sys-apps/portage-9999::gentoo  USE="gentoo-dev (ipc) native-extensions rsync-verify xattr -apidoc -build -doc (-selinux) -test" PYTHON_TARGETS="pypy3 python3_12 python3_13 -python3_10 -python3_11" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB
stty: 'standard input': Inappropriate ioctl for device
$ emerge --version
Portage 3.0.66.1-30+g3e3bb8e67 (python 3.10.14-final-0, default/linux/amd64/23.0/split-usr/desktop/plasma, gcc-14, glibc-2.40-r7, 6.12.7-xanmod1-dist x86_64)


Before:
$ EMERGE_DEFAULT_OPTS="" echo "portage" | xargs emerge -p

These are the packages that would be merged, in order:

Calculating dependencies                                 ... done!
Dependency resolution took 3.32 s (backtrack: 0/20).

[ebuild   R   *] sys-apps/portage-9999::gentoo  USE="gentoo-dev (ipc) native-extensions rsync-verify xattr -apidoc -build -doc (-selinux) -test" PYTHON_TARGETS="pypy3 python3_12 python3_13 -python3_10 -python3_11" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB
$ emerge --version
Portage 3.0.66.1-29+gfe226b634 (python 3.10.14-final-0, default/linux/amd64/23.0/split-usr/desktop/plasma, gcc-14, glibc-2.40-r7, 6.12.7-xanmod1-dist x86_64)
Comment 1 Larry the Git Cow gentoo-dev 2025-01-01 00:33:27 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/portage.git/commit/?id=33dac2db0fbbe4bafc2343978f969a0f41f0d200

commit 33dac2db0fbbe4bafc2343978f969a0f41f0d200
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2025-01-01 00:26:51 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2025-01-01 00:32:21 +0000

    get_term_size: Use curses if stdin is not a tty
    
    Use curses if stdin is not a tty, since stty fails in this case
    with the following error:
    
    stty: 'standard input': Inappropriate ioctl for device
    
    Bug: https://bugs.gentoo.org/947282
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 lib/portage/output.py | 12 ++++++++++++
 1 file changed, 12 insertions(+)