Recent

Author Topic: Providing *.deb files for RaspberryPi Linux  (Read 5336 times)

Bi0T1N

  • Jr. Member
  • **
  • Posts: 85
Re: Providing *.deb files for RaspberryPi Linux
« Reply #15 on: May 28, 2023, 01:18:36 am »
I will check out Docker which looks interesting, but right now I'm trying to get free of the magic (that has served me very well for a long time, I should add!)

I've just created a minimal example based on the Build Lazarus from Source wiki information and the Makefile to create a Docker container based on latest official FPC release.
Code: Pascal  [Select][+][-]
  1. # syntax=docker/dockerfile:1
  2. ##
  3. ## Configuration
  4. ##
  5. # set Ubuntu release version (latest, focal, bionic, ...)
  6. ARG UBUNTU_VERSION=focal
  7. # set FPC version (format: d.d.d)
  8. ARG FPC_VERSION=3.2.2
  9.  
  10.  
  11. ##
  12. ## Compile lazbuild of Lazarus 2.2.6
  13. ##
  14. FROM freepascal/fpc:${FPC_VERSION}-${UBUNTU_VERSION}-full
  15. WORKDIR /tmp
  16. # docker buildx variables
  17. ARG TARGETPLATFORM
  18. ARG BUILDPLATFORM
  19. # install git, clone sourcecode, compile lazbuild
  20. RUN set -eux \
  21.     && apt-get update \
  22.     && apt-get install -y git \
  23.     && apt-get clean \
  24.     && rm -rf /var/lib/apt/lists/* \
  25.     && echo "Installing Lazarus for ${TARGETPLATFORM} on ${BUILDPLATFORM}." \
  26.     # get sources from git repository
  27.     && git clone --depth 1 --branch lazarus_2_2_6 https://gitlab.com/freepascal.org/lazarus/lazarus.git \
  28.     && cd lazarus* \
  29.     # compile
  30.     #&& make bigide # requires more packages and a full widgetset
  31.     && make lazbuild

I'm not sure what you can build with it and if it's really useful as I only used Lazarus on a full desktop environment so far. Thus someone with more experience in that should help if we want to get a fully working Docker image :)
« Last Edit: May 28, 2023, 01:20:12 am by Bi0T1N »

TRon

  • Hero Member
  • *****
  • Posts: 3650
Re: Providing *.deb files for RaspberryPi Linux
« Reply #16 on: May 28, 2023, 11:49:40 am »
Docker to the rescue! ;D
I personally would not call it "rescue" but yes it is also a possibility :)

I'm not sure what you can build with it and if it's really useful as I only used Lazarus on a full desktop environment so far.image :)
See lazbuild wiki entry to get some idea.

It allows you to build/compile the source-code from Lazarus aplication (lpr files) and (lpk) packages from the command line (provided that your Lazarus configuration is setup correctly)
« Last Edit: May 28, 2023, 11:54:08 am by TRon »
This tagline is powered by AI (AI advertisement: Free Pascal the only programming language that matters)

 

TinyPortal © 2005-2018