Hi Graham,

On 12-04-14 13:00, Graham Inggs wrote:
> Thanks for your commits.  I'm still not entirely clear on the cause of
> the FTBFS.

It is what I thought. Path issue. Please find attached my very dirty
hack around this issue. The patch is the updated version of
fix_build.sh_for_lazarus-1.2.patch

This patch fixes the build of doublecmd with the current Lazarus in
Debian. But I consider this very ugly. Have a look what you want to do
with it. I don't like it so much to have this for backports. I think
after Lazarus 1.2 is released in Debian, you should make the patch such
that it only builds the three units if the location is pre 1.2RC, as you
want to support backports.

Paul
Description: Lazarus 1.2 moved the ideintf component
Author: Paul Gevers <elb...@debian.org>
Forwarded: not yet

--- a/components/build.sh
+++ b/components/build.sh
@@ -5,12 +5,23 @@
 # This script run from main build.sh script
 # If you run it direct, set up $lazbuild first
 
+if [ ! -d ~ ] ; then
+    mkdir -p ${HOME}
+fi
+if [ ! -f ~/.fpc.cfg ] ; then
+    OS_TARGET=$(dpkg-architecture -qDEB_HOST_ARCH_OS)
+    FPCTARGET=$(dpkg-architecture -qDEB_HOST_GNU_CPU)-${OS_TARGET}
+
+    cp /etc/fpc.cfg ~/.fpc.cfg
+    echo -Fu~/.lazarus/lib/LazControls/lib/${FPCTARGET}/qt/ >> ~/.fpc.cfg
+fi
+
 # Rebuild widget dependent packages
 if [ -d /usr/lib/lazarus/default ]
   then
   $lazbuild /usr/lib/lazarus/default/components/lazcontrols/lazcontrols.lpk $DC_ARCH -B
   $lazbuild /usr/lib/lazarus/default/components/synedit/synedit.lpk $DC_ARCH -B
-  $lazbuild /usr/lib/lazarus/default/ideintf/ideintf.lpk $DC_ARCH -B
+  $lazbuild /usr/lib/lazarus/default/components/ideintf/ideintf.lpk $DC_ARCH -B
 fi
 
 # Build components

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to