Compiling on ALL supported distros

Ask about the individual Gambas components here.
User avatar
BruceSteers
Posts: 1523
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: Compiling on ALL supported distros

Post by BruceSteers »

Working sweetly now is this.

I just launch it and hit return.

if git updates it runs ./configure to make install and finishes

if no updates it just quits.

my preferences are saved so no questions asked.

Gotta work a bit on ways to re-enable setting choices.
Currently best way is to edit the /$HOME/.config/gambas-comipler.conf file

https://github.com/BruceSteers/gambas3- ... nd-install
If at first you don't succeed , try doing something differently.
BruceS
User avatar
BruceSteers
Posts: 1523
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: Compiling on ALL supported distros

Post by BruceSteers »

If gambas is already installed I'm working on this similar thing but it's a gambas program....

It's very WIP , no docs yet and only a few tooltips.

https://gitlab.com/bsteers4/gcu

like the script it uses the .gitlab-ci file to get supported distros / dependencies / commands.and auto-detects your system.

Image

Then there's the source page that reads the GitLab commits page to get latest commit id and time and message.

Image

Then the Download page where you can install the dependencies or git pull the latest commit or download the archive.
(dependency install not done yet and neither is archive download, git functions are working)

Image

then the compilation page. has a few options.
(gonna make that green darker, it's a bit much lol, it shows green while running and red if failed , grey when idle.)

Image
If at first you don't succeed , try doing something differently.
BruceS
User avatar
BruceSteers
Posts: 1523
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: Compiling on ALL supported distros

Post by BruceSteers »

So the gambas version had a bit of a de-evolution/evolution.

I initially made it handle too much git stuff and got a bit lost so i re-wrote it starting from basics.

So it's basically now an upgrade utility called "Gambas Latest Updater"
It's currently git only (no download archive just git clone/pull)

Requirements..
Internet
Gambas (older version of course as it for upgrade)
bash (only bash as uses the "set -o pipefail" feature to catch errors when compiling)

How to use...
Load it and it detects your OS (if it's in the list of supported distros)

Set it's source directory,
Either point it to a previously downloaded gitlab folder on your drive,
or a folder called gambas-master or gambas-stable depending on your choice is created in the directory given.

If downloading a new clone and not using existing dir choose master or stable version.

From the downloads page you can git clone a new source or git pull updates on existing folder.
You can find if dependencies (as listed in gitlab-ci.yml file) are missing and install.

You and also "Check Gitlab" , this reads the gitlab commits page and lists the latest commit hash and message so you can see if there's a new update.

Then go to compile page.
You can set compile start point from ./rconf-all to 'make install'
You can set --force option to ./reconf all or -q (quiet, only displays errors) to ./configure
you can set what to do when the time comes for sudo make install to ask for password (in case you are afk) (do nothing, pop up a message to pause process, or auto type password (you are asked at start of compilation)

Press begin
If you have your distro's repository installed version of gambas by a package manager then it will be uninstalled before make install is run.
Compilation should run smoothly in the built in terminal.

The Versions/Downloads window....
GambasLatestUpdate.png
The Compiler Window...
GambasLatestUpdateC.png
Download...
The Source: https://gitlab.com/bsteers4/gambaslatestupdate
The Gambas Exe: https://gitlab.com/bsteers4/gambaslates ... ate.gambas
Enjoy...
Bruce
If at first you don't succeed , try doing something differently.
BruceS
User avatar
PJBlack
Posts: 184
Joined: Tuesday 9th June 2020 10:26pm
Location: Florstadt, Hessen, Germany

Re: Compiling on ALL supported distros

Post by PJBlack »

nice job ... nice colors (really like that design) ... BUT dont work ... see tickets/gitlab
User avatar
BruceSteers
Posts: 1523
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: Compiling on ALL supported distros

Post by BruceSteers »

PJBlack wrote: Tuesday 19th January 2021 1:23am nice job ... nice colors (really like that design) ... BUT dont work ... see tickets/gitlab
Thanks for testing and glad you like it :)
I found this bug.
I tried on a new debian with 3.12 and found it was the TextBox "PlaceHolder" strings.
Placeholder did not exist in 3.12 so was causing error and stopping it loading.
I've fixed that now (and the linuix typo:) )
If at first you don't succeed , try doing something differently.
BruceS
User avatar
PJBlack
Posts: 184
Joined: Tuesday 9th June 2020 10:26pm
Location: Florstadt, Hessen, Germany

Re: Compiling on ALL supported distros

Post by PJBlack »

nope ...

Code: Select all

[sudo] Passwort für mnaltrogge: 
Fehler: Ziel nicht gefunden: gambas3*
but yes ... the typo is gone :twisted:
User avatar
BruceSteers
Posts: 1523
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: Compiling on ALL supported distros

Post by BruceSteers »

PJBlack wrote: Tuesday 19th January 2021 4:23am nope ...

Code: Select all

[sudo] Passwort für mnaltrogge: 
Fehler: Ziel nicht gefunden: gambas3*
but yes ... the typo is gone :twisted:
Fixed , and tested working , thank you :)
If at first you don't succeed , try doing something differently.
BruceS
Post Reply