View Issue Details

IDProjectCategoryView StatusLast Update
0000888Double CommanderDefaultpublic2017-09-04 08:26
Reporterginggs Assigned ToAlexx2000  
PrioritynormalSeveritytweakReproducibilityN/A
Status closedResolutionfixed 
ProjectionnoneETAnone 
PlatformLinuxOSDebian / Ubuntu 
Product Version0.5.10Product Build5514 
Target Version0.5.11Fixed in Version0.5.11 
Summary0000888: Don't rebuild widget dependent packages for Lazarus 1.2
DescriptionIn Debian, Lazarus 1.2 now builds the Qt units so it is no longer necessary for them to be built during the build of Doublecmd.

Also, /usr/lib/lazarus/default/ideintf/ideintf.lpk moved to /usr/lib/lazarus/default/components/ideintf/ideintf.lpk, so we can use this to check whether the packages need to be rebuilt.

When rebuilding the components for Lazarus <1.2, the order in which the packages are built needs to be changed and unit paths for LazControls and IDEIntf need to be added to avoid similar errors to the one below (as seen in the Doublecmd PPA build logs):

synpropertyeditobjectlist.pas(29,3) Fatal: Can't find unit PropEdits used by SynPropertyEditObjectList
TExternalToolList.Run Exception: /usr/lib/lazarus/default/components/synedit/synpropertyeditobjectlist.pas(29,3) Fatal: Can't find unit PropEdits used by SynPropertyEditObjectList
ERROR: tool reported error

Please see the attached patch.
TagsNo tags attached.
Attached Files
lazarus1.2.patch (986 bytes)   
--- a/components/build.sh
+++ b/components/build.sh
@@ -5,12 +5,19 @@
 # This script run from main build.sh script
 # If you run it direct, set up $lazbuild first
 
-# Rebuild widget dependent packages
-if [ -d /usr/lib/lazarus/default ]
-  then
+# Rebuild widget dependent packages (only for lazarus <1.2)
+if [ -f /usr/lib/lazarus/default/ideintf/ideintf.lpk ] ; then
+  if [ ! -d ~ ] ; then
+    mkdir -p ${HOME}
+  fi
+  if [ ! -f ~/.fpc.cfg ] ; then
+    cp /etc/fpc.cfg ~/.fpc.cfg
+    echo -Fu~/.lazarus/lib/LazControls/lib/\$fpctarget/qt/ >> ~/.fpc.cfg
+    echo -Fu~/.lazarus/lib/IDEIntf/units/\$fpctarget/qt/ >> ~/.fpc.cfg
+  fi
   $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/synedit/synedit.lpk $DC_ARCH -B
 fi
 
 # Build components
lazarus1.2.patch (986 bytes)   
Fixed in Revision5551
Operating systemLinux
WidgetsetGTK2, QT4
Architecture32-bit, 64-bit

Activities

Issue History

Date Modified Username Field Change
2014-06-15 03:45 ginggs New Issue
2014-06-15 03:45 ginggs File Added: lazarus1.2.patch
2014-06-22 20:27 Alexx2000 Fixed in Revision => 5551
2014-06-22 20:27 Alexx2000 Assigned To => Alexx2000
2014-06-22 20:27 Alexx2000 Status new => resolved
2014-06-22 20:27 Alexx2000 Resolution open => fixed
2014-06-22 20:27 Alexx2000 Fixed in Version => 0.5.11
2014-06-22 20:27 Alexx2000 Target Version => 0.5.11
2017-09-04 08:26 Alexx2000 Status resolved => closed