Bug 7329 - iurt asks for password and fails to report its version
Summary: iurt asks for password and fails to report its version
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Thierry Vignaud
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-03 22:25 CEST by Barry Jackson
Modified: 2012-09-12 18:30 CEST (History)
1 user (show)

See Also:
Source RPM: iurt-0.6.9-1.mga3.src.rpm
CVE:
Status comment:


Attachments
fix (462 bytes, patch)
2012-09-12 15:54 CEST, Thierry Vignaud
Details | Diff

Description Barry Jackson 2012-09-03 22:25:37 CEST
Description of problem:
Since last update iurt asks for user password after installing BRs.
Hitting CTRL/c at the prompt allows the build to continue without a password.
------------------snip------------------------
D: [iurt_root_command] Bind mounting
D: [iurt_root_command] Success!
[sudo] password for baz: 
sudo: pam_authenticate: Application needs to call libpam again
[iurt] [iurt] Failed to mount /dev/shm
D: [iurt] [iurt] creating user baz in chroot
D: [iurt_root_command] Running iurt_root_command --useradd /home/baz/chroot_tmp/baz/chroot_cauldron.x86_64.0.20120903193921 baz 500
D: [iurt_root_command] Useradd
D: [iurt_root_command] Success!
D: [iurt_root_command] Running iurt_root_command --cp /tmp/rpmmacros /home/baz/chroot_tmp/baz/chroot_cauldron.x86_64.0.20120903193921/home/b...

----------------------snip------------------

It also reports:-
*: [iurt] This is iurt revision $Rev$-$Author$ ($Date$)

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

[baz@jackodesktop harbour]$ rpm -q iurt
iurt-0.6.9-1.mga3


How reproducible:
Always

Steps to Reproduce:
1. Build srpm locally using iurt with local repo using e.g. command:-
LC_ALL=C iurt -r cauldron x86_64 cutecw-1.0-1.mga2.src.rpm

My .iurt.cauldron.conf :-

{
 supported_arch => [ 'i586', 'x86_64' ],
 all_media => { 'core' => [ 'release' ], 'nonfree' => [ 'release' ], 'tainted' => [ 'release' ] },
 base_media => [ 'core/release' ],
 local_home => "/home/baz/build",
 home => "/home/baz/iurt",
 upload => "/home/baz",
 local_upload => "/home/baz/iurt_uploads",
 repository => '/repo/pub/linux/Mageia/distrib',
 admin => 'baz@mageia.org',
 sendmail => 0,
 packager => 'Iurt the rebuild bot <baz@mageia.org>',
}
Manuel Hiebel 2012-09-04 16:29:41 CEST

Assignee: bugsquad => pterjan
Source RPM: ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia/distrib/cauldron/SRPMS/core/release/iurt-0.6.9-1.mga3.src.rpm => iurt-0.6.9-1.mga3.src.rpm

Thierry Vignaud 2012-09-12 15:47:51 CEST

Status: NEW => ASSIGNED
CC: (none) => thierry.vignaud
Assignee: pterjan => thierry.vignaud

Comment 1 Thierry Vignaud 2012-09-12 15:54:51 CEST
Created attachment 2790 [details]
fix

Does it work better with that patch?
(to apply in /usr/lib/perl5/vendor_perl/5.16.1/)
Comment 2 Barry Jackson 2012-09-12 16:45:34 CEST
Yes, thanks :)

There is an error, but it no longer stops for password and the build completes without intervention :-

-----------------snip--------------------
+ LC_ALL=C
+ iurt -r cauldron x86_64 harbour-3.0.0-4.mga3.src.rpm
*: [iurt] This is iurt revision $Rev$-$Author$ ($Date$)          <======= ???
D: [iurt] [iurt] load config: /home/baz/.iurt.cauldron.conf

------------------snip-------------------
D: [iurt_root_command] Running iurt_root_command --bindmount /dev/pts /home/baz/chroot_tmp/baz/chroot_cauldron.x86_64.0.20120912142918/dev/pts
D: [iurt_root_command] Bind mounting
D: [iurt_root_command] Success!
D: [iurt_root_command] Running iurt_root_command --bindmount /dev/shm /home/baz/chroot_tmp/baz/chroot_cauldron.x86_64.0.20120912142918/dev/shm
D: [iurt_root_command] Bind mounting
mount: /home/baz/chroot_tmp/baz/chroot_cauldron.x86_64.0.20120912142918/dev/shm is busy
I: [iurt_root_command] ERROR: Bind mounting
[iurt] [iurt] Failed to mount /dev/shm                       <=========########
D: [iurt] [iurt] creating user baz in chroot
D: [iurt_root_command] Running iurt_root_command --useradd /home/baz/chroot_tmp/baz/chroot_cauldron.x86_64.0.20120912142918 baz 500
D: [iurt_root_command] Useradd
D: [iurt_root_command] Success!
D: [iurt_root_command] Running iurt_root_command --cp /tmp/rpmmacros /home/baz/chroot_tmp/baz/chroot_cauldron.x86_64.0.20120912142918/home/b...
D: [iurt_root_command] Copying files
D: [iurt_root_command] copying /tmp/rpmmacros -> /home/baz/chroot_tmp/baz/chroot_cauldron.x86_64.0.20120912142918/home/baz/.rpmmacros
D: [iurt_root_command] Success!
N: [iurt] [iurt] recreate srpm: harbour-3.0.0-4.mga3.src.rpm
----------------snip--------------

Also /OT 
Is there any way to enable tainted repos for local iurt builds - I have asked many times on IRC but nobody knows :(
Comment 3 Thierry Vignaud 2012-09-12 18:30:18 CEST
Closing then

Status: ASSIGNED => RESOLVED
Resolution: (none) => FIXED


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