Index: general/prog/fpc.xml
===================================================================
--- general/prog/fpc.xml (revision d09f9508eaed2e918a4e155053e183283cabc741)
+++ general/prog/fpc.xml (revision 85d9842b33d7f2be6bcd3d52ae58092d855b1c96)
@@ -186,49 +186,75 @@
Installation of FreePascal
+
+
+ While installation it is required to have administrator
+ privileges. It is assumed that the current user is allowed
+ to use sudo to gain full privileges.
+
+
+ Even a temporary binary compiler must be installed prior to
+ compile the compiler from the source, it is assumed that the
+ FreePascal sources has been
+ extracted and the current directory has been changed to it just
+ like as usual.
+
+
+
Begin by extracting the appropriate binary tarball for your
- architecture and changing to the extracted directory. Install
- the binary FreePascal with the
- following commands:
-
-
-tar -xf fpc-&freepascal-bin-version;-x86_64-linux.tar &&
-cd fpc-&freepascal-bin-version;-x86_64-linux &&
-sed -e "s;export PREFIX$;export PREFIX=&fpc-tmp-target;;" -i install.sh
-
- Remove some packages which are not required for the
- temporary compiler:
+ architecture and changing to the extracted directory. This
+ extraction is performed within the extracted source directory.
+ Install the binary FreePascal and
+ remove some unused files with the following commands:
+
+
+case "$(uname -m)" in
+ i?86)
+ tar -xf ../../fpc-&freepascal-bin-version;.i386-linux.tar &&
+ cd fpc-&freepascal-bin-version;.i386-linux
+ ;;
+ x86_64)
+ tar -xf ../../fpc-&freepascal-bin-version;-x86_64-linux.tar &&
+ cd fpc-&freepascal-bin-version;-x86_64-linux
+ ;;
+esac &&
+rm demo.tar.gz &&
+rm doc-pdf.tar.gz &&
+sed -e 's;PREFIX=/usr;test -z "$PREFIX" \&\& &;' -i install.sh
+
+
+ Prepare the install directory for the temporary compiler and
+ make it writable to the current user by executing as the
+ root user:
+
+
+install -dm755 -o $(id -u) &fpc-tmp-target;
+
+
+ Install the temporary compiler:
+
-rm demo.tar.gz &&
-rm doc-pdf.tar.gz
-
- Install the temporary compiler as the
- root user:
-
-yes "" | ./install.sh
+yes "" | { PREFIX=&fpc-tmp-target; ./install.sh; }
Remove the extracted binary objects:
cd .. &&
-rm -rf fpc-&freepascal-bin-version;-x86_64-linux
+case "$(uname -m)" in
+ i?86)
+ rm -rf fpc-&freepascal-bin-version;.i386-linux
+ ;;
+ x86_64)
+ rm -rf fpc-&freepascal-bin-version;-x86_64-linux
+ ;;
+esac
The binary version is now installed in
- &fpc-tmp-target;. Add this
- directory to the PATH environment variable:
-
-
-export PATH=&fpc-tmp-target;/bin:$PATH
-
-
- The temporary compiler is now ready to compile the
- FreePascal suite from source. To do
- this, extract the source archive and cd into the extracted
- directory as usual.
-
-
+ &fpc-tmp-target; and
+ can be used to create the compiler and utilities from source.
+
If building on i686 systems (32-bit), a patch is required
- to overcome an issue with glibc-2.34:
+ to overcome an issue with glibc-2.34.
@@ -240,6 +266,6 @@
-make clean &&
-make OVERRIDEVERSIONCHECK=1 all
+PATH=&fpc-tmp-target;/bin:$PATH make clean &&
+PATH=&fpc-tmp-target;/bin:$PATH make OVERRIDEVERSIONCHECK=1 all
@@ -248,12 +274,12 @@
root user:
-make_install -j1 PREFIX=/usr &&
+PATH=&fpc-tmp-target;/bin:$PATH make -j1 PREFIX=/usr install &&
case "$(uname -m)" in
i?86)
ln -svf /usr/lib/fpc/&freepascal-version;/ppc386 /usr/bin/
- ;;
+ ;;
x86_64)
ln -svf /usr/lib/fpc/&freepascal-version;/ppcx64 /usr/bin/
- ;;
+ ;;
esac
@@ -262,5 +288,6 @@
compiler in &fpc-tmp-target;
can be removed. Execute the following commands as the
- root user:
+ root user:
+
rm -rf /etc/fppkg* &&
@@ -306,5 +333,5 @@
mkdir -p /usr/lib/fpc/src &&
@@ -322,5 +349,5 @@
- fpc, fp
+ fpc, fp, samplecfg, ...
None
None
@@ -369,4 +396,16 @@
+
+ samplecfg
+
+
+ Utility to create a default configuration file
+
+
+ samplecfg
+
+
+
+
Index: general/prog/gdb.xml
===================================================================
--- general/prog/gdb.xml (revision d09f9508eaed2e918a4e155053e183283cabc741)
+++ general/prog/gdb.xml (revision 85d9842b33d7f2be6bcd3d52ae58092d855b1c96)
@@ -222,5 +222,5 @@
- If its planned to install packages which might need a static
+ If it is planned to install packages which might need a static
GDB library (for instance ) create the
library by executing:
@@ -280,5 +280,5 @@
- None
+ libgdb.a (if choosen to build it)