[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fwd: packaging post script glitch.


On Sun, 14 Dec 2025 at 12:51, gbWilly <gbWilly@xxxxxxxxxxxxxx> wrote:

> On Sunday, December 14th, 2025 at 01:31, Bruce Steers <bsteers4@xxxxxxxxx>
> wrote:
>
>
> On Sat, 13 Dec 2025 at 22:33, Lee <t.lee.davidson@xxxxxxxxx> wrote:
>
>> On 12/13/25 12:21 PM, gbWilly wrote:
>> > When you install gambas3 on a non gui system, you do realize you are
>> installing a ton of gui enironment libraries. Why would you
>> > do that on a minimal non gui system, I don't get it.
>>
>> Probably because he wants to use the scripting capabilities of Gambas on
>> his server. However, in that case, it might be better
>> to install only the needed packages one by one instead of the 'gambas3'
>> meta package which installs (almost?) everything.
>>
>>
>> --
>> Lee
>
>
> Yes, exactly that.
> I had hoped the logic of the way no gambas gtk packages install if you do
> not have gtk would be true if there was also no qt, it would just not
> install either toolkit.
> I had not realized gambas3 was a meta for everything.
> I was compiling from source but that again installs everything.
> I guess installing the individual packages would be the best way.
>
>
> apg-get install gambas3 is the same as when you self compile gambas3, you
> get it all, right?
>
> system menu is a gui thing and xdg-dektop is a gui thing as well, hence
> the desktop in the name.
> One of the things it does is make DESKTOP files. The thing missing on all
> non gui systems is exactly that a DESKTOP!!
>
> But, you can install packages individually from OSB, no problem. Some,
> will pull in others as they depend on them.
> gambas3 pulls in gambas3-ide, and that is a gui application, so should be
> installed on a gui system.
>
> But why do the work of manually figuring out what packages to instal for
> you webapplicationl and what not to install, when all mechanisms to do
> exactly that are in Gambas. You just never use them, like most.
>
> This is how you go about it:
> On a development system with IDE installed from OSB:
>
>    1. make your webapplication
>    2. pakage using the IDE packager, create a debian or ubuntu .deb
>    package
>
>
> On the minimal serevr:
>
>    1. Add OSB as source and do apt-get update and apt-get upgrade (no
>    install, just make sure system has all packages available and knows them)
>    2. apt-get install gdebi-core (needed to have a command line
>    application that installs .deb's and pulls in dependencies)
>    3. get yourwebapplication.deb onto the server
>    4. gdebi -n yourwebapplication.deb
>
>
> This last command will install yourwebapplication on the server and will
> only install what it needs from gambas osb. It is as simple as that.
> You package knows exactly what it needs in will install only that, no more.
>
> You should read:
>
>    1. GambOS Book 1: Chapter 2. An introduction the Debian package
>    management
>    2. Gambas Book 1: Chapter 7. The final countdown - 7.6 Distributing
>    your application
>
> for some more background on how stuff works on Debian/Ubuntu and on
> distributing your applications using the existing and very stable
> machanisms.
> You can of course also try to reinvent and improve on the wheel, if so
> desired. I do sometimes, just for the sake of understanding something.
>
> gbWilly
>

Thanks Willy but you do not understand the depths of what my web
application is going to do. it is a little beyond your simple guides.
it is a command runner that runs code as a gbs script and outputs the
result (like the old playground) so it must have more gambas components
installed than the program itself requires as the code can use the 'Use'
keyword to load other components.


besides this post was not about me needing basic tuition on how to install
or distribute gambas applications using the so called "very stable"
mechanisms
it was about a bug in your gambas3 post install script (that i wrote) that
breaks apt due to an xdg-desktop-menu bug.
meaning the main mechanism 'install gambas3' is not so "very stable"
because of 1 little glitch.
I think many people installing gambas on a server will simply try to
install the 'gambas3' package.

Could you just fix the bug?

BruceS

Follow-Ups:
Re: Fwd: packaging post script glitch.gbWilly <gbWilly@xxxxxxxxxxxxxx>
References:
packaging post script glitch.Bruce Steers <bsteers4@xxxxxxxxx>
Re: packaging post script glitch.gbWilly <gbWilly@xxxxxxxxxxxxxx>
Re: packaging post script glitch.Lee <t.lee.davidson@xxxxxxxxx>
Re: packaging post script glitch.Bruce Steers <bsteers4@xxxxxxxxx>
Re: packaging post script glitch.gbWilly <gbWilly@xxxxxxxxxxxxxx>