#1 possible to build both Perl 5.8 and Perl 5.6.1 binary rpms?

closed
nobody
None
5
2003-11-17
2003-09-29
Tom O'Brien
No

We're using cpan2rpm to build rpms for a number of
Perl modules. It's been working very well, but I have
one confusion/problem.

We're building both SRPMs and RPMs on a build
machine (which currently has Perl 5.6.1 installed). I can
use rpmbuild --rebuild on the SRPMs to install the
modules correctly on machines that may be running
Perl 5.8.0 or Perl 5.6.1.

However doing an rpmbuild is noisy--I'd much rather
generate Perl 5.8.0 specific RPMs on our build machine,
and install the correct RPMs depending on which version
of Perl was installed.

Is it possible to generate two different sets of binary
RPMs from one build machine? I'm certainly open to
installing Perl 5.8 on my build machine!

Thanks
Tom.

Discussion

  • Erick Calder
    Erick Calder
    2003-11-17

    Logged In: YES
    user_id=575496

    Tom,

    I suppose you could make a copy of cpan2rpm and edit the
    first line to point to some other installation of perl e.g.

    # head -1 /usr/bin/cpan2rpm
    #!/usr/bin/perl

    # head -1 ~/cpan2rpm
    #!/usr/local/bin/perl

    where /usr/bin contains the 5.6.1 and /usr/local/bin the 5.8.0

    I haven't tried it myself but if it works, let me know and I'll
    document it!

    - ekkis

     
  • Erick Calder
    Erick Calder
    2003-11-17

    • status: open --> closed
     
  • Erick Calder
    Erick Calder
    2003-11-17

    Logged In: YES
    user_id=575496

    you could alternatively just do:

    # /usr/bin/perl /usr/bin/cpan2rpm [args]

    and

    # /usr/local/bin/perl /usr/bin/cpan2rpm [args]

     
  • Tom O'Brien
    Tom O'Brien
    2003-11-17

    Logged In: YES
    user_id=466903

    thanks for the suggestion...I'll try no. 2 when I get a chance.