Recent

Author Topic: Updating Debian / Ubuntu fpc Package  (Read 813 times)

bodo-hugo-barwich

  • New Member
  • *
  • Posts: 12
    • StackOverflow Profile of Bodo Hugo Barwich
Updating Debian / Ubuntu fpc Package
« on: October 16, 2020, 11:50:04 pm »
I'm trying to build my Automated Tests for my FreePascal Library with
GitHub Workflow and also with Travis-CI

The Tests mostly run on Ubuntu Images.

In most Repositories there is an fpc Compiler Package included.

fp-compiler-3.0.4



Free Pascal Compiler version 3.0.4+dfsg-18ubuntu2 [2018/08/29] for x86_64


as seen at:
GitHub Automated Testing Workflow

but with the new FreePascal Release I noticed there have been a lot of changes that require code changes.

So I wonder who does the Package Updates and whether there are any Updates scheduled?

PierceNg

  • New Member
  • *
  • Posts: 48
Re: Updating Debian / Ubuntu fpc Package
« Reply #1 on: October 17, 2020, 04:38:10 am »
Why not use the Sourceforge .deb packages directly?

Since you are CI'ing a library and running the fptest driver program in console mode, with the FPC .deb packages, you also avoid installing Lazarus with all its attendant X11 and related libraries, meaning your CI jobs will run faster - from your example your pipeline run time is dominated by the 'install FPC' step.

I am using a Docker image built with the FPC .deb files with Drone CI.

winni

  • Hero Member
  • *****
  • Posts: 2122
Re: Updating Debian / Ubuntu fpc Package
« Reply #2 on: October 17, 2020, 11:40:03 am »
Hi!

Here is the official page about changes and new features in fpc 3.2.0

https://wiki.freepascal.org/FPC_New_Features_3.2.0

Winni

PascalDragon

  • Hero Member
  • *****
  • Posts: 2629
  • Compiler Developer
Re: Updating Debian / Ubuntu fpc Package
« Reply #3 on: October 17, 2020, 12:04:01 pm »
So I wonder who does the Package Updates and whether there are any Updates scheduled?

The packages that are part of the official distribution servers are done by those distributions.

We provide distribution independant packages with simple installer scripts however (see here).

bodo-hugo-barwich

  • New Member
  • *
  • Posts: 12
    • StackOverflow Profile of Bodo Hugo Barwich
Re: Updating Debian / Ubuntu fpc Package
« Reply #4 on: October 18, 2020, 01:07:04 pm »
Why not use the Sourceforge .deb packages directly?

Since you are CI'ing a library and running the fptest driver program in console mode, with the FPC .deb packages, you also avoid installing Lazarus with all its attendant X11 and related libraries, meaning your CI jobs will run faster - from your example your pipeline run time is dominated by the 'install FPC' step.

I am using a Docker image built with the FPC .deb files with Drone CI.

Thank you for taking interest in this issue.

The problem about downloading .deb files directly and install them is that Travis-CI blocks external downloads. (I think for security reasons). So the build hangs in the download forever until its finally killed by the CI Engine.

I also noticed that the installation is quite lengthly but I think there is no way reusing the created images with the personal account.

But I will also take a look at "Drone CI" thank you for the hint.

bodo-hugo-barwich

  • New Member
  • *
  • Posts: 12
    • StackOverflow Profile of Bodo Hugo Barwich
Re: Updating Debian / Ubuntu fpc Package
« Reply #5 on: October 18, 2020, 01:11:51 pm »
So I wonder who does the Package Updates and whether there are any Updates scheduled?

The packages that are part of the official distribution servers are done by those distributions.

Yes, I understand this procedure.
I was wondering whether someone of the FreePascal Team is maintainer of the Debian / Ubuntu Packages as part of the "Pascal Packaging Team
Maintainers List

PascalDragon

  • Hero Member
  • *****
  • Posts: 2629
  • Compiler Developer
Re: Updating Debian / Ubuntu fpc Package
« Reply #6 on: October 18, 2020, 01:20:00 pm »
I was wondering whether someone of the FreePascal Team is maintainer of the Debian / Ubuntu Packages as part of the "Pascal Packaging Team
Maintainers List

Nope, none of the core devs are Debian package maintainers.

bodo-hugo-barwich

  • New Member
  • *
  • Posts: 12
    • StackOverflow Profile of Bodo Hugo Barwich
Re: Updating Debian / Ubuntu fpc Package
« Reply #7 on: November 15, 2020, 07:55:47 pm »
I am using a Docker image built with the FPC .deb files with Drone CI.

I looked at the Drone CI and found it is meant as a replacement for Jenkins and it requires dedicated resources.
So, I rather stick with the free Tools like GitHub Workflow and Travis CI since I need to economise costs.

bodo-hugo-barwich

  • New Member
  • *
  • Posts: 12
    • StackOverflow Profile of Bodo Hugo Barwich
Re: Updating Debian / Ubuntu fpc Package
« Reply #8 on: December 04, 2020, 02:26:57 pm »
Why not use the Sourceforge .deb packages directly?

Since you are CI'ing a library and running the fptest driver program in console mode, with the FPC .deb packages, you also avoid installing Lazarus with all its attendant X11 and related libraries, meaning your CI jobs will run faster - from your example your pipeline run time is dominated by the 'install FPC' step.

I am using a Docker image built with the FPC .deb files with Drone CI.

I'm studying now the possibility to install FPC with the .deb package file.
But I found that there isn't any Debian Package prebuilt for download at:
FPC Download Page
instead I found these instructions:
Quote
****************************************************************************
* Quick start - Linux/FreeBSD
****************************************************************************

Download fpc-3.2.0.<cpu>-<os>.tar and untar into a temporary directory.

Start the install script with ./install.sh and follow the instructions.

Actually this Installation Procedure is not very On-the-fly CI friendly as I need it for Travis CI or GitHub Workflow

I would first need to build locally a Debian Package an this then publish online to make it available for the On-the-fly CI Workflow.

PierceNg

  • New Member
  • *
  • Posts: 48
Re: Updating Debian / Ubuntu fpc Package
« Reply #9 on: December 06, 2020, 12:50:39 pm »

 

TinyPortal © 2005-2018