Bug 13318 - iurt --stop option fails to drop to shell
Summary: iurt --stop option fails to drop to shell
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Pascal Terjan
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-04 20:43 CEST by Barry Jackson
Modified: 2014-05-06 08:02 CEST (History)
1 user (show)

See Also:
Source RPM: iurt-0.6.21-1.mga5.src.rpm
CVE:
Status comment:


Attachments

Description Barry Jackson 2014-05-04 20:43:58 CEST
Description of problem:
This works fine in Mga4 (0.6.19) but does not drop to a shell in 0.6.21 (Cauldron).

I have re-built 0.6.20 to test and the problem is there too, so this issue seems to have been introduced in 0.6.20.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.


Reproducible: 

Steps to Reproduce:
Comment 1 Barry Jackson 2014-05-04 21:32:12 CEST
I have also confirmed that 0.6.19 works correctly when 'built' and installed in Cauldron, so it's not related to some other Cauldron influence.
Comment 2 Pascal Terjan 2014-05-04 22:22:00 CEST
http://gitweb.mageia.org/software/build-system/iurt/commit/?id=aea924246095908aa19549832982625c19e7c766 is probably a problem (I didn't know --stop so only handle --shell).
Comment 3 Mageia Robot 2014-05-04 22:40:21 CEST
commit 7224b1f59c5650d19fb6601585f211348fc3a79b
Author: Pascal Terjan <pterjan@...>
Date:   Sun May 4 20:34:03 2014 +0000

    Don't close stdin if --stop is used (mga#13318)
---
 Commit Link:
   http://gitweb.mageia.org/software/build-system/iurt/commit/?id=7224b1f59c5650d19fb6601585f211348fc3a79b
Comment 4 Pascal Terjan 2014-05-04 23:19:01 CEST
It seems to sort of work:

I: [iurt] [iurt] dumping to a chrooted shell into /home/pterjan/build/chroot_tmp/pterjan/chroot_cauldron.x86_64.0.20140504211747 (pid 53113)
D: [iurt_root_command] chroot
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
[iurt cauldron] pterjanchopin~$ ls
rpmbuild/  tmp/
[iurt cauldron] pterjanchopin~$ exit
D: [iurt_root_command] Success!
Comment 5 Barry Jackson 2014-05-05 00:32:30 CEST
Great - that is now the same as 0.6.19 below :)

I: [iurt] [iurt] dumping to a chrooted shell into /home/baz/chroot_tmp/baz/chroot_cauldron.x86_64.0.20140504222106 (pid 28464)
D: [iurt_root_command] chroot
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
[iurt cauldron] bazjackodesktop~$ ls
rpmbuild/  tmp/
[iurt cauldron] bazjackodesktop~$ exit
exit
D: [iurt_root_command] Success!
Comment 6 Thierry Vignaud 2014-05-06 08:02:44 CEST
Closing then

Status: NEW => RESOLVED
CC: (none) => thierry.vignaud
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.