Grammalecte  Ticket Change Details

Overview

Artifact ID: b03eb19b3262bb3b459bf22e823cce21071c1b8b851f4fee538a72b019029353
Ticket: 03b395cc4f5dab6131938b1f17065d0ba13f52ff
Building problem in a chroot - build_data.py and genfrdic.py related
User & Date: anonymous on 2019-11-02 21:36:46
Changes

  1. foundin changed to: "1.5.0"
  2. icomment:
    Hello,
    
    While trying to build a rpm package for Fedora in a mock environment
    (chrooted rpmbuild), I encountered these problems:
    
    - gc_lang/fr/build_data.py try to launch genfrdic.py, with os system shell,
    but it is not in the PATH. Had to replace line:
    
    os.system("genfrdic.py -s -gl -v "+sVersion)
    
    with:
    
    os.system("python3 ./genfrdic.py -s -gl -v "+sVersion)
    
    to get it working. Not sure it is the right way to solve this. 
    Adding python3 helps because even if the shebang file is "#!python3" 
    the genfrdic.py file is not executable, and just modifying the line to: 
    
    os.system("./genfrdic.py -s -gl -v "+sVersion) 
    
    doesn't help.
    
    Then, while genfrdic.py works, it tries to access to 
    gc_lang/fr/dictionnaire/lexique/French.tagset.txt file, but only 
    gc_lang/fr/dictionnaire/lexique/french.tagset.txt exists 
    (with a "f" not a "F").
    Renaming gc_lang/fr/dictionnaire/lexique/french.tagset.txt to
     gc_lang/fr/dictionnaire/lexique/French.tagset.txt resolve the problem.
    
    One last minor glitch that is not probably needed to fix is that 
    all the python files shebang were modified from "#!python3" to 
    "#!/usr/bin/python3" to be in sync with Fedora packaging guidelines.
    
    Hope this helps. Any comments about this subject are welcome.
    
    Cordially,
    
    
    -- 
    NVieville
    
  3. login: "anonymous"
  4. mimetype: "text/plain"
  5. private_contact changed to: "ca604a32dc58f709231a503cb64110ed1d3b69b1"
  6. severity changed to: "Important"
  7. status changed to: "Open"
  8. title changed to:
    Building problem in a chroot - build_data.py and genfrdic.py related
    
  9. type changed to: "Build_Problem"