Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2006-08

fpc.spec for x86_64

4 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Unknown author

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
Colin

Reply by email

Michael Van Canneyt
to Unknown author
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 ?

2. There are issues with building the RPM on SuSE. There will be serious changes needed to make it work.

Michael.

Reply by email

Unknown author
to Michael Van Canneyt

Quoting Michael Van Canneyt :

Show quoted text 10 lines
On Sun, 20 Aug 2006 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.

Colin

Reply by email

C Western
to Unknown author
Show quoted text 15 lines
Quoting Michael Van Canneyt : > > On Sun, 20 Aug 2006 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

Show quoted text 35 lines
------------------------------------------------------------------------ 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 - http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply by email