Changeset 8034a2b
- Timestamp:
- 09/24/2021 04:06:17 PM (2 years ago)
- Branches:
- lazarus
- Children:
- d2fb261
- Parents:
- 85d9842
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
general/prog/fpc.xml
r85d9842 r8034a2b 15 15 <!ENTITY fpc-bin-i686-bldsize "x.x MB"> 16 16 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.8MB">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"> 20 20 <!ENTITY fpc-src-bldsize "x.x MB"> 21 21 … … 25 25 <!-- 26 26 TODO: 27 28 Rebuild itself 27 29 The instructions below does the bootstrap by using a 28 30 binary package to compile the compiler. … … 247 249 rm -rf fpc-&freepascal-bin-version;-x86_64-linux 248 250 ;; 249 esac</userinput></screen> 251 esac && 252 export PATH=&fpc-tmp-target;/bin:$PATH</userinput></screen> 250 253 251 254 <para> … … 254 257 can be used to create the compiler and utilities from source. 255 258 </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 256 267 <para> 257 268 If building on i686 systems (32-bit), a patch is required … … 259 270 </para> 260 271 261 <screen><userinput>patch -Np1 -i ../fpc-&freepascal-version;-glibc_2.34-1.patch</userinput></screen> 272 <screen><userinput>cd fpcsrc && 273 patch -Np1 -i ../../fpc-&freepascal-version;-glibc_2.34-1.patch && 274 cd ..</userinput></screen> 262 275 263 276 <para> … … 266 279 </para> 267 280 268 <screen><userinput> PATH=&fpc-tmp-target;/bin:$PATHmake clean &&269 PATH=&fpc-tmp-target;/bin:$PATH make OVERRIDEVERSIONCHECK=1 all</userinput></screen>281 <screen><userinput>make clean && 282 make OVERRIDEVERSIONCHECK=1 build</userinput></screen> 270 283 271 284 <para> 272 285 Install the <application>FreePascal</application> compiler 273 286 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 && 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 && 277 291 case "$(uname -m)" in 278 292 i?86) … … 293 307 <screen role="root"><userinput>rm -rf /etc/fppkg* && 294 308 rm -rf /etc/fpc.* && 309 rm -rf $HOME/{.fppkg,.fpc.cfg,.config/fppkg.cfg} && 295 310 rm -rf &fpc-tmp-target;</userinput></screen> 296 311 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> 297 316 </sect2> 298 317 … … 326 345 <para> 327 346 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 330 356 <systemitem class="username">root</systemitem> user: 331 357 </para> 332 358 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 && 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> 339 360 340 361 </sect2> … … 351 372 <seg>fpc, fp, samplecfg, ...</seg> 352 373 <seg>None</seg> 353 <seg> None</seg>374 <seg>/usr/lib/fpc</seg> 354 375 </seglistitem> 355 376 </segmentedlist>
Note:
See TracChangeset
for help on using the changeset viewer.