[Bug 1026350] New: Terminal properties no longer available within build environment
http://bugzilla.opensuse.org/show_bug.cgi?id=1026350 Bug ID: 1026350 Summary: Terminal properties no longer available within build environment Classification: openSUSE Product: openSUSE.org Version: unspecified Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: BuildService Assignee: bnc-team-screening@forge.provo.novell.com Reporter: seroton10@gmail.com QA Contact: adrian@suse.com Found By: --- Blocker: --- An OBS build process that tries to access properties of the terminal on which it is running fails. As a specific example, if the .spec file executes "stty size" it fails with the error message "stty: 'standard input': Inappropriate ioctl for device" instead of obtaining the number of lines and columns. I have set up a test project in OBS to demonstrate the problem: https://build.opensuse.org/package/show/home:oreinert/buildtest -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1026350 Olav Reinert <seroton10@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- URL| |https://build.opensuse.org/ | |package/show/home:oreinert/ | |buildtest -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1026350 http://bugzilla.opensuse.org/show_bug.cgi?id=1026350#c1 --- Comment #1 from Olav Reinert <seroton10@gmail.com> --- Created attachment 714961 --> http://bugzilla.opensuse.org/attachment.cgi?id=714961&action=edit Log file demonstrating that this bug is a regression The devel:tools/bats project relies on accessing terminal properties during the build: The .spec file has a %check section which runs unit tests, and it accesses the column count using the ncurses utility "tput cols". The attached log file demonstrates that the build works on Leap_42.2. The tests used to work fine in all environments, but lately they have started to fail for Factory-like distributions. For the Leap distros, the build works because "tput cols" happens to work there. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1026350 http://bugzilla.opensuse.org/show_bug.cgi?id=1026350#c2 --- Comment #2 from Olav Reinert <seroton10@gmail.com> --- As my buildtest project shows, "stty size" fails for all distros. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1026350 Olav Reinert <seroton10@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Terminal properties no |Terminal properties not |longer available within |available within build |build environment |process -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1026350 http://bugzilla.opensuse.org/show_bug.cgi?id=1026350#c4 --- Comment #4 from Olav Reinert <seroton10@gmail.com> --- Created attachment 715501 --> http://bugzilla.opensuse.org/attachment.cgi?id=715501&action=edit An RPM spec file to demonstrate the bug -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1026350 http://bugzilla.opensuse.org/show_bug.cgi?id=1026350#c6 --- Comment #6 from Olav Reinert <seroton10@gmail.com> --- (In reply to Chenzi Cao from comment #5)
Hi Olav, it looks like you have fixed this issue, so I assign it to you now. If I get wrong, please feel free to reassign thanks.
No, I didn't fix the bug, I just implemented a simple work-around in the bats project. The basic problem still exists, as demonstrated by my test project (linked to in the original description). -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1026350 Olav Reinert <seroton10@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|seroton10@gmail.com |chcao@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1026350 http://bugzilla.opensuse.org/show_bug.cgi?id=1026350#c7 --- Comment #7 from Olav Reinert <seroton10@gmail.com> --- At the very least, I would expect OBS to define what terminal properties are available (or not) within the environment performing a build. To my knowledge (which is limited), this isn't defined anywhere. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com