[Gambas-user] Initial support for making AppImage

T Lee Davidson t.lee.davidson at gmail.com
Fri Sep 8 19:26:54 CEST 2023


On 9/5/23 07:03, Benoît Minisini wrote:
> Hi,
> 
> I have just added to the IDE a new package type to the packager wizard: AppImage!
> 
> You are welcome to test it and report any problem. I think it won't work easily.
> 
> It is not entirely finished. Support for adding extra dependencies and extra files is not done yet.
> 
> AFAIK, The AppImage limitations are the following:
> 
> - You need the 'appimage-builder' tool. See: https://appimage-builder.readthedocs.io/en/latest/intro/install.html#intro-install
> 
> - This tool apparently works only on Debian, Ubuntu and ArchLinux. Please check that if you can.
> 
> - AppImage does not like applications using OpenGL. Please check that too.
> 
> - The resulting AppImage files are big (at least 50 Mb) and slow to start (I mean slower than it should).
> 
> Otherwise, it's cool.
> 
> Regards,
> 

I installed Debian on a QEMU/KVM VM and tried to create an appimage of the default "hello world" new console application 
(hello.gambas). It failed. "Create-AppImage-Package-Output" attached.

I also tried following the example at https://appimage-builder.readthedocs.io/en/latest/examples/gambas3.html. "appimage-builder 
--generate" failed to produce a YML file that looked usable; ie. it listed nothing to include in the AppDir:apt:include: 
section. "AppImageBuilder.yml" attached.

I then tried making an appimage from hello.gambas following the procedures at the above appimage-builder example. The generate 
step failed as well with similar output to the example. "appimage-builer-generate-output" attached.

I think the following line, common to both outputs except for the app name, may indicate at least part of the issue causing the 
failure to produce a viable YML file when trying to create an appimage manually:
WARNING:AppRuntimeAnalyser:/tmp/.mount_appima0Khv6d/usr/bin/strace -f -E LD_LIBRARY_PATH= -e trace=openat --status=successful 
/home/user/devel/appimage-demo-gambas3/AppDir/usr/bin/appimage-demo-gambas3.gambas $@ exited with code 127

I didn't find any mention of Gambas exit codes on the Wiki, so I don't know what code 127 might mean.


-- 
Lee
-------------- next part --------------
Saving CHANGELOG file.

==============================================================================

CREATING PACKAGE FOR APPIMAGE.


Making build directory.
rm -rf '/home/user/.var/tmp/AppImage/AppDir'
mkdir -p '/home/user/.var/tmp/AppImage/AppDir/usr/bin'
mkdir -p '/home/user/.var/tmp/AppImage/AppDir/usr/share/icons/hicolor/256x256/apps'
Generating 'AppImageBuilder' configuration file...
Creating AppImage...
cd '/home/user/.var/tmp/AppImage'
appimage-builder --skip-script --skip-tests
INFO:main:Running apt deploy
INFO:apt:apt-get update
Get:1 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Get:2 http://ppa.launchpad.net/gambas-team/gambas3/ubuntu jammy InRelease [17.5 kB]
Ign:3 http://deb.debian.org/debian jammy InRelease                             
Get:4 http://ddebs.ubuntu.com jammy InRelease [41.3 kB]                        
Ign:5 http://deb.debian.org/debian jammy-updates InRelease
Ign:1 http://security.ubuntu.com/ubuntu jammy-security InRelease
Get:6 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages [36.5 kB]
Get:7 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [822 kB]
Ign:8 http://deb.debian.org/debian jammy Release                               
Ign:2 http://ppa.launchpad.net/gambas-team/gambas3/ubuntu jammy InRelease
Get:9 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [781 kB]
Get:10 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [761 kB]
Ign:11 http://deb.debian.org/debian jammy-updates Release                      
Ign:4 http://ddebs.ubuntu.com jammy InRelease                        
Get:12 http://ppa.launchpad.net/gambas-team/gambas3/ubuntu jammy/main amd64 Packages [15.9 kB]
Get:13 http://ddebs.ubuntu.com jammy/universe amd64 Packages [4,944 kB]        
Ign:14 http://deb.debian.org/debian jammy/main all Packages                    
Ign:15 http://deb.debian.org/debian jammy/universe all Packages                
Ign:16 http://deb.debian.org/debian jammy/restricted all Packages              
Ign:17 http://deb.debian.org/debian jammy/universe amd64 Packages
Ign:18 http://deb.debian.org/debian jammy/multiverse all Packages
Ign:19 http://deb.debian.org/debian jammy/restricted amd64 Packages
Ign:20 http://deb.debian.org/debian jammy/multiverse amd64 Packages
Ign:21 http://deb.debian.org/debian jammy/main amd64 Packages
Ign:22 http://deb.debian.org/debian jammy-updates/restricted amd64 Packages
Ign:23 http://deb.debian.org/debian jammy-updates/restricted all Packages
Ign:24 http://deb.debian.org/debian jammy-updates/main amd64 Packages
Ign:25 http://deb.debian.org/debian jammy-updates/multiverse amd64 Packages
Ign:26 http://deb.debian.org/debian jammy-updates/universe all Packages
Ign:27 http://deb.debian.org/debian jammy-updates/main all Packages
Ign:28 http://deb.debian.org/debian jammy-updates/multiverse all Packages
Ign:29 http://deb.debian.org/debian jammy-updates/universe amd64 Packages
Ign:14 http://deb.debian.org/debian jammy/main all Packages  
Ign:15 http://deb.debian.org/debian jammy/universe all Packages
Ign:16 http://deb.debian.org/debian jammy/restricted all Packages
Ign:17 http://deb.debian.org/debian jammy/universe amd64 Packages
Ign:18 http://deb.debian.org/debian jammy/multiverse all Packages
Ign:19 http://deb.debian.org/debian jammy/restricted amd64 Packages
Ign:20 http://deb.debian.org/debian jammy/multiverse amd64 Packages
Ign:21 http://deb.debian.org/debian jammy/main amd64 Packages
Ign:22 http://deb.debian.org/debian jammy-updates/restricted amd64 Packages
Ign:23 http://deb.debian.org/debian jammy-updates/restricted all Packages
Ign:24 http://deb.debian.org/debian jammy-updates/main amd64 Packages          
Ign:25 http://deb.debian.org/debian jammy-updates/multiverse amd64 Packages    
Ign:26 http://deb.debian.org/debian jammy-updates/universe all Packages        
Ign:27 http://deb.debian.org/debian jammy-updates/main all Packages            
Ign:28 http://deb.debian.org/debian jammy-updates/multiverse all Packages      
Get:30 http://ddebs.ubuntu.com jammy/multiverse amd64 Packages [83.5 kB]
Get:31 http://ddebs.ubuntu.com jammy/main amd64 Packages [558 kB]              
Ign:29 http://deb.debian.org/debian jammy-updates/universe amd64 Packages      
Ign:14 http://deb.debian.org/debian jammy/main all Packages                    
Ign:15 http://deb.debian.org/debian jammy/universe all Packages                
Ign:16 http://deb.debian.org/debian jammy/restricted all Packages              
Ign:17 http://deb.debian.org/debian jammy/universe amd64 Packages              
Ign:18 http://deb.debian.org/debian jammy/multiverse all Packages              
Ign:19 http://deb.debian.org/debian jammy/restricted amd64 Packages            
Ign:20 http://deb.debian.org/debian jammy/multiverse amd64 Packages            
Ign:21 http://deb.debian.org/debian jammy/main amd64 Packages                  
Ign:22 http://deb.debian.org/debian jammy-updates/restricted amd64 Packages    
Ign:23 http://deb.debian.org/debian jammy-updates/restricted all Packages      
Ign:24 http://deb.debian.org/debian jammy-updates/main amd64 Packages          
Ign:25 http://deb.debian.org/debian jammy-updates/multiverse amd64 Packages    
Ign:26 http://deb.debian.org/debian jammy-updates/universe all Packages        
Ign:27 http://deb.debian.org/debian jammy-updates/main all Packages            
Ign:28 http://deb.debian.org/debian jammy-updates/multiverse all Packages      
Ign:29 http://deb.debian.org/debian jammy-updates/universe amd64 Packages      
Ign:14 http://deb.debian.org/debian jammy/main all Packages                    
Ign:15 http://deb.debian.org/debian jammy/universe all Packages                
Ign:16 http://deb.debian.org/debian jammy/restricted all Packages              
Ign:17 http://deb.debian.org/debian jammy/universe amd64 Packages              
Ign:18 http://deb.debian.org/debian jammy/multiverse all Packages              
Ign:19 http://deb.debian.org/debian jammy/restricted amd64 Packages            
Ign:20 http://deb.debian.org/debian jammy/multiverse amd64 Packages            
Ign:21 http://deb.debian.org/debian jammy/main amd64 Packages                  
Ign:22 http://deb.debian.org/debian jammy-updates/restricted amd64 Packages    
Ign:23 http://deb.debian.org/debian jammy-updates/restricted all Packages      
Ign:24 http://deb.debian.org/debian jammy-updates/main amd64 Packages          
Ign:25 http://deb.debian.org/debian jammy-updates/multiverse amd64 Packages    
Ign:26 http://deb.debian.org/debian jammy-updates/universe all Packages        
Ign:27 http://deb.debian.org/debian jammy-updates/main all Packages            
Ign:28 http://deb.debian.org/debian jammy-updates/multiverse all Packages      
Ign:29 http://deb.debian.org/debian jammy-updates/universe amd64 Packages      
Ign:14 http://deb.debian.org/debian jammy/main all Packages                    
Ign:15 http://deb.debian.org/debian jammy/universe all Packages                
Ign:16 http://deb.debian.org/debian jammy/restricted all Packages              
Ign:17 http://deb.debian.org/debian jammy/universe amd64 Packages              
Ign:18 http://deb.debian.org/debian jammy/multiverse all Packages              
Ign:19 http://deb.debian.org/debian jammy/restricted amd64 Packages            
Ign:20 http://deb.debian.org/debian jammy/multiverse amd64 Packages            
Ign:21 http://deb.debian.org/debian jammy/main amd64 Packages                  
Ign:22 http://deb.debian.org/debian jammy-updates/restricted amd64 Packages    
Ign:23 http://deb.debian.org/debian jammy-updates/restricted all Packages      
Ign:24 http://deb.debian.org/debian jammy-updates/main amd64 Packages          
Ign:25 http://deb.debian.org/debian jammy-updates/multiverse amd64 Packages    
Ign:26 http://deb.debian.org/debian jammy-updates/universe all Packages        
Ign:27 http://deb.debian.org/debian jammy-updates/main all Packages            
Ign:28 http://deb.debian.org/debian jammy-updates/multiverse all Packages      
Ign:29 http://deb.debian.org/debian jammy-updates/universe amd64 Packages      
Ign:14 http://deb.debian.org/debian jammy/main all Packages                    
Ign:15 http://deb.debian.org/debian jammy/universe all Packages                
Ign:16 http://deb.debian.org/debian jammy/restricted all Packages              
Ign:17 http://deb.debian.org/debian jammy/universe amd64 Packages              
Ign:18 http://deb.debian.org/debian jammy/multiverse all Packages              
Ign:19 http://deb.debian.org/debian jammy/restricted amd64 Packages            
Ign:20 http://deb.debian.org/debian jammy/multiverse amd64 Packages            
Ign:21 http://deb.debian.org/debian jammy/main amd64 Packages                  
Ign:22 http://deb.debian.org/debian jammy-updates/restricted amd64 Packages    
Ign:23 http://deb.debian.org/debian jammy-updates/restricted all Packages
Ign:24 http://deb.debian.org/debian jammy-updates/main amd64 Packages
Ign:25 http://deb.debian.org/debian jammy-updates/multiverse amd64 Packages
Ign:26 http://deb.debian.org/debian jammy-updates/universe all Packages
Ign:27 http://deb.debian.org/debian jammy-updates/main all Packages
Ign:28 http://deb.debian.org/debian jammy-updates/multiverse all Packages
Ign:29 http://deb.debian.org/debian jammy-updates/universe amd64 Packages
Ign:14 http://deb.debian.org/debian jammy/main all Packages
Ign:15 http://deb.debian.org/debian jammy/universe all Packages
Ign:16 http://deb.debian.org/debian jammy/restricted all Packages
Err:17 http://deb.debian.org/debian jammy/universe amd64 Packages
  404  Not Found [IP: 199.232.30.132 80]
Ign:18 http://deb.debian.org/debian jammy/multiverse all Packages
Ign:19 http://deb.debian.org/debian jammy/restricted amd64 Packages
Ign:20 http://deb.debian.org/debian jammy/multiverse amd64 Packages
Ign:21 http://deb.debian.org/debian jammy/main amd64 Packages
Err:22 http://deb.debian.org/debian jammy-updates/restricted amd64 Packages
  404  Not Found [IP: 199.232.30.132 80]
Ign:23 http://deb.debian.org/debian jammy-updates/restricted all Packages
Ign:24 http://deb.debian.org/debian jammy-updates/main amd64 Packages
Ign:25 http://deb.debian.org/debian jammy-updates/multiverse amd64 Packages
Ign:26 http://deb.debian.org/debian jammy-updates/universe all Packages
Ign:27 http://deb.debian.org/debian jammy-updates/main all Packages
Ign:28 http://deb.debian.org/debian jammy-updates/multiverse all Packages
Ign:29 http://deb.debian.org/debian jammy-updates/universe amd64 Packages
Fetched 8,171 kB in 23s (359 kB/s)
Reading package lists... Done
W: GPG error: http://security.ubuntu.com/ubuntu jammy-security InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 871920D1991BC93C
W: The repository 'http://security.ubuntu.com/ubuntu jammy-security InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://deb.debian.org/debian jammy Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://ppa.launchpad.net/gambas-team/gambas3/ubuntu jammy InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 50B027516CAEE58D
W: The repository 'http://ppa.launchpad.net/gambas-team/gambas3/ubuntu jammy InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://deb.debian.org/debian jammy-updates Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://ddebs.ubuntu.com jammy InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C8CAB6595FDFF622
W: The repository 'http://ddebs.ubuntu.com jammy InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://deb.debian.org/debian/dists/jammy/universe/binary-amd64/Packages  404  Not Found [IP: 199.232.30.132 80]
E: Failed to fetch http://deb.debian.org/debian/dists/jammy-updates/restricted/binary-amd64/Packages  404  Not Found [IP: 199.232.30.132 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
ERROR:root:"apt-get update" execution failed
Traceback (most recent call last):
  File "/tmp/.mount_appimaCkiMWZ/usr/bin/appimage-builder", line 8, in <module>
    sys.exit(__main__())
  File "/tmp/.mount_appimaCkiMWZ/usr/lib/python3.8/site-packages/appimagebuilder/__main__.py", line 50, in __main__
    invoker.execute(commands)
  File "/tmp/.mount_appimaCkiMWZ/usr/lib/python3.8/site-packages/appimagebuilder/invoker.py", line 29, in execute
    command()
  File "/tmp/.mount_appimaCkiMWZ/usr/lib/python3.8/site-packages/appimagebuilder/commands/apt_deploy.py", line 46, in __call__
    deployed_packages = apt_deploy.deploy(
  File "/tmp/.mount_appimaCkiMWZ/usr/lib/python3.8/site-packages/appimagebuilder/modules/deploy/apt/deploy.py", line 39, in deploy
    self._prepare_apt_venv()
  File "/tmp/.mount_appimaCkiMWZ/usr/lib/python3.8/site-packages/appimagebuilder/modules/deploy/apt/deploy.py", line 48, in _prepare_apt_venv
    self.apt_venv.update()
  File "/tmp/.mount_appimaCkiMWZ/usr/lib/python3.8/site-packages/appimagebuilder/modules/deploy/apt/venv.py", line 161, in update
    shell.assert_successful_result(_proc)
  File "/tmp/.mount_appimaCkiMWZ/usr/lib/python3.8/site-packages/appimagebuilder/utils/shell.py", line 35, in assert_successful_result
    raise RuntimeError(
RuntimeError: "apt-get update" execution failed with code 100
The package build has failed.
                             Package.MakeAppImagePackage.2951: Unable to create AppImage.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: AppImageBuilder.yml
Type: application/x-yaml
Size: 1417 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20230908/e6fb65d4/attachment-0001.bin>
-------------- next part --------------
INFO:AppRuntimeAnalyser:/tmp/.mount_appima0Khv6d/usr/bin/strace -f -E LD_LIBRARY_PATH= -e trace=openat --status=successful /home/user/devel/appimage-demo-gambas3/AppDir/usr/bin/appimage-demo-gambas3.gambas $@
WARNING:AppRuntimeAnalyser:/tmp/.mount_appima0Khv6d/usr/bin/strace -f -E LD_LIBRARY_PATH= -e trace=openat --status=successful /home/user/devel/appimage-demo-gambas3/AppDir/usr/bin/appimage-demo-gambas3.gambas $@ exited with code 127
WARNING:AppRuntimeAnalyser:This may produce an incomplete/wrong recipe. Please make sure that the application runs properly.
INFO:AppRuntimeAnalyser:Reading PT_INTERP from executables
INFO:FilePackageResolver:/usr/bin/dpkg-query -S 
dpkg-query: error: --search needs at least one file name pattern argument

Use --help for help about querying packages.
INFO:dpkg-query:/usr/bin/dpkg-query -W -f=${binary:Package}: ${Depends}\n
INFO:Generator:Recipe generation completed.


More information about the User mailing list