How to get Alire to install gnatdoc?

I’ve been stuck on this for a while now. I thought it wasn’t installing because I did the return codes array (which isn’t documented properly) wrong, originally I put in:

           Valid_Exit_Codes => (1, 0), -- returns 1 when not found

0 is the success value on Gentoo, 1 is error.

It kept giving errors of missing packages for glib, which is installed and I added the gentoo package name to glib in alire-index.

So, I swapped the values around and no complaints, but still not gnatdoc.

$ alr get gnatdoc
ⓘ Deploying adasat=26.0.0...                                                                                      
##=O#-   #                                                                                                                
ⓘ Deploying gprconfig_kb=26.0.0...                                              
##O#-  #                                                                                                                  
ⓘ Deploying vss_text=26.0.0...                                                        
##=O#-   #                                                                                                                
ⓘ Deploying gnatcoll_minimal=26.0.0...                                            
    # -=O#-   #      #                                                                                                    
ⓘ Deploying vss_extra=26.0.0...                                                           
##=O#-   #                                                                                                                
ⓘ Found 1 nested crate in /home/laguest/.local/share/alire/releases/vss_extra_26.0.0_15adc6bd:
   tools/json_schema/json_schema=1.0.0: JSON Schema to Ada converter
ⓘ Deploying xmlada=26.0.0...
##=O#-   #                                                                                                                
ⓘ Deploying gnatcoll=26.0.0...                                                  
################################################################################################################### 100.0%
ⓘ Deploying gnatcoll_gmp=26.0.0...                                                
# #=O=#    #                                                                                                              
ⓘ Deploying libgpr=26.0.0...                                                          
##=O#-   #                                                                                                                
ⓘ Deploying markdown=26.0.0...                                                  
##O#-  #                                                                                                                  
ⓘ Deploying gnatcoll_iconv=26.0.0...                                              
################################################################################################################### 100.0%
ⓘ Deploying gnatcoll_projects=26.0.0...                                                 
    # -=O#-   #      #                                                                                                    
ⓘ Deploying prettier_ada=26.0.0...                                                         
##O#-  #                                                                                                                  
ⓘ Deploying langkit_support=26.0.0...                                                 
   # -=#=-  #     #                                                                                                       
ⓘ Deploying libgpr2=26.0.0...                                                            
   # -=#=-  #     #                                                                                                       
ⓘ Deploying libadalang=26.0.0...                                                 
################################################################################################################### 100.0%
                                                                                    
gnatdoc=26.0.0 successfully retrieved.
Dependencies were solved as follows:                 

   +   adasat            26.0.0   (new,indirect)
   +📦 gnat              16.0.0   (new,gnat_external,indirect,executable in path)
   +   gnatcoll          26.0.0   (new,indirect)
   +   gnatcoll_gmp      26.0.0   (new,indirect)
   +   gnatcoll_iconv    26.0.0   (new,indirect)
   +   gnatcoll_minimal  26.0.0   (new,indirect)
   +   gnatcoll_projects 26.0.0   (new,indirect)
   +📦 gprconfig_kb      26.0.0   (new,indirect,binary)
   +   langkit_support   26.0.0   (new,indirect)
   +   libadalang        26.0.0   (new)
   +📦 libgmp            6.3.0-r1 (new,indirect,system package)
   +   libgpr            26.0.0   (new,indirect)
   +   libgpr2           26.0.0   (new)
   +📦 make              4.4.1    (new,indirect,executable in path)
   +   markdown          26.0.0   (new)
   +   prettier_ada      26.0.0   (new,indirect)
   +   vss_extra         26.0.0   (new)
   +   vss_text          26.0.0   (new)
   +   xmlada            26.0.0   (new,indirect)
$ ls ~/.local/share/alire/releases
adasat_26.0.0_37336738             gprconfig_kb_26.0.0_8d626e98     make_4.4.1_external
gnatcoll_26.0.0_cc5dd0a1           langkit_support_26.0.0_1745168f  markdown_26.0.0_87a903dc
gnatcoll_gmp_26.0.0_dacec6f3       libadalang_26.0.0_75276b8d       prettier_ada_26.0.0_8fa12a56
gnatcoll_iconv_26.0.0_dacec6f3     libgmp_6.3.0_system              vss_extra_26.0.0_15adc6bd
gnatcoll_minimal_26.0.0_cc5dd0a1   libgpr2_26.0.0_99e9d2cd          vss_text_26.0.0_940443ab
gnatcoll_projects_26.0.0_cc5dd0a1  libgpr_26.0.0_600d4a7b           xmlada_26.0.0_b140ed4a

Any ideas?

I’m currently not on my PC (cant test on my gentoo machine) so I wanted to see what the CI had to say

It turns out gentoo isn’t being tested…

This will check out the source in you current directory and fetch the dependencies. Now you can go into the gnatdoc* folder and build it with alr build.

Or you can try the binary release that is now available alr install gnatdoc_bin which will install in ~/.alire/bin.