Changeset 8034a2b


Ignore:
Timestamp:
09/24/2021 04:06:17 PM (4 weeks ago)
Author:
Thomas Trepl (Moody) <thomas@…>
Branches:
lazarus
Children:
d2fb261
Parents:
85d9842
Message:

Use fpcbuild package istead of source-only package

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/prog/fpc.xml

    r85d9842 r8034a2b  
    1515  <!ENTITY fpc-bin-i686-bldsize     "x.x MB">
    1616
    17   <!ENTITY fpc-src-dl               "https://mirror.freemirror.org/pub/fpc/dist/&freepascal-version;/source/fpc-&freepascal-version;.source.tar.gz">
    18   <!ENTITY fpc-src-md5sum           "e7649ad0fc9230fdd9493a7fcabbd426">
    19   <!ENTITY fpc-src-size             "49.8 MB">
     17  <!ENTITY fpc-src-dl               "https://mirror.freemirror.org/pub/fpc/dist/&freepascal-version;/source/fpcbuild-&freepascal-version;.tar.gz">
     18  <!ENTITY fpc-src-md5sum           "3681ae4a208be4f64ec65e832a9a702d">
     19  <!ENTITY fpc-src-size             "80.2 MB">
    2020  <!ENTITY fpc-src-bldsize          "x.x MB">
    2121 
     
    2525<!--
    2626  TODO:
     27 
     28  Rebuild itself
    2729     The instructions below does the bootstrap by using a
    2830     binary package to compile the compiler.
     
    247249        rm -rf fpc-&freepascal-bin-version;-x86_64-linux
    248250        ;;
    249 esac</userinput></screen>
     251esac &amp;&amp;
     252export PATH=&fpc-tmp-target;/bin:$PATH</userinput></screen>
    250253
    251254    <para>
     
    254257      can be used to create the compiler and utilities from source.
    255258    </para>
     259
     260    <para>
     261      Fix invalid path for man pages:
     262    </para>
     263
     264<screen><userinput>sed -e "/^INSTALL_MANDIR=/ s;/man;/share/man;" \
     265    -i install/man/Makefile</userinput></screen>
     266
    256267    <para>
    257268      If building on i686 systems (32-bit), a patch is required
     
    259270    </para>
    260271
    261 <screen><userinput>patch -Np1 -i ../fpc-&freepascal-version;-glibc_2.34-1.patch</userinput></screen>
     272<screen><userinput>cd fpcsrc &amp;&amp;
     273patch -Np1 -i ../../fpc-&freepascal-version;-glibc_2.34-1.patch &amp;&amp;
     274cd ..</userinput></screen>
    262275
    263276    <para>
     
    266279    </para>
    267280
    268 <screen><userinput>PATH=&fpc-tmp-target;/bin:$PATH make clean &amp;&amp;
    269 PATH=&fpc-tmp-target;/bin:$PATH make OVERRIDEVERSIONCHECK=1 all</userinput></screen>
     281<screen><userinput>make clean &amp;&amp;
     282make OVERRIDEVERSIONCHECK=1 build</userinput></screen>
    270283   
    271284    <para>
    272285      Install the <application>FreePascal</application> compiler
    273286      and tools by executing the following commands as the
    274       <systemitem class="username">root</systemitem> user:</para>
    275 
    276 <screen role="root"><userinput>PATH=&fpc-tmp-target;/bin:$PATH make -j1 PREFIX=/usr install &amp;&amp;
     287      <systemitem class="username">root</systemitem> user. Make sure
     288      that the temporary compiler is in <envar>PATH</envar>:</para>
     289
     290<screen role="root"><userinput>make -j1 PREFIX=/usr install &amp;&amp;
    277291case "$(uname -m)" in
    278292    i?86)
     
    293307<screen role="root"><userinput>rm -rf /etc/fppkg* &amp;&amp;
    294308rm -rf /etc/fpc.* &amp;&amp;
     309rm -rf $HOME/{.fppkg,.fpc.cfg,.config/fppkg.cfg} &amp;&amp;
    295310rm -rf &fpc-tmp-target;</userinput></screen>
    296311
     312    <para>
     313      You may also want to remove the <filename class="directory">&fpc-tmp-target;</filename>
     314      entry from <envar>PATH</envar> now.
     315    </para>
    297316  </sect2>
    298317
     
    326345    <para>
    327346      It is highly recommended that the compiler sources are available
    328       for later use. To extract the sources at a proper location,
    329       execute the following command as the
     347      for later use. Since the sources are available on disk already
     348      they can be used but some binaries built in the source tree
     349      should be removed first:
     350    </para>
     351
     352<screen><userinput>make clean</userinput></screen>
     353
     354    <para>
     355      To copy the source, execute the following command as the
    330356      <systemitem class="username">root</systemitem> user:
    331357    </para>
    332358
    333 <!--
    334   not sure if we can simply copy the files in $PWD as they may
    335   contain compiled binaries. May run a clean before copying...
    336  -->
    337 <screen role="root"><userinput>mkdir -p /usr/lib/fpc/src &amp;&amp;
    338 tar --strip-components=1 -C /usr/lib/fpc/src -xf ../fpc-&freepascal-version;.source.tar.gz</userinput></screen>
     359<screen role="root"><userinput>mv fpcsrc /usr/lib/fpc/src</userinput></screen>
    339360
    340361  </sect2>
     
    351372        <seg>fpc, fp, samplecfg, ...</seg>
    352373        <seg>None</seg>
    353         <seg>None</seg>
     374        <seg>/usr/lib/fpc</seg>
    354375      </seglistitem>
    355376    </segmentedlist>
Note: See TracChangeset for help on using the changeset viewer.