Boostrap the compiler for EPEL9

epel9
Artur Frenszek-Iwicki 3 years ago
parent 9e5426ac94
commit caa5aca72a

1
.gitignore vendored

@ -1 +1,2 @@
/fpcbuild-3.2.2.tar.gz /fpcbuild-3.2.2.tar.gz
/fpc-3.2.2-bin.zip

@ -1,9 +1,5 @@
%ifarch aarch64 # Bootstrap the compiler for EPEL9.
# Bootstrap the compiler for a new architecture. Set this to 0 after we've bootstrapped. %global bootstrap 1
%global bootstrap 0
%else
%global bootstrap 0
%endif
# As of 2022-08-17, on EPEL9, tex(imakeidx.sty) is not available. # As of 2022-08-17, on EPEL9, tex(imakeidx.sty) is not available.
%define with_pdfdoc 0 %define with_pdfdoc 0
@ -18,22 +14,32 @@ URL: http://www.freepascal.org/
Source0: ftp://ftp.freepascal.org/pub/fpc/dist/%{version}/source/fpcbuild-%{version}.tar.gz Source0: ftp://ftp.freepascal.org/pub/fpc/dist/%{version}/source/fpcbuild-%{version}.tar.gz
# This is only needed when we're bootstrapping. # This is only needed when we're bootstrapping.
# But it's not in an 'if defined' block, since the file has to be included in the srpm
# Thus you should enable this line when we're bootstrapping for any target
# #
# Last used for aaarch64 and ppc64le bootstrap. # Last used for bootstrapping the compiler for EPEL9.
# For the aarch64 bootstrap, a compiler has been used that has been cross-compiled on a x86_64 system using: # To perform this bootstrap, the following Fedora Rawhide RPMs were downloaded:
# make all CPU_TARGET=aarch64 OS_TARGET=linux BINUTILSPREFIX=aarch64-linux-gnu- # - fpc-3.2.2-7.fc37.aarch64.rpm
# For the ppc64 boostrap, a compiler has been used that has been cross-compiled on a x86_64 system using: # - fpc-3.2.2-7.fc37.ppc64le.rpm
# make all CPU_TARGET=powerpc64 OS_TARGET=linux BINUTILSPREFIX=powerpc64le-linux-gnu- CROSSOPT="-Cb- -Caelfv2" # - fpc-3.2.2-7.fc37.x86_64.rpm
# Next, the compilers were extracted from the RPMs and zipped.
# #
# in the main directory of fpc-r44016. The compilers were then copied using: # You can recreate this process by using the following commands:
# cp compiler/ppca64 ~/fpc-3.2.0-bin/ppca64-3.2.0-bootstrap # $ wget https://kojipkgs.fedoraproject.org/packages/fpc/3.2.2/7.fc37/aarch64/fpc-3.2.2-7.fc37.aarch64.rpm
# cp compiler/ppcppc64 ~/fpc-3.2.0-bin/ppcppc64-3.2.0-bootstrap # $ wget https://kojipkgs.fedoraproject.org/packages/fpc/3.2.2/7.fc37/ppc64le/fpc-3.2.2-7.fc37.ppc64le.rpm
# The zip file was then created using: # $ wget https://kojipkgs.fedoraproject.org/packages/fpc/3.2.2/7.fc37/x86_64/fpc-3.2.2-7.fc37.x86_64.rpm
# zip -9 fpc-3.2.0-bin.zip -r fpc-3.2.0-bin/ # $ mkdir fpc-3.2.2-bin/ rpm-contents/
# # $ for ARCH in aarch64 ppc64le x86_64; do
# Source100: https://suve.fedorapeople.org/fpc-3.2.0-bin--patch0.zip # $ pushd rpm-contents
# $ rpm2cpio "../fpc-3.2.2-7.fc37.${ARCH}.rpm" | cpio -idmv
# $ popd
# $ cp rpm-contents/usr/bin/ppc* fpc-3.2.2-bin/
# $ done
# $ for FILE in fpc-3.2.2-bin/*; do
# $ mv "${FILE}" "${FILE}-3.2.2-bootstrap";
# $ done
# $ zip -9 fpc-3.2.2-bin.zip -r fpc-3.2.2-bin/
%if 0%{?bootstrap}
Source100: https://suve.fedorapeople.org/epel9/fpc-3.2.2-bin.zip
%endif
# Configuration templates: # Configuration templates:
Source10: fpc.cft Source10: fpc.cft
@ -291,6 +297,7 @@ rm -rf %{buildroot}/usr/lib/%{name}/lexyacc
%changelog %changelog
* Wed Aug 17 2022 Artur Frenszek-Iwicki <fedora@svgames.pl> - 3.2.2-8 * Wed Aug 17 2022 Artur Frenszek-Iwicki <fedora@svgames.pl> - 3.2.2-8
- Bootstrap the compiler for EPEL9
- Disable building .pdf documentation (missing dependencies on EPEL9) - Disable building .pdf documentation (missing dependencies on EPEL9)
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.2-7 * Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.2-7

@ -1 +1,2 @@
SHA512 (fpcbuild-3.2.2.tar.gz) = 75889bb54adc70a6e2cbd291476b9b12d61c8f943a05b7d16d2024de3215c935465ff43b1400c412e128e260c7f49a9c66e35c21f86cb866e671b5b60a282d82 SHA512 (fpcbuild-3.2.2.tar.gz) = 75889bb54adc70a6e2cbd291476b9b12d61c8f943a05b7d16d2024de3215c935465ff43b1400c412e128e260c7f49a9c66e35c21f86cb866e671b5b60a282d82
SHA512 (fpc-3.2.2-bin.zip) = 24a299fa05faf0fe0a38d98da421dbaf7ea0c5f841024f3bb4d12d45ef573b52bd2ec62448e0d75c161458f7892895ece4f4dacd6d8746b00794386af92aa2d3

Loading…
Cancel
Save