[fpc-devel] fpc.spec for x86_64
C Western
mftq75 at dsl.pipex.com
Thu Aug 31 23:28:21 CEST 2006
mftq75 at dsl.pipex.com wrote:
> Quoting Michael Van Canneyt <michael at freepascal.org>:
>
>>
>> On Sun, 20 Aug 2006 mftq75 at dsl.pipex.com wrote:
>>
>>> Can I suggest the attached patch for fpc.spec? Without it I have
>>> problems building on the 64 bit Fedora core 5; with it the i386 and
>>> x86_64 can be installed simultaneously and can be used with appropriate
>>> make FPC=ppcxxx
>> 1. You forgot the attachment ?
> Sorry - not using my mailer - trying again.
>
>> 2. There are issues with building the RPM on SuSE. There will be serious
>> changes needed to make it work.
> The change may be harmless on SuSE, though I can't try it at the moment.
I have now been able to try it on SuSE also. With the changes indicated,
the fpc rpm will build and install correctly on 32 and 64 bit Fedora 5
and SuSE 10.1. Without the patch neither 64 bit package will build, so I
think this is a useful patch.
The 32 and 64 bit packages will install simultaneously on Fedora core 5
(and seem to pass basic tests). For SuSE I think a fpc-32bit.x86_64.rpm
would be required for simultaneous 32 and 64 bit operation, which I
think is basically the 32 bit package with the overlapping bits removed,
which would indeed require more work.
Colin
>
>
> ------------------------------------------------------------------------
>
> diff -uNr --exclude=.svn trunk/install/fpc.spec trunk.w/install/fpc.spec
> --- trunk/install/fpc.spec 2006-08-08 18:17:39.000000000 +0100
> +++ trunk.w/install/fpc.spec 2006-08-14 20:00:39.000000000 +0100
> @@ -29,6 +29,7 @@
> %endif
> %endif
>
> +%define buildbasedir %{buildroot}%{fpcdir}
> %define builddocdir %{buildroot}%{docdir}
> %define buildmandir %{buildroot}%{_mandir}
> %define buildbindir %{buildroot}%{_bindir}
> @@ -79,7 +80,7 @@
> NEWPP=`pwd`/compiler/%{ppcname}
> INSTALLOPTS="FPC=${NEWPP} INSTALL_PREFIX=%{buildroot}/usr INSTALL_LIBDIR=%{buildlibdir} \
> INSTALL_DOCDIR=%{builddocdir} INSTALL_BINDIR=%{buildbindir} \
> - INSTALL_EXAMPLEDIR=%{buildexampledir}"
> + INSTALL_EXAMPLEDIR=%{buildexampledir} INSTALL_BASEDIR=%{buildbasedir}"
> make compiler_distinstall ${INSTALLOPTS}
> make rtl_distinstall ${INSTALLOPTS}
> make packages_distinstall ${INSTALLOPTS}
>
>
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> fpc-devel maillist - fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel
More information about the fpc-devel
mailing list