<html><head></head><body bgcolor="#ffffff" text="#2e3436" link="#2a76c6" vlink="#2e3436"><div>Hi All,</div><div><br></div><div>On Wed, 2017-11-15 at 15:33 +0100, Abou Al Montacir wrote:</div><div>...</div><blockquote type="cite"><div>Upstream solves this by using a different base dir. We can for instance replace</div><div><div style="white-space: normal;"><span><pre><pre><span style="color: rgb(115, 115, 115); font-family: monospace; white-space: normal;">/usr/lib/${DEB_PACKAGE_NAME}/${DEB_UPSTREAM_MAIN_VERSION}</span></pre><pre>by</pre><pre><span style="color: rgb(115, 115, 115); font-family: monospace; white-space: normal;">/usr/lib/${</span><span style="color: rgb(115, 115, 115); font-family: monospace; white-space: normal;">FPCTARGET}</span><span style="color: rgb(115, 115, 115); font-family: monospace; white-space: normal;">-${FPCARCH}</span><span style="color: rgb(115, 115, 115); font-family: monospace; white-space: normal;">/${DEB_PACKAGE_NAME}/${DEB_UPSTREAM_MAIN_VERSION}</span></pre><pre>This is probably less intrusive, but have 2 levels of <span style="color: rgb(115, 115, 115); font-family: monospace; white-space: normal;">${</span><span style="color: rgb(115, 115, 115); font-family: monospace; white-space: normal;">FPCTARGET}</span></pre></pre></span></div></div></blockquote><div>I've uploaded this WE to experimental a solution that puts files in</div><div><span style="font-family: monospace;">/usr/lib/</span><span style="font-family: monospace;">${DEB_PACKAGE_NAME}/${DEB_UPSTREAM_MAIN_VERSION}/units/</span><span style="font-family: monospace;">${</span><span style="font-family: monospace;">FPCTARGET}</span><span style="font-family: monospace;">-${DEB_ABI}</span><span style="font-family: monospace;">/${FPC_PACKAGE_NAME}</span></div><div></div><div>For example:</div><div><div><span style="font-family: monospace;">/usr/lib/</span><span style="font-family: monospace;">fpc/3.0.4/units/i386-linux</span><span style="font-family: monospace;">-base</span><span style="font-family: monospace;">/fpmkunit</span></div><div></div></div><div><div><br></div><div>However this location of unit files produces the following Lintian errors:</div><div></div></div><div><div><a href="https://lintian.debian.org/tags/arch-dependent-file-not-in-arch-specific-directory.html"><a href="https://lintian.debian.org/tags/arch-dependent-file-not-in-arch-specific-directory.html">https://lintian.debian.org/tags/arch-dependent-file-not-in-arch-specific-directory.html</a></a></div></div><div><br></div><div>I suppose that I need to change it again to be</div><div><div><span style="font-family: monospace;">/usr/lib/${</span>DEB_TARGET_GNU_TYPE}/<span style="font-family: monospace;">${DEB_PACKAGE_NAME}/${DEB_UPSTREAM_MAIN_VERSION}/units/</span><span style="font-family: monospace;">${FPC_PACKAGE_NAME}</span></div><div><div>So for example</div></div><div><span style="font-family: monospace;">/usr/lib/i386-linux-gnu</span><span style="font-family: monospace;">/</span><span style="font-family: monospace;">fpc/3.0.4/units/</span><span style="font-family: monospace;">fpmkunit</span></div><div><div></div><div></div></div><div><div></div></div><div>It is now quite easy to do this after my recent changes.</div></div><div><br></div><div>Is that OK or do we need to do it other way, maybe in a simpler manner?</div><div><div>--</div></div><span style="font-family: monospace; white-space: pre;">Cheers,
Abou Al Montacir</span></body></html>