Tour of Champions dependencies iPKG instructions are not correct

Issue #50 new
Richard Moulton created an issue

I’m not sure whether this is a problem with the instructions or with iPKG itself.

Before running the commands below I added the following command.

addlible champions

The instructions include the following commands.

ipkg addrepo 'RPGNextGen https://repo.rpgnextgen.com/repository' ipkglib(champions)
ipkg install linkedlist ipkglib(champions)
ipkg install message ipkglib(champions)

The second of these commands didn’t work and when checking the joblog I found the following message.

`Package linkedlist not found.`

To make this work I had to run the following command after the ipkg addrepo ... command.

IPKG ACTION(UPDATE) ACTPRM('RPGNextGen') IPKGLIB(CHAMPIONS)

Should the addrepo action update the packages cache?


When I ran the following command this failed with the following messages in the joblog.

ipkg install message ipkglib(champions)

Messages in joblog …

Command ended normally with exit status 0.                          
Object PKGCONTENT in CHAMPIONS type *FILE not found.                
Ownership of object PKGCONTENT in CHAMPIONS type *FILE changed.     
File PKGCONTENT created in library CHAMPIONS.                       
Stream file copied to object.                                       
Ownership of object MESSAGE in CHAMPIONS type *FILE changed.        
QDFTOWN owns MODULE MESSAGE in CHAMPIONS.                           
QDFTOWN owns FILE MESSAGE in CHAMPIONS.                             
2 security or data format changes occurred.                         
3 objects restored. 0 not restored to CHAMPIONS.                    
Function check. CPF3773 unmonitored by IPKG at statement 0000003880,
  instruction X'0000'.                                              
The call to MAIN ended in error (C G D F).                          
The call to MAIN ended in error (C G D F).                          

Note that the linkedlist package appeared to install successfully.


Just in case this is a factor I wasn’t sure where I should restore the iPKG tool objects.

I decided to restore these to the CHAMPIONS library.

CRTLIB LIB(CHAMPIONS) TYPE(*TEST) TEXT('RPG Next Gen Project Champions')
CRTSAVF FILE(CHAMPIONS/IPKGSAVF)
wget https://bitbucket.org/m1hael/ipkg/downloads/ipkgclient.savf
wget https://bitbucket.org/m1hael/ipkg/downloads/ipkgclient.md5
md5sum -c ipkgclient.md5
cp ipkgclient.savf /QSYS.LIB/CHAMPIONS.LIB/IPKGSAVF.FILE
RSTOBJ OBJ(IPKG) SAVLIB(IPKG) DEV(*SAVF) SAVF(CHAMPIONS/IPKGSAVF) RSTLIB(CHAMPIONS)

I followed the Tour of Champions Dependencies instructions and specified a value of IPKGLIB(CHAMPIONS) on the IPKG command.

Comments (3)

  1. Mihael Schmidt repo owner

    Thanks for the detailed instructions. You are correct with the assumption that the UPDATE action updates the cache for the corresponding repository. This has to be done before installing any package from this repo. That instruction seems to be missing in the tutorial.

    Concerning the rest I need to take a closer look. Thanks for your time.

  2. Mihael Schmidt repo owner

    The Tour of Champions website now has the update action added to the instructions.

    I tried to recreate the error with the CPF3773 message. CPF3773 has the message text “&1 objects restored. &2 not restored to &4.”. So it seems there was a problem with the RSTOBJ command, source at https://bitbucket.org/m1hael/ipkg/src/699d2a6f94aadad4719f137eca4053d760480f2c/src/ipkgactins.rpgmod#lines-445 .

    But the error didn’t occured at my test machine.

    ipkg install message    ipkglib(championt)          
    Command ended normally with exit status 0.          
    Object PKGCONTENT in CHAMPIONT type *FILE not found.
    File PKGCONTENT created in library CHAMPIONT.                            
    Stream file copied to object.                                            
    3 objects restored from MIHAEL to CHAMPIONT.                             
    Object CHAMPIONT/MESSAGE type *SRVPGM added to binding directory IPKG in 
      library CHAMPIONT.                                                     
    1 entries added, 0 entries not added to Binding directory IPKG in library
      CHAMPIONT.                                                             
    Command ended normally with exit status 0.                               
    

    Seems odd that in your case one package was installed and the other wasn’t (or ended with an error).

    I will try this on another machine.

  3. Log in to comment