Projects
New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

Ticket #12896 (new enhancement)

Opened 14 months ago

Last modified 6 weeks ago

NEW: fpc-2.2.0

Reported by: jbacon@… Owned by: macports-tickets@…
Priority: Normal Milestone: Port Submissions
Component: ports Version: 1.5.2
Keywords: fpc pascal Cc: jwbacon@…, ryandesign@…, jmr@…
Port:

Description

FPC is an open source Pascal and Object Pascal compiler aiming to be compatible with Turbo Pascal and Delphi.

Attachments

Portfile (1.4 KB) - added by jbacon@… 13 months ago.
New Portfile
Portfile.2 (1.4 KB) - added by jmr@… 8 months ago.
improved portfile
fpc.build.log (67.2 KB) - added by jmr@… 8 months ago.
debug log of build failure

Change History

  Changed 13 months ago by jann@…

Why do you duplicate code in the i386 and ppc sections ? Please put common code in the common section.

  Changed 13 months ago by ryandesign@…

  • cc jbacon@…, ryandesign@… added
  • milestone changed from MacPorts 1.5 to Port Submissions

Agreed. Please submit a revised portfile.

  Changed 13 months ago by jbacon@…

Combination of fatigue and carry-over from the previous version of the port (which I never submitted) that had more platform dependencies, including different distfiles. I got the redundancy down to one small line now. What I really wanted to do from the start was set a variable to either ppc386 or ppcppc, and reference it in a single destroot section. I couldn't find anything in the available developer docs, or examples in other ports, and all my experiments failed. I eventually gave up and resigned myself to some redundancy. If there's a way to do this, I'd appreciate some pointers.

Changed 13 months ago by jbacon@…

New Portfile

Changed 8 months ago by jmr@…

improved portfile

follow-up: ↓ 7   Changed 8 months ago by jmr@…

  • cc jmr@… added; jbacon@… removed

I've attached a new Portfile which has the redundancy removed, sets tags on the distfiles and master_sites since fpcbins.tar.gz is only available from your site, and removes the use of the deprecated 'cd' command. Unfortunately, it fails to build for me (on Leopard). I'll also attach the build log.

Is fpcbins.tar.gz some binaries that you built yourself? Why can't they be built from source?

Changed 8 months ago by jmr@…

debug log of build failure

  Changed 8 months ago by jwbacon@…

I reproduced the build failure on a Leopard system. The new Portfile works fine on Tiger, however. I've seen a lot of flaky behavior from Leopard, like builds failing with weird errors and then working on the next try, or after a "port clean". I'm inclined to wait for the next Xcode update before sinking too much time into this. I did try using the latest ppc386 binary to bootstrap the build, but still got the same error.

-J

  Changed 4 months ago by jmr@…

Well, in the time since the last comment, we've tracked down the cause of the flakiness on Leopard (and worked around it in trunk), and there's even been a new XCode release. Time to give this another try?

in reply to: ↑ 4 ; follow-up: ↓ 8   Changed 6 weeks ago by boeyms@…

Replying to jmr@…:

Is fpcbins.tar.gz some binaries that you built yourself? Why can't they be built from source?

In order to build fpc, you need to have (among other things) a Pascal compiler already installed, since it is written in Pascal. The binary installation available from www.freepascal.org is only available on a disk image.

in reply to: ↑ 7   Changed 6 weeks ago by ryandesign@…

Replying to boeyms@…:

In order to build fpc, you need to have (among other things) a Pascal compiler already installed, since it is written in Pascal. The binary installation available from www.freepascal.org is only available on a disk image.

If you want to have the port build this file, disk images are not a problem. Support for extracting from disk images will be in MacPorts 1.7.0 with the use_dmg yes option. Or you can do it manually, like the isightcapture port does.

Note: See TracTickets for help on using tickets.