Sign in Join

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

Mailing lists / fpc-pascal / 2007-07

building source package with fpcmake without installing

7 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Marc Santhoff

Hi,

how can fpcmake be driven to only tar and gzip up the sources of it's project *without* installing to the system running on first?

Not any developer has or should have write access
to /usr/local/share/* ...

TIA
Marc

Reply by email

Jonas Maebe
to Marc Santhoff
Marc Santhoff wrote 5 lines
how can fpcmake be driven to only tar and gzip up the sources of it's project *without* installing to the system running on first? Not any developer has or should have write access to /usr/local/share/* ...

You can install to any location you want using

make install INSTALL_PREFIX=x/usr/local

tar will throw away leading slashes anyway, so it doesn't matter from where you zip/tar everything.

Jonas

Reply by email

Marc Santhoff
to Jonas Maebe
Jonas Maebe wrote 14 lines
On 31 Jul 2007, at 00:39, Marc Santhoff wrote: > how can fpcmake be driven to only tar and gzip up the sources of it's > project *without* installing to the system running on first? > > Not any developer has or should have write access > to /usr/local/share/* ... You can install to any location you want using make install INSTALL_PREFIX=x/usr/local tar will throw away leading slashes anyway, so it doesn't matter from where you zip/tar everything.

That doesn't work since the prefix is set in the Makefile.fpc and the setting in the file wins:

...
[install]
prefix=/usr/local
...

$ gmake install INSTALL_PREFIX=../x
...
/usr/local/bin/ginstall -m 755 -d /usr/local/bin
/usr/local/bin/ginstall: kann Zugriffsrechte von "/usr/local/bin" nicht ändern: Operation not permitted gmake: *** [fpc_install] Fehler 1

Marc

Reply by email

Jonas Maebe
to Marc Santhoff
Marc Santhoff wrote 9 lines
> You can install to any location you want using > > make install INSTALL_PREFIX=x/usr/local > > tar will throw away leading slashes anyway, so it doesn't matter from > where you zip/tar everything. That doesn't work since the prefix is set in the Makefile.fpc and the setting in the file wins:

There should be no prefix setting in the Makefile.fpc, because the default prefix depends on the target operating system. Most Makefiles don't contain it, as I use INSTALL_PREFIX all the time to install e.g. the Mac OS X release to a temporary location for packaging it (so at least everything under /fpc is ok, except for possibly the text mode IDE, as it's not built/packaged for Mac OS X by default).

Which Makefile.fpc were you quoting from?

Jonas

Reply by email

Marc Santhoff
to Jonas Maebe
Jonas Maebe wrote 14 lines
On 31 Jul 2007, at 21:28, Marc Santhoff wrote: >> You can install to any location you want using >> >> make install INSTALL_PREFIX=x/usr/local >> >> tar will throw away leading slashes anyway, so it doesn't matter from >> where you zip/tar everything. > > That doesn't work since the prefix is set in the Makefile.fpc and the > setting in the file wins: There should be no prefix setting in the Makefile.fpc, because the default prefix depends on the target operating system.

I see, and taking it out of the file it is correctly set for FreeBSD. And setting on the command line work. Jippie! :)

Where is setting the prefix value based on the OS running on done?

Show quoted text 7 lines
Most Makefiles don't contain it, as I use INSTALL_PREFIX all the time to install e.g. the Mac OS X release to a temporary location for packaging it (so at least everything under /fpc is ok, except for possibly the text mode IDE, as it's not built/packaged for Mac OS X by default). Which Makefile.fpc were you quoting from?

The one I wrote for my program. That program is FreeBSD only (may get ported Windows somewhen) and I'm in the process of preparing the source distfile for FreeBSD "port" (sort of RPM-like installation thingy on BSDs, works like that apt-get-stuff).

Thank you very much, now I can finish this thing and put it aside. :)

Marc

Reply by email

Jonas Maebe
to Marc Santhoff
Marc Santhoff wrote
Where is setting the prefix value based on the OS running on done?

In the part of the Makefile which gets automatically added by fpcmake. Just search for PREFIX or INSTALL_PREFIX in the Makefile, and then go backwards to see from where the value comes. Or maybe search for usr/local.

Jonas

Reply by email

Marc Santhoff
to Jonas Maebe
Jonas Maebe wrote 8 lines
On 31 Jul 2007, at 21:54, Marc Santhoff wrote: > Where is setting the prefix value based on the OS running on done? In the part of the Makefile which gets automatically added by fpcmake. Just search for PREFIX or INSTALL_PREFIX in the Makefile, and then go backwards to see from where the value comes. Or maybe search for usr/local.

I see.

Thanks a lot,
Marc

Reply by email