Module::AutoInstall should assume N without terminal or fail

Bug #327917 reported by Elan Ruusamäe on 2009-02-11
4
Affects Status Importance Assigned to Milestone
PLD Linux
Undecided
Unassigned

Bug Description

installing modules from CPAN during terminalless build is nothing good. it will never receive input and thus block our builders:

Executing(%build): /bin/sh -e /tmp/B.3b4888/rpm-tmp.64990
+ umask 022
+ cd /home/users/builder/rpm/BUILD
+ cd Nagios-Plugins-Memcached-0.02
+ /usr/bin/perl Makefile.PL INSTALLDIRS=vendor
*** Module::AutoInstall version 1.03
*** Checking for Perl dependencies...
[Core Features]
- Carp::Clan ...loaded. (5.3)
- Cache::Memcached ...missing.
- FindBin ...loaded. (1.47)
- Nagios::Plugin ...loaded. (0.31)
- Time::HiRes ...loaded. (1.86)
==> Auto-install the 1 mandatory module(s) from CPAN? [Y/n] y
We have to reconfigure CPAN.pm due to following uninitialized parameters:

cpan_home, keep_source_where, build_dir, build_cache, scan_cache, index_expire, gzip, tar, unzip, make, pager, makepl_arg, make_arg, make_install_arg, urllist, inhibit_startup_message,
 ftp_proxy, http_proxy, no_proxy, prerequisites_policy, cache_metadata

/home/users/builder/.cpan/CPAN/MyConfig.pm initialized.

....

(1) Africa
(2) Asia
(3) Central America
(4) Europe
(5) North America
(6) Oceania
(7) South America
Select your continent (or several nearby continents) []
Sorry! since you don't have any existing picks, you must make a
geographic selection.

(1) Africa
(2) Asia
(3) Central America
(4) Europe
(5) North America
(6) Oceania
(7) South America
Select your continent (or several nearby continents) []
Sorry! since you don't have any existing picks, you must make a
geographic selection.

(1) Africa
(2) Asia
(3) Central America
(4) Europe
(5) North America
(6) Oceania
(7) South America
Select your continent (or several nearby continents) []
Sorry! since you don't have any existing picks, you must make a
geographic selection.

[infinitive loop]

Elan Ruusamäe (glen666) wrote :

ah yes. this too:

[builder@syriusz builder]$ ls -lh /home/builder/builder/pld-builder.new/spool/builds/2a21d66c-09d4-4c72-8c86-cd809b94f9c5/nagios-plugin-check_memcached.spec.log
-rw-r--r-- 1 builder users 2.0G Feb 10 14:15 /home/builder/builder/pld-builder.new/spool/builds/2a21d66c-09d4-4c72-8c86-cd809b94f9c5/nagios-plugin-check_memcached.spec.log

Elan Ruusamäe (glen666) wrote :

as the Module::AutoInstall is most likely included and used from bundled tarball of CPAN package, we should use:

 %build
 %{__perl} Makefile.PL \
+ --skipdeps \
     INSTALLDIRS=vendor
 %{__make}

Elan Ruusamäe (glen666) wrote :

more crying:

[builderac@aksjomat builderac]$ ls -lh /mnt/Disk2/builderac/pld-builder.new/spool/builds/deda9cb9-8408-4329-8e66-09744b9a9610/nagios-plugin-check_memcached.spec.log
-rw-r--r-- 1 builderac users 16G Feb 11 06:54 /mnt/Disk2/builderac/pld-builder.new/spool/builds/deda9cb9-8408-4329-8e66-09744b9a9610/nagios-plugin-check_memcached.spec.log
[builderac@aksjomat builderac]$

[builderac@aksjomat builderac]$ ls -lh /mnt/Disk2/builderac/pld-builder.new/spool/builds/2865d22c-c3dd-4198-85c4-cfd4087f732f/nagios-plugin-check_memcached.spec.log
-rw-r--r-- 1 builderac users 15G Feb 11 07:37 /mnt/Disk2/builderac/pld-builder.new/spool/builds/2865d22c-c3dd-4198-85c4-cfd4087f732f/nagios-plugin-check_memcached.spec.log

[builderac@aksjomat builderac]$ ls -lh /mnt/Disk2/builderac/pld-builder.new/spool/builds/bb4fdde7-1879-48dd-bfa7-71c1ba1e8c31/nagios-plugin-check_memcached.spec.log
-rw-r--r-- 1 builderac users 18G Feb 11 06:54 /mnt/Disk2/builderac/pld-builder.new/spool/builds/bb4fdde7-1879-48dd-bfa7-71c1ba1e8c31/nagios-plugin-check_memcached.spec.log

[builderac@aksjomat builderac]$ ls -lh /mnt/Disk2/builderac/pld-builder.new/spool/builds/6f508aee-10f8-47b5-89d2-259bac9cb695/nagios-plugin-check_memcached.spec.log
-rw-r--r-- 1 builderac users 15G Feb 11 06:54 /mnt/Disk2/builderac/pld-builder.new/spool/builds/6f508aee-10f8-47b5-89d2-259bac9cb695/nagios-plugin-check_memcached.spec.log

Upstream rejected with WONTFIX: https://rt.cpan.org/Public/Bug/Display.html?id=43195
...but the issue still remains.

Changed in pld-linux:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.