[Pkg-pascal-devel] Bug#845498: Bug#845498: /usr/bin/fpc-3.0.0: Provide cross-compilers
Abou Al Montacir
abou.almontacir at sfr.fr
Mon Dec 12 20:37:38 UTC 2016
Hi Paul and All,
On Wed, 2016-11-30 at 22:29 +0100, Paul Gevers wrote:
> Control: tags 845504 pending patch
>
> Hi,
>
> On 29-11-16 20:55, Abou Al Montacir wrote:
> > The dependency on linker package could be fixed easily as you said.
> But how should we do this in reality?
> Depends: binutils | binutils-aarch64-linux-gnu |
> binutils-alpha-linux-gnu | .... etc?
What about adding a new package fpc-cross that adds support for cross compiling
with fpc by pulling all these linkers or maybe add a set of fpc-cross-${arch}.
This way if I want to enable cross compiling for armel on amd64 then I would
install fpc-cross-armel
> > #ifdef cpui386
> > -Fl/usr/lib/gcc/x86_64-linux-gnu/6/32
> >
> > #endif
> >
> > #ifdef cpux86_64
> >
> > -Fl/usr/lib/gcc/x86_64-linux-gnu/6
> >
> > #endif
> Is this instead of what we now add in fp-compiler.postinst? (By the way,
> shouldn't we be using ucf for that there?)
I think there is a better solution. For now we have this at the end of
/etc/fpc.cfg:
This means that every file there will be included.
If we place the regular config file there and we surround it by #ifdef ${arch}
then we can fix this without having all arch configs in the same file
If this is not clear I explain: we replace fpc.cfg to become a regular file that
contains only #CFGDIR directive. Each package will install its config file while
paying attention to surround all its config with the correct #ifdef. This allows
the config to be extended automatically when one installs a foreign compiler.
> > The file itself is installed by an arch independent package polled by
> > all fp-compiler packages. This way we have a platform config file
> You mean arch-dependent, right? fp-compiler-3.0.0 is now creating and
> installing that. Should we revise this then?
Yes, sorry for this lapsus
> > Instead of writing a tool to hack all this, I'd propose you submit
> > patches and join the maintain team.
> Yes, you are welcome.
>
> @Ben, do you think the multi-arch hinter on the tracker is correct
> (action needed section of: https://tracker.debian.org/pkg/fpc)
>
> Paul
> PS: I'll upload soon for the other bug and stuff that is already
> pending. Would be nice if we could get further on this bug as well.
Thanks for the hard work you are doing.
--
Cheers,
Abou Al Montacir
# Third party units should be installe in a, multi-arch compatible location.# Units should be installed in /usr/lib/$fpctarget-gnu/fp-units-2.6.2/$pkg/.# Ech fp-units package should install a configuration file called $pkg.cfg in#CFGDIR /etc/fpc-$fpcversion.cfg.d/$fpctarget
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-pascal-devel/attachments/20161212/208d1739/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-pascal-devel/attachments/20161212/208d1739/attachment.sig>
More information about the Pkg-pascal-devel
mailing list