WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Lazarus extension reload  (Read 1908 times)

Offline Zendrael

  • Sr. Member
  • ****
  • Posts: 363
    • Zendrael's home of projects
Lazarus extension reload
« on: June 15, 2012, 07:35:16 PM »
Hello all!

Well... when I install lazarus extension, all works fine but I have a little problem: when i install a Lazarus package (from inside the IDE) it rebuilds (recompile) Lazarus. So far it's ok... but when I reboot the system, the Lazarus binary gets back to the default binary that came with the extension.

Is there some way to avoid the need of recompiling every time?

Thank you all!

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Lazarus extension reload
« Reply #1 on: June 15, 2012, 07:49:52 PM »
Please read the wiki articles about persistence and building extensions.

Offline Zendrael

  • Sr. Member
  • ****
  • Posts: 363
    • Zendrael's home of projects
Re: Lazarus extension reload
« Reply #2 on: June 15, 2012, 08:45:00 PM »
Hello gerald!

Sometimes I forgot how easy is to setup stuff in TC... I was just thinking that maybe putting the lazarus binary to be backup'ed on every boot will make the boot time increase on restore...

Using full persistence will avoir the backup on exit of TC?

Thanks!

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11629
Re: Lazarus extension reload
« Reply #3 on: June 16, 2012, 08:33:48 AM »
Hi Zendrael
Due to the size and the nature of this extension, you might want to try copying  the
/tmp/tcloop/lazarus/usr/local/share/lazarus/  directory to  /home/tc/  and see if you can get lazarus to work in that location.
Because it is so large, I would only try that if you were running a persistent  /home. If that works, you could try
repackaging lazarus so that it only contains:
Code: [Select]
usr/local/bin/lazarus-ide
usr/local/bin/lazbuild
usr/local/bin/startlazarus
usr/local/share/applications/lazarus.desktop
usr/local/share/man/man1/lazarus-ide.1.gz
usr/local/share/man/man1/lazbuild.1.gz
usr/local/share/man/man1/startlazarus.1.gz
usr/local/share/mime/lazarus-mime.xml
usr/local/share/pixmaps/lazarus.png
usr/local/tce.installed/lazarus
which should reduce its load time. Before repackaging, you could edit  usr/local/tce.installed/lazarus  to create
a link to  /home/tc/lazarus  in  usr/local/share/.