Richard Siddall
2007-12-21 02:08:54 UTC
I know there's a general prohibition on RPMs requiring user input so
that they can be installed unattended. Does the same rule apply to spec
files, so that RPMs can be built unattended?
(I'm asking because I noticed that the programs I'm using to make RPMs
from Perl modules don't do anything with standard input when executing
"perl Makefile.PL" and some of the makefiles ask for input. You can get
a rather interesting infinite loop if you add a "< /dev/null" to the end
of the perl Makefile.PL line and then try building some modules on a
machine on which cpan has not been configured and some of the mandatory
prerequisite Perl modules have not been installed. ;>)
I guess I'm actually asking if Perl module spec files should use
perl Makefile.PL < /dev/null
instead of just
perl Makefile.PL
Regards,
Richard.
that they can be installed unattended. Does the same rule apply to spec
files, so that RPMs can be built unattended?
(I'm asking because I noticed that the programs I'm using to make RPMs
from Perl modules don't do anything with standard input when executing
"perl Makefile.PL" and some of the makefiles ask for input. You can get
a rather interesting infinite loop if you add a "< /dev/null" to the end
of the perl Makefile.PL line and then try building some modules on a
machine on which cpan has not been configured and some of the mandatory
prerequisite Perl modules have not been installed. ;>)
I guess I'm actually asking if Perl module spec files should use
perl Makefile.PL < /dev/null
instead of just
perl Makefile.PL
Regards,
Richard.