Ticket #4676: perl-new.patch

File perl-new.patch, 3.6 KB (added by thomas, 4 years ago)

New dir structure for Perl

  • packages.ent

    diff -x appendices -x '*.tar.*' -x .svn -x stylesheets -x make-diff -x update.sh -x '*.ods' -Naur ../../trunk/BOOK/packages.ent ./packages.ent
    old new  
    553553<!ENTITY patch-fin-du "12 MB">
    554554<!ENTITY patch-fin-sbu "0.2 SBU">
    555555
    556 <!ENTITY perl-version "5.30.3">
     556<!ENTITY perl-version-major "5">
     557<!ENTITY perl-version-minor "30">
     558<!ENTITY perl-version-patch "3">
     559<!ENTITY perl-version-min "&perl-version-major;.&perl-version-minor;">
     560<!ENTITY perl-version "&perl-version-major;.&perl-version-minor;.&perl-version-patch;">
    557561<!ENTITY perl-size "12,088 KB">
    558562<!ENTITY perl-url "https://www.cpan.org/src/5.0/perl-&perl-version;.tar.xz">
    559563<!ENTITY perl-md5 "0af2ab0f01ec13e37cc13a27de930936">
    560564<!ENTITY perl-home "https://www.perl.org/">
    561565<!ENTITY perl-tmp-du "261 MB">
  • chapter07/perl.xml

    diff -x appendices -x '*.tar.*' -x .svn -x stylesheets -x make-diff -x update.sh -x '*.ods' -Naur ../../trunk/BOOK/chapter07/perl.xml ./chapter07/perl.xml
    old new  
    4545
    4646    <para>Prepare Perl for compilation:</para>
    4747
    48 <screen><userinput remap="configure">sh Configure -des -Dprefix=/usr</userinput></screen>
     48    <screen><userinput remap="configure">sh Configure -des -Dprefix=/usr \
     49             -Dvendorprefix=/usr           \
     50             -Dprivlib=/usr/share/perl5/core_perl \
     51             -Darchlib=/usr/lib/perl5/&perl-version-min;/core_perl \
     52             -Dsitelib=/usr/share/perl5/site_perl \
     53             -Dsitearch=/usr/lib/perl5/&perl-version-min;/site_perl \
     54             -Dvendorlib=/usr/share/perl5/vendor_perl \
     55             -Dvendorarch=/usr/lib/perl5/&perl-version-min;/vendor_perl</userinput></screen>
    4956
    5057    <variablelist>
    5158      <title>The meaning of the new Configure options:</title>
  • chapter08/perl.xml

    diff -x appendices -x '*.tar.*' -x .svn -x stylesheets -x make-diff -x update.sh -x '*.ods' -Naur ../../trunk/BOOK/chapter08/perl.xml ./chapter08/perl.xml
    old new  
    6363
    6464<screen><userinput remap="configure">sh Configure -des -Dprefix=/usr                 \
    6565                  -Dvendorprefix=/usr           \
     66                  -Dprivlib=/usr/share/perl5/core_perl \
     67                  -Darchlib=/usr/lib/perl5/&perl-version-min;/core_perl \
     68                  -Dsitelib=/usr/share/perl5/site_perl \
     69                  -Dsitearch=/usr/lib/perl5/&perl-version-min;/site_perl \
     70                  -Dvendorlib=/usr/share/perl5/vendor_perl \
     71                  -Dvendorarch=/usr/lib/perl5/&perl-version-min;/vendor_perl \
    6672                  -Dman1dir=/usr/share/man/man1 \
    6773                  -Dman3dir=/usr/share/man/man3 \
    6874                  -Dpager="/usr/bin/less -isR"  \
     
    98104        </listitem>
    99105      </varlistentry>
    100106
     107      <varlistentry>
     108        <term><parameter>-Dprivlib,-Darchlib,-Dsitelib,...</parameter></term>
     109        <listitem>
     110          <para>This switches defines where Perl is looking for installed
     111          modules. The LFS editors chose to put them in a directory structure
     112          based on the Major.Minor version of Perl (&perl-version-min;) which
     113          allows upgrading Perl to newer Patch levels (&perl-version;) without
     114          the need to reinstall all of the modules again.</para>
     115        </listitem>
     116      </varlistentry>
     117
    101118      <varlistentry>
    102119        <term><parameter>-Duseshrplib</parameter></term>
    103120        <listitem>