<html><head></head><body bgcolor="#ffffff" text="#2e3436" link="#2a76c6" vlink="#2e3436"><div>Hi Paul and All,</div><div><br></div><div>On Wed, 2016-11-30 at 22:29 +0100, Paul Gevers wrote:</div><blockquote type="cite"><pre>Control: tags 845504 pending patch

Hi,

On 29-11-16 20:55, Abou Al Montacir wrote:
<blockquote type="cite">
The dependency on linker package could be fixed easily as you said.</blockquote>But how should we do this in reality?
Depends:  binutils | binutils-aarch64-linux-gnu |
binutils-alpha-linux-gnu | .... etc?
</pre></blockquote><div>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</div><blockquote type="cite"><pre>
<blockquote type="cite">#ifdef cpui386
</blockquote></pre><pre><blockquote type="cite">
-Fl/usr/lib/gcc/x86_64-linux-gnu/6/32

#endif

#ifdef cpux86_64

-Fl/usr/lib/gcc/x86_64-linux-gnu/6

#endif</blockquote>Is this instead of what we now add in fp-compiler.postinst? (By the way,
shouldn't we be using ucf for that there?)
</pre></blockquote><div>I think there is a better solution. For now we have this at the end of /etc/fpc.cfg:</div><div><span><pre><pre><pre># Third party units should be installe in a, multi-arch compatible location.</pre><pre># Units should be installed in /usr/lib/$fpctarget-gnu/fp-units-2.6.2/$pkg/.</pre><pre># Ech fp-units package should install a configuration file called $pkg.cfg in</pre><pre>#CFGDIR /etc/fpc-$fpcversion.cfg.d/$fpctarget </pre></pre></pre></span></div><div>This means that every file there will be included.</div><div>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</div><div><br></div><div>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.</div><blockquote type="cite"><pre>
<blockquote type="cite">
The file itself is installed by an arch independent package polled by
all fp-compiler packages. This way we have a platform config file</blockquote>You mean arch-dependent, right? fp-compiler-3.0.0 is now creating and
installing that. Should we revise this then?
</pre></blockquote><div>Yes, sorry for this lapsus</div><blockquote type="cite"><pre>
<blockquote type="cite">
Instead of writing a tool to hack all this, I'd propose you submit
patches and join the maintain team.</blockquote>Yes, you are welcome.

@Ben, do you think the multi-arch hinter on the tracker is correct
(action needed section of: <a href="https://tracker.debian.org/pkg/fpc">https://tracker.debian.org/pkg/fpc</a>)

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.</pre></blockquote><div>Thanks for the hard work you are doing.</div><div class="-x-evo-signature-wrapper"><span class="-x-evo-signature" id="1423923852.20958.6@karim"><pre><pre>-- <br></pre>Cheers,
Abou Al Montacir</pre></span></div></body></html>