Sign in Join

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

Mailing lists / fpc-devel / 2019-05

fpcmake

4 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

Kevin Lyda

Looking at using fpcmake and it comes up short. I'm wondering if some patches to it would be acceptable. Broken down by section...

In [install] it would be nice to be able to specify some other file locations. Specifically, man pages (using the suffix to determine the correct dir) and texinfo pages.

In [target] you can specify "programs" but it's also needed to specify scripts, privileged_programs (sbin) and privileged_scripts. Though the scripts targets could go in [install] as well.

I get that these are concepts that don't map 1-to-1 outside of unix, but they would be useful *for* unix systems.

If I do up a patch would there be an interest?

Kevin

Kevin Lyda Galway, Ireland

Reply by email

Sven Barth
to Kevin Lyda

Kevin Lyda schrieb am Di., 21. Mai 2019, 22:04:

Show quoted text 16 lines
Looking at using fpcmake and it comes up short. I'm wondering if some patches to it would be acceptable. Broken down by section... In [install] it would be nice to be able to specify some other file locations. Specifically, man pages (using the suffix to determine the correct dir) and texinfo pages. In [target] you can specify "programs" but it's also needed to specify scripts, privileged_programs (sbin) and privileged_scripts. Though the scripts targets could go in [install] as well. I get that these are concepts that don't map 1-to-1 outside of unix, but they would be useful *for* unix systems. If I do up a patch would there be an interest?

If you want to use it for yourself you might better want to take a look at fpmake which uses Pascal code.
fpcmake is only used by the compiler and RTL as well as a skeleton for the fpmake packages nowadays.

Regards,
Sven

Reply by email

Marco van de Voort
to Sven Barth

Op 5/22/2019 om 9:06 AM schreef Sven Barth via fpc-devel:

Show quoted text 16 lines
In [target] you can specify "programs" but it's also needed to specify scripts, privileged_programs (sbin) and privileged_scripts. Though the scripts targets could go in [install] as well. I get that these are concepts that don't map 1-to-1 outside of unix, but they would be useful *for* unix systems. If I do up a patch would there be an interest? If you want to use it for yourself you might better want to take a look at fpmake which uses Pascal code. fpcmake is only used by the compiler and RTL as well as a skeleton for the fpmake packages nowadays.

Moreover the installer script install.sh (also) handled some of differences in filesystem hierarchy on *nix.   It was never "make install" alone

Reply by email

Kevin Lyda
to Sven Barth: Kevin Lyda schrieb am Di., 21. Mai 2019, 22:04: If you want to use it for yourself you…
AM Sven Barth wrote
If you want to use it for yourself you might better want to take a look at fpmake which uses Pascal code. fpcmake is only used by the compiler and RTL as well as a skeleton for the fpmake packages nowadays.

Honestly, full programming languages in make-like tools do not fill me with joy. And I've used ones based on lisp, perl, python, ruby, groovy and a few others. Some developers get... creative... in such environments and while I'm a fan of creativity, maybe not in this use case.

Secondly, this is the documentation I can find on fpcmake: https://www.freepascal.org/tools/fpcmake.html It's essentially the man page, but everything is there. It won't win style awards, but it's got the info I need.

This is the documentation I can find on fpmake:
http://wiki.freepascal.org/FPMake

That's two nice examples but it is not documentation. So that leaves me with the source - all 9,506 lines of it (oh yeah, that looks maintainable): https://github.com/graemeg/freepascal/blob/master/packages/fpmkunit/src/fpmkunit.pp

So, back to my original question, if I make the changes I mentioned to fpcmake will there be an interest in them upstream?

Kevin

Reply by email